Commit e4cfd31d authored by Rémy Coutable's avatar Rémy Coutable

ci: Allow 'rspec:feature-flags' to fail and notify Slack on failure

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 603f057a
......@@ -384,6 +384,7 @@ rspec:feature-flags:
- .coverage-base
- .rails:rules:rspec-feature-flags
stage: post-test
allow_failure: true
# We cannot use needs since it would mean needing 84 jobs (since most are parallelized)
# so we use `dependencies` here.
dependencies:
......@@ -403,7 +404,8 @@ rspec:feature-flags:
- memory-on-boot
script:
- run_timed_command "bundle install --jobs=$(nproc) --path=vendor --retry=3 --quiet --without default development test production puma unicorn kerberos metrics omnibus ed25519"
- run_timed_command "bundle exec scripts/used-feature-flags"
- 'run_timed_command "bundle exec scripts/used-feature-flags" || (scripts/slack master-broken "☠️ \`${CI_JOB_NAME}\` failed! ☠️ See ${CI_JOB_URL}" ci_failing "GitLab Bot" && exit 1)'
# EE/FOSS: default refs (MRs, master, schedules) jobs #
#######################################################
......
#!/usr/bin/env ruby
require 'set'
class String
def red
"\e[31m#{self}\e[0m"
......
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