Spec failures in `spec/lib/gitlab/data_builder/pipeline_spec.rb` | Gitlab::DataBuilder::Pipeline.build build with...

Job #1464035560 failed for 02ce9400:

Trace

Failures:
  1) Gitlab::DataBuilder::Pipeline.build build with runner has runner attributes
     Failure/Error: expect(runner_data[:id]).to eq(ci_runner.id)
     NoMethodError:
       undefined method `[]' for nil:NilClass
     # ./spec/lib/gitlab/data_builder/pipeline_spec.rb:59:in `block (4 levels) in <top (required)>'
     # ./spec/spec_helper.rb:390:in `block (3 levels) in <top (required)>'
     # ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
     # ./spec/spec_helper.rb:381:in `block (2 levels) in <top (required)>'
     # ./spec/spec_helper.rb:377:in `block (3 levels) in <top (required)>'
     # ./lib/gitlab/application_context.rb:31:in `with_raw_context'
     # ./spec/spec_helper.rb:377:in `block (2 levels) in <top (required)>'
  2) Gitlab::DataBuilder::Pipeline.build build with environment has environment attributes
     Failure/Error: expect(build_environment_data[:name]).to eq(build.expanded_environment_name)
     NoMethodError:
       undefined method `[]' for nil:NilClass
     # ./spec/lib/gitlab/data_builder/pipeline_spec.rb:129:in `block (4 levels) in <top (required)>'
     # ./spec/spec_helper.rb:390:in `block (3 levels) in <top (required)>'
     # ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
     # ./spec/spec_helper.rb:381:in `block (2 levels) in <top (required)>'
     # ./spec/spec_helper.rb:377:in `block (3 levels) in <top (required)>'
     # ./lib/gitlab/application_context.rb:31:in `with_raw_context'
     # ./spec/spec_helper.rb:377:in `block (2 levels) in <top (required)>'