rspec-ee background_migration pg14 single-db-ci-connection 2/2
Passed Started
by
@vshushlin

Vladimir Shushlin
1Running with gitlab-runner 16.3.0~beta.108.g2b6048b4 (2b6048b4)2 on blue-3.shared-gitlab-org.runners-manager.gitlab.com/default sUrYYgEG, system ID: s_35f98e2af4653 feature flags: FF_NETWORK_PER_BUILD:true, FF_USE_FASTZIP:true, FF_USE_IMPROVED_URL_MASKING:true, FF_RESOLVE_FULL_TLS_CHAIN:false6Using Docker executor with image registry.gitlab.com/gitlab-org/gitlab-build-images/debian-bullseye-ruby-3.0.patched-golang-1.20-rust-1.65-node-18.17-postgresql-14:rubygems-3.4-git-2.36-lfs-2.9-chrome-113-yarn-1.22-graphicsmagick-1.3.36 ...7Starting service registry.gitlab.com/gitlab-org/gitlab-build-images:postgres-14-pgvector-0.4.1 ...8Authenticating with credentials from job payload (GitLab Registry)9Pulling docker image registry.gitlab.com/gitlab-org/gitlab-build-images:postgres-14-pgvector-0.4.1 ...10Using docker image sha256:6c7370fd46a94d5beaed2a0304c7518e74a5759d4da3322ea9f7052507f51d80 for registry.gitlab.com/gitlab-org/gitlab-build-images:postgres-14-pgvector-0.4.1 with digest registry.gitlab.com/gitlab-org/gitlab-build-images@sha256:1b39aac95406782d786043ec3f1772c0a3a5ce1b9ce28cf001cac9a290f366c8 ...11WARNING: Service registry.gitlab.com/gitlab-org/gitlab-build-images:redis-cluster-6.2.12 is already created. Ignoring.12WARNING: Service registry.gitlab.com/gitlab-org/gitlab-build-images:redis-cluster-6.2.12 is already created. Ignoring.13Starting service registry.gitlab.com/gitlab-org/gitlab-build-images:redis-cluster-6.2.12 ...14Authenticating with credentials from job payload (GitLab Registry)15Pulling docker image registry.gitlab.com/gitlab-org/gitlab-build-images:redis-cluster-6.2.12 ...16Using docker image sha256:f4c047edb00d9bbfcc2b002a01548fab14592940f5b3e6b3f227f690e3fa272d for registry.gitlab.com/gitlab-org/gitlab-build-images:redis-cluster-6.2.12 with digest registry.gitlab.com/gitlab-org/gitlab-build-images@sha256:9a1b6b68dc464f0baae914703d5b059e7773bf23c9579c44e2a1b1154a83656f ...17Starting service redis:6.2-alpine ...18Pulling docker image redis:6.2-alpine ...19Using docker image sha256:9b4dc93acb797b99419bb31d8a452680508f1bf10a8604d721c0474072417a2b for redis:6.2-alpine with digest redis@sha256:452b7655bda0e270a6376b71d22fcb30662e745dcb4728f99fa87f01287b465d ...20WARNING: Service registry.gitlab.com/gitlab-org/gitlab-build-images:zoekt-ci-image-1.2 is already created. Ignoring.21WARNING: Service registry.gitlab.com/gitlab-org/gitlab-build-images:zoekt-ci-image-1.2 is already created. Ignoring.22Starting service registry.gitlab.com/gitlab-org/gitlab-build-images:zoekt-ci-image-1.2 ...23Authenticating with credentials from job payload (GitLab Registry)24Pulling docker image registry.gitlab.com/gitlab-org/gitlab-build-images:zoekt-ci-image-1.2 ...25Using docker image sha256:3019060693909c4761e3d0a55f31591cdc9a425c5caabc0efe58b7aac9af2245 for registry.gitlab.com/gitlab-org/gitlab-build-images:zoekt-ci-image-1.2 with digest registry.gitlab.com/gitlab-org/gitlab-build-images@sha256:39a04f1ad7b480c016bbb682d5525e272bc54bc252be03b1b9236b2375d81384 ...26Starting service elasticsearch:7.17.6 ...27Pulling docker image elasticsearch:7.17.6 ...28Using docker image sha256:5fad10241ffd65d817ed0ddfaf6e87eee1f7dc2a7db33db1047835560ea71fda for elasticsearch:7.17.6 with digest elasticsearch@sha256:6c128de5d01c0c130a806022d6bd99b3e4c27a9af5bfc33b6b81861ae117d028 ...29Waiting for services to be up and running (timeout 30 seconds)...30Authenticating with credentials from job payload (GitLab Registry)31Pulling docker image registry.gitlab.com/gitlab-org/gitlab-build-images/debian-bullseye-ruby-3.0.patched-golang-1.20-rust-1.65-node-18.17-postgresql-14:rubygems-3.4-git-2.36-lfs-2.9-chrome-113-yarn-1.22-graphicsmagick-1.3.36 ...32Using docker image sha256:d68252162deca904d1a0066983188b98dfe3f6fe8181458b0a55905e79ed85a1 for registry.gitlab.com/gitlab-org/gitlab-build-images/debian-bullseye-ruby-3.0.patched-golang-1.20-rust-1.65-node-18.17-postgresql-14:rubygems-3.4-git-2.36-lfs-2.9-chrome-113-yarn-1.22-graphicsmagick-1.3.36 with digest registry.gitlab.com/gitlab-org/gitlab-build-images/debian-bullseye-ruby-3.0.patched-golang-1.20-rust-1.65-node-18.17-postgresql-14@sha256:2113f34affc7e2ee40bac87419dcd7c65a94d4abfa9edb86192e1aa6a1e46590 ...34Running on runner-suryygeg-project-278964-concurrent-0 via runner-suryygeg-shared-gitlab-org-1697785398-d091a6bb...36Fetching changes with git depth set to 20...37Initialized empty Git repository in /builds/gitlab-org/gitlab/.git/38Created fresh repository.39remote: Enumerating objects: 148580, done. 40remote: Counting objects: 100% (148580/148580), done. 41remote: Compressing objects: 100% (104624/104624), done. 42remote: Total 148580 (delta 64637), reused 94927 (delta 38178), pack-reused 0 43Receiving objects: 100% (148580/148580), 135.67 MiB | 29.95 MiB/s, done.44Resolving deltas: 100% (64637/64637), done.46 * [new ref] refs/pipelines/1043537122 -> refs/pipelines/104353712247Checking out 537c07c6 as detached HEAD (ref is refs/merge-requests/118829/merge)...48Skipping Git submodules setup49$ git remote set-url origin "${CI_REPOSITORY_URL}"51Checking cache for ruby-gems-debian-bullseye-ruby-3.0-16...52Downloading cache from https://storage.googleapis.com/gitlab-com-runners-cache/project/278964/ruby-gems-debian-bullseye-ruby-3.0-16 53Successfully extracted cache55Downloading artifacts for compile-test-assets (5336650410)...56Downloading artifacts from coordinator... ok host=storage.googleapis.com id=5336650410 responseStatus=200 OK token=64_mznxE57Downloading artifacts for detect-tests (5336650454)...58Downloading artifacts from coordinator... ok host=storage.googleapis.com id=5336650454 responseStatus=200 OK token=64_mznxE59Downloading artifacts for retrieve-tests-metadata (5336650473)...60Downloading artifacts from coordinator... ok host=storage.googleapis.com id=5336650473 responseStatus=200 OK token=64_mznxE61Downloading artifacts for setup-test-env (5336650424)...62Downloading artifacts from coordinator... ok host=storage.googleapis.com id=5336650424 responseStatus=200 OK token=64_mznxE64Using docker image sha256:d68252162deca904d1a0066983188b98dfe3f6fe8181458b0a55905e79ed85a1 for registry.gitlab.com/gitlab-org/gitlab-build-images/debian-bullseye-ruby-3.0.patched-golang-1.20-rust-1.65-node-18.17-postgresql-14:rubygems-3.4-git-2.36-lfs-2.9-chrome-113-yarn-1.22-graphicsmagick-1.3.36 with digest registry.gitlab.com/gitlab-org/gitlab-build-images/debian-bullseye-ruby-3.0.patched-golang-1.20-rust-1.65-node-18.17-postgresql-14@sha256:2113f34affc7e2ee40bac87419dcd7c65a94d4abfa9edb86192e1aa6a1e46590 ...65$ echo $FOSS_ONLY66$ [ "$FOSS_ONLY" = "1" ] && rm -rf ee/ qa/spec/ee/ qa/qa/specs/features/ee/ qa/qa/ee/ qa/qa/ee.rb67$ export GOPATH=$CI_PROJECT_DIR/.go68$ mkdir -p $GOPATH69$ source scripts/utils.sh70$ source scripts/prepare_build.sh102Using two connections, single database config (config/database.yml.postgresql)103Geo DB will be set up.104Embedding DB will be set up.127$ source ./scripts/rspec_helpers.sh128$ run_timed_command "gem install knapsack --no-document"129$ gem install knapsack --no-document130Successfully installed knapsack-4.0.01311 gem installed132==> 'gem install knapsack --no-document' succeeded in 0 seconds.133$ section_start "gitaly-test-spawn" "Spawning Gitaly"; scripts/gitaly-test-spawn; section_end "gitaly-test-spawn"138$ export RSPEC_SKIPPED_TESTS_REPORT_PATH="rspec/skipped_tests-${CI_JOB_ID}.txt"139$ export RSPEC_RETRIED_TESTS_REPORT_PATH="rspec/retried_tests-${CI_JOB_ID}.txt"140$ tooling/bin/create_job_metrics_file || true141[job-metrics] Creating the job metrics file for the CI/CD job.142$ rspec_paralellized_job "--fail-fast=${RSPEC_FAIL_FAST_THRESHOLD} --tag ~quarantine --tag ~zoekt --tag ~click_house"143RETRY_FAILED_TESTS_IN_NEW_PROCESS: true144KNAPSACK_GENERATE_REPORT: true145FLAKY_RSPEC_GENERATE_REPORT: true146KNAPSACK_TEST_FILE_PATTERN: {ee/}spec/{lib/gitlab/background_migration,lib/ee/gitlab/background_migration}{,/**/}*_spec.rb147KNAPSACK_LOG_LEVEL: debug148KNAPSACK_REPORT_PATH: knapsack/rspec-ee_background_migration_pg14_single-db-ci-connection_2_2_report.json149FLAKY_RSPEC_SUITE_REPORT_PATH: rspec/flaky/report-suite.json150FLAKY_RSPEC_REPORT_PATH: rspec/flaky/all_rspec-ee_background_migration_pg14_single-db-ci-connection_2_2_report.json151NEW_FLAKY_RSPEC_REPORT_PATH: rspec/flaky/new_rspec-ee_background_migration_pg14_single-db-ci-connection_2_2_report.json152RSPEC_SKIPPED_TESTS_REPORT_PATH: rspec/skipped_tests-5336651920.txt153CRYSTALBALL: 154RSPEC_TESTS_MAPPING_ENABLED: 155RSPEC_TESTS_FILTER_FILE: 156Shell set options (set -o) enabled:157braceexpand on158hashall on159interactive-comments on160pipefail on161Knapsack report generator started!162/builds/gitlab-org/gitlab/ee/app/services/remote_development/service_response_factory.rb:41: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!163/builds/gitlab-org/gitlab/ee/app/services/remote_development/workspaces/create_service.rb:28: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!164/builds/gitlab-org/gitlab/ee/app/services/remote_development/workspaces/reconcile_service.rb:38: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!165/builds/gitlab-org/gitlab/ee/app/services/remote_development/workspaces/update_service.rb:28: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!166/builds/gitlab-org/gitlab/ee/lib/remote_development/agent_config/main.rb:32: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!167/builds/gitlab-org/gitlab/ee/lib/remote_development/agent_config/updater.rb:11: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!168/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/authorizer.rb:12: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!169/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/authorizer.rb:13: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!170/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/creator.rb:15: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!171/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/creator.rb:19: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!172/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/devfile_fetcher.rb:15: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!173/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/devfile_fetcher.rb:16: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!174/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/devfile_flattener.rb:12: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!175/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/editor_component_injector.rb:12: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!176/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/editor_component_injector.rb:17: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!177/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/editor_component_injector.rb:18: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!178/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/personal_access_token_creator.rb:12: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!179/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/personal_access_token_creator.rb:17: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!180/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/post_flatten_devfile_validator.rb:43: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!181/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/post_flatten_devfile_validator.rb:54: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!182/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/post_flatten_devfile_validator.rb:102: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!183/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/post_flatten_devfile_validator.rb:126: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!184/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/post_flatten_devfile_validator.rb:159: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!185/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/post_flatten_devfile_validator.rb:202: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!186/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/post_flatten_devfile_validator.rb:235: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!187/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/pre_flatten_devfile_validator.rb:24: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!188/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/pre_flatten_devfile_validator.rb:52: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!189/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/project_cloner_component_injector.rb:12: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!190/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/project_cloner_component_injector.rb:17: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!191/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/project_cloner_component_injector.rb:18: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!192/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/project_cloner_component_injector.rb:23: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!193/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/volume_component_injector.rb:12: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!194/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/volume_component_injector.rb:13: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!195/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/volume_component_injector.rb:14: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!196/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/workspace_creator.rb:15: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!197/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/workspace_creator.rb:24: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!198/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/workspace_creator.rb:25: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!199/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/workspace_creator.rb:28: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!200/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/create/workspace_variables_creator.rb:12: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!201/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/reconcile/main.rb:43: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!202/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/update/authorizer.rb:12: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!203/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/update/updater.rb:13: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!204/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/reconcile/input/agent_infos_observer.rb:15: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!205/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/reconcile/input/params_extractor.rb:14: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!206/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/reconcile/input/params_extractor.rb:16: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!207/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/reconcile/input/params_to_infos_converter.rb:14: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!208/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/reconcile/input/params_validator.rb:15: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!209/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/reconcile/output/rails_infos_observer.rb:11: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!210/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/reconcile/output/workspaces_to_rails_infos_converter.rb:15: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!211/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/reconcile/persistence/orphaned_workspaces_observer.rb:12: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!212/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/reconcile/persistence/workspaces_from_agent_infos_updater.rb:15: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!213/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/reconcile/persistence/workspaces_to_be_returned_finder.rb:16: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!214/builds/gitlab-org/gitlab/ee/lib/remote_development/workspaces/reconcile/persistence/workspaces_to_be_returned_updater.rb:11: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!215INFO: analyzing "public.p_ci_runner_machine_builds" inheritance tree216INFO: analyzing "gitlab_partitions_dynamic.ci_runner_machine_builds_100"217INFO: "ci_runner_machine_builds_100": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows218INFO: analyzing "public.p_ci_job_annotations" inheritance tree219INFO: analyzing "gitlab_partitions_dynamic.ci_job_annotations_100"220INFO: "ci_job_annotations_100": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows221INFO: analyzing "public.p_ci_builds_metadata" inheritance tree222INFO: analyzing "public.ci_builds_metadata"223INFO: "ci_builds_metadata": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows224Run options: exclude {:quarantine=>true, :zoekt=>true, :click_house=>true}225Test environment set up in 0.771806737 seconds226Gitlab::BackgroundMigration::CreateVulnerabilityLinks227 # order random228 #perform229 for vulnerability feedback issues230 when a Finding has no Vulnerability231 creates a Vulnerability from the Vulnerabilities::Finding232 behaves like when there was a problem saving the Vulnerability233 doesn't create a Vulnerability record234 logs an error235 when the feedback is associated with a non-existent issue236 doesn't create a Vulnerability record237 behaves like a migration creating a vulnerability issue link238 creates a Vulnerabilities::IssueLink from the Vulnerabilities::Feedback239 when there's only a Security::Finding240WARNING: Active Record does not support composite primary key.241security_findings has composite primary key. Composite primary key is ignored.242 creates a Vulnerability from the Security::Finding243WARNING: Active Record does not support composite primary key.244security_findings has composite primary key. Composite primary key is ignored.245 creates a Vulnerabilities::IssueLink from the Vulnerabilities::Feedback246 behaves like when creating any associated record fails247WARNING: Active Record does not support composite primary key.248security_findings has composite primary key. Composite primary key is ignored.249 doesn't create a Vulnerability record250WARNING: Active Record does not support composite primary key.251security_findings has composite primary key. Composite primary key is ignored.252 logs an error253 when there is a vulnerability254 behaves like when the link is invalid255 doesn't create a IssueLink256 logs an error257 behaves like a migration creating a vulnerability issue link258 creates a Vulnerabilities::IssueLink from the Vulnerabilities::Feedback259 for vulnerability feedback merge requests260 when a Finding has no Vulnerability261 creates a Vulnerability from the Vulnerabilities::Finding262 behaves like when there was a problem saving the Vulnerability263 doesn't create a Vulnerability record264 logs an error265 when the feedback is associated with a non-existent merge request266 doesn't create a Vulnerability record267 behaves like a migration creating a vulnerability merge request link268 creates a Vulnerabilities::MergeRequestLink from the Vulnerabilities::Feedback269 when there's only a Security::Finding270WARNING: Active Record does not support composite primary key.271security_findings has composite primary key. Composite primary key is ignored.272 creates a Vulnerability from the Security::Finding273WARNING: Active Record does not support composite primary key.274security_findings has composite primary key. Composite primary key is ignored.275 creates a Vulnerabilities::MergeRequestLink from the Vulnerabilities::Feedback276 behaves like when creating any associated record fails277WARNING: Active Record does not support composite primary key.278security_findings has composite primary key. Composite primary key is ignored.279 doesn't create a Vulnerability record280WARNING: Active Record does not support composite primary key.281security_findings has composite primary key. Composite primary key is ignored.282 logs an error283 when there is a vulnerability284 behaves like when the link is invalid285 doesn't create a MergeRequestLink286 logs an error287 behaves like a migration creating a vulnerability merge request link288 creates a Vulnerabilities::MergeRequestLink from the Vulnerabilities::Feedback289Gitlab::BackgroundMigration::BackfillProjectStatisticsContainerRepositorySize290 #filter_batch291 filters out container repositories out of scope292 #perform293 when project_statistics backfill runs294 when project_statistics.container_registry_size is zero295 calls deduplicated_size API296 when the Container Registry deduplicated_size is non-zero297 schedules Namespaces::ScheduleAggregationWorker298 when the Container Registry deduplicated_size is zero299 does not schedules Namespaces::ScheduleAggregationWorker300 when project_statistics.container_registry_size is non-zero301 doesn't call deduplicated_size API and schedules Namespaces::ScheduleAggregationWorker302INFO: analyzing "public.p_ci_runner_machine_builds" inheritance tree303INFO: analyzing "gitlab_partitions_dynamic.ci_runner_machine_builds_100"304INFO: "ci_runner_machine_builds_100": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows305INFO: analyzing "public.p_ci_job_annotations" inheritance tree306INFO: analyzing "gitlab_partitions_dynamic.ci_job_annotations_100"307INFO: "ci_job_annotations_100": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows308INFO: analyzing "public.p_ci_builds_metadata" inheritance tree309INFO: analyzing "public.ci_builds_metadata"310INFO: "ci_builds_metadata": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows311INFO: analyzing "public.p_ci_builds" inheritance tree312INFO: "ci_builds": scanned 1 of 1 pages, containing 0 live rows and 8 dead rows; 0 rows in sample, 0 estimated total rows313INFO: analyzing "public.ci_builds"314INFO: "ci_builds": scanned 1 of 1 pages, containing 0 live rows and 8 dead rows; 0 rows in sample, 0 estimated total rows315Gitlab::BackgroundMigration::BackfillProjectStatisticsStorageSizeWithoutUploadsSize316 # order random317 #perform318 coerces a null wiki_size to 0319 coerces a null snippets_size to 0320 with many project statistics records321 #filter_batch322 filters out project_statistics out of scope323 #perform324 when project_statistics backfill runs325 when storage_size includes uploads_size326 removes uploads_size from storage_size327 when storage_size does not include uploads_size328 does not update the record329 when not checking the namespace plan330 does not run331INFO: analyzing "public.p_ci_runner_machine_builds" inheritance tree332INFO: analyzing "gitlab_partitions_dynamic.ci_runner_machine_builds_100"333INFO: "ci_runner_machine_builds_100": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows334INFO: analyzing "public.p_ci_job_annotations" inheritance tree335INFO: analyzing "gitlab_partitions_dynamic.ci_job_annotations_100"336INFO: "ci_job_annotations_100": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows337INFO: analyzing "public.p_ci_builds_metadata" inheritance tree338INFO: analyzing "public.ci_builds_metadata"339INFO: "ci_builds_metadata": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows340INFO: analyzing "public.p_ci_builds" inheritance tree341INFO: "ci_builds": scanned 1 of 1 pages, containing 0 live rows and 8 dead rows; 0 rows in sample, 0 estimated total rows342INFO: analyzing "public.ci_builds"343INFO: "ci_builds": scanned 1 of 1 pages, containing 0 live rows and 8 dead rows; 0 rows in sample, 0 estimated total rows344Gitlab::BackgroundMigration::BackfillIterationCadenceIdForBoards345 up346 when group does not have cadences347 back-fill project boards348 behaves like resets iteration_id to nil349 resets iteration_id to nil350 with pagination351 expect batched updates352 behaves like resets iteration_id to nil353 resets iteration_id to nil354 back-fill group boards355 behaves like resets iteration_id to nil356 resets iteration_id to nil357 with pagination358 expect batched updates359 behaves like resets iteration_id to nil360 resets iteration_id to nil361 when group has cadences362 when group does not have cadences363 back-fill project boards364 behaves like sets the correct cadence id365 sets correct cadence id366 with pagination367 expect batched updates368 behaves like sets the correct cadence id369 sets correct cadence id370 back-fill group boards371 behaves like sets the correct cadence id372 sets correct cadence id373 with pagination374 expect batched updates375 behaves like sets the correct cadence id376 sets correct cadence id377 down378 resets cadence id to nil379 batched380 resets cadence id to nil381Gitlab::BackgroundMigration::BackfillDismissalReasonInVulnerabilityReads382 # order random383 creates new Vulnerability::StateTransition entries for dismissed Vulnerabilities without one384 populates dismissal_reason for vulnerability_reads records that need it385 does not insert new rows386 uses the latest dismissal state transition387 does not populate dismissal_reason for vulnerability_reads records that do not need it388INFO: analyzing "public.p_ci_runner_machine_builds" inheritance tree389INFO: analyzing "gitlab_partitions_dynamic.ci_runner_machine_builds_100"390INFO: "ci_runner_machine_builds_100": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows391INFO: analyzing "public.p_ci_job_annotations" inheritance tree392INFO: analyzing "gitlab_partitions_dynamic.ci_job_annotations_100"393INFO: "ci_job_annotations_100": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows394INFO: analyzing "public.p_ci_builds_metadata" inheritance tree395INFO: analyzing "public.ci_builds_metadata"396INFO: "ci_builds_metadata": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows397INFO: analyzing "public.p_ci_builds" inheritance tree398INFO: "ci_builds": scanned 1 of 1 pages, containing 0 live rows and 8 dead rows; 0 rows in sample, 0 estimated total rows399INFO: analyzing "public.ci_builds"400INFO: "ci_builds": scanned 1 of 1 pages, containing 0 live rows and 8 dead rows; 0 rows in sample, 0 estimated total rows401Gitlab::BackgroundMigration::MigrateSharedVulnerabilityScanners402 EE::Gitlab::BackgroundMigration::MigrateSharedVulnerabilityScanners::Finding403 .to_process404 returns findings with report type cluster image scanning or generic405 EE::Gitlab::BackgroundMigration::MigrateSharedVulnerabilityScanners::Scanner406 ::find_or_create_id_for407 when finding has matching scanner408 does not create a new scanner409 returns the scanner ID410 when finding has mismatching scanner411 creates a new scanner412 sets attributes413 #perform414 creates new scanners for incorrect findings415 creates scanners with correct attributes416 updates erroneous associations417 does not alter correct findings418 with existing scanner419 with matching external ID420 does not create a new scanner421 reuses the scanner422 with mismatching external ID423 creates a new scanner424 does not reuse the scanner425 with associated vulnerability426 updates vulnerability reads427Gitlab::BackgroundMigration::DeleteOrphanedTransferredProjectApprovalRules428 # order random429 #perform430 delete only outdated approval project rules where report_type equals to 4 and 2431 enqueues a worker to sync the affected project432INFO: analyzing "public.p_ci_runner_machine_builds" inheritance tree433INFO: analyzing "gitlab_partitions_dynamic.ci_runner_machine_builds_100"434INFO: "ci_runner_machine_builds_100": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows435INFO: analyzing "public.p_ci_job_annotations" inheritance tree436INFO: analyzing "gitlab_partitions_dynamic.ci_job_annotations_100"437INFO: "ci_job_annotations_100": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows438INFO: analyzing "public.p_ci_builds_metadata" inheritance tree439INFO: analyzing "public.ci_builds_metadata"440INFO: "ci_builds_metadata": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows441INFO: analyzing "public.p_ci_builds" inheritance tree442INFO: "ci_builds": scanned 1 of 1 pages, containing 0 live rows and 8 dead rows; 0 rows in sample, 0 estimated total rows443INFO: analyzing "public.ci_builds"444INFO: "ci_builds": scanned 1 of 1 pages, containing 0 live rows and 8 dead rows; 0 rows in sample, 0 estimated total rows445Gitlab::BackgroundMigration::BackfillWorkspacePersonalAccessToken446 # order random447 #perform448 does not modify workspace's existing token449 #calculate_revoked450 returns true if expires_at is in the past451 returns true if desired_state is 'Terminated'452 returns false if expires_at is in the future and desired_state is not 'Terminated'453 #calculate_expires_at454 calculates the expiration date correctly455Gitlab::BackgroundMigration::PopulateDenormalizedColumnsForSbomOccurrences456 # order random457 sets the denormalized columns458INFO: analyzing "public.p_ci_runner_machine_builds" inheritance tree459INFO: analyzing "gitlab_partitions_dynamic.ci_runner_machine_builds_100"460INFO: "ci_runner_machine_builds_100": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows461INFO: analyzing "public.p_ci_job_annotations" inheritance tree462INFO: analyzing "gitlab_partitions_dynamic.ci_job_annotations_100"463INFO: "ci_job_annotations_100": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows464INFO: analyzing "public.p_ci_builds_metadata" inheritance tree465INFO: analyzing "public.ci_builds_metadata"466INFO: "ci_builds_metadata": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows467INFO: analyzing "public.p_ci_builds" inheritance tree468INFO: "ci_builds": scanned 1 of 1 pages, containing 0 live rows and 8 dead rows; 0 rows in sample, 0 estimated total rows469INFO: analyzing "public.ci_builds"470INFO: "ci_builds": scanned 1 of 1 pages, containing 0 live rows and 8 dead rows; 0 rows in sample, 0 estimated total rows471Gitlab::BackgroundMigration::DeleteInvalidEpicIssues472 #perform473 removes invalid epic issues474 logs deleted records475 prevents N+1 queries476Gitlab::BackgroundMigration::UpdateWorkspacesConfigVersion477 # order random478 #perform479 updates config_version and force_include_all_resources for existing non-terminated workspaces480 does not update workspaces with different config_version or actual_state481Gitlab::BackgroundMigration::FixApprovalProjectRulesWithoutProtectedBranches482 # order random483 #perform484WARNING: Active Record does not support composite primary key.485approval_project_rules_protected_branches has composite primary key. Composite primary key is ignored.486 updates only approval rules without protected branches and report_type equals to 4487WARNING: Active Record does not support composite primary key.488approval_project_rules_protected_branches has composite primary key. Composite primary key is ignored.489 filters approval rules from scope490Gitlab::BackgroundMigration::BackfillNamespaceLdapSettings491 # order random492 #perform493 migrates LDAP sync values by batch494 does not create multiple entries or conflict on existing record495Gitlab::BackgroundMigration::BackfillComplianceViolations496 # order random497 migrates data from merge_requests and merge_request_metrics into compliance violations table498Gitlab::BackgroundMigration::FixNamespaceIdsOfVulnerabilityReads499 # order random500 fixes the `namespace_id` data integrity issue501Gitlab::BackgroundMigration::PopulateApprovalProjectRulesWithSecurityOrchestration502 # order random503 #perform504 updates only approval rules with projects linked to a security project and report_type equals to 4505auto_explain log contains 1030 entries for main, writing to /builds/gitlab-org/gitlab/auto_explain/rspec-ee-background-migration-pg14-single-db-ci-connection-2-2.329.main.ndjson.gz506took 22.14510165507auto_explain log contains 1032 entries for ci, writing to /builds/gitlab-org/gitlab/auto_explain/rspec-ee-background-migration-pg14-single-db-ci-connection-2-2.329.ci.ndjson.gz508took 20.60502793509Knapsack report was generated. Preview:510{511 "ee/spec/lib/gitlab/background_migration/create_vulnerability_links_spec.rb": 79.34016187700036,512 "ee/spec/lib/ee/gitlab/background_migration/backfill_project_statistics_container_repository_size_spec.rb": 80.69397560899961,513 "ee/spec/lib/ee/gitlab/background_migration/backfill_project_statistics_storage_size_without_uploads_size_spec.rb": 70.62271689699992,514 "ee/spec/lib/ee/gitlab/background_migration/backfill_iteration_cadence_id_for_boards_spec.rb": 52.2441160139997,515 "ee/spec/lib/ee/gitlab/background_migration/backfill_dismissal_reason_in_vulnerability_reads_spec.rb": 36.82340236900018,516 "ee/spec/lib/ee/gitlab/background_migration/migrate_shared_vulnerability_scanners_spec.rb": 32.757796189000146,517 "ee/spec/lib/ee/gitlab/background_migration/delete_orphaned_transferred_project_approval_rules_spec.rb": 23.88514081499943,518 "ee/spec/lib/gitlab/background_migration/backfill_workspace_personal_access_token_spec.rb": 10.565931727000134,519 "ee/spec/lib/ee/gitlab/background_migration/populate_denormalized_columns_for_sbom_occurrences_spec.rb": 11.063388272999873,520 "ee/spec/lib/ee/gitlab/background_migration/delete_invalid_epic_issues_spec.rb": 7.960656135000136,521 "ee/spec/lib/gitlab/background_migration/update_workspaces_config_version_spec.rb": 4.808284861000175,522 "ee/spec/lib/ee/gitlab/background_migration/fix_approval_project_rules_without_protected_branches_spec.rb": 4.633857013000124,523 "ee/spec/lib/ee/gitlab/background_migration/backfill_namespace_ldap_settings_spec.rb": 4.615583214000253,524 "ee/spec/lib/ee/gitlab/background_migration/backfill_compliance_violations_spec.rb": 2.708771744999467,525 "ee/spec/lib/ee/gitlab/background_migration/fix_namespace_ids_of_vulnerability_reads_spec.rb": 2.6282934499995463,526 "ee/spec/lib/ee/gitlab/background_migration/populate_approval_project_rules_with_security_orchestration_spec.rb": 2.501516428999821527}528Knapsack global time execution for tests: 07m 07s529Finished in 13 minutes 24 seconds (files took 1 minute 21.83 seconds to load)53088 examples, 0 failures531Randomized with seed 58784532[TEST PROF INFO] Time spent in factories: 00:25.055 (2.99% of total time)533RSpec exited with 0.534No examples to retry, congrats!536Running after script...537$ echo -e "\e[0Ksection_start:`date +%s`:report_results_section[collapsed=true]\r\e[0KReport results"541$ tooling/bin/push_job_metrics || true542[job-metrics] Pushing job metrics file for the CI/CD job.543[job-metrics] Pushed 4 CI job metric entries to InfluxDB.545Not uploading cache ruby-gems-debian-bullseye-ruby-3.0-16 due to policy547Uploading artifacts...548auto_explain/: found 3 matching artifact files and directories 549coverage/: found 5 matching artifact files and directories 550crystalball/: found 2 matching artifact files and directories 551WARNING: deprecations/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/gitlab-org/gitlab) 552knapsack/: found 4 matching artifact files and directories 553rspec/: found 16 matching artifact files and directories 554WARNING: tmp/capybara/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/gitlab-org/gitlab) 555log/*.log: found 13 matching artifact files and directories 556WARNING: Upload request redirected location=https://gitlab.com/api/v4/jobs/5336651920/artifacts?artifact_format=zip&artifact_type=archive&expire_in=31d new-url=https://gitlab.com557WARNING: Retrying... context=artifacts-uploader error=request redirected558Uploading artifacts as "archive" to coordinator... 201 Created id=5336651920 responseStatus=201 Created token=64_mznxE559Uploading artifacts...560rspec/rspec-*.xml: found 1 matching artifact files and directories 561WARNING: Upload request redirected location=https://gitlab.com/api/v4/jobs/5336651920/artifacts?artifact_format=gzip&artifact_type=junit&expire_in=31d new-url=https://gitlab.com562WARNING: Retrying... context=artifacts-uploader error=request redirected563Uploading artifacts as "junit" to coordinator... 201 Created id=5336651920 responseStatus=201 Created token=64_mznxE565Job succeeded