Commit 1a0eb000 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'patch-158' into 'master'

Make clear in failure message that it fails the job

See merge request gitlab-org/gitlab!34699
parents 68f37b30 89ac770c
...@@ -119,12 +119,12 @@ function rspec_matched_tests() { ...@@ -119,12 +119,12 @@ function rspec_matched_tests() {
local test_file_count=$(wc -w "${matching_tests_file}" | awk {'print $1'}) local test_file_count=$(wc -w "${matching_tests_file}" | awk {'print $1'})
if [[ "${test_file_count}" -gt "${test_file_count_threshold}" ]]; then if [[ "${test_file_count}" -gt "${test_file_count_threshold}" ]]; then
echo "There are more than ${test_file_count_threshold} FOSS test files matched," echo "This job is intentionally failed because there are more than ${test_file_count_threshold} FOSS test files matched,"
echo "which would take too long to run in this job." echo "which would take too long to run in this job."
echo "To reduce the likelihood of breaking FOSS pipelines," 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 "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 "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 exit 1
fi fi
......
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