Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
bd24079e
Commit
bd24079e
authored
Nov 18, 2021
by
Rémy Coutable
Committed by
Albert Salim
Nov 18, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify Review App CI rules
parent
b4cfe83f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
130 deletions
+19
-130
.gitlab/ci/review.gitlab-ci.yml
.gitlab/ci/review.gitlab-ci.yml
+1
-1
.gitlab/ci/rules.gitlab-ci.yml
.gitlab/ci/rules.gitlab-ci.yml
+18
-129
No files found.
.gitlab/ci/review.gitlab-ci.yml
View file @
bd24079e
...
...
@@ -18,7 +18,7 @@ review-cleanup:
start-review-app-pipeline
:
extends
:
-
.review:rules:review-app-pipeline
-
.review:rules:
start-
review-app-pipeline
stage
:
review
needs
:
-
job
:
build-assets-image
...
...
.gitlab/ci/rules.gitlab-ci.yml
View file @
bd24079e
...
...
@@ -76,9 +76,6 @@
.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-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
:
'
$CI_SERVER_HOST
==
"gitlab.com"
&&
$CI_PROJECT_PATH
==
"gitlab-org/gitlab"
&&
$CI_PIPELINE_SOURCE
==
"schedule"'
...
...
@@ -1543,7 +1540,7 @@
################
# Review rules #
################
.review:rules:review-app-pipeline:
.review:rules:
start-
review-app-pipeline:
rules
:
-
<<
:
*if-not-ee
when
:
never
...
...
@@ -1562,79 +1559,29 @@
.review:rules:review-build-cng:
rules
:
-
<<
:
*if-not-ee
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
-
when
:
always
.review:rules:review-deploy:
rules
:
-
<<
:
*if-not-ee
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
-
when
:
on_success
.review:rules:review-performance:
rules
:
-
if
:
'
$DAST_RUN
==
"true"'
# Skip this job when DAST is run
when
:
never
-
<<
:
*if-not-ee
when
:
never
-
<<
:
*if-merge-request-labels-run-review-app
-
<<
:
*if-dot-com-gitlab-org-merge-request
-
<<
:
*if-merge-request-labels-run-review-app
# we explicitely don't allow the job to fail in that case
-
<<
:
*if-dot-com-gitlab-org-merge-request
# we explicitely don't allow the job to fail in that case
changes
:
*ci-review-patterns
-
<<
:
*if-dot-com-gitlab-org-merge-request
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
-
when
:
on_success
allow_failure
:
true
.review:rules:review-delete-deployment:
rules
:
-
<<
:
*if-not-ee
when
:
never
-
<<
:
*if-merge-request-labels-run-review-app
-
<<
:
*if-dot-com-gitlab-org-merge-request
changes
:
*code-qa-patterns
-
when
:
on_success
.review:rules:review-qa-smoke:
rules
:
-
<<
:
*if-not-ee
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
-
when
:
on_success
# The rule needs to be duplicated between `on_success` and `on_failure`
# because the jobs `needs` the previous job to complete.
...
...
@@ -1643,34 +1590,8 @@
# See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/63844#note_599012559
.review:rules:review-qa-smoke-report:
rules
:
-
<<
:
*if-not-ee
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
:
*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
-
when
:
on_success
-
when
:
on_failure
.review:rules:review-qa-reliable:
rules
:
...
...
@@ -1679,17 +1600,12 @@
.review:rules:review-qa-all:
rules
:
-
<<
:
*if-not-ee
when
:
never
-
<<
:
*if-merge-request-labels-run-review-app
-
<<
:
*if-merge-request-labels-run-review-app
# we explicitely don't allow the job to fail in that case
-
<<
:
*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
allow_failure
:
true
-
<<
:
*if-dot-com-ee-nightly-schedule-child-pipeline
allow_failure
:
true
# manual jobs needs to be allowd to fail, otherwise they block the pipeline
-
when
:
on_success
allow_failure
:
true
# The rule needs to be duplicated between `on_success` and `on_failure`
...
...
@@ -1699,29 +1615,9 @@
# See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/63844#note_599012559
.review:rules:review-qa-all-report:
rules
:
-
<<
:
*if-not-ee
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
-
when
:
on_success
allow_failure
:
true
-
<<
:
*if-dot-com-ee-nightly-schedule-child-pipeline
when
:
on_failure
-
when
:
on_failure
allow_failure
:
true
.review:rules:review-cleanup:
...
...
@@ -1737,23 +1633,16 @@
.review:rules:review-stop:
rules
:
-
<<
:
*if-not-ee
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
-
when
:
manual
allow_failure
:
true
.review:rules:danger:
rules
:
-
if
:
'
$CI_MERGE_REQUEST_IID'
-
<<
:
*if-merge-request
.review:rules:danger-local:
rules
:
-
if
:
'
$CI_MERGE_REQUEST_IID'
-
<<
:
*if-merge-request
changes
:
*danger-patterns
###############
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment