CommitStatusPresenter and CI::Status::Build specs failing in foss
Job #664020227 failed for gitlab-foss@e65a1b98:
FOSS_ONLY=1 rspec ./spec/presenters/commit_status_presenter_spec.rb
FOSS_ONLY=1 rspec ./spec/lib/gitlab/ci/status/build/failed_spec.rb
1) Gitlab::Ci::Status::Build::Failed covers all failure reasons protected_environment_failure is a valid status
Failure/Error: expect { tooltip }.not_to raise_error
expected no Exception, got #<KeyError: key not found: :protected_environment_failure> with backtrace:
# ./lib/gitlab/ci/status/build/failed.rb:59:in `fetch'
# ./lib/gitlab/ci/status/build/failed.rb:59:in `failure_reason_message'
# ./lib/gitlab/ci/status/build/failed.rb:55:in `description'
# ./lib/gitlab/ci/status/build/failed.rb:51:in `base_message'
# ./lib/gitlab/ci/status/build/failed.rb:33:in `status_tooltip'
# ./spec/lib/gitlab/ci/status/build/failed_spec.rb:88:in `block (3 levels) in <top (required)>'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.9.1/lib/rspec/core/memoized_helpers.rb:317:in `block (2 levels) in let'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.9.1/lib/rspec/core/memoized_helpers.rb:157:in `block (3 levels) in fetch_or_store'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.9.1/lib/rspec/core/memoized_helpers.rb:157:in `fetch'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.9.1/lib/rspec/core/memoized_helpers.rb:157:in `block (2 levels) in fetch_or_store'
# ./vendor/ruby/2.6.0/gems/rspec-support-3.9.2/lib/rspec/support/reentrant_mutex.rb:23:in `synchronize'
Edited by Kyle Wiebers