Skip to content

Broken master: spec/features/projects/pipelines/legacy_pipelines_spec.rb

https://gitlab.com/gitlab-org/gitlab/-/jobs/2705691999 has a test failure from the same file as #365965 (closed), but the failure example is different:

 1) Pipelines when user is logged in GET /:project/-/pipelines when there is a delayed job when user played a delayed job immediately enqueues the delayed job
     Got 1 failure and 1 other error:
     1.1) Failure/Error: expect(delayed_job.reload).to be_pending
            expected `#<Ci::Build status: "scheduled", finished_at: nil, trace: nil, created_at: "2022-07-11 08:50:29.00000...r_resource_at: nil, processed: false, scheduling_type: "stage", id: 52, stage_id: 45, tag_list: nil>.pending?` to be truthy, got false
          # ./spec/features/projects/pipelines/legacy_pipelines_spec.rb:360:in `block (6 levels) in <main>'
          # ./spec/spec_helper.rb:418:in `block (3 levels) in <top (required)>'
          # ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
          # ./spec/spec_helper.rb:409:in `block (2 levels) in <top (required)>'
          # ./spec/spec_helper.rb:405:in `block (3 levels) in <top (required)>'
          # ./lib/gitlab/application_context.rb:52:in `with_raw_context'
          # ./spec/spec_helper.rb:405:in `block (2 levels) in <top (required)>'
          # ./spec/spec_helper.rb:263:in `block (2 levels) in <top (required)>'
          # ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <main>'
          # ./spec/support/flaky_tests.rb:27:in `block (2 levels) in <main>'
          # ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <main>'
          # ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
          # ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <main>'
     1.2) Failure/Error: raise JSConsoleError, message
          JSConsoleError:
            Unexpected browser console output:
            security - Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'interest-cohort'.
            https://localhost/com.snowplowanalytics.snowplow/tp2 - Failed to load resource: net::ERR_CONNECTION_REFUSED
            webpack-internal:///gzws 132:12 "[gl-modal]: Accessible name for modal missing. Please add title prop or aria-label."
          # ./spec/support/capybara.rb:200:in `block (2 levels) in <main>'
          # ./spec/spec_helper.rb:418:in `block (3 levels) in <top (required)>'
          # ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
          # ./spec/spec_helper.rb:409:in `block (2 levels) in <top (required)>'
          # ./spec/spec_helper.rb:405:in `block (3 levels) in <top (required)>'
          # ./lib/gitlab/application_context.rb:52:in `with_raw_context'
          # ./spec/spec_helper.rb:405:in `block (2 levels) in <top (required)>'
          # ./spec/spec_helper.rb:263:in `block (2 levels) in <top (required)>'
          # ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <main>'
          # ./spec/support/flaky_tests.rb:27:in `block (2 levels) in <main>'
          # ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <main>'
          # ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
          # ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <main>'
Finished in 24.66 seconds (files took 40.67 seconds to load)
1 example, 1 failure
Failed examples:
rspec ./spec/features/projects/pipelines/legacy_pipelines_spec.rb:359 # Pipelines when user is logged in GET /:project/-/pipelines when there is a delayed job when user played a delayed job immediately enqueues the delayed job

This is the screenshot:

image

The test failure shows that the job is still in the scheduled state, not in the pending state. I can reproduce this failure locally, though it's a very slow spec.

I'm also not sure why the pipeline is listed as runners, but the individual stages appear to be shown in the created state.

/cc: @f_caplette