Commit 2590ae2c authored by Rémy Coutable's avatar Rémy Coutable

ci: Remove `needs` from the `review-qa-*-report` jobs

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent ef987699
...@@ -84,6 +84,7 @@ ...@@ -84,6 +84,7 @@
name: ${QA_IMAGE} name: ${QA_IMAGE}
entrypoint: [""] entrypoint: [""]
stage: post-qa stage: post-qa
allow_failure: true
before_script: before_script:
- cd qa - cd qa
script: script:
......
...@@ -1648,22 +1648,27 @@ ...@@ -1648,22 +1648,27 @@
rules: rules:
- when: on_success - when: on_success
# The rule needs to be duplicated between `on_success` and `on_failure` # If the needed job isn't allowed to fail, we need to use `when: always` in
# because the jobs `needs` the previous job to complete. # order to keep the job always running after it.
# With `when: always`, and the `review-qa-*` jobs are manual, the `allure-report-qa-*` jobs #
# would start running before the qa jobs have started. # If the needed job is allowed to fail, we need to use both
# See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/63844#note_599012559 # `when: on_success` and `when: on_failure` in order to keep
# the job always running after it.
# Not that if the needed job has `when: on_success` we can use `when: always`
# for the depending job.
#
# See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/76756
# Since `review-qa-smoke` isn't allowed to fail, we need to use `when: always` for `review-qa-smoke-report`.
.review:rules:review-qa-smoke-report: .review:rules:review-qa-smoke-report:
rules: rules:
- when: on_success - when: always
- when: on_failure
.review:rules:review-qa-reliable: .review:rules:review-qa-reliable:
rules: rules:
- when: on_success - when: on_success
# Since `review-qa-reliable ` isn't allowed to fail, we need to use `when: always` for `review-qa-reliable-report`. # Since `review-qa-reliable` isn't allowed to fail, we need to use `when: always`for `review-qa-reliable-report`.
# See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/76756#qa-job-that-run-on_success-and-not-allowed-to-fail-eg-report-qa-smoke
.review:rules:review-qa-reliable-report: .review:rules:review-qa-reliable-report:
rules: rules:
- when: always - when: always
...@@ -1678,17 +1683,11 @@ ...@@ -1678,17 +1683,11 @@
- when: on_success - when: on_success
allow_failure: true allow_failure: true
# The rule needs to be duplicated between `on_success` and `on_failure` # Since `review-qa-all` is allowed to fail (and potentially manual), we need to use `when: on_success` and `when: on_failure` for `review-qa-all-report`.
# because the jobs `needs` the previous job to complete.
# With `when: always`, and the `review-qa-*` jobs are manual, the `allure-report-qa-*` jobs
# would start running before the qa jobs have started.
# 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:
- when: on_success - when: on_success
allow_failure: true
- when: on_failure - when: on_failure
allow_failure: true
# Generate knapsack report on successful runs only # Generate knapsack report on successful runs only
# Reliable suite will pass most of the time so this should yield best distribution # Reliable suite will pass most of the time so this should yield best distribution
...@@ -1696,13 +1695,14 @@ ...@@ -1696,13 +1695,14 @@
rules: rules:
- if: '$KNAPSACK_GENERATE_REPORT == "true"' - if: '$KNAPSACK_GENERATE_REPORT == "true"'
when: on_success when: on_success
allow_failure: true
# Since `review-qa-all` is allowed to fail (and potentially manual), we need to use `when: on_success` and `when: on_failure` for `knapsack-report-qa-all`.
.review:rules:knapsack-report-qa-all: .review:rules:knapsack-report-qa-all:
rules: rules:
- if: '$KNAPSACK_GENERATE_REPORT == "true"' - if: '$KNAPSACK_GENERATE_REPORT != "true"'
when: always when: never
allow_failure: true - when: on_success
- when: on_failure
.review:rules:review-cleanup: .review:rules:review-cleanup:
rules: rules:
......
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