Commit b469baba authored by Lin Jen-Shin's avatar Lin Jen-Shin

Merge branch '284596-ensure-rspec-feature-flags-run-on-mr-pipelines-2' into 'master'

ci: Allow 'rspec:feature-flags' to fail and notify Slack on failure [RUN ALL RSPEC]

See merge request gitlab-org/gitlab!48126
parents 5844a756 e4cfd31d
......@@ -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