rspec background_migration pg14 4/4
Passed Started
by
@leipert
Lukas Eipert
1Running with gitlab-runner 16.1.0~beta.59.g83c66823 (83c66823)2 on green-1.private.runners-manager.gitlab.com/gitlab.com/gitlab-org 4bq1s9yM, system ID: s_9d15f3e4e7ae3 feature flags: FF_NETWORK_PER_BUILD:true, FF_USE_FASTZIP:true, FF_USE_IMPROVED_URL_MASKING:true6Using 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.16-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:2e09e9db92541ed81b1c00f1d5186f8c262d8b84e8d1755676ea4b25614f30c4 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:afc7bd7a60824044709543a6a700385e412d750d9ab4fc72b427e335e1d0f3ec ...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:a9a90ece30d9630d694ab1997cd103ea8ec729789451b983a75c7b58b0062d45 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:7ef36177d5d0bc554fbb63d8210ae751bcc538bea7905b51d078d9ab90a755fa ...17Starting service redis:6.2-alpine ...18Pulling docker image redis:6.2-alpine ...19Using docker image sha256:b9cad9a5aff99063a48d14d26e9f31dcf1768b8e65c4687a8e3bc995c02749f3 for redis:6.2-alpine with digest redis@sha256:70a7a5b641117670beae0d80658430853896b5ef269ccf00d1827427e3263fa3 ...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.16-postgresql-14:rubygems-3.4-git-2.36-lfs-2.9-chrome-113-yarn-1.22-graphicsmagick-1.3.36 ...23Using docker image sha256:f47b23bf3b9e02a2837ddb6fe9a0b728c270e7a7d815dc582fd17281be34f20d for registry.gitlab.com/gitlab-org/gitlab-build-images/debian-bullseye-ruby-3.0.patched-golang-1.20-rust-1.65-node-18.16-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.16-postgresql-14@sha256:4db9bc427d7eb1bd075d76b4e5e3e59eb0d96c2e788e6275e628f0026dd30039 ...25Running on runner-4bq1s9ym-project-278964-concurrent-0 via runner-4bq1s9ym-private-1687788789-6eb9d4b2...27Fetching changes with git depth set to 20...28Initialized empty Git repository in /builds/gitlab-org/gitlab/.git/29Created fresh repository.30remote: Enumerating objects: 126566, done. 31remote: Counting objects: 100% (126566/126566), done. 32remote: Compressing objects: 100% (87596/87596), done. 33remote: Total 126566 (delta 50477), reused 83712 (delta 34367), pack-reused 0 34Receiving objects: 100% (126566/126566), 114.65 MiB | 29.83 MiB/s, done.35Resolving deltas: 100% (50477/50477), done.37 * [new ref] refs/pipelines/912039887 -> refs/pipelines/91203988738 * [new branch] master -> origin/master39Checking out 04f47f21 as detached HEAD (ref is master)...40Skipping Git submodules setup41$ git remote set-url origin "${CI_REPOSITORY_URL}"43Checking cache for ruby-gems-debian-bullseye-ruby-3.0-16...44Downloading cache.zip from https://storage.googleapis.com/gitlab-com-runners-cache/project/278964/ruby-gems-debian-bullseye-ruby-3.0-16 45Successfully extracted cache47Downloading artifacts for compile-test-assets (4541357536)...48Downloading artifacts from coordinator... ok host=storage.googleapis.com id=4541357536 responseStatus=200 OK token=64_F6Gcb49Downloading artifacts for retrieve-tests-metadata (4541357542)...50Downloading artifacts from coordinator... ok host=storage.googleapis.com id=4541357542 responseStatus=200 OK token=64_F6Gcb51Downloading artifacts for setup-test-env (4541357540)...52Downloading artifacts from coordinator... ok host=storage.googleapis.com id=4541357540 responseStatus=200 OK token=64_F6Gcb54Using docker image sha256:f47b23bf3b9e02a2837ddb6fe9a0b728c270e7a7d815dc582fd17281be34f20d for registry.gitlab.com/gitlab-org/gitlab-build-images/debian-bullseye-ruby-3.0.patched-golang-1.20-rust-1.65-node-18.16-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.16-postgresql-14@sha256:4db9bc427d7eb1bd075d76b4e5e3e59eb0d96c2e788e6275e628f0026dd30039 ...55$ echo $FOSS_ONLY56$ [ "$FOSS_ONLY" = "1" ] && rm -rf ee/ qa/spec/ee/ qa/qa/specs/features/ee/ qa/qa/ee/ qa/qa/ee.rb57$ export GOPATH=$CI_PROJECT_DIR/.go58$ mkdir -p $GOPATH59$ source scripts/utils.sh60$ source scripts/prepare_build.sh719Using decomposed database config (config/database.yml.decomposed-postgresql)720Geo DB won't be set up.721Embedding DB won't be set up.733$ source ./scripts/rspec_helpers.sh734$ run_timed_command "gem install knapsack --no-document"735$ gem install knapsack --no-document736Successfully installed knapsack-4.0.07371 gem installed738==> 'gem install knapsack --no-document' succeeded in 1 seconds.739$ echo -e "\e[0Ksection_start:`date +%s`:gitaly-test-spawn[collapsed=true]\r\e[0KStarting Gitaly"741$ section_start "gitaly-test-spawn" "Spawning Gitaly"; scripts/gitaly-test-spawn; section_end "gitaly-test-spawn"746$ echo -e "\e[0Ksection_end:`date +%s`:gitaly-test-spawn\r\e[0K"747$ rspec_paralellized_job "--fail-fast=${RSPEC_FAIL_FAST_THRESHOLD} --tag ~quarantine --tag ~zoekt"748SKIP_FLAKY_TESTS_AUTOMATICALLY: 749RETRY_FAILED_TESTS_IN_NEW_PROCESS: true750KNAPSACK_GENERATE_REPORT: true751FLAKY_RSPEC_GENERATE_REPORT: true752KNAPSACK_TEST_FILE_PATTERN: spec/{lib/gitlab/background_migration,lib/ee/gitlab/background_migration}{,/**/}*_spec.rb753KNAPSACK_LOG_LEVEL: debug754KNAPSACK_REPORT_PATH: knapsack/rspec_background_migration_pg14_4_4_report.json755FLAKY_RSPEC_SUITE_REPORT_PATH: rspec/flaky/report-suite.json756FLAKY_RSPEC_REPORT_PATH: rspec/flaky/all_rspec_background_migration_pg14_4_4_report.json757NEW_FLAKY_RSPEC_REPORT_PATH: rspec/flaky/new_rspec_background_migration_pg14_4_4_report.json758SKIPPED_TESTS_REPORT_PATH: rspec/skipped_tests_rspec_background_migration_pg14_4_4.txt759CRYSTALBALL: 760RSPEC_TESTS_MAPPING_ENABLED: 761RSPEC_TESTS_FILTER_FILE: 762Knapsack report generator started!763Run options: exclude {:quarantine=>true, :zoekt=>true}764Test environment set up in 0.56662527 seconds765Gitlab::BackgroundMigration::JobCoordinator766 .for_tracking_database767 returns an executor with the correct worker class and database768 when an invalid value is given769 raises an error770 #queue771 returns background migration worker queue772 #with_shared_connection773 yields to the block after properly configuring SharedModel774 #pending_jobs775 when there are enqueued jobs776 does not include jobs for other workers777 when not including dead jobs778 includes current and future jobs779 when including dead jobs780 includes current and future jobs, and also dead and retry jobs781 #steal782 when there are enqueued jobs present783 when queue contains unprocessed jobs784 steals jobs from a queue785 sets up the shared connection while stealing jobs786 does not steal job that has already been taken787 does not steal jobs for a different migration788 when a custom predicate is given789 steals jobs that match the predicate790 does not steal jobs that do not match the predicate791 when one of the jobs raises an error792 enqueues the migration again and re-raises the error793 when there are scheduled jobs present794 steals all jobs from the scheduled sets795 when there are enqueued and scheduled jobs present796 steals from the scheduled sets queue first797 when retry_dead_jobs is true798 steals from the dead and retry queue799 #perform800 when the background migration does not inherit from BaseJob801 performs a background migration with the configured shared connection802 when the background migration inherits from BaseJob803 passes the correct connection when constructing the migration804 .remaining805 when there are jobs remaining806 returns the enqueued jobs plus the scheduled jobs807 when there are no jobs remaining808 returns zero809 .exists?810 when there are enqueued jobs present811 returns true if specific job exists812 returns false if specific job does not exist813 when there are scheduled jobs present814 returns true if specific job exists815 returns false if specific job does not exist816 .dead_jobs?817 when there are dead jobs present818 returns true if specific job exists819 returns false if specific job does not exist820 .retrying_jobs?821 when there are dead jobs present822 returns true if specific job exists823 returns false if specific job does not exist824Gitlab::BackgroundMigration::BackfillRootStorageStatisticsForkStorageSizes825 # order random826 #perform827 updates the public_forks_storage_size828 totals the size of public forks in the namespace829 updates the internal_forks_storage_size830 totals the size of internal forks in the namespace831 updates the private_forks_storage_size832 totals the size of private forks in the namespace833 counts only the size of forks834 sums forks for multiple namespaces835 counts the size of forks in subgroups836 counts the size of forks in more nested subgroups837 counts forks of forks838 counts multiple forks of the same project839 updates a namespace with no forks840 skips the update if the public_forks_storage_size has already been set841 skips the update if the internal_forks_storage_size has already been set842 skips the update if the private_forks_storage_size has already been set843 skips the update if the namespace is not found844I, [2023-06-26T14:28:32.592995 #327] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes845Gitlab::BackgroundMigration::BackfillIntegrationsEnableSslVerification846 enables SSL verification for known-good hostnames847 only updates records within the given ID range848 marks the job as succeeded849I, [2023-06-26T14:29:48.650069 #327] INFO -- : Database: 'main', Table: 'ci_runner_machines': Lock Writes850I, [2023-06-26T14:29:54.866081 #327] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes851I, [2023-06-26T14:29:55.165206 #327] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes852I, [2023-06-26T14:30:07.618967 #327] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes853I, [2023-06-26T14:30:11.726933 #327] INFO -- : Database: 'main', Table: 'p_ci_builds': Lock Writes854I, [2023-06-26T14:30:11.728148 #327] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Lock timeout is set", :current_iteration=>1, :lock_timeout_in_ms=>100}855I, [2023-06-26T14:30:11.729022 #327] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Migration finished", :current_iteration=>1, :lock_timeout_in_ms=>100}856I, [2023-06-26T14:30:25.443481 #327] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes857Gitlab::BackgroundMigration::BackfillTopicsTitle858 correctly backfills the title of the topics859I, [2023-06-26T14:31:38.035626 #327] INFO -- : Database: 'main', Table: 'ci_runner_machines': Lock Writes860I, [2023-06-26T14:31:44.525409 #327] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes861I, [2023-06-26T14:31:44.785201 #327] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes862I, [2023-06-26T14:31:57.040150 #327] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes863I, [2023-06-26T14:32:01.215980 #327] INFO -- : Database: 'main', Table: 'p_ci_builds': Lock Writes864I, [2023-06-26T14:32:01.217244 #327] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Lock timeout is set", :current_iteration=>1, :lock_timeout_in_ms=>100}865I, [2023-06-26T14:32:01.218150 #327] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Migration finished", :current_iteration=>1, :lock_timeout_in_ms=>100}866I, [2023-06-26T14:32:15.384570 #327] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes867Gitlab::BackgroundMigration::CleanupOrphanedRoutes868 cleans orphaned routes869 tracks timings of queries870I, [2023-06-26T14:33:24.361568 #327] INFO -- : Database: 'main', Table: 'ci_runner_machines': Lock Writes871I, [2023-06-26T14:33:30.995947 #327] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes872I, [2023-06-26T14:33:31.241197 #327] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes873I, [2023-06-26T14:33:44.067991 #327] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes874I, [2023-06-26T14:33:47.471186 #327] INFO -- : Database: 'main', Table: 'p_ci_builds': Lock Writes875I, [2023-06-26T14:33:47.472283 #327] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Lock timeout is set", :current_iteration=>1, :lock_timeout_in_ms=>100}876I, [2023-06-26T14:33:47.473059 #327] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Migration finished", :current_iteration=>1, :lock_timeout_in_ms=>100}877I, [2023-06-26T14:34:02.322986 #327] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes878Gitlab::BackgroundMigration::BackfillInternalOnNotes879 # order random880 #perform881 backfills internal column on notes when confidential882I, [2023-06-26T14:34:56.374094 #327] INFO -- : Database: 'main', Table: 'ci_runner_machines': Lock Writes883I, [2023-06-26T14:35:02.869802 #327] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes884I, [2023-06-26T14:35:03.102467 #327] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes885I, [2023-06-26T14:35:15.473018 #327] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes886I, [2023-06-26T14:35:18.831414 #327] INFO -- : Database: 'main', Table: 'p_ci_builds': Lock Writes887I, [2023-06-26T14:35:18.832753 #327] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Lock timeout is set", :current_iteration=>1, :lock_timeout_in_ms=>100}888I, [2023-06-26T14:35:18.833630 #327] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Migration finished", :current_iteration=>1, :lock_timeout_in_ms=>100}889I, [2023-06-26T14:35:33.811430 #327] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes890Gitlab::BackgroundMigration::DisableLegacyOpenSourceLicenseForNoIssuesNoRepoProjects891 sets `legacy_open_source_license_available` to false only for public projects with no issues and no repo892I, [2023-06-26T14:36:34.740953 #327] INFO -- : Database: 'main', Table: 'ci_runner_machines': Lock Writes893I, [2023-06-26T14:36:41.543638 #327] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes894I, [2023-06-26T14:36:41.806968 #327] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes895I, [2023-06-26T14:36:53.619878 #327] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes896I, [2023-06-26T14:36:58.100018 #327] INFO -- : Database: 'main', Table: 'p_ci_builds': Lock Writes897I, [2023-06-26T14:36:58.101261 #327] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Lock timeout is set", :current_iteration=>1, :lock_timeout_in_ms=>100}898I, [2023-06-26T14:36:58.102137 #327] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Migration finished", :current_iteration=>1, :lock_timeout_in_ms=>100}899I, [2023-06-26T14:37:13.430621 #327] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes900Gitlab::BackgroundMigration::DisableLegacyOpenSourceLicenseForProjectsLessThanFiveMb901 # order random902 sets `legacy_open_source_license_available` to false only for projects less than 5 MiB903I, [2023-06-26T14:38:06.044420 #327] INFO -- : Database: 'main', Table: 'ci_runner_machines': Lock Writes904I, [2023-06-26T14:38:12.743154 #327] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes905I, [2023-06-26T14:38:13.001147 #327] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes906I, [2023-06-26T14:38:24.706287 #327] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes907I, [2023-06-26T14:38:29.049668 #327] INFO -- : Database: 'main', Table: 'p_ci_builds': Lock Writes908I, [2023-06-26T14:38:29.050925 #327] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Lock timeout is set", :current_iteration=>1, :lock_timeout_in_ms=>100}909I, [2023-06-26T14:38:29.051822 #327] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Migration finished", :current_iteration=>1, :lock_timeout_in_ms=>100}910I, [2023-06-26T14:38:44.925719 #327] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes911Gitlab::BackgroundMigration::BackfillProjectRepositories912 Gitlab::BackgroundMigration::BackfillProjectRepositories::ShardFinder913 #find_shard_id914 creates a new shard when it does not exist yet915 returns the shard when it exists916 only queries the database once to retrieve shards917 Gitlab::BackgroundMigration::BackfillProjectRepositories::Project918 .on_hashed_storage919 finds projects with repository on hashed storage920 .on_legacy_storage921 finds projects with repository on legacy storage922 .without_project_repository923 finds projects which do not have a projects_repositories entry924 #disk_path925 for projects on hashed storage926 returns the correct disk_path927 for projects on legacy storage928 returns the correct disk_path929 returns the correct disk_path using the route entry930 raises OrphanedNamespaceError when any parent namespace does not exist931The application_settings (main) table has 1281 columns.932Recreating the database933Dropped database 'gitlabhq_test'934Dropped database 'gitlabhq_test_ci'935Created database 'gitlabhq_test'936Created database 'gitlabhq_test_ci'937main: == [advisory_lock_connection] object_id: 172796900, pg_backend_pid: 310938main: == [advisory_lock_connection] object_id: 172796900, pg_backend_pid: 310939ci: == [advisory_lock_connection] object_id: 172843620, pg_backend_pid: 312940ci: == [advisory_lock_connection] object_id: 172843620, pg_backend_pid: 312941Databases re-creation done in 10.347045827999864942Gitlab::BackgroundMigration::BackfillAdminModeScopeForPersonalAccessTokens943 # order random944 adds `admin_mode` scope to active personal access tokens of administrators945I, [2023-06-26T14:40:18.878455 #327] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes946I, [2023-06-26T14:40:19.161750 #327] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes947I, [2023-06-26T14:40:30.716999 #327] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes948I, [2023-06-26T14:40:34.877603 #327] INFO -- : Database: 'main', Table: 'p_ci_builds': Lock Writes949I, [2023-06-26T14:40:34.878870 #327] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Lock timeout is set", :current_iteration=>1, :lock_timeout_in_ms=>100}950I, [2023-06-26T14:40:34.879720 #327] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Migration finished", :current_iteration=>1, :lock_timeout_in_ms=>100}951I, [2023-06-26T14:40:48.520499 #327] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes952Gitlab::BackgroundMigration::DeleteOrphanedPackagesDependencies953 # order random954 executes 3 queries955 deletes only orphaned dependencies956I, [2023-06-26T14:41:33.170515 #327] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes957I, [2023-06-26T14:41:37.498202 #327] INFO -- : Database: 'main', Table: 'p_ci_builds': Lock Writes958I, [2023-06-26T14:41:37.499370 #327] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Lock timeout is set", :current_iteration=>1, :lock_timeout_in_ms=>100}959I, [2023-06-26T14:41:37.500144 #327] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Migration finished", :current_iteration=>1, :lock_timeout_in_ms=>100}960I, [2023-06-26T14:41:51.041788 #327] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes961Gitlab::BackgroundMigration::BackfillProjectWikiRepositories962 # order random963 #perform964 creates project_wiki_repositories entries for all projects in range965 does nothing if project_id already exist in project_wiki_repositories966I, [2023-06-26T14:42:34.335621 #327] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes967I, [2023-06-26T14:42:38.794015 #327] INFO -- : Database: 'main', Table: 'p_ci_builds': Lock Writes968I, [2023-06-26T14:42:38.795514 #327] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Lock timeout is set", :current_iteration=>1, :lock_timeout_in_ms=>100}969I, [2023-06-26T14:42:38.796374 #327] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Migration finished", :current_iteration=>1, :lock_timeout_in_ms=>100}970I, [2023-06-26T14:42:52.605223 #327] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes971Gitlab::BackgroundMigration::MigrateHumanUserType972 # order random973 perform974 updates user with `nil` user type only975I, [2023-06-26T14:43:30.347019 #327] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes976I, [2023-06-26T14:43:33.611318 #327] INFO -- : Database: 'main', Table: 'p_ci_builds': Lock Writes977I, [2023-06-26T14:43:33.612638 #327] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Lock timeout is set", :current_iteration=>1, :lock_timeout_in_ms=>100}978I, [2023-06-26T14:43:33.613434 #327] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Migration finished", :current_iteration=>1, :lock_timeout_in_ms=>100}979I, [2023-06-26T14:43:47.856295 #327] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes980Gitlab::BackgroundMigration::BackfillCodeSuggestionsNamespaceSettings981 # order random982 updates the code suggestions values only for group and user namespace983I, [2023-06-26T14:44:25.139394 #327] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes984Gitlab::BackgroundMigration::BatchingStrategies::LooseIndexScanBatchingStrategy#next_batch985 is expected to be < Gitlab::BackgroundMigration::BatchingStrategies::BaseStrategy986 when starting on the first batch987 returns the bounds of the next batch988 when additional batches remain989 returns the bounds of the next batch990 when on the final batch991 returns the bounds of the next batch992 when no additional batches remain993 returns nil994Gitlab::BackgroundMigration::ResetStatusOnContainerRepositories995 # order random996 #perform997 resets status of container repositories with tags998 with the registry disabled999 behaves like resetting status of all container repositories scheduled for deletion1000 resets all statuses1001 with the registry api url not defined1002 behaves like resetting status of all container repositories scheduled for deletion1003 resets all statuses1004 with a faraday error1005 behaves like resetting status of all container repositories scheduled for deletion1006 resets all statuses1007 #filter_batch1008 scopes the relation to delete scheduled container repositories1009Gitlab::BackgroundMigration::BackfillPartitionedTable1010 # order random1011 #perform1012 without the destination table1013 raises an exception1014 with destination table being not partitioned1015 raises an exception1016 when the destination table exists1017WARNING: Active Record does not support composite primary key.1018_test_source_table_partitioned has composite primary key. Composite primary key is ignored.1019 copies data into the destination table idempotently1020 breaks the assigned batch into smaller sub batches1021Gitlab::BackgroundMigration::PruneStaleProjectExportJobs1022 # order random1023 removes export jobs and associated relations older than 7 days1024Gitlab::BackgroundMigration::IssuesInternalIdScopeUpdater1025 # order random1026 backfills internal_ids records and removes related project records1027Gitlab::BackgroundMigration::EncryptCiTriggerToken1028 # order random1029 ensures all unencrypted tokens are encrypted1030Gitlab::BackgroundMigration::UpdateJiraTrackerDataDeploymentTypeBasedOnUrl1031 changes unknown deployment_types based on URL1032Gitlab::BackgroundMigration::BatchingStrategies::BackfillProjectStatisticsWithContainerRegistrySizeBatchingStrategy1033 is expected to be < Gitlab::BackgroundMigration::BatchingStrategies::PrimaryKeyBatchingStrategy1034Knapsack report was generated. Preview:1035{1036 "spec/lib/gitlab/background_migration/job_coordinator_spec.rb": 46.873939157999985,1037 "spec/lib/gitlab/background_migration/backfill_root_storage_statistics_fork_storage_sizes_spec.rb": 44.111516252,1038 "spec/lib/gitlab/background_migration/backfill_integrations_enable_ssl_verification_spec.rb": 50.39203611700009,1039 "spec/lib/gitlab/background_migration/backfill_topics_title_spec.rb": 45.994663898,1040 "spec/lib/gitlab/background_migration/cleanup_orphaned_routes_spec.rb": 44.599690177000184,1041 "spec/lib/gitlab/background_migration/backfill_internal_on_notes_spec.rb": 37.64845204400012,1042 "spec/lib/gitlab/background_migration/disable_legacy_open_source_license_for_no_issues_no_repo_projects_spec.rb": 40.351076608000085,1043 "spec/lib/gitlab/background_migration/disable_legacy_open_source_license_for_projects_less_than_five_mb_spec.rb": 37.54933033900011,1044 "spec/lib/gitlab/background_migration/backfill_project_repositories_spec.rb": 37.51238513299995,1045 "spec/lib/gitlab/background_migration/backfill_admin_mode_scope_for_personal_access_tokens_spec.rb": 31.89886333100003,1046 "spec/lib/gitlab/background_migration/delete_orphaned_packages_dependencies_spec.rb": 27.27846460899991,1047 "spec/lib/gitlab/background_migration/backfill_project_wiki_repositories_spec.rb": 26.554602667999916,1048 "spec/lib/gitlab/background_migration/migrate_human_user_type_spec.rb": 23.254892575999975,1049 "spec/lib/gitlab/background_migration/backfill_code_suggestions_namespace_settings_spec.rb": 16.615816603999974,1050 "spec/lib/gitlab/background_migration/batching_strategies/loose_index_scan_batching_strategy_spec.rb": 10.335520087000077,1051 "spec/lib/gitlab/background_migration/reset_status_on_container_repositories_spec.rb": 10.985315541000091,1052 "spec/lib/gitlab/background_migration/backfill_partitioned_table_spec.rb": 7.775082754999858,1053 "spec/lib/gitlab/background_migration/prune_stale_project_export_jobs_spec.rb": 2.292407513999933,1054 "spec/lib/gitlab/background_migration/issues_internal_id_scope_updater_spec.rb": 2.2582706260000123,1055 "spec/lib/gitlab/background_migration/encrypt_ci_trigger_token_spec.rb": 2.0806700880000335,1056 "spec/lib/gitlab/background_migration/update_jira_tracker_data_deployment_type_based_on_url_spec.rb": 2.1042147260000093,1057 "spec/lib/gitlab/background_migration/batching_strategies/backfill_project_statistics_with_container_registry_size_batching_strategy_spec.rb": 1.9790564239999641058}1059Knapsack global time execution for tests: 09m 10s1060Finished in 19 minutes 9 seconds (files took 1 minute 7.76 seconds to load)106191 examples, 0 failures1062Randomized with seed 612341063[TEST PROF INFO] Time spent in factories: 00:20.751 (1.76% of total time)1064RSpec exited with 0.1065No examples to retry, congrats!1067Running after script...1068$ echo -e "\e[0Ksection_start:`date +%s`:report_results_section[collapsed=true]\r\e[0KReport results"1075Not uploading cache ruby-gems-debian-bullseye-ruby-3.0-16 due to policy1077Uploading artifacts...1078coverage/: found 5 matching artifact files and directories 1079WARNING: crystalball/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/gitlab-org/gitlab) 1080WARNING: deprecations/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/gitlab-org/gitlab) 1081knapsack/: found 4 matching artifact files and directories 1082query_recorder/: found 2 matching artifact files and directories 1083rspec/: found 10 matching artifact files and directories 1084WARNING: tmp/capybara/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/gitlab-org/gitlab) 1085log/*.log: found 13 matching artifact files and directories 1086WARNING: Upload request redirected location=https://gitlab.com/api/v4/jobs/4541357724/artifacts?artifact_format=zip&artifact_type=archive&expire_in=31d new-url=https://gitlab.com1087WARNING: Retrying... context=artifacts-uploader error=request redirected1088Uploading artifacts as "archive" to coordinator... 201 Created id=4541357724 responseStatus=201 Created token=64_F6Gcb1089Uploading artifacts...1090rspec/rspec-*.xml: found 1 matching artifact files and directories 1091WARNING: Upload request redirected location=https://gitlab.com/api/v4/jobs/4541357724/artifacts?artifact_format=gzip&artifact_type=junit&expire_in=31d new-url=https://gitlab.com1092WARNING: Retrying... context=artifacts-uploader error=request redirected1093Uploading artifacts as "junit" to coordinator... 201 Created id=4541357724 responseStatus=201 Created token=64_F6Gcb1095Job succeeded