rspec background_migration pg14 2/4
Passed Started
by
@edith007

Siddharth Asthana
1Running with gitlab-runner 16.1.0~beta.59.g83c66823 (83c66823)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.20-rust-1.65-node-18.17-postgresql-14:rubygems-3.4-git-2.36-lfs-2.9-chrome-113-yarn-1.22-graphicsmagick-1.3.36 ...7Starting service registry.gitlab.com/gitlab-org/gitlab-build-images:postgres-14-pgvector-0.4.1 ...8Authenticating with credentials from job payload (GitLab Registry)9Pulling docker image registry.gitlab.com/gitlab-org/gitlab-build-images:postgres-14-pgvector-0.4.1 ...10Using docker image sha256: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:d0675d033b87382205d08b598a004a99a1f6c4bd377cc86bb6df8957ce7dbb1c for redis:6.2-alpine with digest redis@sha256:740b5c973d1c9eea6e124a3905ba73d32354d0549f98ccc9e67af1af2a9ba478 ...20Waiting for services to be up and running (timeout 30 seconds)...21Authenticating with credentials from job payload (GitLab Registry)22Pulling docker image registry.gitlab.com/gitlab-org/gitlab-build-images/debian-bullseye-ruby-3.0.patched-golang-1.20-rust-1.65-node-18.17-postgresql-14:rubygems-3.4-git-2.36-lfs-2.9-chrome-113-yarn-1.22-graphicsmagick-1.3.36 ...23Using docker image sha256:24a9e92645b17c878623efd51b7564f81e480bd281e94d7f33971082e0ca80e0 for registry.gitlab.com/gitlab-org/gitlab-build-images/debian-bullseye-ruby-3.0.patched-golang-1.20-rust-1.65-node-18.17-postgresql-14:rubygems-3.4-git-2.36-lfs-2.9-chrome-113-yarn-1.22-graphicsmagick-1.3.36 with digest registry.gitlab.com/gitlab-org/gitlab-build-images/debian-bullseye-ruby-3.0.patched-golang-1.20-rust-1.65-node-18.17-postgresql-14@sha256:ca349d228348f199cb57f574476584f42aca338747393ed93a9032a0261afc4d ...25Running on runner-8zcxmppt-project-27783254-concurrent-0 via runner-8zcxmppt-shared-gitlab-org-1691907045-b7c63ac5...27Fetching changes with git depth set to 20...28Initialized empty Git repository in /builds/edith007/gitlab/.git/29Created fresh repository.30Checking out 199b254b as detached HEAD (ref is master)...31Skipping Git submodules setup32$ git remote set-url origin "${CI_REPOSITORY_URL}"34Checking cache for ruby-gems-debian-bullseye-ruby-3.0-protected...35WARNING: file does not exist 36Failed to extract cache38Downloading artifacts for compile-test-assets (4863613909)...39Downloading artifacts from coordinator... ok host=storage.googleapis.com id=4863613909 responseStatus=200 OK token=64_4NZ-L40Downloading artifacts for retrieve-tests-metadata (4863613915)...41Downloading artifacts from coordinator... ok host=storage.googleapis.com id=4863613915 responseStatus=200 OK token=64_4NZ-L42Downloading artifacts for setup-test-env (4863613912)...43Downloading artifacts from coordinator... ok host=storage.googleapis.com id=4863613912 responseStatus=200 OK token=64_4NZ-L45Using docker image sha256:24a9e92645b17c878623efd51b7564f81e480bd281e94d7f33971082e0ca80e0 for registry.gitlab.com/gitlab-org/gitlab-build-images/debian-bullseye-ruby-3.0.patched-golang-1.20-rust-1.65-node-18.17-postgresql-14:rubygems-3.4-git-2.36-lfs-2.9-chrome-113-yarn-1.22-graphicsmagick-1.3.36 with digest registry.gitlab.com/gitlab-org/gitlab-build-images/debian-bullseye-ruby-3.0.patched-golang-1.20-rust-1.65-node-18.17-postgresql-14@sha256:ca349d228348f199cb57f574476584f42aca338747393ed93a9032a0261afc4d ...46$ echo $FOSS_ONLY47$ [ "$FOSS_ONLY" = "1" ] && rm -rf ee/ qa/spec/ee/ qa/qa/specs/features/ee/ qa/qa/ee/ qa/qa/ee.rb48$ export GOPATH=$CI_PROJECT_DIR/.go49$ mkdir -p $GOPATH50$ source scripts/utils.sh51$ source scripts/prepare_build.sh1362Using decomposed database config (config/database.yml.decomposed-postgresql)1363Geo DB won't be set up.1364Embedding DB won't be set up.1376$ source ./scripts/rspec_helpers.sh1377$ run_timed_command "gem install knapsack --no-document"1378$ gem install knapsack --no-document1379Successfully installed knapsack-4.0.013801 gem installed1381==> 'gem install knapsack --no-document' succeeded in 1 seconds.1382$ section_start "gitaly-test-spawn" "Spawning Gitaly"; scripts/gitaly-test-spawn; section_end "gitaly-test-spawn"1387$ export RSPEC_SKIPPED_TESTS_REPORT_PATH="rspec/skipped_tests-${CI_JOB_ID}.txt"1388$ export RSPEC_RETRIED_TESTS_REPORT_PATH="rspec/retried_tests-${CI_JOB_ID}.txt"1389$ rspec_paralellized_job "--fail-fast=${RSPEC_FAIL_FAST_THRESHOLD} --tag ~quarantine --tag ~zoekt --tag ~click_house"1390SKIP_FLAKY_TESTS_AUTOMATICALLY: 1391RETRY_FAILED_TESTS_IN_NEW_PROCESS: true1392KNAPSACK_GENERATE_REPORT: true1393FLAKY_RSPEC_GENERATE_REPORT: true1394KNAPSACK_TEST_FILE_PATTERN: spec/{lib/gitlab/background_migration,lib/ee/gitlab/background_migration}{,/**/}*_spec.rb1395KNAPSACK_LOG_LEVEL: debug1396KNAPSACK_REPORT_PATH: knapsack/rspec_background_migration_pg14_2_4_report.json1397FLAKY_RSPEC_SUITE_REPORT_PATH: rspec/flaky/report-suite.json1398FLAKY_RSPEC_REPORT_PATH: rspec/flaky/all_rspec_background_migration_pg14_2_4_report.json1399NEW_FLAKY_RSPEC_REPORT_PATH: rspec/flaky/new_rspec_background_migration_pg14_2_4_report.json1400RSPEC_SKIPPED_TESTS_REPORT_PATH: rspec/skipped_tests-4863614007.txt1401CRYSTALBALL: 1402RSPEC_TESTS_MAPPING_ENABLED: 1403RSPEC_TESTS_FILTER_FILE: 1404Shell set options (set -o) enabled:1405braceexpand on1406hashall on1407interactive-comments on1408pipefail on1409Knapsack report generator started!1410/builds/edith007/gitlab/ee/app/services/remote_development/service_response_factory.rb:41: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1411/builds/edith007/gitlab/ee/app/services/remote_development/workspaces/create_service.rb:28: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1412/builds/edith007/gitlab/ee/app/services/remote_development/workspaces/reconcile_service.rb:38: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1413/builds/edith007/gitlab/ee/app/services/remote_development/workspaces/update_service.rb:28: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1414/builds/edith007/gitlab/ee/lib/remote_development/agent_config/main.rb:32: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1415/builds/edith007/gitlab/ee/lib/remote_development/agent_config/updater.rb:11: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1416/builds/edith007/gitlab/ee/lib/remote_development/workspaces/create/authorizer.rb:12: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1417/builds/edith007/gitlab/ee/lib/remote_development/workspaces/create/authorizer.rb:13: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1418/builds/edith007/gitlab/ee/lib/remote_development/workspaces/create/creator.rb:17: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1419/builds/edith007/gitlab/ee/lib/remote_development/workspaces/create/creator.rb:24: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1420/builds/edith007/gitlab/ee/lib/remote_development/workspaces/create/creator.rb:25: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1421/builds/edith007/gitlab/ee/lib/remote_development/workspaces/create/creator.rb:28: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1422/builds/edith007/gitlab/ee/lib/remote_development/workspaces/create/devfile_fetcher.rb:15: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1423/builds/edith007/gitlab/ee/lib/remote_development/workspaces/create/devfile_fetcher.rb:16: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1424/builds/edith007/gitlab/ee/lib/remote_development/workspaces/create/devfile_flattener.rb:12: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1425/builds/edith007/gitlab/ee/lib/remote_development/workspaces/create/editor_component_injector.rb:12: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1426/builds/edith007/gitlab/ee/lib/remote_development/workspaces/create/editor_component_injector.rb:17: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1427/builds/edith007/gitlab/ee/lib/remote_development/workspaces/create/editor_component_injector.rb:18: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1428/builds/edith007/gitlab/ee/lib/remote_development/workspaces/create/post_flatten_devfile_validator.rb:43: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1429/builds/edith007/gitlab/ee/lib/remote_development/workspaces/create/post_flatten_devfile_validator.rb:54: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1430/builds/edith007/gitlab/ee/lib/remote_development/workspaces/create/post_flatten_devfile_validator.rb:102: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1431/builds/edith007/gitlab/ee/lib/remote_development/workspaces/create/post_flatten_devfile_validator.rb:126: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1432/builds/edith007/gitlab/ee/lib/remote_development/workspaces/create/post_flatten_devfile_validator.rb:159: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1433/builds/edith007/gitlab/ee/lib/remote_development/workspaces/create/post_flatten_devfile_validator.rb:202: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1434/builds/edith007/gitlab/ee/lib/remote_development/workspaces/create/post_flatten_devfile_validator.rb:235: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1435/builds/edith007/gitlab/ee/lib/remote_development/workspaces/create/pre_flatten_devfile_validator.rb:24: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1436/builds/edith007/gitlab/ee/lib/remote_development/workspaces/create/pre_flatten_devfile_validator.rb:52: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1437/builds/edith007/gitlab/ee/lib/remote_development/workspaces/create/project_cloner_component_injector.rb:12: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1438/builds/edith007/gitlab/ee/lib/remote_development/workspaces/create/project_cloner_component_injector.rb:17: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1439/builds/edith007/gitlab/ee/lib/remote_development/workspaces/create/project_cloner_component_injector.rb:18: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1440/builds/edith007/gitlab/ee/lib/remote_development/workspaces/create/project_cloner_component_injector.rb:23: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1441/builds/edith007/gitlab/ee/lib/remote_development/workspaces/create/volume_component_injector.rb:12: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1442/builds/edith007/gitlab/ee/lib/remote_development/workspaces/create/volume_component_injector.rb:13: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1443/builds/edith007/gitlab/ee/lib/remote_development/workspaces/create/volume_component_injector.rb:14: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1444/builds/edith007/gitlab/ee/lib/remote_development/workspaces/reconcile/main.rb:43: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1445/builds/edith007/gitlab/ee/lib/remote_development/workspaces/update/authorizer.rb:12: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1446/builds/edith007/gitlab/ee/lib/remote_development/workspaces/update/updater.rb:12: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1447/builds/edith007/gitlab/ee/lib/remote_development/workspaces/reconcile/input/agent_infos_observer.rb:15: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1448/builds/edith007/gitlab/ee/lib/remote_development/workspaces/reconcile/input/params_extractor.rb:14: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1449/builds/edith007/gitlab/ee/lib/remote_development/workspaces/reconcile/input/params_extractor.rb:16: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1450/builds/edith007/gitlab/ee/lib/remote_development/workspaces/reconcile/input/params_to_infos_converter.rb:14: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1451/builds/edith007/gitlab/ee/lib/remote_development/workspaces/reconcile/input/params_validator.rb:15: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1452/builds/edith007/gitlab/ee/lib/remote_development/workspaces/reconcile/output/rails_infos_observer.rb:11: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1453/builds/edith007/gitlab/ee/lib/remote_development/workspaces/reconcile/output/workspaces_to_rails_infos_converter.rb:15: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1454/builds/edith007/gitlab/ee/lib/remote_development/workspaces/reconcile/persistence/orphaned_workspaces_observer.rb:12: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1455/builds/edith007/gitlab/ee/lib/remote_development/workspaces/reconcile/persistence/workspaces_from_agent_infos_updater.rb:15: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1456/builds/edith007/gitlab/ee/lib/remote_development/workspaces/reconcile/persistence/workspaces_to_be_returned_finder.rb:16: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1457/builds/edith007/gitlab/ee/lib/remote_development/workspaces/reconcile/persistence/workspaces_to_be_returned_updater.rb:11: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!1458Run options: exclude {:quarantine=>true, :zoekt=>true, :click_house=>true}1459Test environment set up in 0.737878701 seconds1460Gitlab::BackgroundMigration::BackfillEnvironmentTiers1461 # order random1462 #perform1463 backfill tiers for all environments in range1464 same behavior with guess tier1465 name: "review/feature", tier: 31466 backfill tiers for all environments in range1467 name: "review/product", tier: 31468 backfill tiers for all environments in range1469 name: "DEV", tier: 31470 backfill tiers for all environments in range1471 name: "development", tier: 31472 backfill tiers for all environments in range1473 name: "trunk", tier: 31474 backfill tiers for all environments in range1475 name: "dev", tier: 31476 backfill tiers for all environments in range1477 name: "review/app", tier: 31478 backfill tiers for all environments in range1479 name: "PRODUCTION", tier: 01480 backfill tiers for all environments in range1481 name: "prod", tier: 01482 backfill tiers for all environments in range1483 name: "prod-east-2", tier: 01484 backfill tiers for all environments in range1485 name: "us-prod-east", tier: 01486 backfill tiers for all environments in range1487 name: "fe-production", tier: 01488 backfill tiers for all environments in range1489 name: "test", tier: 21490 backfill tiers for all environments in range1491 name: "TEST", tier: 21492 backfill tiers for all environments in range1493 name: "testing", tier: 21494 backfill tiers for all environments in range1495 name: "testing-prd", tier: 21496 backfill tiers for all environments in range1497 name: "acceptance-testing", tier: 21498 backfill tiers for all environments in range1499 name: "production-test", tier: 21500 backfill tiers for all environments in range1501 name: "test-production", tier: 21502 backfill tiers for all environments in range1503 name: "QC", tier: 21504 backfill tiers for all environments in range1505 name: "qa-env-2", tier: 21506 backfill tiers for all environments in range1507 name: "gstg", tier: 11508 backfill tiers for all environments in range1509 name: "staging", tier: 11510 backfill tiers for all environments in range1511 name: "stage", tier: 11512 backfill tiers for all environments in range1513 name: "Model", tier: 11514 backfill tiers for all environments in range1515 name: "MODL", tier: 11516 backfill tiers for all environments in range1517 name: "Pre-production", tier: 11518 backfill tiers for all environments in range1519 name: "pre", tier: 11520 backfill tiers for all environments in range1521 name: "Demo", tier: 11522 backfill tiers for all environments in range1523 name: "staging", tier: 11524 backfill tiers for all environments in range1525 name: "pre-prod", tier: 11526 backfill tiers for all environments in range1527 name: "blue-kit-stage", tier: 11528 backfill tiers for all environments in range1529 name: "nonprod", tier: 11530 backfill tiers for all environments in range1531 name: "nonlive", tier: 11532 backfill tiers for all environments in range1533 name: "non-prod", tier: 11534 backfill tiers for all environments in range1535 name: "non-live", tier: 11536 backfill tiers for all environments in range1537 name: "gprd", tier: 01538 backfill tiers for all environments in range1539 name: "gprd-cny", tier: 01540 backfill tiers for all environments in range1541 name: "production", tier: 01542 backfill tiers for all environments in range1543 name: "Production", tier: 01544 backfill tiers for all environments in range1545 name: "PRODUCTION", tier: 01546 backfill tiers for all environments in range1547 name: "Production/eu", tier: 01548 backfill tiers for all environments in range1549 name: "production/eu", tier: 01550 backfill tiers for all environments in range1551 name: "PRODUCTION/EU", tier: 01552 backfill tiers for all environments in range1553 name: "productioneu", tier: 01554 backfill tiers for all environments in range1555 name: "store-produce", tier: 01556 backfill tiers for all environments in range1557 name: "unproductive", tier: 01558 backfill tiers for all environments in range1559 name: "production/www.gitlab.com", tier: 01560 backfill tiers for all environments in range1561 name: "prod", tier: 01562 backfill tiers for all environments in range1563 name: "PROD", tier: 01564 backfill tiers for all environments in range1565 name: "Live", tier: 01566 backfill tiers for all environments in range1567 name: "canary", tier: 41568 backfill tiers for all environments in range1569 name: "other", tier: 41570 backfill tiers for all environments in range1571 name: "EXP", tier: 41572 backfill tiers for all environments in range1573 name: "something-else", tier: 41574 backfill tiers for all environments in range1575I, [2023-08-13T07:14:34.655640 #45746] INFO -- : Database: 'main', Table: 'ci_runner_machines': Lock Writes1576I, [2023-08-13T07:14:41.054193 #45746] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes1577I, [2023-08-13T07:14:41.316048 #45746] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes1578I, [2023-08-13T07:14:52.672292 #45746] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes1579I, [2023-08-13T07:14:55.870672 #45746] INFO -- : Database: 'main', Table: 'p_ci_builds': Lock Writes1580I, [2023-08-13T07:14:55.871804 #45746] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Lock timeout is set", :current_iteration=>1, :lock_timeout_in_ms=>100}1581I, [2023-08-13T07:14:55.872583 #45746] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Migration finished", :current_iteration=>1, :lock_timeout_in_ms=>100}1582I, [2023-08-13T07:15:09.619227 #45746] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes1583Gitlab::BackgroundMigration::RemoveSelfManagedWikiNotes1584 removes all wiki notes1585I, [2023-08-13T07:16:46.900706 #45746] INFO -- : Database: 'main', Table: 'ci_runner_machines': Lock Writes1586I, [2023-08-13T07:16:53.220825 #45746] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes1587I, [2023-08-13T07:16:53.471401 #45746] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes1588I, [2023-08-13T07:17:05.409569 #45746] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes1589I, [2023-08-13T07:17:09.105653 #45746] INFO -- : Database: 'main', Table: 'p_ci_builds': Lock Writes1590I, [2023-08-13T07:17:09.106798 #45746] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Lock timeout is set", :current_iteration=>1, :lock_timeout_in_ms=>100}1591I, [2023-08-13T07:17:09.107567 #45746] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Migration finished", :current_iteration=>1, :lock_timeout_in_ms=>100}1592I, [2023-08-13T07:17:24.188502 #45746] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes1593Gitlab::BackgroundMigration::SetLegacyOpenSourceLicenseAvailableForNonPublicProjects1594 sets `legacy_open_source_license_available` attribute to false for non-public projects1595I, [2023-08-13T07:18:52.999353 #45746] INFO -- : Database: 'main', Table: 'ci_runner_machines': Lock Writes1596I, [2023-08-13T07:18:59.307983 #45746] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes1597I, [2023-08-13T07:18:59.547035 #45746] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes1598I, [2023-08-13T07:19:10.843065 #45746] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes1599I, [2023-08-13T07:19:14.020108 #45746] INFO -- : Database: 'main', Table: 'p_ci_builds': Lock Writes1600I, [2023-08-13T07:19:14.021244 #45746] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Lock timeout is set", :current_iteration=>1, :lock_timeout_in_ms=>100}1601I, [2023-08-13T07:19:14.022220 #45746] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Migration finished", :current_iteration=>1, :lock_timeout_in_ms=>100}1602I, [2023-08-13T07:19:28.361606 #45746] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes1603Gitlab::BackgroundMigration::DestroyInvalidMembers1604 # order random1605 logs IDs of deleted records1606 removes invalid memberships but keeps valid ones1607 tracks timings of queries1608I, [2023-08-13T07:20:53.853120 #45746] INFO -- : Database: 'main', Table: 'ci_runner_machines': Lock Writes1609I, [2023-08-13T07:20:59.962144 #45746] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes1610I, [2023-08-13T07:21:00.198827 #45746] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes1611I, [2023-08-13T07:21:11.616151 #45746] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes1612I, [2023-08-13T07:21:14.748290 #45746] INFO -- : Database: 'main', Table: 'p_ci_builds': Lock Writes1613I, [2023-08-13T07:21:14.749460 #45746] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Lock timeout is set", :current_iteration=>1, :lock_timeout_in_ms=>100}1614I, [2023-08-13T07:21:14.750244 #45746] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Migration finished", :current_iteration=>1, :lock_timeout_in_ms=>100}1615I, [2023-08-13T07:21:30.444541 #45746] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes1616Gitlab::BackgroundMigration::DestroyInvalidProjectMembers1617 # order random1618 removes invalid memberships but keeps valid ones1619 tracks timings of queries1620 logs IDs of deleted records1621I, [2023-08-13T07:23:01.334574 #45746] INFO -- : Database: 'main', Table: 'ci_runner_machines': Lock Writes1622I, [2023-08-13T07:23:08.116376 #45746] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes1623I, [2023-08-13T07:23:08.360355 #45746] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes1624I, [2023-08-13T07:23:19.746919 #45746] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes1625I, [2023-08-13T07:23:23.955141 #45746] INFO -- : Database: 'main', Table: 'p_ci_builds': Lock Writes1626I, [2023-08-13T07:23:23.956256 #45746] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Lock timeout is set", :current_iteration=>1, :lock_timeout_in_ms=>100}1627I, [2023-08-13T07:23:23.956998 #45746] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Migration finished", :current_iteration=>1, :lock_timeout_in_ms=>100}1628I, [2023-08-13T07:23:39.263414 #45746] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes1629Gitlab::BackgroundMigration::BackfillProjectNamespaceOnIssues1630 # order random1631 tracks timings of queries1632 backfills namespace_id for the selected records1633 when database timeouts1634 error_class: ActiveRecord::StatementTimeout1635 retries on timeout error1636 error_class: ActiveRecord::QueryCanceled1637 retries on timeout error1638The application_settings (main) table has 1224 columns.1639Recreating the database1640Dropped database 'gitlabhq_test'1641Dropped database 'gitlabhq_test_ci'1642Created database 'gitlabhq_test'1643Created database 'gitlabhq_test_ci'1644main: == [advisory_lock_connection] object_id: 154437660, pg_backend_pid: 3011645main: == [advisory_lock_connection] object_id: 154437660, pg_backend_pid: 3011646ci: == [advisory_lock_connection] object_id: 154453620, pg_backend_pid: 3031647ci: == [advisory_lock_connection] object_id: 154453620, pg_backend_pid: 3031648Databases re-creation done in 11.85818062799991649Gitlab::BackgroundMigration::BackfillResourceLinkEvents1650 # order random1651 #perform1652 does nothing when relevant notes do not exist1653 for 'relate_to_parent' system_note_metadata record1654 when issue_type_name is `issue`1655 behaves like a resource_link_event is correctly created1656 correctly backfills a resource_link_event record1657 when issue_type_name is not `issue`1658 behaves like a resource_link_event is correctly created1659 correctly backfills a resource_link_event record1660 for 'unrelate_to_parent' system_note_metadata record1661 when issue_type_name is `issue`1662 behaves like a resource_link_event is correctly created1663 correctly backfills a resource_link_event record1664 when issue_type_name is not `issue`1665 behaves like a resource_link_event is correctly created1666 correctly backfills a resource_link_event record1667 when a backfilled note exists1668 correctly backfills the system notes without those that have been backfilled1669 with unexpected note content1670 when note iid is prefixed1671 does not create resource_link_events record1672I, [2023-08-13T07:25:58.290747 #45746] INFO -- : Database: 'main', Table: 'p_ci_builds': Lock Writes1673I, [2023-08-13T07:25:58.292051 #45746] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Lock timeout is set", :current_iteration=>1, :lock_timeout_in_ms=>100}1674I, [2023-08-13T07:25:58.292787 #45746] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Migration finished", :current_iteration=>1, :lock_timeout_in_ms=>100}1675I, [2023-08-13T07:26:11.931923 #45746] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes1676Gitlab::BackgroundMigration::BackfillReleasesAuthorId1677 # order random1678 backfills `author_id` for the selected records1679 tracks timings of queries1680I, [2023-08-13T07:27:23.377786 #45746] INFO -- : Database: 'main', Table: 'ci_runner_machines': Lock Writes1681I, [2023-08-13T07:27:30.005023 #45746] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes1682I, [2023-08-13T07:27:30.272194 #45746] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes1683I, [2023-08-13T07:27:42.053803 #45746] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes1684I, [2023-08-13T07:27:46.385781 #45746] INFO -- : Database: 'main', Table: 'p_ci_builds': Lock Writes1685I, [2023-08-13T07:27:46.387015 #45746] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Lock timeout is set", :current_iteration=>1, :lock_timeout_in_ms=>100}1686I, [2023-08-13T07:27:46.387821 #45746] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Migration finished", :current_iteration=>1, :lock_timeout_in_ms=>100}1687I, [2023-08-13T07:28:00.197080 #45746] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes1688Gitlab::BackgroundMigration::BackfillAdminModeScopeForPersonalAccessTokens1689 # order random1690 adds `admin_mode` scope to active personal access tokens of administrators1691I, [2023-08-13T07:29:16.276087 #45746] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes1692I, [2023-08-13T07:29:16.538675 #45746] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes1693I, [2023-08-13T07:29:27.908019 #45746] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes1694I, [2023-08-13T07:29:31.345139 #45746] INFO -- : Database: 'main', Table: 'p_ci_builds': Lock Writes1695I, [2023-08-13T07:29:31.346259 #45746] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Lock timeout is set", :current_iteration=>1, :lock_timeout_in_ms=>100}1696I, [2023-08-13T07:29:31.347030 #45746] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Migration finished", :current_iteration=>1, :lock_timeout_in_ms=>100}1697I, [2023-08-13T07:29:46.445375 #45746] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes1698Gitlab::BackgroundMigration::MigrateHumanUserType1699 # order random1700 perform1701 updates user with `nil` user type only1702I, [2023-08-13T07:30:54.575233 #45746] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes1703I, [2023-08-13T07:30:58.860035 #45746] INFO -- : Database: 'main', Table: 'p_ci_builds': Lock Writes1704I, [2023-08-13T07:30:58.861378 #45746] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Lock timeout is set", :current_iteration=>1, :lock_timeout_in_ms=>100}1705I, [2023-08-13T07:30:58.862157 #45746] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Migration finished", :current_iteration=>1, :lock_timeout_in_ms=>100}1706I, [2023-08-13T07:31:14.524458 #45746] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes1707Gitlab::BackgroundMigration::BackfillProjectRepositories1708 Gitlab::BackgroundMigration::BackfillProjectRepositories::ShardFinder1709 #find_shard_id1710 creates a new shard when it does not exist yet1711 returns the shard when it exists1712 only queries the database once to retrieve shards1713 Gitlab::BackgroundMigration::BackfillProjectRepositories::Project1714 .on_hashed_storage1715 finds projects with repository on hashed storage1716 .on_legacy_storage1717 finds projects with repository on legacy storage1718 .without_project_repository1719 finds projects which do not have a projects_repositories entry1720 #disk_path1721 for projects on hashed storage1722 returns the correct disk_path1723 for projects on legacy storage1724 returns the correct disk_path1725 returns the correct disk_path using the route entry1726 raises OrphanedNamespaceError when any parent namespace does not exist1727Gitlab::BackgroundMigration::RemoveInvalidDeployAccessLevelGroups1728 # order random1729 #perform1730 backfill tiers for all environments in range1731I, [2023-08-13T07:33:05.978974 #45746] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes1732Gitlab::BackgroundMigration::MigrateRemediationsForVulnerabilityFindings1733 # order random1734 with remediation equals to an array of duplicated elements1735 creates new remediation1736 with same raw_metadata for different projects1737 creates new remediation for each project1738 without the presence of remediation key1739 does not create any remediation1740 with existing remediation records1741 does not create new remediation1742 with remediation equals to an array of nil element1743 does not create any remediation1744 with remediation with empty string as the diff key1745 does not create any remediation1746 with existing remediations within raw_metadata1747 creates new remediation1748 when create throws exception other than ActiveRecord::RecordNotUnique1749 rolls back all related transactions1750Gitlab::BackgroundMigration::BackfillUuidConversionColumnInVulnerabilityOccurrences1751 # order random1752 #perform1753 backfills the uuid_convert_string_to_uuid column1754 doesn't change the UUID for exisiting records1755Gitlab::BackgroundMigration::BatchingStrategies::PrimaryKeyBatchingStrategy#next_batch1756 is expected to be < Gitlab::BackgroundMigration::BatchingStrategies::BaseStrategy1757 when starting on the first batch1758 returns the bounds of the next batch1759 when additional batches remain1760 returns the bounds of the next batch1761 when on the final batch1762 returns the bounds of the next batch1763 when no additional batches remain1764 returns nil1765 when job class supports batch scope DSL1766 applies the additional scope1767 when scope has a join which makes the column name ambiguous1768 executes the correct query1769Gitlab::BackgroundMigration::RemoveBackfilledJobArtifactsExpireAt1770 # order random1771 is expected to be < Gitlab::BackgroundMigration::BatchedMigrationJob1772 #perform1773 with artifacts that has backfilled expire_at1774 removes expire_at on job artifacts that have expire_at on 00, 30 or 45 minute of 21, 22, 23 of the month1775 keeps expire_at on other job artifacts1776 with trace artifacts that has backfilled expire_at1777 removes expire_at on trace job artifacts1778Gitlab::BackgroundMigration::RenameTaskSystemNoteToChecklistItem1779 # order random1780 renames task to checklist item in task system notes that match1781 tracks timings of queries1782 updates in batches1783Gitlab::BackgroundMigration1784 .queue1785 returns background migration worker queue1786 .steal1787 when the queue contains unprocessed jobs1788 uses the coordinator to steal jobs1789 when a custom predicate is given1790 steals jobs that match the predicate1791 does not steal jobs that do not match the predicate1792 when retry_dead_jobs is true1793 steals from the dead and retry queue1794 .perform1795 uses the coordinator to perform a background migration1796 .exists?1797 uses the coordinator to find if a job exists1798 uses the coordinator to find a job does not exist1799 .remaining1800 uses the coordinator to find the number of remaining jobs1801Gitlab::BackgroundMigration::IssuesInternalIdScopeUpdater1802 # order random1803 backfills internal_ids records and removes related project records1804Gitlab::BackgroundMigration::UpdateDelayedProjectRemovalToNullForUserNamespaces1805 updates `delayed_project_removal` column to null for user namespaces1806Gitlab::BackgroundMigration::UpdateCiPipelineArtifactsUnknownLockedStatus1807 # order random1808 #perform1809 updates ci_pipeline_artifacts with unknown lock status1810Gitlab::BackgroundMigration::DeleteOrphansApprovalMergeRequestRules1811 # order random1812 #perform1813 delete only approval rules without association with the security project and report_type equals to 41814Gitlab::BackgroundMigration::BaseJob#perform1815 #perform1816 raises an error if not overridden by a subclass1817Knapsack report was generated. Preview:1818{1819 "spec/lib/gitlab/background_migration/backfill_environment_tiers_spec.rb": 144.63792777199978,1820 "spec/lib/gitlab/background_migration/remove_self_managed_wiki_notes_spec.rb": 56.3675182220004,1821 "spec/lib/gitlab/background_migration/set_legacy_open_source_license_available_for_non_public_projects_spec.rb": 51.916294906000076,1822 "spec/lib/gitlab/background_migration/destroy_invalid_members_spec.rb": 53.044847176000076,1823 "spec/lib/gitlab/background_migration/destroy_invalid_project_members_spec.rb": 56.01629586299987,1824 "spec/lib/gitlab/background_migration/backfill_project_namespace_on_issues_spec.rb": 54.84366184400005,1825 "spec/lib/gitlab/background_migration/backfill_resource_link_events_spec.rb": 42.57187210500069,1826 "spec/lib/gitlab/background_migration/backfill_releases_author_id_spec.rb": 45.74494503200003,1827 "spec/lib/gitlab/background_migration/backfill_admin_mode_scope_for_personal_access_tokens_spec.rb": 44.29463070899965,1828 "spec/lib/gitlab/background_migration/migrate_human_user_type_spec.rb": 36.49253941799998,1829 "spec/lib/gitlab/background_migration/backfill_project_repositories_spec.rb": 36.19721618499989,1830 "spec/lib/gitlab/background_migration/remove_invalid_deploy_access_level_groups_spec.rb": 30.305055623000044,1831 "spec/lib/gitlab/background_migration/migrate_remediations_for_vulnerability_findings_spec.rb": 17.74710800900084,1832 "spec/lib/gitlab/background_migration/backfill_uuid_conversion_column_in_vulnerability_occurrences_spec.rb": 17.052979430999585,1833 "spec/lib/gitlab/background_migration/batching_strategies/primary_key_batching_strategy_spec.rb": 12.205714543000795,1834 "spec/lib/gitlab/background_migration/remove_backfilled_job_artifacts_expire_at_spec.rb": 7.543626497999867,1835 "spec/lib/gitlab/background_migration/rename_task_system_note_to_checklist_item_spec.rb": 7.0140046369997435,1836 "spec/lib/gitlab/background_migration_spec.rb": 0.550231409000844,1837 "spec/lib/gitlab/background_migration/issues_internal_id_scope_updater_spec.rb": 2.1986895949994505,1838 "spec/lib/gitlab/background_migration/update_delayed_project_removal_to_null_for_user_namespaces_spec.rb": 2.0660777769999186,1839 "spec/lib/gitlab/background_migration/update_ci_pipeline_artifacts_unknown_locked_status_spec.rb": 2.144994360000055,1840 "spec/lib/gitlab/background_migration/delete_orphans_approval_merge_request_rules_spec.rb": 2.1800205179997647,1841 "spec/lib/gitlab/background_migration/base_job_spec.rb": 1.8400557180002581842}1843Knapsack global time execution for tests: 12m 04s1844Finished in 23 minutes 46 seconds (files took 1 minute 26.78 seconds to load)1845128 examples, 0 failures1846Randomized with seed 388281847[TEST PROF INFO] Time spent in factories: 00:19.510 (1.34% of total time)1848RSpec exited with 0.1849No examples to retry, congrats! 1850 Running after_script 1851Running after script...1852$ echo -e "\e[0Ksection_start:`date +%s`:report_results_section[collapsed=true]\r\e[0KReport results"1877Not uploading cache ruby-gems-debian-bullseye-ruby-3.0-protected due to policy1879Uploading artifacts...1880WARNING: auto_explain/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/edith007/gitlab) 1881coverage/: found 5 matching artifact files and directories 1882WARNING: crystalball/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/edith007/gitlab) 1883WARNING: deprecations/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/edith007/gitlab) 1884knapsack/: found 4 matching artifact files and directories 1885rspec/: found 10 matching artifact files and directories 1886WARNING: tmp/capybara/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/edith007/gitlab) 1887log/*.log: found 13 matching artifact files and directories 1888WARNING: Upload request redirected location=https://gitlab.com/api/v4/jobs/4863614007/artifacts?artifact_format=zip&artifact_type=archive&expire_in=31d new-url=https://gitlab.com1889WARNING: Retrying... context=artifacts-uploader error=request redirected1890Uploading artifacts as "archive" to coordinator... 201 Created id=4863614007 responseStatus=201 Created token=64_4NZ-L1891Uploading artifacts...1892rspec/rspec-*.xml: found 1 matching artifact files and directories 1893WARNING: Upload request redirected location=https://gitlab.com/api/v4/jobs/4863614007/artifacts?artifact_format=gzip&artifact_type=junit&expire_in=31d new-url=https://gitlab.com1894WARNING: Retrying... context=artifacts-uploader error=request redirected1895Uploading artifacts as "junit" to coordinator... 201 Created id=4863614007 responseStatus=201 Created token=64_4NZ-L1897Job succeeded