From f32a2598e8c3b9f02b5759083e46eed22d7b0cd7 Mon Sep 17 00:00:00 2001 From: Simon Tomlinson Date: Wed, 29 Jun 2022 17:05:36 -0500 Subject: [PATCH] Lower migration sampling duration to 15 minutes We're seeing jobs stacking up, hopefully this will help improve execution time --- db-testing.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db-testing.yml b/db-testing.yml index 8809c66c..0df88a50 100644 --- a/db-testing.yml +++ b/db-testing.yml @@ -77,8 +77,8 @@ image:redis: - mkdir -p tmp/migration-testing/up - mkdir -p tmp/migration-testing/background_migrations - bundle exec rake gitlab:db:migration_testing:up | tee tmp/migration-testing/up/full-migration-output.log || true - - bundle exec rake gitlab:db:migration_testing:sample_background_migrations | tee tmp/migration-testing/background_migrations/full-migration-output.log || true - - bundle exec rake gitlab:db:migration_testing:sample_batched_background_migrations[main] | tee tmp/migration-testing/background_migrations/full-batched-migration-output.log || true + - bundle exec rake gitlab:db:migration_testing:sample_background_migrations[900] | tee tmp/migration-testing/background_migrations/full-migration-output.log || true + - bundle exec rake gitlab:db:migration_testing:sample_batched_background_migrations[main,900] | tee tmp/migration-testing/background_migrations/full-batched-migration-output.log || true - mv tmp/migration-testing/ ${CI_PROJECT_DIR} - bundle exec ruby list_migrations.rb > ${CI_PROJECT_DIR}/migration-testing/migrations.json - bundle exec ruby clone_details.rb ${CLONE_DETAILS_DB_NAME} > ${CI_PROJECT_DIR}/migration-testing/clone-details.json -- GitLab