Commit 92353212 authored by Ash McKenzie's avatar Ash McKenzie

Merge branch 'pb-update-check-schema-for-decomposed' into 'master'

Update db:check-schema job for decomposed CI

See merge request gitlab-org/gitlab!76395
parents 8f710dbd c883fc33
...@@ -18,9 +18,13 @@ ...@@ -18,9 +18,13 @@
variables: variables:
RSPEC_TESTS_MAPPING_ENABLED: "true" RSPEC_TESTS_MAPPING_ENABLED: "true"
.decomposed-database-rspec: .decomposed-database:
variables: variables:
DECOMPOSED_DB: "true" DECOMPOSED_DB: "true"
.decomposed-database-rspec:
extends: .decomposed-database
variables:
GITLAB_LOAD_BALANCING_REUSE_PRIMARY_ci: "main" GITLAB_LOAD_BALANCING_REUSE_PRIMARY_ci: "main"
GITLAB_USE_MODEL_LOAD_BALANCING: "true" GITLAB_USE_MODEL_LOAD_BALANCING: "true"
...@@ -370,9 +374,16 @@ db:migrate-from-previous-major-version: ...@@ -370,9 +374,16 @@ db:migrate-from-previous-major-version:
script: script:
- run_timed_command "scripts/db_migrate" - run_timed_command "scripts/db_migrate"
db:check-schema: db:migrate-from-previous-major-version-decomposed:
extends: extends:
- db:migrate-from-previous-major-version - db:migrate-from-previous-major-version
- .decomposed-database
- .rails:rules:decomposed-databases
variables:
GITLAB_MIGRATE_MAIN_ONLY: "true"
.db:check-schema-base:
extends:
- .rails:rules:ee-mr-and-default-branch-only - .rails:rules:ee-mr-and-default-branch-only
variables: variables:
TAG_TO_CHECKOUT: "v14.4.0" TAG_TO_CHECKOUT: "v14.4.0"
...@@ -381,6 +392,16 @@ db:check-schema: ...@@ -381,6 +392,16 @@ db:check-schema:
- scripts/schema_changed.sh - scripts/schema_changed.sh
- scripts/validate_migration_timestamps - scripts/validate_migration_timestamps
db:check-schema:
extends:
- db:migrate-from-previous-major-version
- .db:check-schema-base
db:check-schema-decomposed:
extends:
- db:migrate-from-previous-major-version-decomposed
- .db:check-schema-base
db:check-migrations: db:check-migrations:
extends: extends:
- .db-job-base - .db-job-base
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
root_path="$(cd "$(dirname "$0")/.." || exit ; pwd -P)" root_path="$(cd "$(dirname "$0")/.." || exit ; pwd -P)"
if [[ -d "${root_path}/ee/" ]]; then if [[ -d "${root_path}/ee/" || "${GITLAB_MIGRATE_MAIN_ONLY}" == "true" ]]; then
task="db:migrate:main" task="db:migrate:main"
else else
task="db:migrate" task="db:migrate"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment