rspec background_migration pg13 2/4
Passed Started
by
@fabiopitino
Fabio Pitino
1Running with gitlab-runner 16.1.0~beta.5.gf131a6a2 (f131a6a2)2 on blue-3.private.runners-manager.gitlab.com/gitlab.com/gitlab-org 6io2xoDD, system ID: s_8f94f77602233 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.19-rust-1.65-node-18.16-postgresql-13: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-13-pgvector-0.4.1 ...8Authenticating with credentials from job payload (GitLab Registry)9Pulling docker image registry.gitlab.com/gitlab-org/gitlab-build-images:postgres-13-pgvector-0.4.1 ...10Using docker image sha256:73740c557807c4bc5d692f263c0e35454270600da4b22bbe952331411426c8b5 for registry.gitlab.com/gitlab-org/gitlab-build-images:postgres-13-pgvector-0.4.1 with digest registry.gitlab.com/gitlab-org/gitlab-build-images@sha256:3174001f839c42e299ac06a42f8ded446edfcb33b0eb820874749a3f53eb799c ...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:85fd7bd884b6493c8eb6f4dffbe5406d97cce56aff84f1580a5eb5b9d841f158 for redis:6.2-alpine with digest redis@sha256:87c44d5d9f472e767c8737f4130c765d77bdc95c7472d6427cfc9d4632f12da6 ...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.19-rust-1.65-node-18.16-postgresql-13:rubygems-3.4-git-2.36-lfs-2.9-chrome-113-yarn-1.22-graphicsmagick-1.3.36 ...23Using docker image sha256:61b59025d0d646cd177f654d8f81df859675be528f37dcc2ce6f39a49c7a5dd9 for registry.gitlab.com/gitlab-org/gitlab-build-images/debian-bullseye-ruby-3.0.patched-golang-1.19-rust-1.65-node-18.16-postgresql-13: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.19-rust-1.65-node-18.16-postgresql-13@sha256:25367d41b1034f1ecacfc9cb8eebc70cb30c6fdade3781cf295488255bf61614 ...25Running on runner-6io2xodd-project-278964-concurrent-0 via runner-6io2xodd-private-1685686879-dca330c2...27Fetching changes with git depth set to 20...28Initialized empty Git repository in /builds/gitlab-org/gitlab/.git/29Created fresh repository.30remote: Enumerating objects: 139970, done. 31remote: Counting objects: 100% (139970/139970), done. 32remote: Compressing objects: 100% (94736/94736), done. 33remote: Total 139970 (delta 61223), reused 92035 (delta 39894), pack-reused 0 34Receiving objects: 100% (139970/139970), 123.36 MiB | 30.03 MiB/s, done.35Resolving deltas: 100% (61223/61223), done.37 * [new ref] refs/pipelines/887306308 -> refs/pipelines/88730630838Checking out 95754c79 as detached HEAD (ref is refs/merge-requests/122015/merge)...39Skipping Git submodules setup40$ git remote set-url origin "${CI_REPOSITORY_URL}"42Checking cache for ruby-gems-debian-bullseye-ruby-3.0-16...43Downloading cache.zip from https://storage.googleapis.com/gitlab-com-runners-cache/project/278964/ruby-gems-debian-bullseye-ruby-3.0-16 44Successfully extracted cache46Downloading artifacts for compile-test-assets (4400964016)...47Downloading artifacts from coordinator... ok host=storage.googleapis.com id=4400964016 responseStatus=200 OK token=64_-ZJwG48Downloading artifacts for detect-tests (4400964025)...49Downloading artifacts from coordinator... ok host=storage.googleapis.com id=4400964025 responseStatus=200 OK token=64_-ZJwG50Downloading artifacts for retrieve-tests-metadata (4400964028)...51Downloading artifacts from coordinator... ok host=storage.googleapis.com id=4400964028 responseStatus=200 OK token=64_-ZJwG52Downloading artifacts for setup-test-env (4400964019)...53Downloading artifacts from coordinator... ok host=storage.googleapis.com id=4400964019 responseStatus=200 OK token=64_-ZJwG55Using docker image sha256:61b59025d0d646cd177f654d8f81df859675be528f37dcc2ce6f39a49c7a5dd9 for registry.gitlab.com/gitlab-org/gitlab-build-images/debian-bullseye-ruby-3.0.patched-golang-1.19-rust-1.65-node-18.16-postgresql-13: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.19-rust-1.65-node-18.16-postgresql-13@sha256:25367d41b1034f1ecacfc9cb8eebc70cb30c6fdade3781cf295488255bf61614 ...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.sh716Using decomposed database config (config/database.yml.decomposed-postgresql)717Geo DB won't be set up.718Embedding DB won't be set up.734$ source ./scripts/rspec_helpers.sh735$ run_timed_command "gem install knapsack --no-document"736$ gem install knapsack --no-document737Successfully installed knapsack-4.0.07381 gem installed739==> 'gem install knapsack --no-document' succeeded in 1 seconds.740$ echo -e "\e[0Ksection_start:`date +%s`:gitaly-test-spawn[collapsed=true]\r\e[0KStarting Gitaly"742$ section_start "gitaly-test-spawn" "Spawning Gitaly"; scripts/gitaly-test-spawn; section_end "gitaly-test-spawn"747$ echo -e "\e[0Ksection_end:`date +%s`:gitaly-test-spawn\r\e[0K"748$ rspec_paralellized_job "--tag ~quarantine --tag ~zoekt"749SKIP_FLAKY_TESTS_AUTOMATICALLY: 750RETRY_FAILED_TESTS_IN_NEW_PROCESS: true751KNAPSACK_GENERATE_REPORT: true752FLAKY_RSPEC_GENERATE_REPORT: true753KNAPSACK_TEST_FILE_PATTERN: spec/{lib/gitlab/background_migration,lib/ee/gitlab/background_migration}{,/**/}*_spec.rb754KNAPSACK_LOG_LEVEL: debug755KNAPSACK_REPORT_PATH: knapsack/rspec_background_migration_pg13_2_4_report.json756FLAKY_RSPEC_SUITE_REPORT_PATH: rspec/flaky/report-suite.json757FLAKY_RSPEC_REPORT_PATH: rspec/flaky/all_rspec_background_migration_pg13_2_4_report.json758NEW_FLAKY_RSPEC_REPORT_PATH: rspec/flaky/new_rspec_background_migration_pg13_2_4_report.json759SKIPPED_TESTS_REPORT_PATH: rspec/skipped_tests_rspec_background_migration_pg13_2_4.txt760CRYSTALBALL: 761RSPEC_TESTS_MAPPING_ENABLED: 762RSPEC_TESTS_FILTER_FILE: 763Knapsack report generator started!764warning: parser/current is loading parser/ruby30, which recognizes 3.0.5-compliant syntax, but you are running 3.0.6.766Run options: exclude {:quarantine=>true, :zoekt=>true}767Test environment set up in 0.710302523 seconds768Gitlab::BackgroundMigration::BackfillSnippetRepositories769 #perform770 logs successful migrated snippets771 when snippet has a non empty repository772 does not perform any action773 when snippet has an empty repo774 behaves like commits the file to the repository775 when author can update snippet and use git776 creates the repository and commit the file777 when author cannot update snippet or use git778 when user is blocked779 behaves like migration_bot user commits files780 is expected to eq "noreply+gitlab-migration-bot%s@localhost"781 when user is deactivated782 behaves like migration_bot user commits files783 is expected to eq "noreply+gitlab-migration-bot%s@localhost"784 when user is a ghost785 behaves like migration_bot user commits files786 is expected to eq "noreply+gitlab-migration-bot%s@localhost"787 when snippet does not have a repository788 creates the repository789 behaves like commits the file to the repository790 when author can update snippet and use git791 creates the repository and commit the file792 when author cannot update snippet or use git793 when user is blocked794 behaves like migration_bot user commits files795 is expected to eq "noreply+gitlab-migration-bot%s@localhost"796 when user is deactivated797 behaves like migration_bot user commits files798 is expected to eq "noreply+gitlab-migration-bot%s@localhost"799 when user is a ghost800 behaves like migration_bot user commits files801 is expected to eq "noreply+gitlab-migration-bot%s@localhost"802 when an error is raised803 logs errors804 retries 2 times the operation if it fails805 destroys the snippet repository806 deletes the repository on disk807 with invalid file names808 invalid_file_name: "filename.js // with comment", converted_file_name: "filename-js-with-comment"809 checks for file path errors when errors are raised810 converts invalid filenames811 does not convert valid filenames on subsequent migrations812 invalid_file_name: ".git/hooks/pre-commit", converted_file_name: "git-hooks-pre-commit"813 checks for file path errors when errors are raised814 converts invalid filenames815 does not convert valid filenames on subsequent migrations816 invalid_file_name: "https://gitlab.com", converted_file_name: "https-gitlab-com"817 checks for file path errors when errors are raised818 converts invalid filenames819 does not convert valid filenames on subsequent migrations820 invalid_file_name: "html://web.title%mp4/mpg/mpeg.net", converted_file_name: "html-web-title-mp4-mpg-mpeg-net"821 checks for file path errors when errors are raised822 converts invalid filenames823 does not convert valid filenames on subsequent migrations824 invalid_file_name: "../../etc/passwd", converted_file_name: "etc-passwd"825 checks for file path errors when errors are raised826 converts invalid filenames827 does not convert valid filenames on subsequent migrations828 invalid_file_name: ".", converted_file_name: "snippetfile1.txt"829 checks for file path errors when errors are raised830 converts invalid filenames831 does not convert valid filenames on subsequent migrations832 when snippet content size is higher than the existing limit833 behaves like migration_bot user commits files834 is expected to eq "noreply+gitlab-migration-bot%s@localhost"835 when user name is invalid836 behaves like migration_bot user commits files837 is expected to eq "noreply+gitlab-migration-bot%s@localhost"838 when both user name and snippet file_name are invalid839 updates the file_name only when it is invalid840 does not alter the commit author in subsequent migrations841 increases the number of retries temporarily from 2 to 3842 behaves like migration_bot user commits files843 is expected to eq "noreply+gitlab-migration-bot%s@localhost"844I, [2023-06-02T06:29:19.045044 #325] INFO -- : Database: 'main', Table: 'ci_runner_machines': Lock Writes845I, [2023-06-02T06:29:25.505343 #325] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes846I, [2023-06-02T06:29:25.766841 #325] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes847I, [2023-06-02T06:29:38.456082 #325] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes848Gitlab::BackgroundMigration::JobCoordinator849 .for_tracking_database850 returns an executor with the correct worker class and database851 when an invalid value is given852 raises an error853 #queue854 returns background migration worker queue855 #with_shared_connection856 yields to the block after properly configuring SharedModel857 #pending_jobs858 when there are enqueued jobs859 does not include jobs for other workers860 when not including dead jobs861 includes current and future jobs862 when including dead jobs863 includes current and future jobs, and also dead and retry jobs864 #steal865 when there are enqueued jobs present866 when queue contains unprocessed jobs867 steals jobs from a queue868 sets up the shared connection while stealing jobs869 does not steal job that has already been taken870 does not steal jobs for a different migration871 when a custom predicate is given872 steals jobs that match the predicate873 does not steal jobs that do not match the predicate874 when one of the jobs raises an error875 enqueues the migration again and re-raises the error876 when there are scheduled jobs present877 steals all jobs from the scheduled sets878 when there are enqueued and scheduled jobs present879 steals from the scheduled sets queue first880 when retry_dead_jobs is true881 steals from the dead and retry queue882 #perform883 when the background migration does not inherit from BaseJob884 performs a background migration with the configured shared connection885 when the background migration inherits from BaseJob886 passes the correct connection when constructing the migration887 .remaining888 when there are jobs remaining889 returns the enqueued jobs plus the scheduled jobs890 when there are no jobs remaining891 returns zero892 .exists?893 when there are enqueued jobs present894 returns true if specific job exists895 returns false if specific job does not exist896 when there are scheduled jobs present897 returns true if specific job exists898 returns false if specific job does not exist899 .dead_jobs?900 when there are dead jobs present901 returns true if specific job exists902 returns false if specific job does not exist903 .retrying_jobs?904 when there are dead jobs present905 returns true if specific job exists906 returns false if specific job does not exist907Gitlab::BackgroundMigration::BackfillDraftStatusOnMergeRequestsWithCorrectedRegex908 for MRs with #draft? == true titles but draft attribute false909 updates all eligible draft merge request's draft field to true910 marks successful slices as completed911 behaves like marks background migration job records912 marks each job record as succeeded after processing913 returns the number of job records marked as succeeded914I, [2023-06-02T06:32:19.778221 #325] INFO -- : Database: 'main', Table: 'ci_runner_machines': Lock Writes915I, [2023-06-02T06:32:26.680804 #325] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes916I, [2023-06-02T06:32:26.959758 #325] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes917I, [2023-06-02T06:32:39.723729 #325] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes918Gitlab::BackgroundMigration::BackfillMemberNamespaceForGroupMembers919 backfills `member_namespace_id` for the selected records920 tracks timings of queries921I, [2023-06-02T06:34:11.411313 #325] INFO -- : Database: 'main', Table: 'ci_runner_machines': Lock Writes922I, [2023-06-02T06:34:18.461729 #325] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes923I, [2023-06-02T06:34:18.731778 #325] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes924I, [2023-06-02T06:34:30.522766 #325] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes925Gitlab::BackgroundMigration::ResetDuplicateCiRunnersTokenEncryptedValuesOnProjects926 #up927 nullifies duplicate tokens928 does not touch projects outside id range929I, [2023-06-02T06:35:57.039873 #325] INFO -- : Database: 'main', Table: 'ci_runner_machines': Lock Writes930I, [2023-06-02T06:36:03.611217 #325] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes931I, [2023-06-02T06:36:03.874112 #325] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes932I, [2023-06-02T06:36:14.994627 #325] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes933Gitlab::BackgroundMigration::BackfillUserDetailsFields934 # order random935 does not migrate nil fields936 backfills new fields without overwriting existing `bio` field937 processes all relevant records938 backfills new user_details fields939 does not migrate empty fields940 when user details are unchanged941 does not change existing details942 when user details are changed943 updates existing user details944The application_settings (main) table has 1223 columns.945Recreating the database946Dropped database 'gitlabhq_test'947Dropped database 'gitlabhq_test_ci'948Created database 'gitlabhq_test'949Created database 'gitlabhq_test_ci'950main: == [advisory_lock_connection] object_id: 133590880, pg_backend_pid: 288951main: == [advisory_lock_connection] object_id: 133590880, pg_backend_pid: 288952ci: == [advisory_lock_connection] object_id: 133655140, pg_backend_pid: 290953ci: == [advisory_lock_connection] object_id: 133655140, pg_backend_pid: 290954ci: == [advisory_lock_connection] object_id: 133737660, pg_backend_pid: 292955ci: == [advisory_lock_connection] object_id: 133737660, pg_backend_pid: 292956Databases re-creation done in 10.041435769000032957Gitlab::BackgroundMigration::ResetTooManyTagsSkippedRegistryImports958 #up959 resets only qualified container repositories960I, [2023-06-02T06:38:25.306752 #325] INFO -- : Database: 'main', Table: 'ci_runner_machines': Lock Writes961I, [2023-06-02T06:38:31.371978 #325] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes962I, [2023-06-02T06:38:31.615008 #325] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes963I, [2023-06-02T06:38:42.377891 #325] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes964Gitlab::BackgroundMigration::RemoveOccurrencePipelinesAndDuplicateVulnerabilitiesFindings965 removes Vulnerabilities::OccurrencePipelines for matching Vulnerabilities::Finding966I, [2023-06-02T06:39:59.477452 #325] INFO -- : Database: 'main', Table: 'ci_runner_machines': Lock Writes967I, [2023-06-02T06:40:05.516448 #325] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes968I, [2023-06-02T06:40:05.723310 #325] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes969I, [2023-06-02T06:40:16.156250 #325] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes970Gitlab::BackgroundMigration::RemoveSelfManagedWikiNotes971 removes all wiki notes972I, [2023-06-02T06:41:27.101983 #325] INFO -- : Database: 'main', Table: 'ci_runner_machines': Lock Writes973I, [2023-06-02T06:41:32.979924 #325] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes974I, [2023-06-02T06:41:33.217707 #325] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes975I, [2023-06-02T06:41:43.679148 #325] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes976Gitlab::BackgroundMigration::BackfillTopicsTitle977 correctly backfills the title of the topics978I, [2023-06-02T06:42:59.745566 #325] INFO -- : Database: 'main', Table: 'ci_runner_machines': Lock Writes979I, [2023-06-02T06:43:05.604197 #325] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes980I, [2023-06-02T06:43:05.818497 #325] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes981I, [2023-06-02T06:43:15.984012 #325] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes982Gitlab::BackgroundMigration::BackfillGroupFeatures983 #perform984 creates settings for all group namespaces in range985I, [2023-06-02T06:44:35.380165 #325] INFO -- : Database: 'main', Table: 'ci_runner_machines': Lock Writes986I, [2023-06-02T06:44:41.550599 #325] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes987I, [2023-06-02T06:44:41.767576 #325] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes988I, [2023-06-02T06:44:52.302214 #325] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes989Gitlab::BackgroundMigration::DisableLegacyOpenSourceLicenseForOneMemberNoRepoProjects990WARNING: Active Record does not support composite primary key.991project_authorizations has composite primary key. Composite primary key is ignored.992 sets `legacy_open_source_license_available` to false only for public projects with 1 member and no repo993The application_settings (main) table has 1298 columns.994Recreating the database995Dropped database 'gitlabhq_test'996Dropped database 'gitlabhq_test_ci'997Created database 'gitlabhq_test'998Created database 'gitlabhq_test_ci'999main: == [advisory_lock_connection] object_id: 261192500, pg_backend_pid: 3711000main: == [advisory_lock_connection] object_id: 261192500, pg_backend_pid: 3711001ci: == [advisory_lock_connection] object_id: 261267020, pg_backend_pid: 3731002ci: == [advisory_lock_connection] object_id: 261267020, pg_backend_pid: 3731003ci: == [advisory_lock_connection] object_id: 261341200, pg_backend_pid: 3751004ci: == [advisory_lock_connection] object_id: 261341200, pg_backend_pid: 3751005Databases re-creation done in 9.3019636480000831006Gitlab::BackgroundMigration::BackfillNamespaceIdOfVulnerabilityReads1007 sets the namespace_id of existing record1008I, [2023-06-02T06:46:37.591564 #325] INFO -- : Database: 'main', Table: 'ci_runner_machines': Lock Writes1009I, [2023-06-02T06:46:43.324874 #325] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes1010I, [2023-06-02T06:46:43.538002 #325] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes1011I, [2023-06-02T06:46:54.557507 #325] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes1012Gitlab::BackgroundMigration::DisableLegacyOpenSourceLicenseForProjectsLessThanFiveMb1013 # order random1014 sets `legacy_open_source_license_available` to false only for projects less than 5 MB1015I, [2023-06-02T06:47:45.765649 #325] INFO -- : Database: 'main', Table: 'ci_runner_machines': Lock Writes1016I, [2023-06-02T06:47:51.298749 #325] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes1017I, [2023-06-02T06:47:51.522148 #325] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes1018I, [2023-06-02T06:48:01.742288 #325] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes1019Gitlab::BackgroundMigration::MigrateLinksForVulnerabilityFindings1020 # order random1021 with some elements which do not contain the key url1022 creates links only to valid elements1023 when link url is too long1024 skips creation of link and logs error1025 when link name is too long1026 skips creation of link and logs error1027 without the presence of links key1028 does not create any link1029 when Gitlab::Json throws exception JSON::ParserError1030 does not log this error nor create new records1031 with existing link records1032 does not create new link1033 does not raise ActiveRecord::RecordNotUnique1034 with links equals to a string1035 does not create any link1036 with existing links within raw_metadata1037 creates new link for each finding1038 with links equals to an array of duplicated elements1039 creates one new link1040 with links equals to an array of nil element1041 does not create any link1042Gitlab::BackgroundMigration::RebalancePartitionId1043 # order random1044 #perform1045 table_name: :ci_pipelines, invalid_record: #<#<Class:0x00007f75b2931c08> id: 2, ref: nil, sha: nil, before_sha: nil, created_at: "2023-06-02 06:26:08.844216535 +0000", updated_at: "2023-06-02 06:26:08.844216535 +0000", tag: false, yaml_errors: nil, committed_at: nil, project_id: nil, status: nil, started_at: nil, finished_at: nil, duration: nil, user_id: nil, lock_version: 0, auto_canceled_by_id: nil, pipeline_schedule_id: nil, source: nil, config_source: nil, protected: nil, failure_reason: nil, iid: nil, merge_request_id: nil, source_sha: nil, target_sha: nil, external_pull_request_id: nil, ci_ref_id: nil, locked: 1, partition_id: 101, id_convert_to_bigint: 0>, valid_record: #<#<Class:0x00007f75b3d85f10> id: 1, ref: nil, sha: nil, before_sha: nil, created_at: "2023-06-02 06:26:08.867641501 +0000", updated_at: "2023-06-02 06:26:08.867641501 +0000", tag: false, yaml_errors: nil, committed_at: nil, project_id: nil, status: nil, started_at: nil, finished_at: nil, duration: nil, user_id: nil, lock_version: 0, auto_canceled_by_id: nil, pipeline_schedule_id: nil, source: nil, config_source: nil, protected: nil, failure_reason: nil, iid: nil, merge_request_id: nil, source_sha: nil, target_sha: nil, external_pull_request_id: nil, ci_ref_id: nil, locked: 1, partition_id: 100, id_convert_to_bigint: 0>1046 behaves like fix invalid records1047 rebalances partition_id to 100 when partition_id is 1011048I, [2023-06-02T06:49:18.337599 #325] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes1049I, [2023-06-02T06:49:18.579280 #325] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes1050I, [2023-06-02T06:49:29.766804 #325] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes1051Gitlab::BackgroundMigration::BackfillPreparedAtMergeRequests1052 # order random1053 updates merge requests with prepared_at nil1054I, [2023-06-02T06:50:11.169621 #325] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes1055I, [2023-06-02T06:50:11.387434 #325] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes1056I, [2023-06-02T06:50:22.634040 #325] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes1057Gitlab::BackgroundMigration::PopulateVulnerabilityDismissalFields1058 # order random1059 #perform1060 updates the missing dismissal information of the vulnerability1061 writes log messages1062 when logger throws exception StandardError1063 logs StandardError1064I, [2023-06-02T06:51:05.270950 #325] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes1065Gitlab::BackgroundMigration::BackfillDesignManagementRepositories1066 # order random1067 #perform1068 creates design_management_repositories entries for all projects in range1069 when project_id already exists in design_management_repositories1070 doesn't duplicate project_id1071I, [2023-06-02T06:51:46.921830 #325] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes1072Gitlab::BackgroundMigration::BatchingStrategies::LooseIndexScanBatchingStrategy#next_batch1073 is expected to be < Gitlab::BackgroundMigration::BatchingStrategies::BaseStrategy1074 when starting on the first batch1075 returns the bounds of the next batch1076 when additional batches remain1077 returns the bounds of the next batch1078 when on the final batch1079 returns the bounds of the next batch1080 when no additional batches remain1081 returns nil1082Gitlab::BackgroundMigration::RemoveInvalidDeployAccessLevelGroups1083 # order random1084 #perform1085 backfill tiers for all environments in range1086Gitlab::BackgroundMigration::RenameTaskSystemNoteToChecklistItem1087 # order random1088 renames task to checklist item in task system notes that match1089 tracks timings of queries1090 updates in batches1091Gitlab::BackgroundMigration::SetCorrectVulnerabilityState1092 #filter_batch1093 filters out vulnerabilities where dismissed_at is null1094 #perform1095 changes vulnerability state to `dismissed` when dismissed_at is not nil1096 does not change the state when dismissed_at is nil1097Gitlab::BackgroundMigration::DisableLegacyOpenSourceLicenseForInactivePublicProjects1098 sets `legacy_open_source_license_available` attribute to false for inactive, public projects1099Gitlab::BackgroundMigration::BackfillNoteDiscussionId1100 updates records in the specified batch1101Gitlab::BackgroundMigration::BackfillProjectFeaturePackageRegistryAccessLevel1102 backfills project_features.package_registry_access_level1103Gitlab::BackgroundMigration::DeleteOrphansApprovalMergeRequestRules1104 # order random1105 #perform1106 delete only approval rules without association with the security project and report_type equals to 41107Gitlab::BackgroundMigration::BaseJob#perform1108 #perform1109 raises an error if not overridden by a subclass1110Knapsack report was generated. Preview:1111{1112 "spec/lib/gitlab/background_migration/backfill_snippet_repositories_spec.rb": 160.96026366,1113 "spec/lib/gitlab/background_migration/job_coordinator_spec.rb": 64.414336327,1114 "spec/lib/gitlab/background_migration/backfill_draft_status_on_merge_requests_with_corrected_regex_spec.rb": 48.10928566200005,1115 "spec/lib/gitlab/background_migration/backfill_member_namespace_for_group_members_spec.rb": 46.43559779599991,1116 "spec/lib/gitlab/background_migration/reset_duplicate_ci_runners_token_encrypted_values_on_projects_spec.rb": 44.078152581999916,1117 "spec/lib/gitlab/background_migration/backfill_user_details_fields_spec.rb": 44.306881109000074,1118 "spec/lib/gitlab/background_migration/reset_too_many_tags_skipped_registry_imports_spec.rb": 36.734311434000006,1119 "spec/lib/gitlab/background_migration/remove_occurrence_pipelines_and_duplicate_vulnerabilities_findings_spec.rb": 38.715483019999965,1120 "spec/lib/gitlab/background_migration/remove_self_managed_wiki_notes_spec.rb": 34.93231442699994,1121 "spec/lib/gitlab/background_migration/backfill_topics_title_spec.rb": 37.6548620829999,1122 "spec/lib/gitlab/background_migration/backfill_group_features_spec.rb": 40.059891375999996,1123 "spec/lib/gitlab/background_migration/disable_legacy_open_source_license_for_one_member_no_repo_projects_spec.rb": 33.63355568199995,1124 "spec/lib/gitlab/background_migration/backfill_namespace_id_of_vulnerability_reads_spec.rb": 31.168265595000094,1125 "spec/lib/gitlab/background_migration/disable_legacy_open_source_license_for_projects_less_than_five_mb_spec.rb": 27.01993590699999,1126 "spec/lib/gitlab/background_migration/migrate_links_for_vulnerability_findings_spec.rb": 27.142354753000063,1127 "spec/lib/gitlab/background_migration/rebalance_partition_id_spec.rb": 21.623499000000038,1128 "spec/lib/gitlab/background_migration/backfill_prepared_at_merge_requests_spec.rb": 21.143860399999994,1129 "spec/lib/gitlab/background_migration/populate_vulnerability_dismissal_fields_spec.rb": 20.808411022999962,1130 "spec/lib/gitlab/background_migration/backfill_design_management_repositories_spec.rb": 17.92247904199985,1131 "spec/lib/gitlab/background_migration/batching_strategies/loose_index_scan_batching_strategy_spec.rb": 12.653522254000109,1132 "spec/lib/gitlab/background_migration/remove_invalid_deploy_access_level_groups_spec.rb": 11.352064298000187,1133 "spec/lib/gitlab/background_migration/rename_task_system_note_to_checklist_item_spec.rb": 7.2894732419999855,1134 "spec/lib/gitlab/background_migration/set_correct_vulnerability_state_spec.rb": 7.738713428999972,1135 "spec/lib/gitlab/background_migration/disable_legacy_open_source_license_for_inactive_public_projects_spec.rb": 2.538522035999904,1136 "spec/lib/gitlab/background_migration/backfill_note_discussion_id_spec.rb": 3.244198985000139,1137 "spec/lib/gitlab/background_migration/backfill_project_feature_package_registry_access_level_spec.rb": 2.6790784659999645,1138 "spec/lib/gitlab/background_migration/delete_orphans_approval_merge_request_rules_spec.rb": 3.368190716000072,1139 "spec/lib/gitlab/background_migration/base_job_spec.rb": 2.35883551899996751140}1141Knapsack global time execution for tests: 14m 10s1142Finished in 27 minutes 54 seconds (files took 44.66 seconds to load)1143126 examples, 0 failures1144Randomized with seed 242651145[TEST PROF INFO] Time spent in factories: 00:00.440 (0.03% of total time)1146RSpec exited with 0.1147No examples to retry, congrats!1149Not uploading cache ruby-gems-debian-bullseye-ruby-3.0-16 due to policy1151Uploading artifacts...1152coverage/: found 5 matching artifact files and directories 1153crystalball/: found 2 matching artifact files and directories 1154WARNING: deprecations/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/gitlab-org/gitlab) 1155knapsack/: found 4 matching artifact files and directories 1156WARNING: query_recorder/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/gitlab-org/gitlab) 1157rspec/: found 16 matching artifact files and directories 1158WARNING: tmp/capybara/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/gitlab-org/gitlab) 1159log/*.log: found 13 matching artifact files and directories 1160WARNING: Upload request redirected location=https://gitlab.com/api/v4/jobs/4400964145/artifacts?artifact_format=zip&artifact_type=archive&expire_in=31d new-url=https://gitlab.com1161WARNING: Retrying... context=artifacts-uploader error=request redirected1162Uploading artifacts as "archive" to coordinator... 201 Created id=4400964145 responseStatus=201 Created token=64_-ZJwG1163Uploading artifacts...1164rspec/rspec-*.xml: found 1 matching artifact files and directories 1165WARNING: Upload request redirected location=https://gitlab.com/api/v4/jobs/4400964145/artifacts?artifact_format=gzip&artifact_type=junit&expire_in=31d new-url=https://gitlab.com1166WARNING: Retrying... context=artifacts-uploader error=request redirected1167Uploading artifacts as "junit" to coordinator... 201 Created id=4400964145 responseStatus=201 Created token=64_-ZJwG1169Job succeeded