Flaky master: spec/features/merge_request/user_sees_deployment_widget_spec.rb
Seen in https://gitlab.com/gitlab-org/gitlab/-/jobs/2001582144 but seems to work on retry.
Failures:
1) Merge request > User sees deployment widget when merge request has associated environments when deployment succeeded displays that the environment is deployed
Failure/Error: raise CrossDatabaseModificationAcrossUnsupportedTablesError, message
Gitlab::Database::QueryAnalyzers::PreventCrossDatabaseModification::CrossDatabaseModificationAcrossUnsupportedTablesError:
Cross-database data modification of 'gitlab_ci, gitlab_main' were detected within a transaction modifying the 'ci_builds' tables.Please refer to https://docs.gitlab.com/ee/development/database/multiple_databases.html#removing-cross-database-transactions for details on how to resolve this exception.
# ./lib/gitlab/database/query_analyzers/prevent_cross_database_modification.rb:101:in `analyze'
# ./lib/gitlab/database/query_analyzer.rb:63:in `block in process_sql'
# ./lib/gitlab/database/query_analyzer.rb:60:in `each'
# ./lib/gitlab/database/query_analyzer.rb:60:in `process_sql'
# ./lib/gitlab/database/query_analyzer.rb:28:in `block (2 levels) in hook!'
# ./lib/gitlab/database/query_analyzer.rb:122:in `with_ignored_recursive_calls'
# ./lib/gitlab/database/query_analyzer.rb:27:in `block in hook!'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:126:in `block in write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:112:in `block in read_write'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:172:in `retry_with_backoff'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:110:in `read_write'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:125:in `write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:67:in `block (2 levels) in <class:ConnectionProxy>'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:126:in `block in write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:112:in `block in read_write'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:172:in `retry_with_backoff'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:110:in `read_write'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:125:in `write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:77:in `transaction'
# ./app/models/concerns/cross_database_modification.rb:58:in `block in transaction'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:126:in `block in write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:112:in `block in read_write'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:172:in `retry_with_backoff'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:110:in `read_write'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:125:in `write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:77:in `transaction'
# ./lib/gitlab/database.rb:265:in `block in transaction'
# ./lib/gitlab/database.rb:264:in `transaction'
# ./app/models/concerns/cross_database_modification.rb:49:in `transaction'
# ./spec/features/merge_request/user_sees_deployment_widget_spec.rb:27:in `block (4 levels) in <top (required)>'
# ./spec/spec_helper.rb:406:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:397:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:393:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:393:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/flaky_tests.rb:27:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
2) Merge request > User sees deployment widget when merge request has associated environments when deployment succeeded when a user created a new merge request with the same SHA displays one environment which is related to the pipeline
Failure/Error: raise CrossDatabaseModificationAcrossUnsupportedTablesError, message
Gitlab::Database::QueryAnalyzers::PreventCrossDatabaseModification::CrossDatabaseModificationAcrossUnsupportedTablesError:
Cross-database data modification of 'gitlab_ci, gitlab_main' were detected within a transaction modifying the 'ci_builds' tables.Please refer to https://docs.gitlab.com/ee/development/database/multiple_databases.html#removing-cross-database-transactions for details on how to resolve this exception.
# ./lib/gitlab/database/query_analyzers/prevent_cross_database_modification.rb:101:in `analyze'
# ./lib/gitlab/database/query_analyzer.rb:63:in `block in process_sql'
# ./lib/gitlab/database/query_analyzer.rb:60:in `each'
# ./lib/gitlab/database/query_analyzer.rb:60:in `process_sql'
# ./lib/gitlab/database/query_analyzer.rb:28:in `block (2 levels) in hook!'
# ./lib/gitlab/database/query_analyzer.rb:122:in `with_ignored_recursive_calls'
# ./lib/gitlab/database/query_analyzer.rb:27:in `block in hook!'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:126:in `block in write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:112:in `block in read_write'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:172:in `retry_with_backoff'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:110:in `read_write'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:125:in `write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:67:in `block (2 levels) in <class:ConnectionProxy>'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:126:in `block in write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:112:in `block in read_write'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:172:in `retry_with_backoff'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:110:in `read_write'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:125:in `write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:77:in `transaction'
# ./app/models/concerns/cross_database_modification.rb:58:in `block in transaction'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:126:in `block in write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:112:in `block in read_write'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:172:in `retry_with_backoff'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:110:in `read_write'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:125:in `write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:77:in `transaction'
# ./lib/gitlab/database.rb:265:in `block in transaction'
# ./lib/gitlab/database.rb:264:in `transaction'
# ./app/models/concerns/cross_database_modification.rb:49:in `transaction'
# ./spec/features/merge_request/user_sees_deployment_widget_spec.rb:27:in `block (4 levels) in <top (required)>'
# ./spec/spec_helper.rb:406:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:397:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:393:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:393:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/flaky_tests.rb:27:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
3) Merge request > User sees deployment widget when merge request has associated environments when deployment failed displays that the deployment failed
Failure/Error: raise CrossDatabaseModificationAcrossUnsupportedTablesError, message
Gitlab::Database::QueryAnalyzers::PreventCrossDatabaseModification::CrossDatabaseModificationAcrossUnsupportedTablesError:
Cross-database data modification of 'gitlab_ci, gitlab_main' were detected within a transaction modifying the 'ci_builds' tables.Please refer to https://docs.gitlab.com/ee/development/database/multiple_databases.html#removing-cross-database-transactions for details on how to resolve this exception.
# ./lib/gitlab/database/query_analyzers/prevent_cross_database_modification.rb:101:in `analyze'
# ./lib/gitlab/database/query_analyzer.rb:63:in `block in process_sql'
# ./lib/gitlab/database/query_analyzer.rb:60:in `each'
# ./lib/gitlab/database/query_analyzer.rb:60:in `process_sql'
# ./lib/gitlab/database/query_analyzer.rb:28:in `block (2 levels) in hook!'
# ./lib/gitlab/database/query_analyzer.rb:122:in `with_ignored_recursive_calls'
# ./lib/gitlab/database/query_analyzer.rb:27:in `block in hook!'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:126:in `block in write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:112:in `block in read_write'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:172:in `retry_with_backoff'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:110:in `read_write'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:125:in `write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:67:in `block (2 levels) in <class:ConnectionProxy>'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:126:in `block in write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:112:in `block in read_write'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:172:in `retry_with_backoff'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:110:in `read_write'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:125:in `write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:77:in `transaction'
# ./app/models/concerns/cross_database_modification.rb:58:in `block in transaction'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:126:in `block in write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:112:in `block in read_write'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:172:in `retry_with_backoff'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:110:in `read_write'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:125:in `write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:77:in `transaction'
# ./lib/gitlab/database.rb:265:in `block in transaction'
# ./lib/gitlab/database.rb:264:in `transaction'
# ./app/models/concerns/cross_database_modification.rb:49:in `transaction'
# ./spec/features/merge_request/user_sees_deployment_widget_spec.rb:56:in `block (4 levels) in <top (required)>'
# ./spec/spec_helper.rb:406:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:397:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:393:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:393:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/flaky_tests.rb:27:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
4) Merge request > User sees deployment widget when merge request has associated environments when deployment running displays that the running deployment
Failure/Error: raise CrossDatabaseModificationAcrossUnsupportedTablesError, message
Gitlab::Database::QueryAnalyzers::PreventCrossDatabaseModification::CrossDatabaseModificationAcrossUnsupportedTablesError:
Cross-database data modification of 'gitlab_ci, gitlab_main' were detected within a transaction modifying the 'ci_builds' tables.Please refer to https://docs.gitlab.com/ee/development/database/multiple_databases.html#removing-cross-database-transactions for details on how to resolve this exception.
# ./lib/gitlab/database/query_analyzers/prevent_cross_database_modification.rb:101:in `analyze'
# ./lib/gitlab/database/query_analyzer.rb:63:in `block in process_sql'
# ./lib/gitlab/database/query_analyzer.rb:60:in `each'
# ./lib/gitlab/database/query_analyzer.rb:60:in `process_sql'
# ./lib/gitlab/database/query_analyzer.rb:28:in `block (2 levels) in hook!'
# ./lib/gitlab/database/query_analyzer.rb:122:in `with_ignored_recursive_calls'
# ./lib/gitlab/database/query_analyzer.rb:27:in `block in hook!'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:126:in `block in write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:112:in `block in read_write'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:172:in `retry_with_backoff'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:110:in `read_write'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:125:in `write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:67:in `block (2 levels) in <class:ConnectionProxy>'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:126:in `block in write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:112:in `block in read_write'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:172:in `retry_with_backoff'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:110:in `read_write'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:125:in `write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:77:in `transaction'
# ./app/models/concerns/cross_database_modification.rb:58:in `block in transaction'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:126:in `block in write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:112:in `block in read_write'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:172:in `retry_with_backoff'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:110:in `read_write'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:125:in `write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:77:in `transaction'
# ./lib/gitlab/database.rb:265:in `block in transaction'
# ./lib/gitlab/database.rb:264:in `transaction'
# ./app/models/concerns/cross_database_modification.rb:49:in `transaction'
# ./spec/features/merge_request/user_sees_deployment_widget_spec.rb:70:in `block (4 levels) in <top (required)>'
# ./spec/spec_helper.rb:406:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:397:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:393:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:393:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/flaky_tests.rb:27:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
5) Merge request > User sees deployment widget when merge request has associated environments when deployment was cancelled displays that the environment name
Failure/Error: raise CrossDatabaseModificationAcrossUnsupportedTablesError, message
Gitlab::Database::QueryAnalyzers::PreventCrossDatabaseModification::CrossDatabaseModificationAcrossUnsupportedTablesError:
Cross-database data modification of 'gitlab_ci, gitlab_main' were detected within a transaction modifying the 'ci_builds' tables.Please refer to https://docs.gitlab.com/ee/development/database/multiple_databases.html#removing-cross-database-transactions for details on how to resolve this exception.
# ./lib/gitlab/database/query_analyzers/prevent_cross_database_modification.rb:101:in `analyze'
# ./lib/gitlab/database/query_analyzer.rb:63:in `block in process_sql'
# ./lib/gitlab/database/query_analyzer.rb:60:in `each'
# ./lib/gitlab/database/query_analyzer.rb:60:in `process_sql'
# ./lib/gitlab/database/query_analyzer.rb:28:in `block (2 levels) in hook!'
# ./lib/gitlab/database/query_analyzer.rb:122:in `with_ignored_recursive_calls'
# ./lib/gitlab/database/query_analyzer.rb:27:in `block in hook!'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:126:in `block in write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:112:in `block in read_write'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:172:in `retry_with_backoff'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:110:in `read_write'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:125:in `write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:67:in `block (2 levels) in <class:ConnectionProxy>'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:126:in `block in write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:112:in `block in read_write'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:172:in `retry_with_backoff'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:110:in `read_write'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:125:in `write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:77:in `transaction'
# ./app/models/concerns/cross_database_modification.rb:58:in `block in transaction'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:126:in `block in write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:112:in `block in read_write'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:172:in `retry_with_backoff'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:110:in `read_write'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:125:in `write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:77:in `transaction'
# ./lib/gitlab/database.rb:265:in `block in transaction'
# ./lib/gitlab/database.rb:264:in `transaction'
# ./app/models/concerns/cross_database_modification.rb:49:in `transaction'
# ./spec/features/merge_request/user_sees_deployment_widget_spec.rb:97:in `block (4 levels) in <top (required)>'
# ./spec/spec_helper.rb:406:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:397:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:393:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:393:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/flaky_tests.rb:27:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
6) Merge request > User sees deployment widget when merge request has associated environments with stop action does start build when stop button clicked
Failure/Error: raise CrossDatabaseModificationAcrossUnsupportedTablesError, message
Gitlab::Database::QueryAnalyzers::PreventCrossDatabaseModification::CrossDatabaseModificationAcrossUnsupportedTablesError:
Cross-database data modification of 'gitlab_ci, gitlab_main' were detected within a transaction modifying the 'ci_builds' tables.Please refer to https://docs.gitlab.com/ee/development/database/multiple_databases.html#removing-cross-database-transactions for details on how to resolve this exception.
# ./lib/gitlab/database/query_analyzers/prevent_cross_database_modification.rb:101:in `analyze'
# ./lib/gitlab/database/query_analyzer.rb:63:in `block in process_sql'
# ./lib/gitlab/database/query_analyzer.rb:60:in `each'
# ./lib/gitlab/database/query_analyzer.rb:60:in `process_sql'
# ./lib/gitlab/database/query_analyzer.rb:28:in `block (2 levels) in hook!'
# ./lib/gitlab/database/query_analyzer.rb:122:in `with_ignored_recursive_calls'
# ./lib/gitlab/database/query_analyzer.rb:27:in `block in hook!'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:126:in `block in write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:112:in `block in read_write'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:172:in `retry_with_backoff'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:110:in `read_write'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:125:in `write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:67:in `block (2 levels) in <class:ConnectionProxy>'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:126:in `block in write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:112:in `block in read_write'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:172:in `retry_with_backoff'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:110:in `read_write'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:125:in `write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:77:in `transaction'
# ./app/models/concerns/cross_database_modification.rb:58:in `block in transaction'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:126:in `block in write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:112:in `block in read_write'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:172:in `retry_with_backoff'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:110:in `read_write'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:125:in `write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:77:in `transaction'
# ./lib/gitlab/database.rb:265:in `block in transaction'
# ./lib/gitlab/database.rb:264:in `transaction'
# ./app/models/concerns/cross_database_modification.rb:49:in `transaction'
# ./spec/features/merge_request/user_sees_deployment_widget_spec.rb:114:in `block (4 levels) in <top (required)>'
# ./spec/spec_helper.rb:406:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:397:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:393:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:393:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/flaky_tests.rb:27:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
7) Merge request > User sees deployment widget when merge request has associated environments with stop action for reporter does not show stop button
Failure/Error: raise CrossDatabaseModificationAcrossUnsupportedTablesError, message
Gitlab::Database::QueryAnalyzers::PreventCrossDatabaseModification::CrossDatabaseModificationAcrossUnsupportedTablesError:
Cross-database data modification of 'gitlab_ci, gitlab_main' were detected within a transaction modifying the 'ci_builds' tables.Please refer to https://docs.gitlab.com/ee/development/database/multiple_databases.html#removing-cross-database-transactions for details on how to resolve this exception.
# ./lib/gitlab/database/query_analyzers/prevent_cross_database_modification.rb:101:in `analyze'
# ./lib/gitlab/database/query_analyzer.rb:63:in `block in process_sql'
# ./lib/gitlab/database/query_analyzer.rb:60:in `each'
# ./lib/gitlab/database/query_analyzer.rb:60:in `process_sql'
# ./lib/gitlab/database/query_analyzer.rb:28:in `block (2 levels) in hook!'
# ./lib/gitlab/database/query_analyzer.rb:122:in `with_ignored_recursive_calls'
# ./lib/gitlab/database/query_analyzer.rb:27:in `block in hook!'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:126:in `block in write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:112:in `block in read_write'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:172:in `retry_with_backoff'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:110:in `read_write'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:125:in `write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:67:in `block (2 levels) in <class:ConnectionProxy>'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:126:in `block in write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:112:in `block in read_write'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:172:in `retry_with_backoff'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:110:in `read_write'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:125:in `write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:77:in `transaction'
# ./app/models/concerns/cross_database_modification.rb:58:in `block in transaction'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:126:in `block in write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:112:in `block in read_write'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:172:in `retry_with_backoff'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:110:in `read_write'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:125:in `write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:77:in `transaction'
# ./lib/gitlab/database.rb:265:in `block in transaction'
# ./lib/gitlab/database.rb:264:in `transaction'
# ./app/models/concerns/cross_database_modification.rb:49:in `transaction'
# ./spec/features/merge_request/user_sees_deployment_widget_spec.rb:114:in `block (4 levels) in <top (required)>'
# ./spec/spec_helper.rb:406:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:397:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:393:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:393:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/flaky_tests.rb:27:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
Finished in 17 minutes 21 seconds (files took 49.52 seconds to load)
325 examples, 7 failures, 2 pending
Failed examples:
rspec ./spec/features/merge_request/user_sees_deployment_widget_spec.rb:30 # Merge request > User sees deployment widget when merge request has associated environments when deployment succeeded displays that the environment is deployed
rspec ./spec/features/merge_request/user_sees_deployment_widget_spec.rb:43 # Merge request > User sees deployment widget when merge request has associated environments when deployment succeeded when a user created a new merge request with the same SHA displays one environment which is related to the pipeline
rspec ./spec/features/merge_request/user_sees_deployment_widget_spec.rb:59 # Merge request > User sees deployment widget when merge request has associated environments when deployment failed displays that the deployment failed
rspec ./spec/features/merge_request/user_sees_deployment_widget_spec.rb:73 # Merge request > User sees deployment widget when merge request has associated environments when deployment running displays that the running deployment
rspec ./spec/features/merge_request/user_sees_deployment_widget_spec.rb:100 # Merge request > User sees deployment widget when merge request has associated environments when deployment was cancelled displays that the environment name
rspec ./spec/features/merge_request/user_sees_deployment_widget_spec.rb:120 # Merge request > User sees deployment widget when merge request has associated environments with stop action does start build when stop button clicked
rspec ./spec/features/merge_request/user_sees_deployment_widget_spec.rb:129 # Merge request > User sees deployment widget when merge request has associated environments with stop action for reporter does not show stop button
cc @ayufan