Commit da0b4f89 authored by GitLab Bot's avatar GitLab Bot
Browse files

Add latest changes from gitlab-org/gitlab@12-10-stable-ee

parent 5f7be8986bd5
......@@ -38,3 +38,4 @@
- backups/
- coverage-javascript/
- plugins/
- file_hooks/
......@@ -3,5 +3,5 @@
- .default-retry
- .default-cache
- .default-before_script
- .use-pg10
- .use-pg11
stage: test
......@@ -7,5 +7,5 @@
stage: test
needs: ["setup-test-env pg10"]
needs: ["setup-test-env pg11"]
variables:
FIXTURE_PATH: "db/fixtures/development"
SEED_CYCLE_ANALYTICS: "true"
......@@ -26,7 +26,7 @@
extends:
- .run-dev-fixtures
- .dev-fixtures:rules:ee-only
- .use-pg10-ee
- .use-pg11-ee
script:
- scripts/gitaly-test-spawn
- cp ee/db/fixtures/development/* $FIXTURE_PATH
......
......@@ -66,5 +66,5 @@
- .default-cache
- .default-before_script
- .docs:rules:graphql-reference-verify
- .use-pg10
- .use-pg11
stage: test
......@@ -70,5 +70,5 @@
stage: test
needs: ["setup-test-env pg10"]
needs: ["setup-test-env pg11"]
script:
- bundle exec rake gitlab:graphql:check_docs
- bundle exec rake gitlab:graphql:check_schema
......@@ -129,5 +129,5 @@
- .default-retry
- .default-cache
- .default-before_script
- .use-pg10
- .use-pg11
stage: fixtures
......@@ -133,5 +133,5 @@
stage: fixtures
needs: ["setup-test-env pg10", "compile-assets pull-cache"]
needs: ["setup-test-env pg11", "compile-assets pull-cache"]
script:
- date
- scripts/gitaly-test-spawn
......@@ -289,7 +289,7 @@
- .default-cache
- .frontend:rules:default-frontend-jobs
stage: test
needs: ["setup-test-env pg10", "compile-assets pull-cache"]
needs: ["setup-test-env pg11", "compile-assets pull-cache"]
variables:
WEBPACK_MEMORY_TEST: "true"
WEBPACK_VENDOR_DLL: "true"
......
......@@ -21,7 +21,7 @@
# Jobs that only need to pull cache
.default-cache:
cache:
key: "debian-stretch-ruby-2.6.5-pg10-node-12.x"
key: "debian-stretch-ruby-2.6.5-pg11-node-12.x"
paths:
- .go/pkg/mod
- vendor/ruby
......@@ -98,6 +98,14 @@
cache:
key: "debian-stretch-ruby-2.6.5-pg11-node-12.x"
# Pin kaniko to v0.16.0 due to https://github.com/GoogleContainerTools/kaniko/issues/1162
.use-kaniko:
image:
name: gcr.io/kaniko-project/executor:debug-v0.16.0
entrypoint: [""]
before_script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
.as-if-foss:
variables:
FOSS_ONLY: '1'
......
......@@ -8,7 +8,7 @@
memory-static:
extends: .only-code-memory-job-base
stage: test
needs: ["setup-test-env pg10"]
needs: ["setup-test-env pg11"]
variables:
SETUP_DB: "false"
script:
......@@ -36,5 +36,5 @@
memory-on-boot:
extends:
- .only-code-memory-job-base
- .use-pg10
- .use-pg11
stage: test
......@@ -40,5 +40,5 @@
stage: test
needs: ["setup-test-env pg10", "compile-assets pull-cache"]
needs: ["setup-test-env pg11", "compile-assets pull-cache"]
variables:
NODE_ENV: "production"
RAILS_ENV: "production"
......
.rails:needs:setup-and-assets:
needs: ["setup-test-env pg10", "compile-assets pull-cache"]
needs: ["setup-test-env pg11", "compile-assets pull-cache"]
.rails-job-base:
extends:
......@@ -25,7 +25,7 @@
cache:
policy: pull-push
setup-test-env pg10:
setup-test-env pg11:
extends:
- .base-setup-test-env
- .rails:rules:default-refs-code-backstage-qa
......@@ -29,5 +29,5 @@
extends:
- .base-setup-test-env
- .rails:rules:default-refs-code-backstage-qa
- .use-pg10
- .use-pg11
......@@ -33,5 +33,5 @@
setup-test-env pg11:
setup-test-env pg10:
extends:
- .base-setup-test-env
- .rails:rules:master-refs-code-backstage
......@@ -35,7 +35,7 @@
extends:
- .base-setup-test-env
- .rails:rules:master-refs-code-backstage
- .use-pg11
- .use-pg10
setup-test-env pg9:
extends:
......@@ -55,7 +55,7 @@
script:
- scripts/static-analysis
cache:
key: "ruby-2.6.5-pg10-rubocop"
key: "ruby-2.6.5-pg11-rubocop"
paths:
- vendor/ruby
- tmp/rubocop_cache
......@@ -75,7 +75,7 @@
.rspec-base:
extends: .rails-job-base
stage: test
needs: ["setup-test-env pg10", "retrieve-tests-metadata", "compile-assets pull-cache"]
needs: ["setup-test-env pg11", "retrieve-tests-metadata", "compile-assets pull-cache"]
script:
- source scripts/rspec_helpers.sh
- rspec_paralellized_job "--tag ~quarantine --tag ~geo --tag ~level:migration"
......@@ -93,18 +93,7 @@
reports:
junit: junit_rspec.xml
.rspec-base-quarantine-pg10:
extends:
- .rspec-base
- .use-pg10
variables:
RSPEC_OPTS: "--tag quarantine -- spec/"
script:
- source scripts/rspec_helpers.sh
- rspec_simple_job "${RSPEC_OPTS}"
allow_failure: true
.rspec-base-pg10:
.rspec-base-pg11:
extends:
- .rspec-base
- .rails:rules:ee-and-foss
......@@ -108,10 +97,10 @@
extends:
- .rspec-base
- .rails:rules:ee-and-foss
- .use-pg10
- .use-pg11
.rspec-base-migration:
script:
- source scripts/rspec_helpers.sh
- rspec_paralellized_job "--tag ~quarantine --tag ~geo --tag level:migration"
......@@ -112,8 +101,8 @@
.rspec-base-migration:
script:
- source scripts/rspec_helpers.sh
- rspec_paralellized_job "--tag ~quarantine --tag ~geo --tag level:migration"
rspec migration pg10:
rspec migration pg11:
extends:
......@@ -119,5 +108,5 @@
extends:
- .rspec-base-pg10
- .rspec-base-pg11
- .rspec-base-migration
parallel: 5
......@@ -121,7 +110,7 @@
- .rspec-base-migration
parallel: 5
rspec unit pg10:
extends: .rspec-base-pg10
rspec unit pg11:
extends: .rspec-base-pg11
parallel: 20
......@@ -126,6 +115,6 @@
parallel: 20
rspec integration pg10:
extends: .rspec-base-pg10
rspec integration pg11:
extends: .rspec-base-pg11
parallel: 8
......@@ -130,7 +119,7 @@
parallel: 8
rspec system pg10:
extends: .rspec-base-pg10
rspec system pg11:
extends: .rspec-base-pg11
parallel: 24
rspec fast_spec_helper:
......@@ -134,7 +123,7 @@
parallel: 24
rspec fast_spec_helper:
extends: .rspec-base-pg10
extends: .rspec-base-pg11
script:
- bin/rspec spec/fast_spec_helper.rb
......@@ -142,5 +131,5 @@
extends:
- .rails-job-base
- .rails:rules:ee-and-foss
- .use-pg10
- .use-pg11
stage: test
......@@ -146,5 +135,5 @@
stage: test
needs: ["setup-test-env pg10"]
needs: ["setup-test-env pg11"]
db:migrate:reset:
extends: .db-job-base
......@@ -213,18 +202,18 @@
# We cannot use needs since it would mean needing 84 jobs (since most are parallelized)
# so we use `dependencies` here.
dependencies:
- setup-test-env pg10
- rspec migration pg10
- rspec unit pg10
- rspec integration pg10
- rspec system pg10
- rspec-ee migration pg10
- rspec-ee unit pg10
- rspec-ee integration pg10
- rspec-ee system pg10
- rspec-ee unit pg10 geo
- rspec-ee integration pg10 geo
- rspec-ee system pg10 geo
- setup-test-env pg11
- rspec migration pg11
- rspec unit pg11
- rspec integration pg11
- rspec system pg11
- rspec-ee migration pg11
- rspec-ee unit pg11
- rspec-ee integration pg11
- rspec-ee system pg11
- rspec-ee unit pg11 geo
- rspec-ee integration pg11 geo
- rspec-ee system pg11 geo
- memory-static
- memory-on-boot
variables:
......@@ -247,12 +236,7 @@
####################
# master-only jobs #
rspec quarantine pg10:
extends:
- .rspec-base-quarantine-pg10
- .rails:rules:master-refs-code-backstage
.rspec-base-pg11:
.rspec-base-pg10:
extends:
- .rspec-base
- .rails:rules:master-refs-code-backstage
......@@ -256,6 +240,6 @@
extends:
- .rspec-base
- .rails:rules:master-refs-code-backstage
- .use-pg11
needs: ["setup-test-env pg11", "retrieve-tests-metadata", "compile-assets pull-cache"]
- .use-pg10
needs: ["setup-test-env pg10", "retrieve-tests-metadata", "compile-assets pull-cache"]
......@@ -261,3 +245,3 @@
rspec migration pg11:
rspec migration pg10:
extends:
......@@ -263,5 +247,5 @@
extends:
- .rspec-base-pg11
- .rspec-base-pg10
- .rspec-base-migration
parallel: 5
......@@ -265,7 +249,7 @@
- .rspec-base-migration
parallel: 5
rspec unit pg11:
extends: .rspec-base-pg11
rspec unit pg10:
extends: .rspec-base-pg10
parallel: 20
......@@ -270,6 +254,6 @@
parallel: 20
rspec integration pg11:
extends: .rspec-base-pg11
rspec integration pg10:
extends: .rspec-base-pg10
parallel: 8
......@@ -274,7 +258,7 @@
parallel: 8
rspec system pg11:
extends: .rspec-base-pg11
rspec system pg10:
extends: .rspec-base-pg10
parallel: 24
# master-only jobs #
####################
......@@ -310,13 +294,6 @@
#######################
# EE master-only jobs #
rspec-ee quarantine pg10:
extends:
- .rspec-base-quarantine-pg10
- .rails:rules:master-refs-code-backstage-ee-only
variables:
RSPEC_OPTS: "--tag quarantine -- ee/spec/"
.rspec-ee-base-pg11:
.rspec-ee-base-pg10:
extends:
- .rspec-base-ee
......@@ -321,5 +298,5 @@
extends:
- .rspec-base-ee
- .use-pg11-ee
needs: ["setup-test-env pg11", "retrieve-tests-metadata", "compile-assets pull-cache"]
- .use-pg10-ee
needs: ["setup-test-env pg10", "retrieve-tests-metadata", "compile-assets pull-cache"]
......@@ -325,3 +302,3 @@
rspec-ee migration pg11:
rspec-ee migration pg10:
extends:
......@@ -327,6 +304,6 @@
extends:
- .rspec-ee-base-pg11
- .rspec-ee-base-pg10
- .rspec-base-migration
- .rails:rules:master-refs-code-backstage
parallel: 2
......@@ -329,6 +306,6 @@
- .rspec-base-migration
- .rails:rules:master-refs-code-backstage
parallel: 2
rspec-ee unit pg11:
rspec-ee unit pg10:
extends:
......@@ -334,5 +311,5 @@
extends:
- .rspec-ee-base-pg11
- .rspec-ee-base-pg10
- .rails:rules:master-refs-code-backstage
parallel: 10
......@@ -336,5 +313,5 @@
- .rails:rules:master-refs-code-backstage
parallel: 10
rspec-ee integration pg11:
rspec-ee integration pg10:
extends:
......@@ -340,5 +317,5 @@
extends:
- .rspec-ee-base-pg11
- .rspec-ee-base-pg10
- .rails:rules:master-refs-code-backstage
parallel: 4
......@@ -342,5 +319,5 @@
- .rails:rules:master-refs-code-backstage
parallel: 4
rspec-ee system pg11:
rspec-ee system pg10:
extends:
......@@ -346,5 +323,5 @@
extends:
- .rspec-ee-base-pg11
- .rspec-ee-base-pg10
- .rails:rules:master-refs-code-backstage
parallel: 6
# EE master-only jobs #
......@@ -357,7 +334,7 @@
- .rspec-base
- .rails:rules:ee-only
.rspec-base-pg10-as-if-foss:
.rspec-base-pg11-as-if-foss:
extends:
- .rspec-base-ee
- .as-if-foss
......@@ -361,6 +338,6 @@
extends:
- .rspec-base-ee
- .as-if-foss
- .use-pg10
needs: ["setup-test-env pg10", "retrieve-tests-metadata", "compile-assets pull-cache as-if-foss"]
- .use-pg11
needs: ["setup-test-env pg11", "retrieve-tests-metadata", "compile-assets pull-cache as-if-foss"]
......@@ -366,4 +343,4 @@
.rspec-ee-base-pg10:
.rspec-ee-base-pg11:
extends:
- .rspec-base-ee
......@@ -368,4 +345,4 @@
extends:
- .rspec-base-ee
- .use-pg10-ee
- .use-pg11-ee
......@@ -371,3 +348,3 @@
rspec migration pg10-as-if-foss:
rspec migration pg11-as-if-foss:
extends:
......@@ -373,5 +350,5 @@
extends:
- .rspec-base-pg10-as-if-foss
- .rspec-base-pg11-as-if-foss
- .rspec-base-migration
parallel: 5
......@@ -375,7 +352,7 @@
- .rspec-base-migration
parallel: 5
rspec unit pg10-as-if-foss:
extends: .rspec-base-pg10-as-if-foss
rspec unit pg11-as-if-foss:
extends: .rspec-base-pg11-as-if-foss
parallel: 20
......@@ -380,6 +357,6 @@
parallel: 20
rspec integration pg10-as-if-foss:
extends: .rspec-base-pg10-as-if-foss
rspec integration pg11-as-if-foss:
extends: .rspec-base-pg11-as-if-foss
parallel: 8
......@@ -384,6 +361,6 @@
parallel: 8
rspec system pg10-as-if-foss:
extends: .rspec-base-pg10-as-if-foss
rspec system pg11-as-if-foss:
extends: .rspec-base-pg11-as-if-foss
parallel: 24
......@@ -388,4 +365,4 @@
parallel: 24
rspec-ee migration pg10:
rspec-ee migration pg11:
extends:
......@@ -391,5 +368,5 @@
extends:
- .rspec-ee-base-pg10
- .rspec-ee-base-pg11
- .rspec-base-migration
parallel: 2
......@@ -393,7 +370,7 @@
- .rspec-base-migration
parallel: 2
rspec-ee unit pg10:
extends: .rspec-ee-base-pg10
rspec-ee unit pg11:
extends: .rspec-ee-base-pg11
parallel: 10
......@@ -398,6 +375,6 @@
parallel: 10
rspec-ee integration pg10:
extends: .rspec-ee-base-pg10
rspec-ee integration pg11:
extends: .rspec-ee-base-pg11
parallel: 4
......@@ -402,7 +379,7 @@
parallel: 4
rspec-ee system pg10:
extends: .rspec-ee-base-pg10
rspec-ee system pg11:
extends: .rspec-ee-base-pg11
parallel: 6
.rspec-ee-base-geo:
......@@ -412,6 +389,6 @@
- scripts/prepare_postgres_fdw.sh
- rspec_paralellized_job "--tag ~quarantine --tag geo"
.rspec-ee-base-geo-pg10:
.rspec-ee-base-geo-pg11:
extends:
- .rspec-ee-base-geo
......@@ -416,4 +393,4 @@
extends:
- .rspec-ee-base-geo
- .use-pg10-ee
- .use-pg11-ee
......@@ -419,5 +396,5 @@
rspec-ee unit pg10 geo:
extends: .rspec-ee-base-geo-pg10
rspec-ee unit pg11 geo:
extends: .rspec-ee-base-geo-pg11
parallel: 2
......@@ -422,5 +399,5 @@
parallel: 2
rspec-ee integration pg10 geo:
extends: .rspec-ee-base-geo-pg10
rspec-ee integration pg11 geo:
extends: .rspec-ee-base-geo-pg11
......@@ -426,6 +403,6 @@
rspec-ee system pg10 geo:
extends: .rspec-ee-base-geo-pg10
rspec-ee system pg11 geo:
extends: .rspec-ee-base-geo-pg11
db:rollback geo:
extends:
......
......@@ -8,8 +8,9 @@
build-qa-image:
extends:
- .review-docker
- .use-kaniko
- .default-retry
- .review:rules:mr-and-schedule-auto
stage: prepare
script:
- '[[ ! -d "ee/" ]] || export GITLAB_EDITION="ee"'
......@@ -12,13 +13,9 @@
- .review:rules:mr-and-schedule-auto
stage: prepare
script:
- '[[ ! -d "ee/" ]] || export GITLAB_EDITION="ee"'
- export QA_MASTER_IMAGE="${CI_REGISTRY}/${CI_PROJECT_PATH}/gitlab/gitlab-${GITLAB_EDITION}-qa:master"
- export QA_IMAGE="${CI_REGISTRY}/${CI_PROJECT_PATH}/gitlab/gitlab-${GITLAB_EDITION}-qa:${CI_COMMIT_REF_SLUG}"
- echo "${CI_JOB_TOKEN}" | docker login --username gitlab-ci-token --password-stdin ${CI_REGISTRY}
- time docker pull "${QA_MASTER_IMAGE}"
- time docker build --cache-from "${QA_MASTER_IMAGE}" --tag ${QA_IMAGE} --file ./qa/Dockerfile ./
- time docker push ${QA_IMAGE}
- export QA_IMAGE="${CI_REGISTRY}/${CI_PROJECT_PATH}/gitlab-${GITLAB_EDITION}-qa:${CI_COMMIT_REF_SLUG}"
- /kaniko/executor --context=${CI_PROJECT_DIR} --dockerfile=${CI_PROJECT_DIR}/qa/Dockerfile --destination=${QA_IMAGE} --cache=true
.review-cleanup-base:
extends:
......@@ -183,7 +180,7 @@
EE_LICENSE: "${REVIEW_APPS_EE_LICENSE}"
before_script:
- '[[ ! -d "ee/" ]] || export GITLAB_EDITION="ee"'
- export QA_IMAGE="${CI_REGISTRY}/${CI_PROJECT_PATH}/gitlab/gitlab-${GITLAB_EDITION}-qa:${CI_COMMIT_REF_SLUG}"
- export QA_IMAGE="${CI_REGISTRY}/${CI_PROJECT_PATH}/gitlab-${GITLAB_EDITION}-qa:${CI_COMMIT_REF_SLUG}"
- export CI_ENVIRONMENT_URL="$(cat environment_url.txt)"
- echo "${CI_ENVIRONMENT_URL}"
- echo "${QA_IMAGE}"
......
......@@ -363,15 +363,6 @@
when: on_success
- changes: [".gitlab/ci/rails.gitlab-ci.yml"]
.rails:rules:master-refs-code-backstage-ee-only:
rules:
- <<: *if-not-ee
when: never
- <<: *if-master-refs
changes: *code-backstage-patterns
when: on_success
- changes: [".gitlab/ci/rails.gitlab-ci.yml"]
.rails:rules:nightly-master-refs-code-backstage:
rules:
- <<: *if-nightly-master-schedule
......
......@@ -7,7 +7,7 @@
- .default-before_script
- .setup:rules:cache-gems
stage: test
needs: ["setup-test-env pg10"]
needs: ["setup-test-env pg11"]
variables:
SETUP_DB: "false"
script:
......
......@@ -42,6 +42,7 @@
"CentOS",
"Consul",
"Debian",
"DevOps",
"Elasticsearch",
"Facebook",
"Git LFS",
......@@ -85,6 +86,7 @@
"Microsoft",
"Minikube",
"MinIO",</