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
Show 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:
...
@@ -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
...
...
.gitlab/ci/rules.gitlab-ci.yml
View file @
bd24079e
...
@@ -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"'
...
@@ -1543,7 +1540,7 @@
...
@@ -1543,7 +1540,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
...
@@ -1562,79 +1559,29 @@
...
@@ -1562,79 +1559,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.
...
@@ -1643,34 +1590,8 @@
...
@@ -1643,34 +1590,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
:
...
@@ -1679,17 +1600,12 @@
...
@@ -1679,17 +1600,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`
...
@@ -1699,29 +1615,9 @@
...
@@ -1699,29 +1615,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:
...
@@ -1737,23 +1633,16 @@
...
@@ -1737,23 +1633,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
###############
###############
...
...
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