There was an error fetching the job.
rspec migration pg13-as-if-foss single-db-ci-connection 6/8
Passed Started
by
@gitlab-bot

🤖 GitLab Bot 🤖
1Running with gitlab-runner 15.9.0~beta.115.g598a7c91 (598a7c91)2 on green-2.shared-gitlab-org.runners-manager.gitlab.com/default 8zCxmpPt, system ID: s_130a96ce9e653 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.18-rust-1.65-node-16.14-postgresql-13:rubygems-3.4-git-2.36-lfs-2.9-chrome-109-yarn-1.22-graphicsmagick-1.3.36 ...7Starting service postgres:13 ...8Pulling docker image postgres:13 ...9Using docker image sha256:dd421ca1f7f13d81c5c145d77d97d8d84cd0e6f1e045936ee506ce0f50ee397a for postgres:13 with digest postgres@sha256:00f455399f30cc3f2fe4185476601438b7a4959c74653665582d7c313a783d51 ...10Starting service redis:6.2-alpine ...11Pulling docker image redis:6.2-alpine ...12Using docker image sha256:3616f0c0705d2a35d30dde109daf3cbe58ae7284121aafa6f5cfa987db98d1a8 for redis:6.2-alpine with digest redis@sha256:edddbcad5a41d58df2f142d68439922f1860ea902903d016257337c3342f30fc ...13Waiting for services to be up and running (timeout 30 seconds)...14Authenticating with credentials from job payload (GitLab Registry)15Pulling docker image registry.gitlab.com/gitlab-org/gitlab-build-images/debian-bullseye-ruby-3.0.patched-golang-1.18-rust-1.65-node-16.14-postgresql-13:rubygems-3.4-git-2.36-lfs-2.9-chrome-109-yarn-1.22-graphicsmagick-1.3.36 ...16Using docker image sha256:7a1b51158a1ee23b080b514ce6ebbf52ac51585877198fb52709e5cd01805a77 for registry.gitlab.com/gitlab-org/gitlab-build-images/debian-bullseye-ruby-3.0.patched-golang-1.18-rust-1.65-node-16.14-postgresql-13:rubygems-3.4-git-2.36-lfs-2.9-chrome-109-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.18-rust-1.65-node-16.14-postgresql-13@sha256:412d55913d43377094427ced549cb422ed2f2c7223e6a605d0d3e0151cb892b0 ...18Running on runner-8zcxmppt-project-278964-concurrent-0 via runner-8zcxmppt-shared-gitlab-org-1680167281-f08a8c50...20$ eval "$CI_PRE_CLONE_SCRIPT"21Fetching changes with git depth set to 20...22Initialized empty Git repository in /builds/gitlab-org/gitlab/.git/23Created fresh repository.24remote: Enumerating objects: 135903, done. 25remote: Counting objects: 100% (135903/135903), done. 26remote: Compressing objects: 100% (88560/88560), done. 27remote: Total 135903 (delta 58315), reused 94618 (delta 42152), pack-reused 0 28Receiving objects: 100% (135903/135903), 121.35 MiB | 33.59 MiB/s, done.29Resolving deltas: 100% (58315/58315), done.31 * [new ref] refs/pipelines/822866544 -> refs/pipelines/82286654432Checking out 523abdde as detached HEAD (ref is refs/merge-requests/116270/merge)...33Skipping Git submodules setup34$ git remote set-url origin "${CI_REPOSITORY_URL}"36Checking cache for ruby-gems-debian-bullseye-ruby-3.0-16...37cache.zip is up to date 38Successfully extracted cache39Checking cache for gitaly-ruby-gems-debian-bullseye-ruby-3.0-16...40cache.zip is up to date 41Successfully extracted cache43Downloading artifacts for compile-test-assets as-if-foss (4031138200)...44Downloading artifacts from coordinator... ok host=storage.googleapis.com id=4031138200 responseStatus=200 OK token=64_ScaHE45Downloading artifacts for detect-tests (4031138213)...46Downloading artifacts from coordinator... ok host=storage.googleapis.com id=4031138213 responseStatus=200 OK token=64_ScaHE47Downloading artifacts for retrieve-tests-metadata (4031138217)...48Downloading artifacts from coordinator... ok host=storage.googleapis.com id=4031138217 responseStatus=200 OK token=64_ScaHE49Downloading artifacts for setup-test-env (4031138204)...50Downloading artifacts from coordinator... ok host=storage.googleapis.com id=4031138204 responseStatus=200 OK token=64_ScaHE52Using docker image sha256:7a1b51158a1ee23b080b514ce6ebbf52ac51585877198fb52709e5cd01805a77 for registry.gitlab.com/gitlab-org/gitlab-build-images/debian-bullseye-ruby-3.0.patched-golang-1.18-rust-1.65-node-16.14-postgresql-13:rubygems-3.4-git-2.36-lfs-2.9-chrome-109-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.18-rust-1.65-node-16.14-postgresql-13@sha256:412d55913d43377094427ced549cb422ed2f2c7223e6a605d0d3e0151cb892b0 ...53$ echo $FOSS_ONLY54155$ [ "$FOSS_ONLY" = "1" ] && rm -rf ee/ qa/spec/ee/ qa/qa/specs/features/ee/ qa/qa/ee/ qa/qa/ee.rb56$ export GOPATH=$CI_PROJECT_DIR/.go57$ mkdir -p $GOPATH58$ source scripts/utils.sh59$ source scripts/prepare_build.sh710Using decomposed database config (config/database.yml.postgresql)711Enabling ci connection (database_tasks: false) in config/database.yml712Geo DB won't be set up.713$ setup_db_user_only714CREATE ROLE715GRANT716==> 'setup_db_user_only' succeeded in 0 seconds.717$ bundle exec rake db:drop db:create db:schema:load db:migrate gitlab:db:lock_writes718Dropped database 'gitlabhq_test'719Created database 'gitlabhq_test'720==> 'bundle exec rake db:drop db:create db:schema:load db:migrate gitlab:db:lock_writes' succeeded in 34 seconds.721$ setup_db_praefect722SELECT pg_catalog.set_config('search_path', '', false);723CREATE DATABASE praefect_test ENCODING 'UTF8';724==> 'setup_db_praefect' succeeded in 1 seconds.725$ source ./scripts/rspec_helpers.sh726$ run_timed_command "gem install knapsack --no-document"727$ gem install knapsack --no-document728Successfully installed knapsack-4.0.07291 gem installed730$ echo -e "\e[0Ksection_start:`date +%s`:gitaly-test-spawn[collapsed=true]\r\e[0KStarting Gitaly"731==> 'gem install knapsack --no-document' succeeded in 0 seconds.835$ rspec_paralellized_job "--tag ~quarantine --tag ~zoekt"836SKIP_FLAKY_TESTS_AUTOMATICALLY: false837RETRY_FAILED_TESTS_IN_NEW_PROCESS: true838KNAPSACK_GENERATE_REPORT: 839FLAKY_RSPEC_GENERATE_REPORT: 840KNAPSACK_TEST_FILE_PATTERN: spec/{migrations}{,/**/}*_spec.rb841KNAPSACK_LOG_LEVEL: debug842KNAPSACK_REPORT_PATH: knapsack/rspec_migration_pg13-as-if-foss_single-db-ci-connection_6_8_report.json843FLAKY_RSPEC_SUITE_REPORT_PATH: rspec/flaky/report-suite.json844FLAKY_RSPEC_REPORT_PATH: rspec/flaky/all_rspec_migration_pg13-as-if-foss_single-db-ci-connection_6_8_report.json845NEW_FLAKY_RSPEC_REPORT_PATH: rspec/flaky/new_rspec_migration_pg13-as-if-foss_single-db-ci-connection_6_8_report.json846SKIPPED_FLAKY_TESTS_REPORT_PATH: rspec/flaky/skipped_flaky_tests_rspec_migration_pg13-as-if-foss_single-db-ci-connection_6_8_report.txt847CRYSTALBALL: 848Run options: exclude {:quarantine=>true, :zoekt=>true}849Test environment set up in 0.718313061 seconds850CreateNextCiPartitionsRecord851 # order random852 #down853 when on sass854ci: == 20221102090940 CreateNextCiPartitionsRecord: migrating =====================855ci: -- execute("INSERT INTO \"ci_partitions\" (\"id\", \"created_at\", \"updated_at\")\n VALUES (101, now(), now())\n ON CONFLICT DO NOTHING;\n")856ci: -> 0.0022s857ci: -- reset_pk_sequence!("ci_partitions")858ci: -> 0.0086s859ci: -> 101 rows860ci: == 20221102090940 CreateNextCiPartitionsRecord: migrated (0.0116s) ============861ci: -- execute("DELETE FROM \"ci_partitions\"\n WHERE \"ci_partitions\".\"id\" = 101;\n")862ci: -> 0.0017s863 removes the record864 when self-managed865ci: == 20221102090940 CreateNextCiPartitionsRecord: migrating =====================866ci: -- execute("INSERT INTO \"ci_partitions\" (\"id\", \"created_at\", \"updated_at\")\n VALUES (101, now(), now())\n ON CONFLICT DO NOTHING;\n")867ci: -> 0.0019s868ci: -- reset_pk_sequence!("ci_partitions")869ci: -> 0.0088s870ci: -> 101 rows871ci: == 20221102090940 CreateNextCiPartitionsRecord: migrated (0.0112s) ============872 does not remove the record873 #up874 when on sass875ci: == 20221102090940 CreateNextCiPartitionsRecord: migrating =====================876ci: -- execute("INSERT INTO \"ci_partitions\" (\"id\", \"created_at\", \"updated_at\")\n VALUES (101, now(), now())\n ON CONFLICT DO NOTHING;\n")877ci: -> 0.0016s878ci: -- reset_pk_sequence!("ci_partitions")879ci: -> 0.0065s880ci: -> 101 rows881ci: == 20221102090940 CreateNextCiPartitionsRecord: migrated (0.0088s) ============882 creates next partitions record and resets the sequence883 when self-managed884ci: == 20221102090940 CreateNextCiPartitionsRecord: migrating =====================885ci: == 20221102090940 CreateNextCiPartitionsRecord: migrated (0.0006s) ============886 does not create records887FinalizeProjectNamespacesBackfill888 #up889 when project namespace backfilling migration is missing890main: == 20220322071127 FinalizeProjectNamespacesBackfill: migrating ================891main: == 20220322071127 FinalizeProjectNamespacesBackfill: migrated (0.0121s) =======892 warns migration not found893 with backfilling migration present894 when project namespace backfilling migration finished successfully895main: == 20220322071127 FinalizeProjectNamespacesBackfill: migrating ================896main: == 20220322071127 FinalizeProjectNamespacesBackfill: migrated (0.0200s) =======897 does not raise exception898 when project namespace backfilling migration is paused899 status: 0, description: "paused"900 behaves like finalizes the migration901 finalizes the migration902 status: 1, description: "active"903 behaves like finalizes the migration904 finalizes the migration905 status: 4, description: "failed"906 behaves like finalizes the migration907 finalizes the migration908 status: 5, description: "finalizing"909 behaves like finalizes the migration910 finalizes the migration911FinalizeCiBuildNeedsBigIntConversion912 # order random913 #up914 dot_com: true, dev_or_test: true, jh: true, expectation: :not_to915ci: == 20230214181633 FinalizeCiBuildNeedsBigIntConversion: migrating =============916ci: == 20230214181633 FinalizeCiBuildNeedsBigIntConversion: migrated (0.0210s) ====917 ensures the migration is completed for GitLab.com, dev, or test918 dot_com: true, dev_or_test: false, jh: true, expectation: :not_to919ci: == 20230214181633 FinalizeCiBuildNeedsBigIntConversion: migrating =============920ci: == 20230214181633 FinalizeCiBuildNeedsBigIntConversion: migrated (0.0238s) ====921 ensures the migration is completed for GitLab.com, dev, or test922 dot_com: false, dev_or_test: true, jh: true, expectation: :not_to923ci: == 20230214181633 FinalizeCiBuildNeedsBigIntConversion: migrating =============924ci: == 20230214181633 FinalizeCiBuildNeedsBigIntConversion: migrated (0.0218s) ====925 ensures the migration is completed for GitLab.com, dev, or test926 dot_com: false, dev_or_test: false, jh: true, expectation: :not_to927ci: == 20230214181633 FinalizeCiBuildNeedsBigIntConversion: migrating =============928ci: == 20230214181633 FinalizeCiBuildNeedsBigIntConversion: migrated (0.0204s) ====929 ensures the migration is completed for GitLab.com, dev, or test930 dot_com: true, dev_or_test: true, jh: false, expectation: :to931ci: == 20230214181633 FinalizeCiBuildNeedsBigIntConversion: migrating =============932ci: == 20230214181633 FinalizeCiBuildNeedsBigIntConversion: migrated (0.0214s) ====933 ensures the migration is completed for GitLab.com, dev, or test934 dot_com: true, dev_or_test: false, jh: false, expectation: :to935ci: == 20230214181633 FinalizeCiBuildNeedsBigIntConversion: migrating =============936ci: == 20230214181633 FinalizeCiBuildNeedsBigIntConversion: migrated (0.0205s) ====937 ensures the migration is completed for GitLab.com, dev, or test938 dot_com: false, dev_or_test: true, jh: false, expectation: :to939ci: == 20230214181633 FinalizeCiBuildNeedsBigIntConversion: migrating =============940ci: == 20230214181633 FinalizeCiBuildNeedsBigIntConversion: migrated (0.0241s) ====941 ensures the migration is completed for GitLab.com, dev, or test942 dot_com: false, dev_or_test: false, jh: false, expectation: :not_to943ci: == 20230214181633 FinalizeCiBuildNeedsBigIntConversion: migrating =============944ci: == 20230214181633 FinalizeCiBuildNeedsBigIntConversion: migrated (0.0231s) ====945 ensures the migration is completed for GitLab.com, dev, or test946EncryptIntegrationProperties947main: == 20220204194347 EncryptIntegrationProperties: migrating =====================948main: -- Scheduled 3 EncryptIntegrationProperties jobs with a maximum of 2 records per batch and an interval of 120 seconds.949The migration is expected to take at least 360 seconds. Expect all jobs to have completed after 2023-03-30 11:49:41 UTC."950main: == 20220204194347 EncryptIntegrationProperties: migrated (0.0604s) ============951 correctly schedules background migrations952RescheduleExpireOAuthTokens953 #up954main: == 20220513043344 RescheduleExpireOAuthTokens: migrating ======================955main: == 20220513043344 RescheduleExpireOAuthTokens: migrated (0.0686s) =============956 schedules background jobs for each batch of oauth tokens957 #down958main: == 20220513043344 RescheduleExpireOAuthTokens: migrating ======================959main: == 20220513043344 RescheduleExpireOAuthTokens: migrated (0.0758s) =============960 deletes all batched migration records961RebalancePartitionIdCiBuild962 # order random963 when on self-managed instance964 #up965 does not schedule background job966 #down967 does not delete background job968 when on sass969 #up970ci: == 20230125093840 RebalancePartitionIdCiBuild: migrating ======================971ci: == 20230125093840 RebalancePartitionIdCiBuild: migrated (0.0784s) =============972 schedules background jobs for each batch of ci_builds973 #down974ci: == 20230125093840 RebalancePartitionIdCiBuild: migrating ======================975ci: == 20230125093840 RebalancePartitionIdCiBuild: migrated (0.0865s) =============976 deletes all batched migration records977BackfillCycleAnalyticsAggregations978main: == 20220204110725 BackfillCycleAnalyticsAggregations: migrating ===============979main: == 20220204110725 BackfillCycleAnalyticsAggregations: migrated (0.0269s) ======980 does nothing981 when there are value stream records982main: == 20220204110725 BackfillCycleAnalyticsAggregations: migrating ===============983main: -- execute("WITH records_to_be_inserted AS MATERIALIZED (\n SELECT root_ancestor.id AS group_id\n FROM (SELECT \"analytics_cycle_analytics_group_value_streams\".\"group_id\" FROM \"analytics_cycle_analytics_group_value_streams\" WHERE \"analytics_cycle_analytics_group_value_streams\".\"id\" >= 1) as value_streams,\n LATERAL (\n WITH RECURSIVE \"base_and_ancestors\" AS (\n (SELECT \"namespaces\".\"id\", \"namespaces\".\"parent_id\" FROM \"namespaces\" WHERE \"namespaces\".\"id\" = value_streams.group_id)\n UNION\n (SELECT \"namespaces\".\"id\", \"namespaces\".\"parent_id\" FROM \"namespaces\", \"base_and_ancestors\" WHERE \"namespaces\".\"id\" = \"base_and_ancestors\".\"parent_id\")\n )\n SELECT \"namespaces\".\"id\" FROM \"base_and_ancestors\" as \"namespaces\" WHERE parent_id IS NULL LIMIT 1\n ) as root_ancestor\n)\nINSERT INTO \"analytics_cycle_analytics_aggregations\"\nSELECT * FROM \"records_to_be_inserted\"\nON CONFLICT DO NOTHING\n")984main: -> 0.0045s985main: == 20220204110725 BackfillCycleAnalyticsAggregations: migrated (0.0162s) ======986 inserts a record for each top-level namespace987BackfillAllProjectNamespaces988 #up989main: == 20220301093434 BackfillAllProjectNamespaces: migrating =====================990main: == 20220301093434 BackfillAllProjectNamespaces: migrated (0.0430s) ============991 schedules background jobs for each batch of namespaces992 #down993main: == 20220301093434 BackfillAllProjectNamespaces: migrating =====================994main: == 20220301093434 BackfillAllProjectNamespaces: migrated (0.0460s) ============995 deletes all batched migration records996BackfillProjectNamespacesForGroup997 #up998main: == 20211209103048 BackfillProjectNamespacesForGroup: migrating ================999main: == 20211209103048 BackfillProjectNamespacesForGroup: migrated (0.0481s) =======1000 schedules background jobs for each batch of namespaces1001 #down1002main: == 20211209103048 BackfillProjectNamespacesForGroup: migrating ================1003main: == 20211209103048 BackfillProjectNamespacesForGroup: migrated (0.0084s) =======1004 deletes all batched migration records1005PopulateContainerRepositoriesMigrationPlan1006main: == 20220316202640 PopulateContainerRepositoriesMigrationPlan: migrating =======1007main: -- Scheduled 2 PopulateContainerRepositoryMigrationPlan jobs with a maximum of 2 records per batch and an interval of 120 seconds.1008The migration is expected to take at least 240 seconds. Expect all jobs to have completed after 2023-03-30 11:54:46 UTC."1009main: == 20220316202640 PopulateContainerRepositoriesMigrationPlan: migrated (0.0461s) 1010 schedules jobs for container_repositories to populate migration_state1011The application_settings (main) table has 1227 columns.1012Recreating the database1013Dropped database 'gitlabhq_test'1014Created database 'gitlabhq_test'1015Databases re-creation done in 6.030245382000431016RemoveIntegrationsType1017main: == 20220213103859 RemoveIntegrationsType: migrating ===========================1018main: -- view_exists?(:postgres_partitions)1019main: -> 0.0021s1020main: -- index_exists?(:integrations, :id, {:where=>"type_new is null", :name=>"tmp_idx_integrations_unmigrated_type_new", :algorithm=>:concurrently})1021main: -> 0.0118s1022main: -- add_index(:integrations, :id, {:where=>"type_new is null", :name=>"tmp_idx_integrations_unmigrated_type_new", :algorithm=>:concurrently})1023main: -> 0.0026s1024main: -- view_exists?(:postgres_partitions)1025main: -> 0.0027s1026main: -- indexes(:integrations)1027main: -> 0.0139s1028main: -- remove_index(:integrations, {:algorithm=>:concurrently, :name=>"tmp_idx_integrations_unmigrated_type_new"})1029main: -> 0.0019s1030main: -- remove_column(:integrations, :type, :text)1031main: -> 0.0027s1032main: == 20220213103859 RemoveIntegrationsType: migrated (0.1162s) ==================1033 performs remaining background migrations1034AddIndexToProjectsOnMarkedForDeletionAt1035main: == 20211203091642 AddIndexToProjectsOnMarkedForDeletionAt: migrating ==========1036main: -- view_exists?(:postgres_partitions)1037main: -> 0.0019s1038main: -- index_exists?(:projects, :id, {:where=>"marked_for_deletion_at IS NULL", :name=>"index_projects_not_aimed_for_deletion", :algorithm=>:concurrently})1039main: -> 0.0536s1040main: -- add_index(:projects, :id, {:where=>"marked_for_deletion_at IS NULL", :name=>"index_projects_not_aimed_for_deletion", :algorithm=>:concurrently})1041main: -> 0.0031s1042main: == 20211203091642 AddIndexToProjectsOnMarkedForDeletionAt: migrated (0.0776s) =1043 correctly migrates up and down1044FinalizeGroupMemberNamespaceIdMigration1045 # order random1046 #up1047 when migration is missing1048main: == 20221002234454 FinalizeGroupMemberNamespaceIdMigration: migrating ==========1049main: == 20221002234454 FinalizeGroupMemberNamespaceIdMigration: migrated (0.0098s) =1050 warns migration not found1051 with migration present1052 when migration finished successfully1053main: == 20221002234454 FinalizeGroupMemberNamespaceIdMigration: migrating ==========1054main: == 20221002234454 FinalizeGroupMemberNamespaceIdMigration: migrated (0.0220s) =1055 does not raise exception1056 with different migration statuses1057 status: 0, description: "paused"1058 behaves like finalizes the migration1059 finalizes the migration1060 status: 1, description: "active"1061 behaves like finalizes the migration1062 finalizes the migration1063 status: 4, description: "failed"1064 behaves like finalizes the migration1065 finalizes the migration1066 status: 5, description: "finalizing"1067 behaves like finalizes the migration1068 finalizes the migration1069ScheduleDisableLegacyOpenSourceLicenceForRecentPublicProjects1070 when on gitlab.com1071 #up1072 schedules background jobs for each batch of projects1073 #down1074 deletes all batched migration records1075 when on self-managed instances1076 #up1077 does not schedule background job1078 #down1079 does not delete background job1080RemoveLeftoverExternalPullRequestDeletions1081WARNING: Active Record does not support composite primary key.1082loose_foreign_keys_deleted_records has composite primary key. Composite primary key is ignored.1083main: == 20220309084954 RemoveLeftoverExternalPullRequestDeletions: migrating =======1084main: -- execute("DELETE FROM \"loose_foreign_keys_deleted_records\"\nWHERE\n(\"loose_foreign_keys_deleted_records\".\"partition\", \"loose_foreign_keys_deleted_records\".\"id\") IN (\n SELECT \"loose_foreign_keys_deleted_records\".\"partition\", \"loose_foreign_keys_deleted_records\".\"id\"\n FROM \"loose_foreign_keys_deleted_records\"\n WHERE\n \"loose_foreign_keys_deleted_records\".\"fully_qualified_table_name\" = 'public.external_pull_requests' AND\n \"loose_foreign_keys_deleted_records\".\"status\" = 1\n LIMIT 100\n)\n")1085main: -> 0.0024s1086main: -- execute("DELETE FROM \"loose_foreign_keys_deleted_records\"\nWHERE\n(\"loose_foreign_keys_deleted_records\".\"partition\", \"loose_foreign_keys_deleted_records\".\"id\") IN (\n SELECT \"loose_foreign_keys_deleted_records\".\"partition\", \"loose_foreign_keys_deleted_records\".\"id\"\n FROM \"loose_foreign_keys_deleted_records\"\n WHERE\n \"loose_foreign_keys_deleted_records\".\"fully_qualified_table_name\" = 'public.external_pull_requests' AND\n \"loose_foreign_keys_deleted_records\".\"status\" = 1\n LIMIT 100\n)\n")1087main: -> 0.0023s1088main: == 20220309084954 RemoveLeftoverExternalPullRequestDeletions: migrated (0.0049s) 1089 deletes pending external_pull_requests records1090FixPartitionIdsForCiPipelineVariable1091 # order random1092 when on saas1093 #up1094ci: == 20230208100917 FixPartitionIdsForCiPipelineVariable: migrating =============1095ci: == 20230208100917 FixPartitionIdsForCiPipelineVariable: migrated (0.0827s) ====1096 schedules background jobs for each batch of ci_pipeline_variables1097 #down1098ci: == 20230208100917 FixPartitionIdsForCiPipelineVariable: migrating =============1099ci: == 20230208100917 FixPartitionIdsForCiPipelineVariable: migrated (0.0767s) ====1100 deletes all batched migration records1101 when on self-managed instance1102 #up1103 does not schedule background job1104 #down1105 does not delete background job1106RemoveDependencyListUsageDataFromRedis1107 #up1108main: == 20220310141349 RemoveDependencyListUsageDataFromRedis: migrating ===========1109main: == 20220310141349 RemoveDependencyListUsageDataFromRedis: migrated (0.0009s) ==1110 removes the hash from redis1111AddProjectsEmailsEnabledColumnData1112 # order random1113main: == 20221116134633 AddProjectsEmailsEnabledColumnData: migrating ===============1114main: == 20221116134633 AddProjectsEmailsEnabledColumnData: migrated (0.0574s) ======1115 schedules background migrations1116main: == 20221116134633 AddProjectsEmailsEnabledColumnData: migrating ===============1117main: == 20221116134633 AddProjectsEmailsEnabledColumnData: migrated (0.0514s) ======1118 sets emails_enabled to be the opposite of emails_disabled1119 #down1120main: == 20221116134633 AddProjectsEmailsEnabledColumnData: migrating ===============1121main: == 20221116134633 AddProjectsEmailsEnabledColumnData: migrated (0.0675s) ======1122 deletes all batched migration records1123ScheduleFixingSecurityScanStatuses1124 # order random1125 #down1126main: == 20221128120634 ScheduleFixingSecurityScanStatuses: migrating ===============1127main: == 20221128120634 ScheduleFixingSecurityScanStatuses: migrated (0.0005s) ======1128 deletes all batched migration records1129 #up1130 when the migration does not run on GitLab.com or development environment1131main: == 20221128120634 ScheduleFixingSecurityScanStatuses: migrating ===============1132main: == 20221128120634 ScheduleFixingSecurityScanStatuses: migrated (0.0006s) ======1133 does not schedule the migration1134 when the migration runs on GitLab.com1135 behaves like scheduler for fixing the security scans status1136main: == 20221128120634 ScheduleFixingSecurityScanStatuses: migrating ===============1137main: == 20221128120634 ScheduleFixingSecurityScanStatuses: migrated (0.0605s) ======1138 schedules background job1139 when the migration runs on dev environment1140 behaves like scheduler for fixing the security scans status1141main: == 20221128120634 ScheduleFixingSecurityScanStatuses: migrating ===============1142main: == 20221128120634 ScheduleFixingSecurityScanStatuses: migrated (0.0534s) ======1143 schedules background job1144FinalizeNullifyCreatorIdOfOrphanedProjects1145 # order random1146 #up1147 when migration is missing1148main: == 20230223065753 FinalizeNullifyCreatorIdOfOrphanedProjects: migrating =======1149main: == 20230223065753 FinalizeNullifyCreatorIdOfOrphanedProjects: migrated (0.0193s) 1150 warns migration not found1151 with migration present1152 when migration finished successfully1153main: == 20230223065753 FinalizeNullifyCreatorIdOfOrphanedProjects: migrating =======1154main: == 20230223065753 FinalizeNullifyCreatorIdOfOrphanedProjects: migrated (0.0320s) 1155 does not raise exception1156 with different migration statuses1157 status: 0, description: "paused"1158 behaves like finalizes the migration1159main: == 20230223065753 FinalizeNullifyCreatorIdOfOrphanedProjects: migrating =======1160main: == 20230223065753 FinalizeNullifyCreatorIdOfOrphanedProjects: migrated (0.2458s) 1161 finalizes the migration1162 status: 1, description: "active"1163 behaves like finalizes the migration1164main: == 20230223065753 FinalizeNullifyCreatorIdOfOrphanedProjects: migrating =======1165main: == 20230223065753 FinalizeNullifyCreatorIdOfOrphanedProjects: migrated (0.2502s) 1166 finalizes the migration1167 status: 4, description: "failed"1168 behaves like finalizes the migration1169main: == 20230223065753 FinalizeNullifyCreatorIdOfOrphanedProjects: migrating =======1170main: == 20230223065753 FinalizeNullifyCreatorIdOfOrphanedProjects: migrated (0.2485s) 1171 finalizes the migration1172 status: 5, description: "finalizing"1173 behaves like finalizes the migration1174main: == 20230223065753 FinalizeNullifyCreatorIdOfOrphanedProjects: migrating =======1175main: == 20230223065753 FinalizeNullifyCreatorIdOfOrphanedProjects: migrated (0.2383s) 1176 finalizes the migration1177BackfillEpicCacheCounts1178 # order random1179 #down1180main: == 20220905120848 BackfillEpicCacheCounts: migrating ==========================1181main: == 20220905120848 BackfillEpicCacheCounts: migrated (0.0675s) =================1182 deletes all batched migration records1183 #up1184main: == 20220905120848 BackfillEpicCacheCounts: migrating ==========================1185main: == 20220905120848 BackfillEpicCacheCounts: migrated (0.0614s) =================1186 schedules a batched background migration1187AddOkrHierarchyRestrictions1188 # order random1189main: == 20221116143854 AddOkrHierarchyRestrictions: migrating ======================1190main: == 20221116143854 AddOkrHierarchyRestrictions: migrated (0.0393s) =============1191 creates default restrictions1192 when work items are missing1193main: == 20221116143854 AddOkrHierarchyRestrictions: migrating ======================1194main: == 20221116143854 AddOkrHierarchyRestrictions: migrated (0.0151s) =============1195 does nothing1196AddObjectiveAndKeyresultToWorkItemTypes1197 # order random1198main: == 20221018050323 AddObjectiveAndKeyresultToWorkItemTypes: migrating ==========1199main: -- execute("INSERT INTO work_item_types (base_type, icon_name, name, created_at, updated_at) VALUES(\n 5, 'issue-type-objective', 'Objective', NOW(), NOW()\n ) ON CONFLICT DO NOTHING;\n")1200main: -> 0.0015s1201main: -- execute("INSERT INTO work_item_types (base_type, icon_name, name, created_at, updated_at) VALUES(\n 6, 'issue-type-keyresult', 'Key Result', NOW(), NOW()\n ) ON CONFLICT DO NOTHING;\n")1202main: -> 0.0022s1203main: == 20221018050323 AddObjectiveAndKeyresultToWorkItemTypes: migrated (0.0110s) =1204 adds both objective & keyresult to base work item types1205main: == 20221018050323 AddObjectiveAndKeyresultToWorkItemTypes: migrating ==========1206main: -- Objective item record exist, skipping creation1207main: -- Keyresult item record exist, skipping creation1208main: == 20221018050323 AddObjectiveAndKeyresultToWorkItemTypes: migrated (0.0150s) =1209 skips creating both objective & keyresult type record if it already exists1210QueuePopulateProjectsStarCount1211 # order random1212main: == 20221019105041 QueuePopulateProjectsStarCount: migrating ===================1213main: == 20221019105041 QueuePopulateProjectsStarCount: migrated (0.0586s) ==========1214 schedules a new batched migration1215The application_settings (main) table has 1220 columns.1216Recreating the database1217Dropped database 'gitlabhq_test'1218Created database 'gitlabhq_test'1219Databases re-creation done in 6.0315542139996981220AddIndexOnPasswordLastChangedAtToUserDetails1221 # order random1222main: -- indexes(:user_details)1223main: -> 0.0071s1224main: -- current_schema()1225main: -> 0.0008s1226main: == 20221028022627 AddIndexOnPasswordLastChangedAtToUserDetails: migrating =====1227main: -- view_exists?(:postgres_partitions)1228main: -> 0.0023s1229main: -- index_exists?(:user_details, :password_last_changed_at, {:name=>"index_user_details_on_password_last_changed_at", :comment=>"JiHu-specific index", :algorithm=>:concurrently})1230main: -> 0.0067s1231main: -- add_index(:user_details, :password_last_changed_at, {:name=>"index_user_details_on_password_last_changed_at", :comment=>"JiHu-specific index", :algorithm=>:concurrently})1232main: -> 0.0038s1233main: == 20221028022627 AddIndexOnPasswordLastChangedAtToUserDetails: migrated (0.0360s) 1234main: -- indexes(:user_details)1235main: -> 0.0098s1236 correctly migrates up and down1237QueueBackfillComplianceViolations1238 # order random1239 #up1240main: == 20230125195503 QueueBackfillComplianceViolations: migrating ================1241main: == 20230125195503 QueueBackfillComplianceViolations: migrated (0.0589s) =======1242 schedules background jobs for each batch of merge_request_compliance_violations1243 #down1244main: == 20230125195503 QueueBackfillComplianceViolations: migrating ================1245main: == 20230125195503 QueueBackfillComplianceViolations: migrated (0.0603s) =======1246 deletes all batched migration records1247ScheduleCreateVulnerabilityLinksMigration1248 # order random1249 #up1250main: == 20230130182412 ScheduleCreateVulnerabilityLinksMigration: migrating ========1251main: == 20230130182412 ScheduleCreateVulnerabilityLinksMigration: migrated (0.0713s) 1252 schedules background jobs for each batch of Vulnerabilities::Feedback1253 #down1254main: == 20230130182412 ScheduleCreateVulnerabilityLinksMigration: migrating ========1255main: == 20230130182412 ScheduleCreateVulnerabilityLinksMigration: migrated (0.0629s) 1256 deletes all batched migration records1257MigrateEvidencesFromRawMetadata1258 # order random1259 #up1260main: == 20230224144233 MigrateEvidencesFromRawMetadata: migrating ==================1261main: == 20230224144233 MigrateEvidencesFromRawMetadata: migrated (0.0650s) =========1262 schedules a batched background migration1263 #down1264main: == 20230224144233 MigrateEvidencesFromRawMetadata: migrating ==================1265main: == 20230224144233 MigrateEvidencesFromRawMetadata: migrated (0.0568s) =========1266 deletes all batched migration records1267RescheduleMigrationForRemediation1268 # order random1269 #up1270main: == 20230313150531 RescheduleMigrationForRemediation: migrating ================1271main: == 20230313150531 RescheduleMigrationForRemediation: migrated (0.0672s) =======1272 schedules a batched background migration1273 #down1274main: == 20230313150531 RescheduleMigrationForRemediation: migrating ================1275main: == 20230313150531 RescheduleMigrationForRemediation: migrated (0.0799s) =======1276 deletes all batched migration records1277ActiveRecord::Schema1278 > schema version should equal the latest migration timestamp stored in schema_migrations table1279 the schema_migrations table contains all schema versions1280BackfillMlCandidatesPackageId1281 # order random1282 #up1283main: -- execute(" UPDATE ml_candidates\n SET package_id = candidate_id_to_package_id.package_id\n FROM (SELECT id as package_id, TRIM(LEADING 'ml_candidates_' FROM name) as candidate_id\n FROM packages_packages\n WHERE name LIKE 'ml_candidate_%'\n and version = '-') AS candidate_id_to_package_id\n WHERE cast(ml_candidates.id as text) = candidate_id_to_package_id.candidate_id\n")1284main: -> 0.0026s1285main: -- execute(" UPDATE ml_candidates\n SET package_id = candidate_id_to_package_id.package_id\n FROM (SELECT id as package_id, TRIM(LEADING 'ml_candidates_' FROM name) as candidate_id\n FROM packages_packages\n WHERE name LIKE 'ml_candidate_%'\n and version = '-') AS candidate_id_to_package_id\n WHERE cast(ml_candidates.id as text) = candidate_id_to_package_id.candidate_id\n")1286main: -> 0.0018s1287 sets the correct package_ids with idempotency1288EnsureSnippetUserMentionsBigintBackfillIsFinishedForGitlabDotCom1289 # order random1290 #up1291main: == 20230322011220 EnsureSnippetUserMentionsBigintBackfillIsFinishedForGitlabDotCom: migrating 1292main: == 20230322011220 EnsureSnippetUserMentionsBigintBackfillIsFinishedForGitlabDotCom: migrated (0.0083s) 1293 ensures the migration is completed for GitLab.com, dev, or test1294main: == 20230322011220 EnsureSnippetUserMentionsBigintBackfillIsFinishedForGitlabDotCom: migrating 1295main: == 20230322011220 EnsureSnippetUserMentionsBigintBackfillIsFinishedForGitlabDotCom: migrated (0.0075s) 1296 skips the check for other instances1297Finished in 25 minutes 42 seconds (files took 53.49 seconds to load)129884 examples, 0 failures1299Randomized with seed 638611300RSpec exited with 0.1301No examples to retry, congrats!1303Not uploading cache ruby-gems-debian-bullseye-ruby-3.0-16 due to policy1304Not uploading cache gitaly-ruby-gems-debian-bullseye-ruby-3.0-16 due to policy1306Uploading artifacts...1307coverage/: found 5 matching artifact files and directories 1308crystalball/: found 2 matching artifact files and directories 1309WARNING: deprecations/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/gitlab-org/gitlab) 1310knapsack/: found 3 matching artifact files and directories 1311WARNING: query_recorder/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/gitlab-org/gitlab) 1312rspec/: found 12 matching artifact files and directories 1313WARNING: tmp/capybara/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/gitlab-org/gitlab) 1314log/*.log: found 13 matching artifact files and directories 1315WARNING: Upload request redirected location=https://gitlab.com/api/v4/jobs/4031138814/artifacts?artifact_format=zip&artifact_type=archive&expire_in=31d new-url=https://gitlab.com1316WARNING: Retrying... context=artifacts-uploader error=request redirected1317Uploading artifacts as "archive" to coordinator... 201 Created id=4031138814 responseStatus=201 Created token=64_ScaHE1318Uploading artifacts...1319rspec/junit_rspec.xml: found 1 matching artifact files and directories 1320WARNING: Upload request redirected location=https://gitlab.com/api/v4/jobs/4031138814/artifacts?artifact_format=gzip&artifact_type=junit&expire_in=31d new-url=https://gitlab.com1321WARNING: Retrying... context=artifacts-uploader error=request redirected1322Uploading artifacts as "junit" to coordinator... 201 Created id=4031138814 responseStatus=201 Created token=64_ScaHE1324Job succeeded