rspec-ee background_migration pg14 2/2
Passed Started
by
@edith007

Siddharth Asthana
1Running with gitlab-runner 16.1.0~beta.59.g83c66823 (83c66823)2 on green-4.shared-gitlab-org.runners-manager.gitlab.com/default x5QiHUKw, system ID: s_b9637080a79e3 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 ...20WARNING: Service registry.gitlab.com/gitlab-org/gitlab-build-images:zoekt-ci-image-1.2 is already created. Ignoring.21WARNING: Service registry.gitlab.com/gitlab-org/gitlab-build-images:zoekt-ci-image-1.2 is already created. Ignoring.22Starting service registry.gitlab.com/gitlab-org/gitlab-build-images:zoekt-ci-image-1.2 ...23Authenticating with credentials from job payload (GitLab Registry)24Pulling docker image registry.gitlab.com/gitlab-org/gitlab-build-images:zoekt-ci-image-1.2 ...25Using docker image sha256:c635f6eed733b5c5a06d4a28aff99748c4cbefca04af192e08f10d87387c6485 for registry.gitlab.com/gitlab-org/gitlab-build-images:zoekt-ci-image-1.2 with digest registry.gitlab.com/gitlab-org/gitlab-build-images@sha256:b3cc177faa2dc274a32b66866536932c39be8578316b364363735fc0b8e1f9cb ...26Starting service elasticsearch:7.17.6 ...27Pulling docker image elasticsearch:7.17.6 ...28Using docker image sha256:5fad10241ffd65d817ed0ddfaf6e87eee1f7dc2a7db33db1047835560ea71fda for elasticsearch:7.17.6 with digest elasticsearch@sha256:6c128de5d01c0c130a806022d6bd99b3e4c27a9af5bfc33b6b81861ae117d028 ...29Waiting for services to be up and running (timeout 30 seconds)...30Authenticating with credentials from job payload (GitLab Registry)31Pulling 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 ...32Using 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 ...34Running on runner-x5qihukw-project-27783254-concurrent-0 via runner-x5qihukw-shared-gitlab-org-1691910258-ef4ca281...36Fetching changes with git depth set to 20...37Initialized empty Git repository in /builds/edith007/gitlab/.git/38Created fresh repository.39Checking out 199b254b as detached HEAD (ref is master)...40Skipping Git submodules setup41$ git remote set-url origin "${CI_REPOSITORY_URL}"43Checking cache for ruby-gems-debian-bullseye-ruby-3.0-protected...44WARNING: file does not exist 45Failed to extract cache47Downloading artifacts for compile-test-assets (4863613909)...48Downloading artifacts from coordinator... ok host=storage.googleapis.com id=4863613909 responseStatus=200 OK token=64_eG6pp49Downloading artifacts for retrieve-tests-metadata (4863613915)...50Downloading artifacts from coordinator... ok host=storage.googleapis.com id=4863613915 responseStatus=200 OK token=64_eG6pp51Downloading artifacts for setup-test-env (4863613912)...52Downloading artifacts from coordinator... ok host=storage.googleapis.com id=4863613912 responseStatus=200 OK token=64_eG6pp54Using 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 ...55$ echo $FOSS_ONLY56$ [ "$FOSS_ONLY" = "1" ] && rm -rf ee/ qa/spec/ee/ qa/qa/specs/features/ee/ qa/qa/ee/ qa/qa/ee.rb57$ export GOPATH=$CI_PROJECT_DIR/.go58$ mkdir -p $GOPATH59$ source scripts/utils.sh60$ source scripts/prepare_build.sh1371Using decomposed database config (config/database.yml.decomposed-postgresql)1372Geo DB will be set up.1373Embedding DB will be set up.1389$ source ./scripts/rspec_helpers.sh1390$ run_timed_command "gem install knapsack --no-document"1391$ gem install knapsack --no-document1392Successfully installed knapsack-4.0.013931 gem installed1394==> 'gem install knapsack --no-document' succeeded in 1 seconds.1395$ section_start "gitaly-test-spawn" "Spawning Gitaly"; scripts/gitaly-test-spawn; section_end "gitaly-test-spawn"1400$ export RSPEC_SKIPPED_TESTS_REPORT_PATH="rspec/skipped_tests-${CI_JOB_ID}.txt"1401$ export RSPEC_RETRIED_TESTS_REPORT_PATH="rspec/retried_tests-${CI_JOB_ID}.txt"1402$ rspec_paralellized_job "--fail-fast=${RSPEC_FAIL_FAST_THRESHOLD} --tag ~quarantine --tag ~zoekt --tag ~click_house"1403SKIP_FLAKY_TESTS_AUTOMATICALLY: 1404RETRY_FAILED_TESTS_IN_NEW_PROCESS: true1405KNAPSACK_GENERATE_REPORT: true1406FLAKY_RSPEC_GENERATE_REPORT: true1407KNAPSACK_TEST_FILE_PATTERN: {ee/}spec/{lib/gitlab/background_migration,lib/ee/gitlab/background_migration}{,/**/}*_spec.rb1408KNAPSACK_LOG_LEVEL: debug1409KNAPSACK_REPORT_PATH: knapsack/rspec-ee_background_migration_pg14_2_2_report.json1410FLAKY_RSPEC_SUITE_REPORT_PATH: rspec/flaky/report-suite.json1411FLAKY_RSPEC_REPORT_PATH: rspec/flaky/all_rspec-ee_background_migration_pg14_2_2_report.json1412NEW_FLAKY_RSPEC_REPORT_PATH: rspec/flaky/new_rspec-ee_background_migration_pg14_2_2_report.json1413RSPEC_SKIPPED_TESTS_REPORT_PATH: rspec/skipped_tests-4863614087.txt1414CRYSTALBALL: 1415RSPEC_TESTS_MAPPING_ENABLED: 1416RSPEC_TESTS_FILTER_FILE: 1417Shell set options (set -o) enabled:1418braceexpand on1419hashall on1420interactive-comments on1421pipefail on1422Knapsack report generator started!1423/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!1424/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!1425/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!1426/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!1427/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!1428/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!1429/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!1430/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!1431/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!1432/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!1433/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!1434/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!1435/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!1436/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!1437/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!1438/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!1439/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!1440/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!1441/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!1442/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!1443/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!1444/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!1445/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!1446/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!1447/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!1448/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!1449/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!1450/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!1451/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!1452/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!1453/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!1454/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!1455/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!1456/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!1457/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!1458/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!1459/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!1460/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!1461/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!1462/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!1463/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!1464/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!1465/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!1466/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!1467/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!1468/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!1469/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!1470/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!1471Run options: exclude {:quarantine=>true, :zoekt=>true, :click_house=>true}1472Test environment set up in 0.562639604 seconds1473Gitlab::BackgroundMigration::MigrateRequirementsToWorkItems1474 creates work items for not synced requirements1475 creates requirement work items with correct attributes1476 populates iid correctly1477 tracks iid greatest value1478I, [2023-08-13T07:16:34.792569 #45751] INFO -- : Database: 'main', Table: 'ci_runner_machines': Lock Writes1479I, [2023-08-13T07:16:40.724029 #45751] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes1480I, [2023-08-13T07:16:40.961046 #45751] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes1481I, [2023-08-13T07:16:51.807374 #45751] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes1482I, [2023-08-13T07:16:55.811981 #45751] INFO -- : Database: 'main', Table: 'p_ci_builds': Lock Writes1483I, [2023-08-13T07:16:55.813111 #45751] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Lock timeout is set", :current_iteration=>1, :lock_timeout_in_ms=>100}1484I, [2023-08-13T07:16:55.813780 #45751] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Migration finished", :current_iteration=>1, :lock_timeout_in_ms=>100}1485I, [2023-08-13T07:17:09.157273 #45751] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes1486Gitlab::BackgroundMigration::CreateVulnerabilityLinks1487 # order random1488 #perform1489 for vulnerability feedback issues1490 when a Finding has no Vulnerability1491 creates a Vulnerability from the Vulnerabilities::Finding1492 behaves like when there was a problem saving the Vulnerability1493 doesn't create a Vulnerability record1494 logs an error1495 when the feedback is associated with a non-existent issue1496 doesn't create a Vulnerability record1497 behaves like a migration creating a vulnerability issue link1498 creates a Vulnerabilities::IssueLink from the Vulnerabilities::Feedback1499 when there's only a Security::Finding1500WARNING: Active Record does not support composite primary key.1501security_findings has composite primary key. Composite primary key is ignored.1502 creates a Vulnerability from the Security::Finding1503WARNING: Active Record does not support composite primary key.1504security_findings has composite primary key. Composite primary key is ignored.1505 creates a Vulnerabilities::IssueLink from the Vulnerabilities::Feedback1506 behaves like when creating any associated record fails1507WARNING: Active Record does not support composite primary key.1508security_findings has composite primary key. Composite primary key is ignored.1509 doesn't create a Vulnerability record1510WARNING: Active Record does not support composite primary key.1511security_findings has composite primary key. Composite primary key is ignored.1512 logs an error1513 when there is a vulnerability1514 behaves like when the link is invalid1515 doesn't create a IssueLink1516 logs an error1517 behaves like a migration creating a vulnerability issue link1518 creates a Vulnerabilities::IssueLink from the Vulnerabilities::Feedback1519 for vulnerability feedback merge requests1520 when a Finding has no Vulnerability1521 creates a Vulnerability from the Vulnerabilities::Finding1522 behaves like when there was a problem saving the Vulnerability1523 doesn't create a Vulnerability record1524 logs an error1525 when the feedback is associated with a non-existent merge request1526 doesn't create a Vulnerability record1527 behaves like a migration creating a vulnerability merge request link1528 creates a Vulnerabilities::MergeRequestLink from the Vulnerabilities::Feedback1529 when there's only a Security::Finding1530WARNING: Active Record does not support composite primary key.1531security_findings has composite primary key. Composite primary key is ignored.1532 creates a Vulnerability from the Security::Finding1533WARNING: Active Record does not support composite primary key.1534security_findings has composite primary key. Composite primary key is ignored.1535 creates a Vulnerabilities::MergeRequestLink from the Vulnerabilities::Feedback1536 behaves like when creating any associated record fails1537WARNING: Active Record does not support composite primary key.1538security_findings has composite primary key. Composite primary key is ignored.1539 doesn't create a Vulnerability record1540WARNING: Active Record does not support composite primary key.1541security_findings has composite primary key. Composite primary key is ignored.1542 logs an error1543 when there is a vulnerability1544 behaves like when the link is invalid1545 doesn't create a MergeRequestLink1546 logs an error1547 behaves like a migration creating a vulnerability merge request link1548 creates a Vulnerabilities::MergeRequestLink from the Vulnerabilities::Feedback1549Gitlab::BackgroundMigration::BackfillProjectStatisticsStorageSizeWithoutUploadsSize1550 # order random1551 with many project statistics records1552 #filter_batch1553 filters out project_statistics out of scope1554 #perform1555 when project_statistics backfill runs1556 when storage_size includes uploads_size1557 removes uploads_size from storage_size1558 when storage_size does not include uploads_size1559 does not update the record1560 when not checking the namespace plan1561 does not run1562 #perform1563 coerces a null wiki_size to 01564 coerces a null snippets_size to 01565I, [2023-08-13T07:19:37.534870 #45751] INFO -- : Database: 'main', Table: 'ci_runner_machines': Lock Writes1566I, [2023-08-13T07:19:43.658713 #45751] INFO -- : Database: 'main', Table: 'p_ci_runner_machine_builds': Lock Writes1567I, [2023-08-13T07:19:43.880137 #45751] INFO -- : Database: 'main', Table: 'ci_cost_settings': Lock Writes1568I, [2023-08-13T07:19:54.680038 #45751] INFO -- : Database: 'main', Table: 'ci_editor_ai_conversation_messages': Lock Writes1569I, [2023-08-13T07:19:57.727211 #45751] INFO -- : Database: 'main', Table: 'p_ci_builds': Lock Writes1570I, [2023-08-13T07:19:57.728230 #45751] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Lock timeout is set", :current_iteration=>1, :lock_timeout_in_ms=>100}1571I, [2023-08-13T07:19:57.728952 #45751] INFO -- : {:method=>"with_lock_retries", :class=>"gitlab:db:lock_writes", :message=>"Migration finished", :current_iteration=>1, :lock_timeout_in_ms=>100}1572I, [2023-08-13T07:20:12.562728 #45751] INFO -- : Database: 'main', Table: 'p_ci_job_annotations': Lock Writes1573Gitlab::BackgroundMigration::MigrateVulnerabilitiesFeedbackToVulnerabilitiesStateTransition1574 # order random1575 #perform1576 when a Finding has no Vulnerability1577 creates a Vulnerability from the Vulnerabilities::Finding1578 creates a Vulnerabilities::StateTransition from the Vulnerabilities::Feedback1579 when there was a problem saving the Vulnerability1580 doesn't create a Vulnerability record1581 logs an error1582 when there's only a Security::Finding1583WARNING: Active Record does not support composite primary key.1584security_findings has composite primary key. Composite primary key is ignored.1585 creates a Vulnerability from the Security::Finding1586WARNING: Active Record does not support composite primary key.1587security_findings has composite primary key. Composite primary key is ignored.1588 creates a Vulnerabilities::StateTransition from the Vulnerabilities::Feedback1589 when creating any associated record fails1590WARNING: Active Record does not support composite primary key.1591security_findings has composite primary key. Composite primary key is ignored.1592 doesn't create a Vulnerability record1593WARNING: Active Record does not support composite primary key.1594security_findings has composite primary key. Composite primary key is ignored.1595 logs an error1596 behaves like a migration updating migrated_to_state_transition column1597WARNING: Active Record does not support composite primary key.1598security_findings has composite primary key. Composite primary key is ignored.1599 updates the migrated_to_state_transition column1600 when a Vulnerability is dismissed1601 creates a valid Vulnerabilities::StateTransition record for a dismissed Vulnerability1602 when the StateTransition is invalid1603 doesn't create a StateTransition1604 logs an error1605 when a Vulnerability is dismissed with a comment1606 retains the comment1607 behaves like a migration updating migrated_to_state_transition column1608 updates the migrated_to_state_transition column1609 when a Vulnerability is dismissed with too long comment1610 retains strips HTML tags and truncates the comment1611 behaves like a migration updating migrated_to_state_transition column1612 updates the migrated_to_state_transition column1613 when a Vulnerability is dismissed with a dismissal reason1614 retains the dismissal_reason1615 behaves like a migration updating migrated_to_state_transition column1616 updates the migrated_to_state_transition column1617Gitlab::BackgroundMigration::MigrateSharedVulnerabilityIdentifiers1618 # order random1619 EE::Gitlab::BackgroundMigration::MigrateSharedVulnerabilityIdentifiers::Identifier1620 ::find_or_create_id_for1621 with matching identifier1622 does not create a new identifier1623 returns the identifier ID1624 without matching identifier1625 creates a new identifier1626 returns the identifier ID1627 copies attributes1628 #perform1629 creates new identifiers1630 creates identifiers with correct attributes1631 updates associations1632 does not alter correct findings1633 does not alter correct identifiers1634 with existing identifier and matching fingerprint1635 does not create a new identifier1636 reuses the identifier1637 when finding has multiple identifiers1638 preserves identifier count1639 corrects all affected identifiers1640 when GitLab.com1641 no-ops1642 next batch1643 is expected to equal nil1644 EE::Gitlab::BackgroundMigration::MigrateSharedVulnerabilityIdentifiers::Finding1645 .to_process1646 returns affected occurrences1647Gitlab::BackgroundMigration::BackfillMissingVulnerabilityDismissalDetails1648 # order random1649 when the vulnerability is correctly dismissed1650 does not modify correct vulnerabilities1651 when the vulnerability is not correctly dismissed1652 applies the applicable state transition information to malformed state transitions1653 logs a succesful outcome1654 and does not have a corresponding vst1655 does not modify the vulnerability1656 logs an appropriate warning1657Gitlab::BackgroundMigration::DeleteOrphanedTransferredProjectApprovalRules1658 # order random1659 #perform1660 delete only outdated approval project rules where report_type equals to 4 and 21661 enqueues a worker to sync the affected project1662Gitlab::BackgroundMigration::MigrateApproverToApprovalRulesInBatch1663 when there is no more MigrateApproverToApprovalRules jobs1664 migrates individual target1665Gitlab::BackgroundMigration::BackfillNamespaceLdapSettings1666 # order random1667 #perform1668 migrates LDAP sync values by batch1669 does not create multiple entries or conflict on existing record1670Gitlab::BackgroundMigration::DeleteApprovalRulesWithVulnerability1671 # order random1672 #perform1673 with merge request approval rules1674 removes merge request level approval rules with report_type equal to one1675 with project approval rules1676 removes merge request level approval rules with report_type equal to one1677Gitlab::BackgroundMigration::FixSecurityScanStatuses1678 # order random1679 #perform1680 fixes the scan statuses1681Gitlab::BackgroundMigration::BackfillComplianceViolations1682 # order random1683 migrates data from merge_requests and merge_request_metrics into compliance violations table1684Gitlab::BackgroundMigration::PopulateApprovalProjectRulesWithSecurityOrchestration1685 # order random1686 #perform1687 updates only approval rules with projects linked to a security project and report_type equals to 41688Knapsack report was generated. Preview:1689{1690 "ee/spec/lib/gitlab/background_migration/migrate_requirements_to_work_items_spec.rb": 63.17091919500001,1691 "ee/spec/lib/gitlab/background_migration/create_vulnerability_links_spec.rb": 57.50183897799991,1692 "ee/spec/lib/ee/gitlab/background_migration/backfill_project_statistics_storage_size_without_uploads_size_spec.rb": 53.921601356,1693 "ee/spec/lib/ee/gitlab/background_migration/migrate_vulnerabilities_feedback_to_vulnerabilities_state_transition_spec.rb": 39.36675344499997,1694 "ee/spec/lib/ee/gitlab/background_migration/migrate_shared_vulnerability_identifiers_spec.rb": 30.667965159999994,1695 "ee/spec/lib/ee/gitlab/background_migration/backfill_missing_vulnerability_dismissal_details_spec.rb": 20.963301083000033,1696 "ee/spec/lib/ee/gitlab/background_migration/delete_orphaned_transferred_project_approval_rules_spec.rb": 13.672133954999936,1697 "ee/spec/lib/ee/gitlab/background_migration/migrate_approver_to_approval_rules_in_batch_spec.rb": 5.552398741999923,1698 "ee/spec/lib/ee/gitlab/background_migration/backfill_namespace_ldap_settings_spec.rb": 3.610589677000007,1699 "ee/spec/lib/ee/gitlab/background_migration/delete_approval_rules_with_vulnerability_spec.rb": 3.6603290259999994,1700 "ee/spec/lib/ee/gitlab/background_migration/fix_security_scan_statuses_spec.rb": 2.1527039080001487,1701 "ee/spec/lib/ee/gitlab/background_migration/backfill_compliance_violations_spec.rb": 2.2302683660000184,1702 "ee/spec/lib/ee/gitlab/background_migration/populate_approval_project_rules_with_security_orchestration_spec.rb": 1.97624342399990381703}1704Knapsack global time execution for tests: 04m 58s1705Finished in 9 minutes 5 seconds (files took 1 minute 20.19 seconds to load)170684 examples, 0 failures1707Randomized with seed 424991708[TEST PROF INFO] Time spent in factories: 00:05.764 (1.0% of total time)1709RSpec exited with 0.1710No examples to retry, congrats! 1711 Running after_script 1712Running after script...1713$ echo -e "\e[0Ksection_start:`date +%s`:report_results_section[collapsed=true]\r\e[0KReport results"1738Not uploading cache ruby-gems-debian-bullseye-ruby-3.0-protected due to policy1740Uploading artifacts...1741WARNING: auto_explain/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/edith007/gitlab) 1742coverage/: found 5 matching artifact files and directories 1743WARNING: crystalball/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/edith007/gitlab) 1744WARNING: deprecations/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/edith007/gitlab) 1745knapsack/: found 4 matching artifact files and directories 1746rspec/: found 10 matching artifact files and directories 1747WARNING: tmp/capybara/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/edith007/gitlab) 1748log/*.log: found 13 matching artifact files and directories 1749WARNING: Upload request redirected location=https://gitlab.com/api/v4/jobs/4863614087/artifacts?artifact_format=zip&artifact_type=archive&expire_in=31d new-url=https://gitlab.com1750WARNING: Retrying... context=artifacts-uploader error=request redirected1751Uploading artifacts as "archive" to coordinator... 201 Created id=4863614087 responseStatus=201 Created token=64_eG6pp1752Uploading artifacts...1753rspec/rspec-*.xml: found 1 matching artifact files and directories 1754WARNING: Upload request redirected location=https://gitlab.com/api/v4/jobs/4863614087/artifacts?artifact_format=gzip&artifact_type=junit&expire_in=31d new-url=https://gitlab.com1755WARNING: Retrying... context=artifacts-uploader error=request redirected1756Uploading artifacts as "junit" to coordinator... 201 Created id=4863614087 responseStatus=201 Created token=64_eG6pp1758Job succeeded