There was an error fetching the job.
rspec-ee background_migration pg13 single-db-ci-connection 1/2
Passed Started
by
@gitlab-bot

🤖 GitLab Bot 🤖
1Running with gitlab-runner 15.9.0~beta.212.g8ccc65e7 (8ccc65e7)2 on green-4.private.runners-manager.gitlab.com/gitlab.com/gitlab-org rpvz2FF9, system ID: s_d704414ba02a3 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 ...13Starting service elasticsearch:7.17.6 ...14Pulling docker image elasticsearch:7.17.6 ...15Using docker image sha256:5fad10241ffd65d817ed0ddfaf6e87eee1f7dc2a7db33db1047835560ea71fda for elasticsearch:7.17.6 with digest elasticsearch@sha256:6c128de5d01c0c130a806022d6bd99b3e4c27a9af5bfc33b6b81861ae117d028 ...16Starting service registry.gitlab.com/gitlab-org/gitlab-build-images:zoekt-ci-image-1.0 ...17Authenticating with credentials from job payload (GitLab Registry)18Pulling docker image registry.gitlab.com/gitlab-org/gitlab-build-images:zoekt-ci-image-1.0 ...19Using docker image sha256:4777ec1fa89def7d692d4979d05cb05234df25da1c6a3f67a564a433ec5ba1c8 for registry.gitlab.com/gitlab-org/gitlab-build-images:zoekt-ci-image-1.0 with digest registry.gitlab.com/gitlab-org/gitlab-build-images@sha256:80c0cee4566aefe4f1f287e1091263e08b0ebc41ed3dc4e76930df3634ccb9aa ...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.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 ...23Using 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 ...25Running on runner-rpvz2ff9-project-278964-concurrent-0 via runner-rpvz2ff9-private-1680164969-1e46828c...27$ eval "$CI_PRE_CLONE_SCRIPT"28Fetching changes with git depth set to 20...29Initialized empty Git repository in /builds/gitlab-org/gitlab/.git/30Created fresh repository.31remote: Enumerating objects: 135903, done. 32remote: Counting objects: 100% (135903/135903), done. 33remote: Compressing objects: 100% (88560/88560), done. 34remote: Total 135903 (delta 58315), reused 94618 (delta 42152), pack-reused 0 35Receiving objects: 100% (135903/135903), 121.35 MiB | 30.38 MiB/s, done.36Resolving deltas: 100% (58315/58315), done.38 * [new ref] refs/pipelines/822866544 -> refs/pipelines/82286654439Checking out 523abdde as detached HEAD (ref is refs/merge-requests/116270/merge)...40Skipping Git submodules setup41$ git remote set-url origin "${CI_REPOSITORY_URL}"43Checking cache for ruby-gems-debian-bullseye-ruby-3.0-16...44cache.zip is up to date 45Successfully extracted cache46Checking cache for gitaly-ruby-gems-debian-bullseye-ruby-3.0-16...47cache.zip is up to date 48Successfully extracted cache50Downloading artifacts for compile-test-assets (4031138198)...51Downloading artifacts from coordinator... ok host=storage.googleapis.com id=4031138198 responseStatus=200 OK token=64_hGz-c52Downloading artifacts for detect-tests (4031138213)...53Downloading artifacts from coordinator... ok host=storage.googleapis.com id=4031138213 responseStatus=200 OK token=64_hGz-c54Downloading artifacts for retrieve-tests-metadata (4031138217)...55Downloading artifacts from coordinator... ok host=storage.googleapis.com id=4031138217 responseStatus=200 OK token=64_hGz-c56Downloading artifacts for setup-test-env (4031138204)...57Downloading artifacts from coordinator... ok host=storage.googleapis.com id=4031138204 responseStatus=200 OK token=64_hGz-c59Using 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 ...60$ echo $FOSS_ONLY61$ [ "$FOSS_ONLY" = "1" ] && rm -rf ee/ qa/spec/ee/ qa/qa/specs/features/ee/ qa/qa/ee/ qa/qa/ee.rb62$ export GOPATH=$CI_PROJECT_DIR/.go63$ mkdir -p $GOPATH64$ source scripts/utils.sh65$ source scripts/prepare_build.sh716Using decomposed database config (config/database.yml.postgresql)717Enabling ci connection (database_tasks: false) in config/database.yml718Geo DB will be set up.719$ setup_db_user_only720CREATE ROLE721GRANT722==> 'setup_db_user_only' succeeded in 0 seconds.723$ bundle exec rake db:drop db:create db:schema:load db:migrate gitlab:db:lock_writes724Dropped database 'gitlabhq_test'725Dropped database 'gitlabhq_geo_test'726Created database 'gitlabhq_test'727Created database 'gitlabhq_geo_test'728==> 'bundle exec rake db:drop db:create db:schema:load db:migrate gitlab:db:lock_writes' succeeded in 38 seconds.729$ setup_db_praefect730SELECT pg_catalog.set_config('search_path', '', false);731CREATE DATABASE praefect_test ENCODING 'UTF8';732==> 'setup_db_praefect' succeeded in 0 seconds.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 0 seconds.739$ echo -e "\e[0Ksection_start:`date +%s`:gitaly-test-spawn[collapsed=true]\r\e[0KStarting Gitaly"843$ rspec_paralellized_job "--tag ~quarantine --tag ~zoekt"844SKIP_FLAKY_TESTS_AUTOMATICALLY: false845RETRY_FAILED_TESTS_IN_NEW_PROCESS: true846KNAPSACK_GENERATE_REPORT: true847FLAKY_RSPEC_GENERATE_REPORT: true848KNAPSACK_TEST_FILE_PATTERN: {ee/}spec/{lib/gitlab/background_migration,lib/ee/gitlab/background_migration}{,/**/}*_spec.rb849KNAPSACK_LOG_LEVEL: debug850KNAPSACK_REPORT_PATH: knapsack/rspec-ee_background_migration_pg13_single-db-ci-connection_1_2_report.json851FLAKY_RSPEC_SUITE_REPORT_PATH: rspec/flaky/report-suite.json852FLAKY_RSPEC_REPORT_PATH: rspec/flaky/all_rspec-ee_background_migration_pg13_single-db-ci-connection_1_2_report.json853NEW_FLAKY_RSPEC_REPORT_PATH: rspec/flaky/new_rspec-ee_background_migration_pg13_single-db-ci-connection_1_2_report.json854SKIPPED_FLAKY_TESTS_REPORT_PATH: rspec/flaky/skipped_flaky_tests_rspec-ee_background_migration_pg13_single-db-ci-connection_1_2_report.txt855CRYSTALBALL: 856Knapsack report generator started!857Run options: exclude {:quarantine=>true, :zoekt=>true}858Test environment set up in 0.762087364 seconds859Gitlab::BackgroundMigration::MigrateApproverToApprovalRules860 sync approval rule and its members861 merge request862 behaves like sync approval member863 when member in old schema but not in new schema864 creates in new schema865 when rule is not created yet866 creates rule in new schema867 when member not in old schema but in new schema868 removes in new schema869 when approver has user_id which no longer exists870 ignores broken reference when assigning871 when project rule is present872 sets MR rule's source to project rule without duplication873 when project rule is absent874 has MR rule's source as nil875 when approvals_before_merge is nil876 updates with project's approvals_required877 when approvals_before_merge is too big878 caps at allowed maximum879 when approver is no longer overwritten880 removes rule881 #sync_code_owners_with_approvers882 when merge request is merged883 does nothing884 when code owner rule does not exist885 creates rule886 when code owner rule exists887 reuses and updates existing rule888 when there is no code owner889 removes rule890 project891 behaves like sync approval member892 when member in old schema but not in new schema893 creates in new schema894 when rule is not created yet895 creates rule in new schema896 when member not in old schema but in new schema897 removes in new schema898 when approver has user_id which no longer exists899 ignores broken reference when assigning900 when target is deleted901 does not err902 when project has no repository903 does not err904Gitlab::BackgroundMigration::BackfillIterationCadenceIdForBoards905 up906 when group does not have cadences907 back-fill project boards908 behaves like resets iteration_id to nil909 resets iteration_id to nil910 with pagination911 expect batched updates912 behaves like resets iteration_id to nil913 resets iteration_id to nil914 back-fill group boards915 behaves like resets iteration_id to nil916 resets iteration_id to nil917 with pagination918 expect batched updates919 behaves like resets iteration_id to nil920 resets iteration_id to nil921 when group has cadences922 when group does not have cadences923 back-fill project boards924 behaves like sets the correct cadence id925 sets correct cadence id926 with pagination927 expect batched updates928 behaves like sets the correct cadence id929 sets correct cadence id930 back-fill group boards931 behaves like sets the correct cadence id932 sets correct cadence id933 with pagination934 expect batched updates935 behaves like sets the correct cadence id936 sets correct cadence id937 down938 resets cadence id to nil939 batched940 resets cadence id to nil941Gitlab::BackgroundMigration::RemoveAllTraceExpirationDates942 on gitlab.com943 sets expire_at for artifacts in range to nil944 does not change expire_at timestamps that are not set to midnight945 does not change expire_at timestamps that are set to midnight on a day other than the 22nd946 does not touch artifacts outside id range947 does not touch artifacts outside date range948Gitlab::BackgroundMigration::RecalculateVulnerabilityFindingSignaturesForFindings949 updates finding signatures950 logs error on unexpected failure951 logs error on malformed JSON failure952 drops invalid row when metadata is missing tracking953 drops invalid row when tracking signatures data is malformed954Gitlab::BackgroundMigration::PopulateResolvedOnDefaultBranchColumn955 #perform956 calls `PopulateResolvedOnDefaultBranchColumnForProject.perform` for each project by given ids957 EE::Gitlab::BackgroundMigration::PopulateResolvedOnDefaultBranchColumn::PopulateResolvedOnDefaultBranchColumnForProject958 .perform959 instantiates the utility service object and calls #perform on it960 #perform961 sets `resolved_on_default_branch` attribute of disappeared vulnerabilities962Gitlab::BackgroundMigration::BackfillProjectStatisticsContainerRepositorySize963 #filter_batch964 filters out container repositories out of scope965 #perform966 when project_statistics backfill runs967 when project_statistics.container_registry_size is zero968 calls deduplicated_size API969 when the Container Registry deduplicated_size is non-zero970 schedules Namespaces::ScheduleAggregationWorker971 when the Container Registry deduplicated_size is zero972 does not schedules Namespaces::ScheduleAggregationWorker973 when project_statistics.container_registry_size is non-zero974 doesn't call deduplicated_size API and schedules Namespaces::ScheduleAggregationWorker975Gitlab::BackgroundMigration::CreateSecuritySetting976 #perform977 adds setting object for existing projects978Gitlab::BackgroundMigration::PopulateLatestPipelineIds979 #perform980 sets the latest_pipeline_id981Gitlab::BackgroundMigration::DeleteInvalidEpicIssues982 #perform983 removes invalid epic issues984 logs deleted records985 prevents N+1 queries986Gitlab::BackgroundMigration::PopulateNamespaceStatistics987 creates/updates all namespace_statistics and update root storage statistics988 when group wikis are not enabled989 does not update wiki stats990 when just a stat is passed991 calls the statistics update service with just that stat992Gitlab::BackgroundMigration::MigrateApproverToApprovalRulesInBatch993 when there is no more MigrateApproverToApprovalRules jobs994 migrates individual target995Gitlab::BackgroundMigration::BackfillEpicCacheCounts996 # order random997 #perform998 updates cache counts recursively from most nested subepics999 when there are too many nested levels1000 aborts update when reaching max depth and logs error1001Gitlab::BackgroundMigration::BackfillNamespaceLdapSettings1002 # order random1003 #perform1004 migrates LDAP sync values by batch1005 does not create multiple entries or conflict on existing record1006Gitlab::BackgroundMigration::BackfillComplianceViolations1007 # order random1008 migrates data from merge_requests and merge_request_metrics into compliance violations table1009Gitlab::BackgroundMigration::FixSecurityScanStatuses1010 # order random1011 #perform1012 fixes the scan statuses1013Knapsack report was generated. Preview:1014{1015 "ee/spec/lib/ee/gitlab/background_migration/migrate_approver_to_approval_rules_spec.rb": 74.03413628300041,1016 "ee/spec/lib/ee/gitlab/background_migration/backfill_iteration_cadence_id_for_boards_spec.rb": 51.15833752300023,1017 "ee/spec/lib/gitlab/background_migration/remove_all_trace_expiration_dates_spec.rb": 38.932879536001565,1018 "ee/spec/lib/ee/gitlab/background_migration/recalculate_vulnerability_finding_signatures_for_findings_spec.rb": 35.967355828999644,1019 "ee/spec/lib/ee/gitlab/background_migration/populate_resolved_on_default_branch_column_spec.rb": 31.484745052999642,1020 "ee/spec/lib/ee/gitlab/background_migration/backfill_project_statistics_container_repository_size_spec.rb": 33.85431425600109,1021 "ee/spec/lib/ee/gitlab/background_migration/create_security_setting_spec.rb": 28.181464493998647,1022 "ee/spec/lib/ee/gitlab/background_migration/populate_latest_pipeline_ids_spec.rb": 28.695755665999968,1023 "ee/spec/lib/ee/gitlab/background_migration/delete_invalid_epic_issues_spec.rb": 8.85225110600004,1024 "ee/spec/lib/ee/gitlab/background_migration/populate_namespace_statistics_spec.rb": 8.690935693000938,1025 "ee/spec/lib/ee/gitlab/background_migration/migrate_approver_to_approval_rules_in_batch_spec.rb": 7.046143248999215,1026 "ee/spec/lib/ee/gitlab/background_migration/backfill_epic_cache_counts_spec.rb": 6.231739429998925,1027 "ee/spec/lib/ee/gitlab/background_migration/backfill_namespace_ldap_settings_spec.rb": 5.073471260000588,1028 "ee/spec/lib/ee/gitlab/background_migration/backfill_compliance_violations_spec.rb": 3.1907448820002173,1029 "ee/spec/lib/ee/gitlab/background_migration/fix_security_scan_statuses_spec.rb": 4.2481674329992531030}1031Knapsack global time execution for tests: 06m 05s1032Finished in 11 minutes 14 seconds (files took 1 minute 8.17 seconds to load)103366 examples, 0 failures1034Randomized with seed 389641035[TEST PROF INFO] Time spent in factories: 00:36.090 (5.14% of total time)1036RSpec exited with 0.1037No examples to retry, congrats!1039Not uploading cache ruby-gems-debian-bullseye-ruby-3.0-16 due to policy1040Not uploading cache gitaly-ruby-gems-debian-bullseye-ruby-3.0-16 due to policy1042Uploading artifacts...1043coverage/: found 5 matching artifact files and directories 1044crystalball/: found 2 matching artifact files and directories 1045WARNING: deprecations/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/gitlab-org/gitlab) 1046knapsack/: found 3 matching artifact files and directories 1047WARNING: query_recorder/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/gitlab-org/gitlab) 1048rspec/: found 14 matching artifact files and directories 1049WARNING: tmp/capybara/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/gitlab-org/gitlab) 1050log/*.log: found 13 matching artifact files and directories 1051WARNING: Upload request redirected location=https://gitlab.com/api/v4/jobs/4031139193/artifacts?artifact_format=zip&artifact_type=archive&expire_in=31d new-url=https://gitlab.com1052WARNING: Retrying... context=artifacts-uploader error=request redirected1053Uploading artifacts as "archive" to coordinator... 201 Created id=4031139193 responseStatus=201 Created token=64_hGz-c1054Uploading artifacts...1055rspec/junit_rspec.xml: found 1 matching artifact files and directories 1056WARNING: Upload request redirected location=https://gitlab.com/api/v4/jobs/4031139193/artifacts?artifact_format=gzip&artifact_type=junit&expire_in=31d new-url=https://gitlab.com1057WARNING: Retrying... context=artifacts-uploader error=request redirected1058Uploading artifacts as "junit" to coordinator... 201 Created id=4031139193 responseStatus=201 Created token=64_hGz-c1060Job succeeded