Disallowed deprecations detected while running test: spec/lib/gitlab/ci/config/yaml/result_spec.rb
Job #3929332288 failed for deed59e8:
Failures:
1) Gitlab::Ci::Config::Yaml::Result raises an error when reading a header when there is none
Failure/Error:
def initialize(config = nil, error: nil)
@config = Array.wrap(config)
@error = error
ArgumentError:
unknown keyword: :b
# ./lib/gitlab/ci/config/yaml/result.rb:10:in `initialize'
# ./spec/lib/gitlab/ci/config/yaml/result_spec.rb:20:in `new'
# ./spec/lib/gitlab/ci/config/yaml/result_spec.rb:20:in `block (2 levels) in <main>'
# ./spec/spec_helper.rb:502:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:494:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:490:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:59:in `with_raw_context'
# ./spec/spec_helper.rb:490:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:242:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <main>'
# ./spec/support/database/prevent_cross_joins.rb:108:in `block (3 levels) in <main>'
# ./spec/support/database/prevent_cross_joins.rb:62:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:108:in `block (2 levels) in <main>'
2) Gitlab::Ci::Config::Yaml::Result does not have a header when config is a single hash
Failure/Error:
def initialize(config = nil, error: nil)
@config = Array.wrap(config)
@error = error
ArgumentError:
unknown keywords: :a, :b
# ./lib/gitlab/ci/config/yaml/result.rb:10:in `initialize'
# ./spec/lib/gitlab/ci/config/yaml/result_spec.rb:7:in `new'
# ./spec/lib/gitlab/ci/config/yaml/result_spec.rb:7:in `block (2 levels) in <main>'
# ./spec/spec_helper.rb:502:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:494:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:490:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:59:in `with_raw_context'
# ./spec/spec_helper.rb:490:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:242:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <main>'
# ./spec/support/database/prevent_cross_joins.rb:108:in `block (3 levels) in <main>'
# ./spec/support/database/prevent_cross_joins.rb:62:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:108:in `block (2 levels) in <main>'
Finished in 3.36 seconds (files took 1 minute 0.86 seconds to load)
2 examples, 2 failures
Failed examples:
rspec ./spec/lib/gitlab/ci/config/yaml/result_spec.rb:19 # Gitlab::Ci::Config::Yaml::Result raises an error when reading a header when there is none
rspec ./spec/lib/gitlab/ci/config/yaml/result_spec.rb:6 # Gitlab::Ci::Config::Yaml::Result does not have a header when config is a single hash