Commit 96a9c5a9 authored by Albert Salim's avatar Albert Salim

Merge branch...

Merge branch '343205-follow-up-from-ensure-child-pipeline-jobs-are-created-in-scheduled-child-pipelines' into 'master'

Simplify Review App CI rules

See merge request gitlab-org/gitlab!74105
parents 0d360b01 bd24079e
...@@ -18,7 +18,7 @@ review-cleanup: ...@@ -18,7 +18,7 @@ review-cleanup:
start-review-app-pipeline: start-review-app-pipeline:
extends: extends:
- .review:rules:review-app-pipeline - .review:rules:start-review-app-pipeline
stage: review stage: review
needs: needs:
- job: build-assets-image - job: build-assets-image
......
...@@ -76,9 +76,6 @@ ...@@ -76,9 +76,6 @@
.if-dot-com-gitlab-org-schedule: &if-dot-com-gitlab-org-schedule .if-dot-com-gitlab-org-schedule: &if-dot-com-gitlab-org-schedule
if: '$CI_SERVER_HOST == "gitlab.com" && $CI_PROJECT_NAMESPACE == "gitlab-org" && $CI_PIPELINE_SOURCE == "schedule"' if: '$CI_SERVER_HOST == "gitlab.com" && $CI_PROJECT_NAMESPACE == "gitlab-org" && $CI_PIPELINE_SOURCE == "schedule"'
.if-dot-com-gitlab-org-schedule-child-pipeline: &if-dot-com-gitlab-org-schedule-child-pipeline
if: '$CI_SERVER_HOST == "gitlab.com" && $CI_PROJECT_NAMESPACE == "gitlab-org" && $CI_PIPELINE_SOURCE == "parent_pipeline" && $FREQUENCY'
.if-dot-com-ee-schedule: &if-dot-com-ee-schedule .if-dot-com-ee-schedule: &if-dot-com-ee-schedule
if: '$CI_SERVER_HOST == "gitlab.com" && $CI_PROJECT_PATH == "gitlab-org/gitlab" && $CI_PIPELINE_SOURCE == "schedule"' if: '$CI_SERVER_HOST == "gitlab.com" && $CI_PROJECT_PATH == "gitlab-org/gitlab" && $CI_PIPELINE_SOURCE == "schedule"'
...@@ -1537,7 +1534,7 @@ ...@@ -1537,7 +1534,7 @@
################ ################
# Review rules # # Review rules #
################ ################
.review:rules:review-app-pipeline: .review:rules:start-review-app-pipeline:
rules: rules:
- <<: *if-not-ee - <<: *if-not-ee
when: never when: never
...@@ -1556,79 +1553,29 @@ ...@@ -1556,79 +1553,29 @@
.review:rules:review-build-cng: .review:rules:review-build-cng:
rules: rules:
- <<: *if-not-ee - when: always
when: never
- <<: *if-merge-request-labels-run-review-app
- <<: *if-dot-com-gitlab-org-merge-request
changes: *ci-review-patterns
- <<: *if-dot-com-gitlab-org-merge-request
changes: *frontend-patterns
- <<: *if-dot-com-gitlab-org-merge-request
changes: *code-patterns
allow_failure: true
- <<: *if-dot-com-gitlab-org-merge-request
changes: *qa-patterns
- <<: *if-dot-com-gitlab-org-schedule-child-pipeline
.review:rules:review-deploy: .review:rules:review-deploy:
rules: rules:
- <<: *if-not-ee - when: on_success
when: never
- <<: *if-merge-request-labels-run-review-app
- <<: *if-dot-com-gitlab-org-merge-request
changes: *ci-review-patterns
- <<: *if-dot-com-gitlab-org-merge-request
changes: *frontend-patterns
- <<: *if-dot-com-gitlab-org-merge-request
changes: *code-patterns
allow_failure: true
- <<: *if-dot-com-gitlab-org-merge-request
changes: *qa-patterns
- <<: *if-dot-com-gitlab-org-schedule-child-pipeline
allow_failure: true
.review:rules:review-performance: .review:rules:review-performance:
rules: rules:
- if: '$DAST_RUN == "true"' # Skip this job when DAST is run - if: '$DAST_RUN == "true"' # Skip this job when DAST is run
when: never when: never
- <<: *if-not-ee - <<: *if-merge-request-labels-run-review-app # we explicitely don't allow the job to fail in that case
when: never - <<: *if-dot-com-gitlab-org-merge-request # we explicitely don't allow the job to fail in that case
- <<: *if-merge-request-labels-run-review-app
- <<: *if-dot-com-gitlab-org-merge-request
changes: *ci-review-patterns changes: *ci-review-patterns
- <<: *if-dot-com-gitlab-org-merge-request - when: on_success
changes: *frontend-patterns
allow_failure: true
- <<: *if-dot-com-gitlab-org-merge-request
changes: *code-qa-patterns
allow_failure: true
- <<: *if-dot-com-gitlab-org-schedule-child-pipeline
allow_failure: true allow_failure: true
.review:rules:review-delete-deployment: .review:rules:review-delete-deployment:
rules: rules:
- <<: *if-not-ee - when: on_success
when: never
- <<: *if-merge-request-labels-run-review-app
- <<: *if-dot-com-gitlab-org-merge-request
changes: *code-qa-patterns
.review:rules:review-qa-smoke: .review:rules:review-qa-smoke:
rules: rules:
- <<: *if-not-ee - when: on_success
when: never
- <<: *if-merge-request-labels-run-review-app
- <<: *if-dot-com-gitlab-org-merge-request
changes: *ci-review-patterns
- <<: *if-dot-com-gitlab-org-merge-request
changes: *frontend-patterns
- <<: *if-dot-com-gitlab-org-merge-request
changes: *qa-patterns
- <<: *if-dot-com-gitlab-org-merge-request
changes: *code-patterns
allow_failure: true
- <<: *if-dot-com-ee-schedule-child-pipeline
allow_failure: true
# The rule needs to be duplicated between `on_success` and `on_failure` # The rule needs to be duplicated between `on_success` and `on_failure`
# because the jobs `needs` the previous job to complete. # because the jobs `needs` the previous job to complete.
...@@ -1637,34 +1584,8 @@ ...@@ -1637,34 +1584,8 @@
# See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/63844#note_599012559 # See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/63844#note_599012559
.review:rules:review-qa-smoke-report: .review:rules:review-qa-smoke-report:
rules: rules:
- <<: *if-not-ee - when: on_success
when: never - when: on_failure
- <<: *if-merge-request-labels-run-review-app
when: on_success
- <<: *if-merge-request-labels-run-review-app
when: on_failure
- <<: *if-dot-com-gitlab-org-merge-request
changes: *ci-review-patterns
when: on_success
- <<: *if-dot-com-gitlab-org-merge-request
changes: *ci-review-patterns
when: on_failure
- <<: *if-dot-com-gitlab-org-merge-request
changes: *frontend-patterns
when: on_success
- <<: *if-dot-com-gitlab-org-merge-request
changes: *frontend-patterns
when: on_failure
- <<: *if-dot-com-gitlab-org-merge-request
changes: *code-qa-patterns
when: on_success
- <<: *if-dot-com-gitlab-org-merge-request
changes: *code-qa-patterns
when: on_failure
- <<: *if-dot-com-ee-schedule-child-pipeline
when: on_success
- <<: *if-dot-com-ee-schedule-child-pipeline
when: on_failure
.review:rules:review-qa-reliable: .review:rules:review-qa-reliable:
rules: rules:
...@@ -1673,17 +1594,12 @@ ...@@ -1673,17 +1594,12 @@
.review:rules:review-qa-all: .review:rules:review-qa-all:
rules: rules:
- <<: *if-not-ee - <<: *if-merge-request-labels-run-review-app # we explicitely don't allow the job to fail in that case
when: never
- <<: *if-merge-request-labels-run-review-app
- <<: *if-dot-com-gitlab-org-merge-request - <<: *if-dot-com-gitlab-org-merge-request
changes: *code-patterns changes: *code-patterns
when: manual when: manual
allow_failure: true allow_failure: true # manual jobs needs to be allowd to fail, otherwise they block the pipeline
- <<: *if-dot-com-gitlab-org-merge-request - when: on_success
changes: *qa-patterns
allow_failure: true
- <<: *if-dot-com-ee-nightly-schedule-child-pipeline
allow_failure: true allow_failure: true
# The rule needs to be duplicated between `on_success` and `on_failure` # The rule needs to be duplicated between `on_success` and `on_failure`
...@@ -1693,29 +1609,9 @@ ...@@ -1693,29 +1609,9 @@
# See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/63844#note_599012559 # See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/63844#note_599012559
.review:rules:review-qa-all-report: .review:rules:review-qa-all-report:
rules: rules:
- <<: *if-not-ee - when: on_success
when: never
- <<: *if-merge-request-labels-run-review-app
when: on_success
- <<: *if-merge-request-labels-run-review-app
when: on_failure
- <<: *if-dot-com-gitlab-org-merge-request
changes: *code-patterns
when: manual
allow_failure: true
- <<: *if-dot-com-gitlab-org-merge-request
changes: *qa-patterns
when: on_success
allow_failure: true
- <<: *if-dot-com-gitlab-org-merge-request
changes: *qa-patterns
when: on_failure
allow_failure: true
- <<: *if-dot-com-ee-nightly-schedule-child-pipeline
when: on_success
allow_failure: true allow_failure: true
- <<: *if-dot-com-ee-nightly-schedule-child-pipeline - when: on_failure
when: on_failure
allow_failure: true allow_failure: true
.review:rules:review-cleanup: .review:rules:review-cleanup:
...@@ -1731,23 +1627,16 @@ ...@@ -1731,23 +1627,16 @@
.review:rules:review-stop: .review:rules:review-stop:
rules: rules:
- <<: *if-not-ee - when: manual
when: never
- <<: *if-merge-request-labels-run-review-app
when: manual
allow_failure: true
- <<: *if-dot-com-gitlab-org-merge-request
changes: *code-qa-patterns
when: manual
allow_failure: true allow_failure: true
.review:rules:danger: .review:rules:danger:
rules: rules:
- if: '$CI_MERGE_REQUEST_IID' - <<: *if-merge-request
.review:rules:danger-local: .review:rules:danger-local:
rules: rules:
- if: '$CI_MERGE_REQUEST_IID' - <<: *if-merge-request
changes: *danger-patterns changes: *danger-patterns
############### ###############
......
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