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
89ac770c
Commit
89ac770c
authored
Jun 17, 2020
by
Thong Kuah
Committed by
Rémy Coutable
Jun 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make clear in failure message that it fails the job
parent
5dbe9801
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
scripts/rspec_helpers.sh
scripts/rspec_helpers.sh
+2
-2
No files found.
scripts/rspec_helpers.sh
View file @
89ac770c
...
...
@@ -119,12 +119,12 @@ function rspec_matched_tests() {
local
test_file_count
=
$(
wc
-w
"
${
matching_tests_file
}
"
|
awk
{
'print $1'
}
)
if
[[
"
${
test_file_count
}
"
-gt
"
${
test_file_count_threshold
}
"
]]
;
then
echo
"There are more than
${
test_file_count_threshold
}
FOSS test files matched,"
echo
"Th
is job is intentionally failed because th
ere are more than
${
test_file_count_threshold
}
FOSS test files matched,"
echo
"which would take too long to run in this job."
echo
"To reduce the likelihood of breaking FOSS pipelines,"
echo
"please add [RUN AS-IF-FOSS] to the MR title and restart the pipeline."
echo
"This would run all as-if-foss jobs in this merge request"
echo
"and remove this job from the pipeline."
echo
"and remove this
failing
job from the pipeline."
exit
1
fi
...
...
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