Skip to content

Broken master: spec/lib/gitlab/ci/yaml_processor_spec.rb:621

https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/191368466:

Failures:

  1) Gitlab::Ci::YamlProcessor Include when validating a ci config file with no project context when a single string is provided does not return any error
     Failure/Error: expect { subject }.not_to raise_error

       expected no Exception, got #<Gitlab::Ci::YamlProcessor::ValidationError: Local file `/local.gitlab-ci.yml` does not have project!> with backtrace:
         # ./lib/gitlab/ci/yaml_processor.rb:22:in `rescue in initialize'
         # ./lib/gitlab/ci/yaml_processor.rb:12:in `initialize'
         # ./spec/lib/gitlab/ci/yaml_processor_spec.rb:615:in `new'
         # ./spec/lib/gitlab/ci/yaml_processor_spec.rb:615:in `block (3 levels) in <module:Ci>'
         # ./spec/lib/gitlab/ci/yaml_processor_spec.rb:622:in `block (6 levels) in <module:Ci>'
         # ./spec/lib/gitlab/ci/yaml_processor_spec.rb:622:in `block (5 levels) in <module:Ci>'
     # ./spec/lib/gitlab/ci/yaml_processor_spec.rb:622:in `block (5 levels) in <module:Ci>'

Finished in 15 minutes 33 seconds (files took 16.4 seconds to load)
1006 examples, 1 failure

Failed examples:

rspec ./spec/lib/gitlab/ci/yaml_processor_spec.rb:621 # Gitlab::Ci::YamlProcessor Include when validating a ci config file with no project context when a single string is provided does not return any error