rspec background_migration pg14 1/4
Passed Started
by
@gitlab-bot

🤖 GitLab Bot 🤖
1Running with gitlab-runner 16.3.0~beta.108.g2b6048b4 (2b6048b4)2 on blue-6.private.runners-manager.gitlab.com/gitlab.com/gitlab-org mKJTFBei, system ID: s_90a66139ec063 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 ...20Waiting for services to be up and running (timeout 30 seconds)...21Authenticating with credentials from job payload (GitLab Registry)22Pulling 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 ...23Using 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 ...25Running on runner-mkjtfbei-project-278964-concurrent-0 via runner-mkjtfbei-private-1697704057-77307c08...27Fetching changes with git depth set to 20...28Initialized empty Git repository in /builds/gitlab-org/gitlab/.git/29Created fresh repository.30remote: Enumerating objects: 175495, done. 31remote: Counting objects: 100% (175495/175495), done. 32remote: Compressing objects: 100% (119238/119238), done. 33remote: Total 175495 (delta 83016), reused 113694 (delta 49335), pack-reused 0 34Receiving objects: 100% (175495/175495), 148.32 MiB | 31.97 MiB/s, done.35Resolving deltas: 100% (83016/83016), done.37 * [new ref] refs/pipelines/1042272888 -> refs/pipelines/104227288838Checking out 3af7b5df as detached HEAD (ref is refs/merge-requests/134621/merge)...39Skipping Git submodules setup40$ git remote set-url origin "${CI_REPOSITORY_URL}"42Checking cache for ruby-gems-debian-bullseye-ruby-3.0-16...43cache.zip is up to date 44Successfully extracted cache46Downloading artifacts for compile-test-assets (5328358048)...47Downloading artifacts from coordinator... ok host=storage.googleapis.com id=5328358048 responseStatus=200 OK token=64_9GMbw48Downloading artifacts for detect-tests (5328358058)...49Downloading artifacts from coordinator... ok host=storage.googleapis.com id=5328358058 responseStatus=200 OK token=64_9GMbw50Downloading artifacts for retrieve-tests-metadata (5328358066)...51Downloading artifacts from coordinator... ok host=storage.googleapis.com id=5328358066 responseStatus=200 OK token=64_9GMbw52Downloading artifacts for setup-test-env (5328358054)...53Downloading artifacts from coordinator... ok host=storage.googleapis.com id=5328358054 responseStatus=200 OK token=64_9GMbw55Using 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 ...56$ echo $FOSS_ONLY57$ [ "$FOSS_ONLY" = "1" ] && rm -rf ee/ qa/spec/ee/ qa/qa/specs/features/ee/ qa/qa/ee/ qa/qa/ee.rb58$ export GOPATH=$CI_PROJECT_DIR/.go59$ mkdir -p $GOPATH60$ source scripts/utils.sh61$ source scripts/prepare_build.sh93Using decomposed database config (config/database.yml.decomposed-postgresql)94Geo DB won't be set up.95Embedding DB won't be set up.125$ source ./scripts/rspec_helpers.sh126$ run_timed_command "gem install knapsack --no-document"127$ gem install knapsack --no-document128Successfully installed knapsack-4.0.01291 gem installed130==> 'gem install knapsack --no-document' succeeded in 0 seconds.131$ section_start "gitaly-test-spawn" "Spawning Gitaly"; scripts/gitaly-test-spawn; section_end "gitaly-test-spawn"136$ export RSPEC_SKIPPED_TESTS_REPORT_PATH="rspec/skipped_tests-${CI_JOB_ID}.txt"137$ export RSPEC_RETRIED_TESTS_REPORT_PATH="rspec/retried_tests-${CI_JOB_ID}.txt"138$ tooling/bin/create_job_metrics_file || true139[job-metrics] Creating the job metrics file for the CI/CD job.140$ rspec_paralellized_job "--fail-fast=${RSPEC_FAIL_FAST_THRESHOLD} --tag ~quarantine --tag ~zoekt --tag ~click_house"141RETRY_FAILED_TESTS_IN_NEW_PROCESS: true142KNAPSACK_GENERATE_REPORT: true143FLAKY_RSPEC_GENERATE_REPORT: true144KNAPSACK_TEST_FILE_PATTERN: spec/{lib/gitlab/background_migration,lib/ee/gitlab/background_migration}{,/**/}*_spec.rb145KNAPSACK_LOG_LEVEL: debug146KNAPSACK_REPORT_PATH: knapsack/rspec_background_migration_pg14_1_4_report.json147FLAKY_RSPEC_SUITE_REPORT_PATH: rspec/flaky/report-suite.json148FLAKY_RSPEC_REPORT_PATH: rspec/flaky/all_rspec_background_migration_pg14_1_4_report.json149NEW_FLAKY_RSPEC_REPORT_PATH: rspec/flaky/new_rspec_background_migration_pg14_1_4_report.json150RSPEC_SKIPPED_TESTS_REPORT_PATH: rspec/skipped_tests-5328358176.txt151CRYSTALBALL: 152RSPEC_TESTS_MAPPING_ENABLED: 153RSPEC_TESTS_FILTER_FILE: 154Shell set options (set -o) enabled:155braceexpand on156hashall on157interactive-comments on158pipefail on159Knapsack report generator started!160/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!161/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!162/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!163/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!164/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!165/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!166/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!167/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!168/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!169/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!170/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!171/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!172/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!173/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!174/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!175/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!176/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!177/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!178/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!179/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!180/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!181/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!182/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!183/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!184/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!185/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!186/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!187/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!188/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!189/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!190/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!191/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!192/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!193/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!194/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!195/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!196/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!197/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!198/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!199/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!200/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!201/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!202/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!203/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!204/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!205/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!206/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!207/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!208/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!209/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!210/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!211/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!212/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!213Run options: exclude {:quarantine=>true, :zoekt=>true, :click_house=>true}214Test environment set up in 0.412613745 seconds215Gitlab::BackgroundMigration::BackfillSnippetRepositories216 #perform217 logs successful migrated snippets218 when snippet has a non empty repository219 does not perform any action220 when snippet has an empty repo221 behaves like commits the file to the repository222 when author can update snippet and use git223 creates the repository and commit the file224 when author cannot update snippet or use git225 when user is blocked226 behaves like migration_bot user commits files227 is expected to eq "noreply+gitlab-migration-bot%s@localhost"228 when user is deactivated229 behaves like migration_bot user commits files230 is expected to eq "noreply+gitlab-migration-bot%s@localhost"231 when user is a ghost232 behaves like migration_bot user commits files233 is expected to eq "noreply+gitlab-migration-bot%s@localhost"234 when snippet does not have a repository235 creates the repository236 behaves like commits the file to the repository237 when author can update snippet and use git238 creates the repository and commit the file239 when author cannot update snippet or use git240 when user is blocked241 behaves like migration_bot user commits files242 is expected to eq "noreply+gitlab-migration-bot%s@localhost"243 when user is deactivated244 behaves like migration_bot user commits files245 is expected to eq "noreply+gitlab-migration-bot%s@localhost"246 when user is a ghost247 behaves like migration_bot user commits files248 is expected to eq "noreply+gitlab-migration-bot%s@localhost"249 when an error is raised250 logs errors251 retries 2 times the operation if it fails252 destroys the snippet repository253 deletes the repository on disk254 with invalid file names255 invalid_file_name: "filename.js // with comment", converted_file_name: "filename-js-with-comment"256 checks for file path errors when errors are raised257 converts invalid filenames258 does not convert valid filenames on subsequent migrations259 invalid_file_name: ".git/hooks/pre-commit", converted_file_name: "git-hooks-pre-commit"260 checks for file path errors when errors are raised261 converts invalid filenames262 does not convert valid filenames on subsequent migrations263 invalid_file_name: "https://gitlab.com", converted_file_name: "https-gitlab-com"264 checks for file path errors when errors are raised265 converts invalid filenames266 does not convert valid filenames on subsequent migrations267 invalid_file_name: "html://web.title%mp4/mpg/mpeg.net", converted_file_name: "html-web-title-mp4-mpg-mpeg-net"268 checks for file path errors when errors are raised269 converts invalid filenames270 does not convert valid filenames on subsequent migrations271 invalid_file_name: "../../etc/passwd", converted_file_name: "etc-passwd"272 checks for file path errors when errors are raised273 converts invalid filenames274 does not convert valid filenames on subsequent migrations275 invalid_file_name: ".", converted_file_name: "snippetfile1.txt"276 checks for file path errors when errors are raised277 converts invalid filenames278 does not convert valid filenames on subsequent migrations279 when snippet content size is higher than the existing limit280 behaves like migration_bot user commits files281 is expected to eq "noreply+gitlab-migration-bot%s@localhost"282 when user name is invalid283 behaves like migration_bot user commits files284 is expected to eq "noreply+gitlab-migration-bot%s@localhost"285 when both user name and snippet file_name are invalid286 updates the file_name only when it is invalid287 does not alter the commit author in subsequent migrations288 increases the number of retries temporarily from 2 to 3289 behaves like migration_bot user commits files290 is expected to eq "noreply+gitlab-migration-bot%s@localhost"291I, [2023-10-19T10:12:01.829254 #329] INFO -- : Database: 'main', Table: 'ci_runner_machines': Lock Writes292I, [2023-10-19T10:12:07.629844 #329] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes293I, [2023-10-19T10:12:07.901830 #329] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes294I, [2023-10-19T10:12:18.209294 #329] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes295I, [2023-10-19T10:12:22.161557 #329] INFO -- : Database: 'main', Table: 'p_ci_builds': Lock Writes296I, [2023-10-19T10:12:22.162503 #329] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Lock timeout is set", :current_iteration=>1, :lock_timeout_in_ms=>100}297I, [2023-10-19T10:12:22.163168 #329] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Migration finished", :current_iteration=>1, :lock_timeout_in_ms=>100}298I, [2023-10-19T10:12:34.544798 #329] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes299INFO: analyzing "public.p_ci_runner_machine_builds" inheritance tree300INFO: analyzing "gitlab_partitions_dynamic.ci_runner_machine_builds_100"301INFO: "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 rows302INFO: analyzing "public.p_ci_job_annotations" inheritance tree303INFO: analyzing "gitlab_partitions_dynamic.ci_job_annotations_100"304INFO: "ci_job_annotations_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_builds_metadata" inheritance tree306INFO: analyzing "public.ci_builds_metadata"307INFO: "ci_builds_metadata": 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" inheritance tree309INFO: analyzing "public.ci_builds"310INFO: "ci_builds": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows311I, [2023-10-19T10:12:56.658092 #329] INFO -- : Database: 'main', Table: 'p_ci_finished_build_ch_sync_events': Lock Writes312Gitlab::BackgroundMigration::BackfillWorkItemTypeIdForIssues313 sets work_item_type_id only for the given type314 tracks timings of queries315 when a record already had a work_item_type_id assigned316 ovewrites the work_item_type_id317 when database timeouts318 error_class: ActiveRecord::StatementTimeout319 retries on timeout error320 error_class: ActiveRecord::QueryCanceled321 retries on timeout error322I, [2023-10-19T10:14:15.413408 #329] INFO -- : Database: 'main', Table: 'ci_runner_machines': Lock Writes323I, [2023-10-19T10:14:21.676374 #329] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes324I, [2023-10-19T10:14:21.949328 #329] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes325I, [2023-10-19T10:14:33.556975 #329] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes326I, [2023-10-19T10:14:36.538615 #329] INFO -- : Database: 'main', Table: 'p_ci_builds': Lock Writes327I, [2023-10-19T10:14:36.539853 #329] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Lock timeout is set", :current_iteration=>1, :lock_timeout_in_ms=>100}328I, [2023-10-19T10:14:36.540675 #329] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Migration finished", :current_iteration=>1, :lock_timeout_in_ms=>100}329I, [2023-10-19T10:14:50.734895 #329] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes330INFO: analyzing "public.p_ci_runner_machine_builds" inheritance tree331INFO: analyzing "gitlab_partitions_dynamic.ci_runner_machine_builds_100"332INFO: "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 rows333INFO: analyzing "public.p_ci_job_annotations" inheritance tree334INFO: analyzing "gitlab_partitions_dynamic.ci_job_annotations_100"335INFO: "ci_job_annotations_100": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows336INFO: analyzing "public.p_ci_builds_metadata" inheritance tree337INFO: analyzing "public.ci_builds_metadata"338INFO: "ci_builds_metadata": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows339INFO: analyzing "public.p_ci_builds" inheritance tree340INFO: analyzing "public.ci_builds"341INFO: "ci_builds": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows342I, [2023-10-19T10:15:13.967787 #329] INFO -- : Database: 'main', Table: 'p_ci_finished_build_ch_sync_events': Lock Writes343Gitlab::BackgroundMigration::CleanupOrphanedRoutes344 cleans orphaned routes345 tracks timings of queries346I, [2023-10-19T10:16:38.194748 #329] INFO -- : Database: 'main', Table: 'ci_runner_machines': Lock Writes347I, [2023-10-19T10:16:44.423263 #329] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes348I, [2023-10-19T10:16:44.664465 #329] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes349I, [2023-10-19T10:16:55.067942 #329] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes350I, [2023-10-19T10:16:58.922552 #329] INFO -- : Database: 'main', Table: 'p_ci_builds': Lock Writes351I, [2023-10-19T10:16:58.923567 #329] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Lock timeout is set", :current_iteration=>1, :lock_timeout_in_ms=>100}352I, [2023-10-19T10:16:58.924486 #329] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Migration finished", :current_iteration=>1, :lock_timeout_in_ms=>100}353I, [2023-10-19T10:17:12.290398 #329] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes354INFO: analyzing "public.p_ci_runner_machine_builds" inheritance tree355INFO: analyzing "gitlab_partitions_dynamic.ci_runner_machine_builds_100"356INFO: "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 rows357INFO: analyzing "public.p_ci_job_annotations" inheritance tree358INFO: analyzing "gitlab_partitions_dynamic.ci_job_annotations_100"359INFO: "ci_job_annotations_100": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows360INFO: analyzing "public.p_ci_builds_metadata" inheritance tree361INFO: analyzing "public.ci_builds_metadata"362INFO: "ci_builds_metadata": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows363INFO: analyzing "public.p_ci_builds" inheritance tree364INFO: analyzing "public.ci_builds"365INFO: "ci_builds": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows366I, [2023-10-19T10:17:36.004511 #329] INFO -- : Database: 'main', Table: 'p_ci_finished_build_ch_sync_events': Lock Writes367Gitlab::BackgroundMigration::DestroyInvalidProjectMembers368 # order random369 removes invalid memberships but keeps valid ones370 tracks timings of queries371 logs IDs of deleted records372I, [2023-10-19T10:18:53.105801 #329] INFO -- : Database: 'main', Table: 'ci_runner_machines': Lock Writes373I, [2023-10-19T10:18:59.022125 #329] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes374I, [2023-10-19T10:18:59.277777 #329] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes375I, [2023-10-19T10:19:11.156845 #329] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes376I, [2023-10-19T10:19:14.388847 #329] INFO -- : Database: 'main', Table: 'p_ci_builds': Lock Writes377I, [2023-10-19T10:19:14.389892 #329] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Lock timeout is set", :current_iteration=>1, :lock_timeout_in_ms=>100}378I, [2023-10-19T10:19:14.390642 #329] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Migration finished", :current_iteration=>1, :lock_timeout_in_ms=>100}379I, [2023-10-19T10:19:29.723316 #329] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes380INFO: analyzing "public.p_ci_runner_machine_builds" inheritance tree381INFO: analyzing "gitlab_partitions_dynamic.ci_runner_machine_builds_100"382INFO: "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 rows383INFO: analyzing "public.p_ci_job_annotations" inheritance tree384INFO: analyzing "gitlab_partitions_dynamic.ci_job_annotations_100"385INFO: "ci_job_annotations_100": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows386INFO: analyzing "public.p_ci_builds_metadata" inheritance tree387INFO: analyzing "public.ci_builds_metadata"388INFO: "ci_builds_metadata": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows389INFO: analyzing "public.p_ci_builds" inheritance tree390INFO: analyzing "public.ci_builds"391INFO: "ci_builds": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows392I, [2023-10-19T10:19:55.302305 #329] INFO -- : Database: 'main', Table: 'p_ci_finished_build_ch_sync_events': Lock Writes393Gitlab::BackgroundMigration::DisableLegacyOpenSourceLicenseForNoIssuesNoRepoProjects394 sets `legacy_open_source_license_available` to false only for public projects with no issues and no repo395The application_settings (main) table has 1257 columns.396Recreating the database397Dropped database 'gitlabhq_test'398Dropped database 'gitlabhq_test_ci'399Created database 'gitlabhq_test'400Created database 'gitlabhq_test_ci'401main: == [advisory_lock_connection] object_id: 155867800, pg_backend_pid: 254402main: == [advisory_lock_connection] object_id: 155867800, pg_backend_pid: 254403ci: == [advisory_lock_connection] object_id: 156117160, pg_backend_pid: 256404ci: == [advisory_lock_connection] object_id: 156117160, pg_backend_pid: 256405Databases re-creation done in 11.063677004000056406Gitlab::BackgroundMigration::JobCoordinator407 .for_tracking_database408 returns an executor with the correct worker class and database409 when an invalid value is given410 raises an error411 #queue412 returns background migration worker queue413 #with_shared_connection414 yields to the block after properly configuring SharedModel415 #pending_jobs416 when there are enqueued jobs417 does not include jobs for other workers418 when not including dead jobs419 includes current and future jobs420 when including dead jobs421 includes current and future jobs, and also dead and retry jobs422 #steal423 when there are enqueued jobs present424 when queue contains unprocessed jobs425 steals jobs from a queue426 sets up the shared connection while stealing jobs427 does not steal job that has already been taken428 does not steal jobs for a different migration429 when a custom predicate is given430 steals jobs that match the predicate431 does not steal jobs that do not match the predicate432 when one of the jobs raises an error433 enqueues the migration again and re-raises the error434 when there are scheduled jobs present435 steals all jobs from the scheduled sets436 when there are enqueued and scheduled jobs present437 steals from the scheduled sets queue first438 when retry_dead_jobs is true439 steals from the dead and retry queue440 #perform441 when the background migration does not inherit from BaseJob442 performs a background migration with the configured shared connection443 when the background migration inherits from BaseJob444 passes the correct connection when constructing the migration445 .remaining446 when there are jobs remaining447 returns the enqueued jobs plus the scheduled jobs448 when there are no jobs remaining449 returns zero450 .exists?451 when there are enqueued jobs present452 returns true if specific job exists453 returns false if specific job does not exist454 when there are scheduled jobs present455 returns true if specific job exists456 returns false if specific job does not exist457 .dead_jobs?458 when there are dead jobs present459 returns true if specific job exists460 returns false if specific job does not exist461 .retrying_jobs?462 when there are dead jobs present463 returns true if specific job exists464 returns false if specific job does not exist465Gitlab::BackgroundMigration::BackfillInternalOnNotes466 # order random467 #perform468 backfills internal column on notes when confidential469I, [2023-10-19T10:23:06.029617 #329] INFO -- : Database: 'main', Table: 'ci_runner_machines': Lock Writes470I, [2023-10-19T10:23:11.968377 #329] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes471I, [2023-10-19T10:23:12.196792 #329] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes472I, [2023-10-19T10:23:22.923163 #329] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes473I, [2023-10-19T10:23:26.892635 #329] INFO -- : Database: 'main', Table: 'p_ci_builds': Lock Writes474I, [2023-10-19T10:23:26.893682 #329] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Lock timeout is set", :current_iteration=>1, :lock_timeout_in_ms=>100}475I, [2023-10-19T10:23:26.894404 #329] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Migration finished", :current_iteration=>1, :lock_timeout_in_ms=>100}476I, [2023-10-19T10:23:39.425959 #329] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes477INFO: analyzing "public.p_ci_runner_machine_builds" inheritance tree478INFO: analyzing "gitlab_partitions_dynamic.ci_runner_machine_builds_100"479INFO: "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 rows480INFO: analyzing "public.p_ci_job_annotations" inheritance tree481INFO: analyzing "gitlab_partitions_dynamic.ci_job_annotations_100"482INFO: "ci_job_annotations_100": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows483INFO: analyzing "public.p_ci_builds_metadata" inheritance tree484INFO: analyzing "public.ci_builds_metadata"485INFO: "ci_builds_metadata": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows486INFO: analyzing "public.p_ci_builds" inheritance tree487INFO: analyzing "public.ci_builds"488INFO: "ci_builds": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows489I, [2023-10-19T10:24:01.776891 #329] INFO -- : Database: 'main', Table: 'p_ci_finished_build_ch_sync_events': Lock Writes490Gitlab::BackgroundMigration::DeleteOrphanedPackagesDependencies491 # order random492 executes 3 queries493 deletes only orphaned dependencies494I, [2023-10-19T10:25:03.989342 #329] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes495I, [2023-10-19T10:25:06.939825 #329] INFO -- : Database: 'main', Table: 'p_ci_builds': Lock Writes496I, [2023-10-19T10:25:06.940970 #329] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Lock timeout is set", :current_iteration=>1, :lock_timeout_in_ms=>100}497I, [2023-10-19T10:25:06.941752 #329] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Migration finished", :current_iteration=>1, :lock_timeout_in_ms=>100}498I, [2023-10-19T10:25:19.951847 #329] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes499INFO: analyzing "public.p_ci_runner_machine_builds" inheritance tree500INFO: analyzing "gitlab_partitions_dynamic.ci_runner_machine_builds_100"501INFO: "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 rows502INFO: analyzing "public.p_ci_job_annotations" inheritance tree503INFO: analyzing "gitlab_partitions_dynamic.ci_job_annotations_100"504INFO: "ci_job_annotations_100": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows505INFO: analyzing "public.p_ci_builds_metadata" inheritance tree506INFO: analyzing "public.ci_builds_metadata"507INFO: "ci_builds_metadata": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows508INFO: analyzing "public.p_ci_builds" inheritance tree509INFO: analyzing "public.ci_builds"510INFO: "ci_builds": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows511I, [2023-10-19T10:25:42.298350 #329] INFO -- : Database: 'main', Table: 'p_ci_finished_build_ch_sync_events': Lock Writes512Gitlab::BackgroundMigration::PopulateVulnerabilityDismissalFields513 # order random514 #perform515 updates the missing dismissal information of the vulnerability516 writes log messages517 when logger throws exception StandardError518 logs StandardError519I, [2023-10-19T10:26:33.810843 #329] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes520I, [2023-10-19T10:26:36.881052 #329] INFO -- : Database: 'main', Table: 'p_ci_builds': Lock Writes521I, [2023-10-19T10:26:36.882124 #329] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Lock timeout is set", :current_iteration=>1, :lock_timeout_in_ms=>100}522I, [2023-10-19T10:26:36.882916 #329] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Migration finished", :current_iteration=>1, :lock_timeout_in_ms=>100}523I, [2023-10-19T10:26:50.318375 #329] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes524INFO: analyzing "public.p_ci_runner_machine_builds" inheritance tree525INFO: analyzing "gitlab_partitions_dynamic.ci_runner_machine_builds_100"526INFO: "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 rows527INFO: analyzing "public.p_ci_job_annotations" inheritance tree528INFO: analyzing "gitlab_partitions_dynamic.ci_job_annotations_100"529INFO: "ci_job_annotations_100": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows530INFO: analyzing "public.p_ci_builds_metadata" inheritance tree531INFO: analyzing "public.ci_builds_metadata"532INFO: "ci_builds_metadata": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows533INFO: analyzing "public.p_ci_builds" inheritance tree534INFO: analyzing "public.ci_builds"535INFO: "ci_builds": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows536I, [2023-10-19T10:27:13.868809 #329] INFO -- : Database: 'main', Table: 'p_ci_finished_build_ch_sync_events': Lock Writes537Gitlab::BackgroundMigration::BackfillDesignManagementRepositories538 # order random539 #perform540 creates design_management_repositories entries for all projects in range541 when project_id already exists in design_management_repositories542 doesn't duplicate project_id543I, [2023-10-19T10:28:05.039855 #329] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes544I, [2023-10-19T10:28:07.957202 #329] INFO -- : Database: 'main', Table: 'p_ci_builds': Lock Writes545I, [2023-10-19T10:28:07.958203 #329] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Lock timeout is set", :current_iteration=>1, :lock_timeout_in_ms=>100}546I, [2023-10-19T10:28:07.958917 #329] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Migration finished", :current_iteration=>1, :lock_timeout_in_ms=>100}547I, [2023-10-19T10:28:21.389760 #329] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes548INFO: analyzing "public.p_ci_runner_machine_builds" inheritance tree549INFO: analyzing "gitlab_partitions_dynamic.ci_runner_machine_builds_100"550INFO: "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 rows551INFO: analyzing "public.p_ci_job_annotations" inheritance tree552INFO: analyzing "gitlab_partitions_dynamic.ci_job_annotations_100"553INFO: "ci_job_annotations_100": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows554INFO: analyzing "public.p_ci_builds_metadata" inheritance tree555INFO: analyzing "public.ci_builds_metadata"556INFO: "ci_builds_metadata": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows557INFO: analyzing "public.p_ci_builds" inheritance tree558INFO: analyzing "public.ci_builds"559INFO: "ci_builds": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows560I, [2023-10-19T10:28:44.832490 #329] INFO -- : Database: 'main', Table: 'p_ci_finished_build_ch_sync_events': Lock Writes561Gitlab::BackgroundMigration::RemoveInvalidDeployAccessLevelGroups562 # order random563 #perform564 backfill tiers for all environments in range565I, [2023-10-19T10:29:41.668006 #329] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes566INFO: analyzing "public.p_ci_runner_machine_builds" inheritance tree567INFO: analyzing "gitlab_partitions_dynamic.ci_runner_machine_builds_100"568INFO: "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 rows569INFO: analyzing "public.p_ci_job_annotations" inheritance tree570INFO: analyzing "gitlab_partitions_dynamic.ci_job_annotations_100"571INFO: "ci_job_annotations_100": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows572INFO: analyzing "public.p_ci_builds_metadata" inheritance tree573INFO: analyzing "public.ci_builds_metadata"574INFO: "ci_builds_metadata": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows575INFO: analyzing "public.p_ci_builds" inheritance tree576INFO: analyzing "public.ci_builds"577INFO: "ci_builds": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows578I, [2023-10-19T10:30:05.095928 #329] INFO -- : Database: 'main', Table: 'p_ci_finished_build_ch_sync_events': Lock Writes579Gitlab::BackgroundMigration::BackfillCodeSuggestionsNamespaceSettings580 # order random581 updates the code suggestions values only for group and user namespace582I, [2023-10-19T10:31:02.218935 #329] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes583INFO: analyzing "public.p_ci_runner_machine_builds" inheritance tree584INFO: analyzing "gitlab_partitions_dynamic.ci_runner_machine_builds_100"585INFO: "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 rows586INFO: analyzing "public.p_ci_job_annotations" inheritance tree587INFO: analyzing "gitlab_partitions_dynamic.ci_job_annotations_100"588INFO: "ci_job_annotations_100": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows589INFO: analyzing "public.p_ci_builds_metadata" inheritance tree590INFO: analyzing "public.ci_builds_metadata"591INFO: "ci_builds_metadata": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows592INFO: analyzing "public.p_ci_builds" inheritance tree593INFO: analyzing "public.ci_builds"594INFO: "ci_builds": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows595I, [2023-10-19T10:31:25.497057 #329] INFO -- : Database: 'main', Table: 'p_ci_finished_build_ch_sync_events': Lock Writes596Gitlab::BackgroundMigration::BackfillDefaultBranchProtectionNamespaceSetting597 # order random598 updates default_branch_protection_defaults to a correct value599INFO: analyzing "public.p_ci_runner_machine_builds" inheritance tree600INFO: analyzing "gitlab_partitions_dynamic.ci_runner_machine_builds_100"601INFO: "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 rows602INFO: analyzing "public.p_ci_job_annotations" inheritance tree603INFO: analyzing "gitlab_partitions_dynamic.ci_job_annotations_100"604INFO: "ci_job_annotations_100": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows605INFO: analyzing "public.p_ci_builds_metadata" inheritance tree606INFO: analyzing "public.ci_builds_metadata"607INFO: "ci_builds_metadata": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows608INFO: analyzing "public.p_ci_builds" inheritance tree609INFO: analyzing "public.ci_builds"610INFO: "ci_builds": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows611I, [2023-10-19T10:32:09.864923 #329] INFO -- : Database: 'main', Table: 'p_ci_finished_build_ch_sync_events': Lock Writes612Gitlab::BackgroundMigration::CopyColumnUsingBackgroundMigrationJob613 is expected to be < Gitlab::BackgroundMigration::BatchedMigrationJob614 #perform615 tracks timings of queries616 primary keys617 copies all in range618 foreign keys619 copies all in range620 columns with NULLs621 copies all in range622 when multiple columns are given623 copies all values in the range624 when the number of source and target columns does not match625 raises an error626 pause interval between sub-batches627 sleeps for the specified time between sub-batches628 when pause_ms value is negative629 treats it as a 0630Gitlab::BackgroundMigration::FixAllowDescendantsOverrideDisabledSharedRunners631 # order random632 fixes invalid allow_descendants_override_disabled_shared_runners and does not affect others633INFO: analyzing "public.p_ci_runner_machine_builds" inheritance tree634INFO: analyzing "gitlab_partitions_dynamic.ci_runner_machine_builds_100"635INFO: "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 rows636INFO: analyzing "public.p_ci_job_annotations" inheritance tree637INFO: analyzing "gitlab_partitions_dynamic.ci_job_annotations_100"638INFO: "ci_job_annotations_100": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows639INFO: analyzing "public.p_ci_builds_metadata" inheritance tree640INFO: analyzing "public.ci_builds_metadata"641INFO: "ci_builds_metadata": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows642INFO: analyzing "public.p_ci_builds" inheritance tree643INFO: analyzing "public.ci_builds"644INFO: "ci_builds": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows645I, [2023-10-19T10:32:56.654920 #329] INFO -- : Database: 'main', Table: 'p_ci_finished_build_ch_sync_events': Lock Writes646Gitlab::BackgroundMigration::BackfillNugetNormalizedVersion647 # order random648 executes 5 queries and updates the normalized_version column649The application_settings (main) table has 1202 columns.650Recreating the database651Dropped database 'gitlabhq_test'652Dropped database 'gitlabhq_test_ci'653Created database 'gitlabhq_test'654Created database 'gitlabhq_test_ci'655main: == [advisory_lock_connection] object_id: 284572300, pg_backend_pid: 427656main: == [advisory_lock_connection] object_id: 284572300, pg_backend_pid: 427657ci: == [advisory_lock_connection] object_id: 284573420, pg_backend_pid: 429658ci: == [advisory_lock_connection] object_id: 284573420, pg_backend_pid: 429659Databases re-creation done in 11.30982242600021660Gitlab::BackgroundMigration::BackfillHasMergeRequestOfVulnerabilityReads661 # order random662 sets the has_merge_request of existing record663 does not modify has_merge_request of other vulnerabilities which do not have merge request664INFO: analyzing "public.p_ci_runner_machine_builds" inheritance tree665INFO: analyzing "gitlab_partitions_dynamic.ci_runner_machine_builds_100"666INFO: "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 rows667INFO: analyzing "public.p_ci_job_annotations" inheritance tree668INFO: analyzing "gitlab_partitions_dynamic.ci_job_annotations_100"669INFO: "ci_job_annotations_100": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows670INFO: analyzing "public.p_ci_builds_metadata" inheritance tree671INFO: analyzing "public.ci_builds_metadata"672INFO: "ci_builds_metadata": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows673INFO: analyzing "public.p_ci_builds" inheritance tree674INFO: analyzing "public.ci_builds"675INFO: "ci_builds": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows676I, [2023-10-19T10:33:34.674701 #329] INFO -- : Database: 'main', Table: 'p_ci_finished_build_ch_sync_events': Lock Writes677Gitlab::BackgroundMigration::BackfillUserPreferencesWithDefaults678 # order random679 backfills the null values with the default values680INFO: analyzing "public.p_ci_runner_machine_builds" inheritance tree681INFO: analyzing "gitlab_partitions_dynamic.ci_runner_machine_builds_100"682INFO: "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 rows683INFO: analyzing "public.p_ci_job_annotations" inheritance tree684INFO: analyzing "gitlab_partitions_dynamic.ci_job_annotations_100"685INFO: "ci_job_annotations_100": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows686INFO: analyzing "public.p_ci_builds_metadata" inheritance tree687INFO: analyzing "public.ci_builds_metadata"688INFO: "ci_builds_metadata": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows689INFO: analyzing "public.p_ci_builds" inheritance tree690INFO: analyzing "public.ci_builds"691INFO: "ci_builds": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows692I, [2023-10-19T10:33:53.559366 #329] INFO -- : Database: 'main', Table: 'p_ci_finished_build_ch_sync_events': Lock Writes693Gitlab::BackgroundMigration::RenameTaskSystemNoteToChecklistItem694 # order random695 tracks timings of queries696 renames task to checklist item in task system notes that match697 updates in batches698Gitlab::BackgroundMigration::BackfillProjectFeaturePackageRegistryAccessLevel699 backfills project_features.package_registry_access_level700Gitlab::BackgroundMigration::DeleteOrphansApprovalProjectRules701 # order random702 #perform703 delete only approval rules without association with the security project and report_type equals to 4704Gitlab::BackgroundMigration::UpdateDelayedProjectRemovalToNullForUserNamespaces705 updates `delayed_project_removal` column to null for user namespaces706Gitlab::BackgroundMigration::UpdateCiPipelineArtifactsUnknownLockedStatus707 # order random708 #perform709 updates ci_pipeline_artifacts with unknown lock status710Gitlab::BackgroundMigration::EncryptCiTriggerToken711 # order random712 ensures all unencrypted tokens are encrypted713Gitlab::BackgroundMigration::UpdateJiraTrackerDataDeploymentTypeBasedOnUrl714 changes unknown deployment_types based on URL715Knapsack report was generated. Preview:716{717 "spec/lib/gitlab/background_migration/backfill_snippet_repositories_spec.rb": 141.73932666900055,718 "spec/lib/gitlab/background_migration/backfill_work_item_type_id_for_issues_spec.rb": 60.40400449200024,719 "spec/lib/gitlab/background_migration/cleanup_orphaned_routes_spec.rb": 59.88808158899974,720 "spec/lib/gitlab/background_migration/destroy_invalid_project_members_spec.rb": 59.23232191599982,721 "spec/lib/gitlab/background_migration/disable_legacy_open_source_license_for_no_issues_no_repo_projects_spec.rb": 59.13252297500003,722 "spec/lib/gitlab/background_migration/job_coordinator_spec.rb": 48.915484311,723 "spec/lib/gitlab/background_migration/backfill_internal_on_notes_spec.rb": 50.827953471999535,724 "spec/lib/gitlab/background_migration/delete_orphaned_packages_dependencies_spec.rb": 43.631554706000315,725 "spec/lib/gitlab/background_migration/populate_vulnerability_dismissal_fields_spec.rb": 41.42380306299947,726 "spec/lib/gitlab/background_migration/backfill_design_management_repositories_spec.rb": 40.275064239999665,727 "spec/lib/gitlab/background_migration/remove_invalid_deploy_access_level_groups_spec.rb": 35.270334118999926,728 "spec/lib/gitlab/background_migration/backfill_code_suggestions_namespace_settings_spec.rb": 34.763110087000314,729 "spec/lib/gitlab/background_migration/backfill_default_branch_protection_namespace_setting_spec.rb": 18.64410655499978,730 "spec/lib/gitlab/background_migration/copy_column_using_background_migration_job_spec.rb": 14.560368848000508,731 "spec/lib/gitlab/background_migration/fix_allow_descendants_override_disabled_shared_runners_spec.rb": 11.381914014999893,732 "spec/lib/gitlab/background_migration/backfill_nuget_normalized_version_spec.rb": 8.426119276000463,733 "spec/lib/gitlab/background_migration/backfill_has_merge_request_of_vulnerability_reads_spec.rb": 8.291975989000093,734 "spec/lib/gitlab/background_migration/backfill_user_preferences_with_defaults_spec.rb": 7.5619800349995785,735 "spec/lib/gitlab/background_migration/rename_task_system_note_to_checklist_item_spec.rb": 5.833309121999264,736 "spec/lib/gitlab/background_migration/backfill_project_feature_package_registry_access_level_spec.rb": 2.18357042200023,737 "spec/lib/gitlab/background_migration/delete_orphans_approval_project_rules_spec.rb": 2.034962136000104,738 "spec/lib/gitlab/background_migration/update_delayed_project_removal_to_null_for_user_namespaces_spec.rb": 2.038603136000347,739 "spec/lib/gitlab/background_migration/update_ci_pipeline_artifacts_unknown_locked_status_spec.rb": 2.0845940910003264,740 "spec/lib/gitlab/background_migration/encrypt_ci_trigger_token_spec.rb": 1.9112504269996862,741 "spec/lib/gitlab/background_migration/update_jira_tracker_data_deployment_type_based_on_url_spec.rb": 1.9945986390002872742}743Knapsack global time execution for tests: 12m 42s744Finished in 25 minutes 32 seconds (files took 40.04 seconds to load)745113 examples, 0 failures746Randomized with seed 19206747[TEST PROF INFO] Time spent in factories: 00:00.301 (0.02% of total time)748RSpec exited with 0.749No examples to retry, congrats!751Running after script...752$ echo -e "\e[0Ksection_start:`date +%s`:report_results_section[collapsed=true]\r\e[0KReport results"758$ tooling/bin/push_job_metrics || true759[job-metrics] Pushing job metrics file for the CI/CD job.760[job-metrics] Pushed 4 CI job metric entries to InfluxDB.762Not uploading cache ruby-gems-debian-bullseye-ruby-3.0-16 due to policy764Uploading artifacts...765WARNING: auto_explain/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/gitlab-org/gitlab) 766coverage/: found 5 matching artifact files and directories 767crystalball/: found 2 matching artifact files and directories 768WARNING: deprecations/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/gitlab-org/gitlab) 769knapsack/: found 4 matching artifact files and directories 770rspec/: found 16 matching artifact files and directories 771WARNING: tmp/capybara/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/gitlab-org/gitlab) 772log/*.log: found 13 matching artifact files and directories 773WARNING: Upload request redirected location=https://gitlab.com/api/v4/jobs/5328358176/artifacts?artifact_format=zip&artifact_type=archive&expire_in=31d new-url=https://gitlab.com774WARNING: Retrying... context=artifacts-uploader error=request redirected775Uploading artifacts as "archive" to coordinator... 201 Created id=5328358176 responseStatus=201 Created token=64_9GMbw776Uploading artifacts...777rspec/rspec-*.xml: found 1 matching artifact files and directories 778WARNING: Upload request redirected location=https://gitlab.com/api/v4/jobs/5328358176/artifacts?artifact_format=gzip&artifact_type=junit&expire_in=31d new-url=https://gitlab.com779WARNING: Retrying... context=artifacts-uploader error=request redirected780Uploading artifacts as "junit" to coordinator... 201 Created id=5328358176 responseStatus=201 Created token=64_9GMbw782Job succeeded