Commit dea33ff4 authored by Rémy Coutable's avatar Rémy Coutable

Run tests against PG10 by default

We also now run tests against:

- PG9 in nightly pipelines only (vs MR, master, and nightly before)
- PG11 in master and nightly pipelines (vs nightly pipelines before)
Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent c056c7bf
image: "registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.6.5-golang-1.14-git-2.26-lfs-2.9-chrome-73.0-node-12.x-yarn-1.21-postgresql-9.6-graphicsmagick-1.3.34" image: "registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.6.5-golang-1.14-git-2.26-lfs-2.9-chrome-73.0-node-12.x-yarn-1.21-postgresql-10-graphicsmagick-1.3.34"
stages: stages:
- sync - sync
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
- .default-retry - .default-retry
- .default-cache - .default-cache
- .default-before_script - .default-before_script
- .use-pg9 - .use-pg10
stage: test stage: test
needs: ["setup-test-env"] needs: ["setup-test-env pg10"]
variables: variables:
FIXTURE_PATH: "db/fixtures/development" FIXTURE_PATH: "db/fixtures/development"
SEED_CYCLE_ANALYTICS: "true" SEED_CYCLE_ANALYTICS: "true"
...@@ -26,7 +26,7 @@ run-dev-fixtures-ee: ...@@ -26,7 +26,7 @@ run-dev-fixtures-ee:
extends: extends:
- .run-dev-fixtures - .run-dev-fixtures
- .dev-fixtures:rules:ee-only - .dev-fixtures:rules:ee-only
- .use-pg9-ee - .use-pg10-ee
script: script:
- scripts/gitaly-test-spawn - scripts/gitaly-test-spawn
- cp ee/db/fixtures/development/* $FIXTURE_PATH - cp ee/db/fixtures/development/* $FIXTURE_PATH
......
...@@ -66,9 +66,9 @@ graphql-reference-verify: ...@@ -66,9 +66,9 @@ graphql-reference-verify:
- .default-cache - .default-cache
- .default-before_script - .default-before_script
- .docs:rules:graphql-reference-verify - .docs:rules:graphql-reference-verify
- .use-pg9 - .use-pg10
stage: test stage: test
needs: ["setup-test-env"] needs: ["setup-test-env pg10"]
script: script:
- bundle exec rake gitlab:graphql:check_docs - bundle exec rake gitlab:graphql:check_docs
- bundle exec rake gitlab:graphql:check_schema - bundle exec rake gitlab:graphql:check_schema
...@@ -135,13 +135,9 @@ compile-assets pull-cache as-if-foss: ...@@ -135,13 +135,9 @@ compile-assets pull-cache as-if-foss:
- .default-retry - .default-retry
- .default-cache - .default-cache
- .default-before_script - .default-before_script
- .use-pg9 - .use-pg10
stage: fixtures stage: fixtures
needs: needs: ["setup-test-env pg10", "compile-assets pull-cache"]
- job: "setup-test-env"
artifacts: true
- job: "compile-assets pull-cache"
artifacts: true
script: script:
- date - date
- scripts/gitaly-test-spawn - scripts/gitaly-test-spawn
...@@ -270,7 +266,6 @@ coverage-frontend: ...@@ -270,7 +266,6 @@ coverage-frontend:
.qa-frontend-node: .qa-frontend-node:
extends: extends:
- .default-retry - .default-retry
- .default-cache
- .frontend:rules:qa-frontend-node - .frontend:rules:qa-frontend-node
stage: test stage: test
dependencies: [] dependencies: []
...@@ -300,7 +295,7 @@ webpack-dev-server: ...@@ -300,7 +295,7 @@ webpack-dev-server:
- .default-cache - .default-cache
- .frontend:rules:default-frontend-jobs - .frontend:rules:default-frontend-jobs
stage: test stage: test
needs: ["setup-test-env", "compile-assets pull-cache"] needs: ["setup-test-env pg10", "compile-assets pull-cache"]
variables: variables:
WEBPACK_MEMORY_TEST: "true" WEBPACK_MEMORY_TEST: "true"
WEBPACK_VENDOR_DLL: "true" WEBPACK_VENDOR_DLL: "true"
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
# Jobs that only need to pull cache # Jobs that only need to pull cache
.default-cache: .default-cache:
cache: cache:
key: "debian-stretch-ruby-2.6.5-pg9.6-node-12.x" key: "debian-stretch-ruby-2.6.5-pg10-node-12.x"
paths: paths:
- .go/pkg/mod - .go/pkg/mod
- vendor/ruby - vendor/ruby
...@@ -30,12 +30,15 @@ ...@@ -30,12 +30,15 @@
policy: pull policy: pull
.use-pg9: .use-pg9:
image: "registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.6.5-golang-1.12-git-2.24-lfs-2.9-chrome-73.0-node-12.x-yarn-1.21-postgresql-9.6-graphicsmagick-1.3.34"
services: services:
- name: postgres:9.6.17 - name: postgres:9.6.17
command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"] command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
- name: redis:alpine - name: redis:alpine
variables: variables:
POSTGRES_HOST_AUTH_METHOD: trust POSTGRES_HOST_AUTH_METHOD: trust
cache:
key: "debian-stretch-ruby-2.6.5-pg9-node-12.x"
.use-pg10: .use-pg10:
image: "registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.6.5-golang-1.14-git-2.26-lfs-2.9-chrome-73.0-node-12.x-yarn-1.21-postgresql-10-graphicsmagick-1.3.34" image: "registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.6.5-golang-1.14-git-2.26-lfs-2.9-chrome-73.0-node-12.x-yarn-1.21-postgresql-10-graphicsmagick-1.3.34"
...@@ -45,6 +48,8 @@ ...@@ -45,6 +48,8 @@
- name: redis:alpine - name: redis:alpine
variables: variables:
POSTGRES_HOST_AUTH_METHOD: trust POSTGRES_HOST_AUTH_METHOD: trust
cache:
key: "debian-stretch-ruby-2.6.5-pg10-node-12.x"
.use-pg11: .use-pg11:
image: "registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.6.5-golang-1.14-git-2.26-lfs-2.9-chrome-73.0-node-12.x-yarn-1.21-postgresql-11-graphicsmagick-1.3.34" image: "registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.6.5-golang-1.14-git-2.26-lfs-2.9-chrome-73.0-node-12.x-yarn-1.21-postgresql-11-graphicsmagick-1.3.34"
...@@ -54,8 +59,11 @@ ...@@ -54,8 +59,11 @@
- name: redis:alpine - name: redis:alpine
variables: variables:
POSTGRES_HOST_AUTH_METHOD: trust POSTGRES_HOST_AUTH_METHOD: trust
cache:
key: "debian-stretch-ruby-2.6.5-pg11-node-12.x"
.use-pg9-ee: .use-pg9-ee:
image: "registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.6.5-golang-1.12-git-2.24-lfs-2.9-chrome-73.0-node-12.x-yarn-1.21-postgresql-9.6-graphicsmagick-1.3.34"
services: services:
- name: postgres:9.6.17 - name: postgres:9.6.17
command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"] command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
...@@ -63,6 +71,8 @@ ...@@ -63,6 +71,8 @@
- name: elasticsearch:6.4.2 - name: elasticsearch:6.4.2
variables: variables:
POSTGRES_HOST_AUTH_METHOD: trust POSTGRES_HOST_AUTH_METHOD: trust
cache:
key: "debian-stretch-ruby-2.6.5-pg9-node-12.x"
.use-pg10-ee: .use-pg10-ee:
image: "registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.6.5-golang-1.14-git-2.26-lfs-2.9-chrome-73.0-node-12.x-yarn-1.21-postgresql-10-graphicsmagick-1.3.34" image: "registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.6.5-golang-1.14-git-2.26-lfs-2.9-chrome-73.0-node-12.x-yarn-1.21-postgresql-10-graphicsmagick-1.3.34"
...@@ -73,6 +83,8 @@ ...@@ -73,6 +83,8 @@
- name: elasticsearch:6.4.2 - name: elasticsearch:6.4.2
variables: variables:
POSTGRES_HOST_AUTH_METHOD: trust POSTGRES_HOST_AUTH_METHOD: trust
cache:
key: "debian-stretch-ruby-2.6.5-pg10-node-12.x"
.use-pg11-ee: .use-pg11-ee:
image: "registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.6.5-golang-1.14-git-2.26-lfs-2.9-chrome-73.0-node-12.x-yarn-1.21-postgresql-11-graphicsmagick-1.3.34" image: "registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.6.5-golang-1.14-git-2.26-lfs-2.9-chrome-73.0-node-12.x-yarn-1.21-postgresql-11-graphicsmagick-1.3.34"
...@@ -83,6 +95,8 @@ ...@@ -83,6 +95,8 @@
- name: elasticsearch:6.4.2 - name: elasticsearch:6.4.2
variables: variables:
POSTGRES_HOST_AUTH_METHOD: trust POSTGRES_HOST_AUTH_METHOD: trust
cache:
key: "debian-stretch-ruby-2.6.5-pg11-node-12.x"
.as-if-foss: .as-if-foss:
variables: variables:
......
...@@ -8,9 +8,7 @@ ...@@ -8,9 +8,7 @@
memory-static: memory-static:
extends: .only-code-memory-job-base extends: .only-code-memory-job-base
stage: test stage: test
needs: needs: ["setup-test-env pg10"]
- job: setup-test-env
artifacts: true
variables: variables:
SETUP_DB: "false" SETUP_DB: "false"
script: script:
...@@ -40,11 +38,7 @@ memory-on-boot: ...@@ -40,11 +38,7 @@ memory-on-boot:
- .only-code-memory-job-base - .only-code-memory-job-base
- .use-pg10 - .use-pg10
stage: test stage: test
needs: needs: ["setup-test-env pg10", "compile-assets pull-cache"]
- job: setup-test-env
artifacts: true
- job: compile-assets pull-cache
artifacts: true
variables: variables:
NODE_ENV: "production" NODE_ENV: "production"
RAILS_ENV: "production" RAILS_ENV: "production"
......
pages: pages:
extends: extends:
- .default-retry - .default-retry
- .default-cache
- .pages:rules - .pages:rules
stage: pages stage: pages
dependencies: ["rspec:coverage", "karma", "gitlab:assets:compile pull-cache"] dependencies: ["rspec:coverage", "karma", "gitlab:assets:compile pull-cache"]
......
.rails:needs:setup-and-assets: .rails:needs:setup-and-assets:
needs: needs: ["setup-test-env pg10", "compile-assets pull-cache"]
- job: setup-test-env
artifacts: true
- job: compile-assets pull-cache
artifacts: true
.rails-job-base: .rails-job-base:
extends: extends:
...@@ -12,12 +8,10 @@ ...@@ -12,12 +8,10 @@
- .default-before_script - .default-before_script
#################### ####################
# ee and foss jobs # # EE and FOSS jobs #
setup-test-env: .base-setup-test-env:
extends: extends:
- .rails-job-base - .rails-job-base
- .rails:rules:default-refs-code-backstage-qa
- .use-pg9
stage: prepare stage: prepare
script: script:
- bundle exec ruby -Ispec -e 'require "spec_helper" ; TestEnv.init' - bundle exec ruby -Ispec -e 'require "spec_helper" ; TestEnv.init'
...@@ -31,6 +25,24 @@ setup-test-env: ...@@ -31,6 +25,24 @@ setup-test-env:
cache: cache:
policy: pull-push policy: pull-push
setup-test-env pg10:
extends:
- .base-setup-test-env
- .rails:rules:default-refs-code-backstage-qa
- .use-pg10
setup-test-env pg11:
extends:
- .base-setup-test-env
- .rails:rules:master-refs-code-backstage
- .use-pg11
setup-test-env pg9:
extends:
- .base-setup-test-env
- .rails:rules:nightly-master-refs-code-backstage
- .use-pg9
static-analysis: static-analysis:
extends: extends:
- .rails-job-base - .rails-job-base
...@@ -43,7 +55,7 @@ static-analysis: ...@@ -43,7 +55,7 @@ static-analysis:
script: script:
- scripts/static-analysis - scripts/static-analysis
cache: cache:
key: "debian-stretch-ruby-2.6-pg9.6-rubocop" key: "ruby-2.6.5-pg10-rubocop"
paths: paths:
- vendor/ruby - vendor/ruby
- tmp/rubocop_cache - tmp/rubocop_cache
...@@ -63,13 +75,7 @@ downtime_check: ...@@ -63,13 +75,7 @@ downtime_check:
.rspec-base: .rspec-base:
extends: .rails-job-base extends: .rails-job-base
stage: test stage: test
needs: needs: ["setup-test-env pg10", "retrieve-tests-metadata", "compile-assets pull-cache"]
- job: setup-test-env
artifacts: true
- job: retrieve-tests-metadata
artifacts: true
- job: compile-assets pull-cache
artifacts: true
script: script:
- source scripts/rspec_helpers.sh - source scripts/rspec_helpers.sh
- rspec_paralellized_job "--tag ~quarantine --tag ~geo --tag ~level:migration" - rspec_paralellized_job "--tag ~quarantine --tag ~geo --tag ~level:migration"
...@@ -87,10 +93,10 @@ downtime_check: ...@@ -87,10 +93,10 @@ downtime_check:
reports: reports:
junit: junit_rspec.xml junit: junit_rspec.xml
.rspec-base-quarantine: .rspec-base-quarantine-pg10:
extends: extends:
- .rspec-base - .rspec-base
- .use-pg9 - .use-pg10
variables: variables:
RSPEC_OPTS: "--tag quarantine -- spec/" RSPEC_OPTS: "--tag quarantine -- spec/"
script: script:
...@@ -98,37 +104,37 @@ downtime_check: ...@@ -98,37 +104,37 @@ downtime_check:
- rspec_simple_job "${RSPEC_OPTS}" - rspec_simple_job "${RSPEC_OPTS}"
allow_failure: true allow_failure: true
.rspec-base-pg9: .rspec-base-pg10:
extends: extends:
- .rspec-base - .rspec-base
- .rails:rules:ee-and-foss - .rails:rules:ee-and-foss
- .use-pg9 - .use-pg10
.rspec-base-migration: .rspec-base-migration:
script: script:
- source scripts/rspec_helpers.sh - source scripts/rspec_helpers.sh
- rspec_paralellized_job "--tag ~quarantine --tag ~geo --tag level:migration" - rspec_paralellized_job "--tag ~quarantine --tag ~geo --tag level:migration"
rspec migration pg9: rspec migration pg10:
extends: extends:
- .rspec-base-pg9 - .rspec-base-pg10
- .rspec-base-migration - .rspec-base-migration
parallel: 5 parallel: 5
rspec unit pg9: rspec unit pg10:
extends: .rspec-base-pg9 extends: .rspec-base-pg10
parallel: 20 parallel: 20
rspec integration pg9: rspec integration pg10:
extends: .rspec-base-pg9 extends: .rspec-base-pg10
parallel: 8 parallel: 8
rspec system pg9: rspec system pg10:
extends: .rspec-base-pg9 extends: .rspec-base-pg10
parallel: 24 parallel: 24
rspec fast_spec_helper: rspec fast_spec_helper:
extends: .rspec-base-pg9 extends: .rspec-base-pg10
script: script:
- bin/rspec spec/fast_spec_helper.rb - bin/rspec spec/fast_spec_helper.rb
...@@ -136,11 +142,9 @@ rspec fast_spec_helper: ...@@ -136,11 +142,9 @@ rspec fast_spec_helper:
extends: extends:
- .rails-job-base - .rails-job-base
- .rails:rules:ee-and-foss - .rails:rules:ee-and-foss
- .use-pg9 - .use-pg10
stage: test stage: test
needs: needs: ["setup-test-env pg10"]
- job: setup-test-env
artifacts: true
db:migrate:reset: db:migrate:reset:
extends: .db-job-base extends: .db-job-base
...@@ -209,18 +213,18 @@ rspec:coverage: ...@@ -209,18 +213,18 @@ rspec:coverage:
# We cannot use needs since it would mean needing 84 jobs (since most are parallelized) # We cannot use needs since it would mean needing 84 jobs (since most are parallelized)
# so we use `dependencies` here. # so we use `dependencies` here.
dependencies: dependencies:
- setup-test-env - setup-test-env pg10
- rspec migration pg9 - rspec migration pg10
- rspec unit pg9 - rspec unit pg10
- rspec integration pg9 - rspec integration pg10
- rspec system pg9 - rspec system pg10
- rspec-ee migration pg9 - rspec-ee migration pg10
- rspec-ee unit pg9 - rspec-ee unit pg10
- rspec-ee integration pg9 - rspec-ee integration pg10
- rspec-ee system pg9 - rspec-ee system pg10
- rspec-ee unit pg9 geo - rspec-ee unit pg10 geo
- rspec-ee integration pg9 geo - rspec-ee integration pg10 geo
- rspec-ee system pg9 geo - rspec-ee system pg10 geo
- memory-static - memory-static
- memory-on-boot - memory-on-boot
variables: variables:
...@@ -238,170 +242,167 @@ rspec:coverage: ...@@ -238,170 +242,167 @@ rspec:coverage:
- coverage/index.html - coverage/index.html
- coverage/assets/ - coverage/assets/
- tmp/memory_test/ - tmp/memory_test/
# ee and foss jobs # # EE and FOSS jobs #
#################### ####################
#################### ####################
# master-only jobs # # master-only jobs #
rspec quarantine pg9: rspec quarantine pg10:
extends: extends:
- .rspec-base-quarantine - .rspec-base-quarantine-pg10
- .rails:rules:master-refs-code-backstage - .rails:rules:master-refs-code-backstage
.rspec-base-pg10: .rspec-base-pg11:
extends: extends:
- .rspec-base - .rspec-base
- .rails:rules:master-refs-code-backstage - .rails:rules:master-refs-code-backstage
- .use-pg10 - .use-pg11
needs: ["setup-test-env pg11", "retrieve-tests-metadata", "compile-assets pull-cache"]
rspec migration pg10: rspec migration pg11:
extends: extends:
- .rspec-base-pg10 - .rspec-base-pg11
- .rspec-base-migration - .rspec-base-migration
parallel: 2 parallel: 5
rspec unit pg10: rspec unit pg11:
extends: .rspec-base-pg10 extends: .rspec-base-pg11
parallel: 20 parallel: 20
rspec integration pg10: rspec integration pg11:
extends: .rspec-base-pg10 extends: .rspec-base-pg11
parallel: 8 parallel: 8
rspec system pg10: rspec system pg11:
extends: .rspec-base-pg10 extends: .rspec-base-pg11
parallel: 24 parallel: 24
# master-only jobs # # master-only jobs #
#################### ####################
############################ ######################
# nightly master-only jobs # # nightly-only jobs #
.rspec-base-pg11: .rspec-base-pg9:
extends: extends:
- .rspec-base - .rspec-base
- .rails:rules:nightly-master-refs-code-backstage - .rails:rules:nightly-master-refs-code-backstage
- .use-pg11 - .use-pg9
needs: ["setup-test-env pg9", "retrieve-tests-metadata", "compile-assets pull-cache"]
rspec migration pg11: rspec migration pg9:
extends: extends:
- .rspec-base-pg11 - .rspec-base-pg9
- .rspec-base-migration - .rspec-base-migration
parallel: 2 parallel: 5
rspec unit pg11: rspec unit pg9:
extends: .rspec-base-pg11 extends: .rspec-base-pg9
parallel: 20 parallel: 20
rspec integration pg11: rspec integration pg9:
extends: .rspec-base-pg11 extends: .rspec-base-pg9
parallel: 8 parallel: 8
rspec system pg11: rspec system pg9:
extends: .rspec-base-pg11 extends: .rspec-base-pg9
parallel: 24 parallel: 24
# nightly master-only jobs # # nightly-only jobs #
############################ #####################
######################### #######################
# ee + master-only jobs # # EE master-only jobs #
rspec-ee quarantine pg9: rspec-ee quarantine pg10:
extends: extends:
- .rspec-base-quarantine - .rspec-base-quarantine-pg10
- .rails:rules:master-refs-code-backstage-ee-only - .rails:rules:master-refs-code-backstage-ee-only
variables: variables:
RSPEC_OPTS: "--tag quarantine -- ee/spec/" RSPEC_OPTS: "--tag quarantine -- ee/spec/"
rspec-ee migration pg10: .rspec-ee-base-pg11:
extends: extends:
- .rspec-ee-base-pg10 - .rspec-base-ee
- .use-pg11-ee
needs: ["setup-test-env pg11", "retrieve-tests-metadata", "compile-assets pull-cache"]
rspec-ee migration pg11:
extends:
- .rspec-ee-base-pg11
- .rspec-base-migration - .rspec-base-migration
- .rails:rules:master-refs-code-backstage - .rails:rules:master-refs-code-backstage
parallel: 2 parallel: 2
rspec-ee unit pg10: rspec-ee unit pg11:
extends: extends:
- .rspec-ee-base-pg10 - .rspec-ee-base-pg11
- .rails:rules:master-refs-code-backstage - .rails:rules:master-refs-code-backstage
parallel: 10 parallel: 10
rspec-ee integration pg10: rspec-ee integration pg11:
extends: extends:
- .rspec-ee-base-pg10 - .rspec-ee-base-pg11
- .rails:rules:master-refs-code-backstage - .rails:rules:master-refs-code-backstage
parallel: 4 parallel: 4
rspec-ee system pg10: rspec-ee system pg11:
extends: extends:
- .rspec-ee-base-pg10 - .rspec-ee-base-pg11
- .rails:rules:master-refs-code-backstage - .rails:rules:master-refs-code-backstage
parallel: 6 parallel: 6
# ee + master-only jobs # # EE master-only jobs #
######################### #######################
################# ################
# ee-only jobs # # EE-only jobs #
.rspec-base-ee: .rspec-base-ee:
extends: extends:
- .rspec-base - .rspec-base
- .rails:rules:ee-only - .rails:rules:ee-only
.rspec-base-pg9-as-if-foss: .rspec-base-pg10-as-if-foss:
extends: extends:
- .rspec-base-ee - .rspec-base-ee
- .as-if-foss - .as-if-foss
- .use-pg9 - .use-pg10
needs: needs: ["setup-test-env pg10", "retrieve-tests-metadata", "compile-assets pull-cache as-if-foss"]
- job: setup-test-env
artifacts: true
- job: retrieve-tests-metadata
artifacts: true
- job: compile-assets pull-cache as-if-foss
artifacts: true
.rspec-ee-base-pg9:
extends:
- .rspec-base-ee
- .use-pg9-ee
.rspec-ee-base-pg10: .rspec-ee-base-pg10:
extends: extends:
- .rspec-base-ee - .rspec-base-ee
- .use-pg10-ee - .use-pg10-ee
rspec migration pg9-as-if-foss: rspec migration pg10-as-if-foss:
extends: extends:
- .rspec-base-pg9-as-if-foss - .rspec-base-pg10-as-if-foss
- .rspec-base-migration - .rspec-base-migration
parallel: 5 parallel: 5
rspec unit pg9-as-if-foss: rspec unit pg10-as-if-foss:
extends: .rspec-base-pg9-as-if-foss extends: .rspec-base-pg10-as-if-foss
parallel: 20 parallel: 20
rspec integration pg9-as-if-foss: rspec integration pg10-as-if-foss:
extends: .rspec-base-pg9-as-if-foss extends: .rspec-base-pg10-as-if-foss
parallel: 8 parallel: 8
rspec system pg9-as-if-foss: rspec system pg10-as-if-foss:
extends: .rspec-base-pg9-as-if-foss extends: .rspec-base-pg10-as-if-foss
parallel: 24 parallel: 24
rspec-ee migration pg9: rspec-ee migration pg10:
extends: extends:
- .rspec-ee-base-pg9 - .rspec-ee-base-pg10
- .rspec-base-migration - .rspec-base-migration
parallel: 2 parallel: 2
rspec-ee unit pg9: rspec-ee unit pg10:
extends: .rspec-ee-base-pg9 extends: .rspec-ee-base-pg10
parallel: 10 parallel: 10
rspec-ee integration pg9: rspec-ee integration pg10:
extends: .rspec-ee-base-pg9 extends: .rspec-ee-base-pg10
parallel: 4 parallel: 4
rspec-ee system pg9: rspec-ee system pg10:
extends: .rspec-ee-base-pg9 extends: .rspec-ee-base-pg10
parallel: 6 parallel: 6
.rspec-ee-base-geo: .rspec-ee-base-geo:
...@@ -411,26 +412,11 @@ rspec-ee system pg9: ...@@ -411,26 +412,11 @@ rspec-ee system pg9:
- scripts/prepare_postgres_fdw.sh - scripts/prepare_postgres_fdw.sh
- rspec_paralellized_job "--tag ~quarantine --tag geo" - rspec_paralellized_job "--tag ~quarantine --tag geo"
.rspec-ee-base-geo-pg9:
extends:
- .rspec-ee-base-geo
- .use-pg9-ee
.rspec-ee-base-geo-pg10: .rspec-ee-base-geo-pg10:
extends: extends:
- .rspec-ee-base-geo - .rspec-ee-base-geo
- .use-pg10-ee - .use-pg10-ee
rspec-ee unit pg9 geo:
extends: .rspec-ee-base-geo-pg9
parallel: 2
rspec-ee integration pg9 geo:
extends: .rspec-ee-base-geo-pg9
rspec-ee system pg9 geo:
extends: .rspec-ee-base-geo-pg9
rspec-ee unit pg10 geo: rspec-ee unit pg10 geo:
extends: .rspec-ee-base-geo-pg10 extends: .rspec-ee-base-geo-pg10
parallel: 2 parallel: 2
...@@ -448,5 +434,26 @@ db:rollback geo: ...@@ -448,5 +434,26 @@ db:rollback geo:
script: script:
- bundle exec rake geo:db:migrate VERSION=20170627195211 - bundle exec rake geo:db:migrate VERSION=20170627195211
- bundle exec rake geo:db:migrate - bundle exec rake geo:db:migrate
# ee-only jobs # # EE-only jobs #
################ ################
########################
# EE nightly-only jobs #
.rspec-ee-base-geo-pg9:
extends:
- .rspec-ee-base-geo
- .use-pg9-ee
- .rails:rules:nightly-master-refs-code-backstage-ee-only
needs: ["setup-test-env pg9", "retrieve-tests-metadata", "compile-assets pull-cache"]
rspec-ee unit pg9 geo:
extends: .rspec-ee-base-geo-pg9
parallel: 2
rspec-ee integration pg9 geo:
extends: .rspec-ee-base-geo-pg9
rspec-ee system pg9 geo:
extends: .rspec-ee-base-geo-pg9
# EE nightly-only jobs #
########################
...@@ -361,6 +361,7 @@ ...@@ -361,6 +361,7 @@
- <<: *if-master-refs - <<: *if-master-refs
changes: *code-backstage-patterns changes: *code-backstage-patterns
when: on_success when: on_success
- changes: [".gitlab/ci/rails.gitlab-ci.yml"]
.rails:rules:master-refs-code-backstage-ee-only: .rails:rules:master-refs-code-backstage-ee-only:
rules: rules:
...@@ -369,12 +370,23 @@ ...@@ -369,12 +370,23 @@
- <<: *if-master-refs - <<: *if-master-refs
changes: *code-backstage-patterns changes: *code-backstage-patterns
when: on_success when: on_success
- changes: [".gitlab/ci/rails.gitlab-ci.yml"]
.rails:rules:nightly-master-refs-code-backstage: .rails:rules:nightly-master-refs-code-backstage:
rules: rules:
- <<: *if-nightly-master-schedule - <<: *if-nightly-master-schedule
changes: *code-backstage-patterns changes: *code-backstage-patterns
when: on_success when: on_success
- changes: [".gitlab/ci/rails.gitlab-ci.yml"]
.rails:rules:nightly-master-refs-code-backstage-ee-only:
rules:
- <<: *if-not-ee
when: never
- <<: *if-nightly-master-schedule
changes: *code-backstage-patterns
when: on_success
- changes: [".gitlab/ci/rails.gitlab-ci.yml"]
.rails:rules:ee-only: .rails:rules:ee-only:
rules: rules:
......
...@@ -7,9 +7,7 @@ cache gems: ...@@ -7,9 +7,7 @@ cache gems:
- .default-before_script - .default-before_script
- .setup:rules:cache-gems - .setup:rules:cache-gems
stage: test stage: test
needs: needs: ["setup-test-env pg10"]
- job: setup-test-env
artifacts: true
variables: variables:
SETUP_DB: "false" SETUP_DB: "false"
script: script:
......
...@@ -176,7 +176,7 @@ graph RL; ...@@ -176,7 +176,7 @@ graph RL;
O[coverage-frontend]; O[coverage-frontend];
N["pages (master only)"]; N["pages (master only)"];
Q[package-and-qa]; Q[package-and-qa];
S["RSpec<br/>(e.g. rspec unit pg9)"] S["RSpec<br/>(e.g. rspec unit pg10)"]
T[retrieve-tests-metadata]; T[retrieve-tests-metadata];
QA["qa:internal, qa:selectors"]; QA["qa:internal, qa:selectors"];
QA2["qa:internal-as-if-foss, qa:selectors-as-if-foss<br/>(EE default refs only)"]; QA2["qa:internal-as-if-foss, qa:selectors-as-if-foss<br/>(EE default refs only)"];
......
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