Flaky spec/features/projects/pipelines/pipeline_spec.rb

Summary

Steps to reproduce

Please refer to Flaky tests documentation to learn more about how to reproduce them.

Proposed Resolution

Please refer to the Resolution guidance to learn more about resolution of broken master.

Once the flaky failure has been fixed on the default branch, open merge requests to cherry-pick the fix to the active stable branches.

Job #4147557949 failed for 030d14c2:

Failures:
  1) Pipeline when user does not have access to read jobs GET /:project/-/pipelines/:id does not link to job
     Got 1 failure and 1 other error:
     1.1) Failure/Error: expect(page).not_to have_selector('.js-pipeline-graph-job-link')
            expected not to find visible css ".js-pipeline-graph-job-link", found 7 matches: "build", "test", "jenkins", "delayed-job", "deploy", "manual-build", "prepare"
            Timeout (45s) reached while running a waiting Capybara finder.
            Consider using a non-waiting finder.
            See https://www.cloudbees.com/blog/faster-rails-tests
          # ./spec/features/projects/pipelines/pipeline_spec.rb:854:in `block (4 levels) in <top (required)>'
          # ./spec/spec_helper.rb:427:in `block (3 levels) in <top (required)>'
          # ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
          # ./spec/spec_helper.rb:419:in `block (2 levels) in <top (required)>'
          # ./spec/spec_helper.rb:415:in `block (3 levels) in <top (required)>'
          # ./lib/gitlab/application_context.rb:61:in `with_raw_context'
          # ./spec/spec_helper.rb:415: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 <top (required)>'
          # ./spec/support/database/prevent_cross_joins.rb:108:in `block (3 levels) in <top (required)>'
          # ./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 <top (required)>'
     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://www.gravatar.com/avatar/8ba5877a13c912d19a8037cb4f38e52c?s=48&d=identicon - Failed to load resource: net::ERR_CONNECTION_RESET
            https://www.gravatar.com/avatar/8ba5877a13c912d19a8037cb4f38e52c?s=80&d=identicon - Failed to load resource: net::ERR_CONNECTION_RESET
            http://localhost/com.snowplowanalytics.snowplow/tp2 - Failed to load resource: net::ERR_CONNECTION_REFUSED
          # ./spec/support/capybara.rb:221:in `block (2 levels) in <top (required)>'
          # ./spec/spec_helper.rb:427:in `block (3 levels) in <top (required)>'
          # ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
          # ./spec/spec_helper.rb:419:in `block (2 levels) in <top (required)>'
          # ./spec/spec_helper.rb:415:in `block (3 levels) in <top (required)>'
          # ./lib/gitlab/application_context.rb:61:in `with_raw_context'
          # ./spec/spec_helper.rb:415: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 <top (required)>'
          # ./spec/support/database/prevent_cross_joins.rb:108:in `block (3 levels) in <top (required)>'
          # ./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 <top (required)>'
  2) Pipeline when a bridge job exists GET /:project/-/pipelines/:id when a scheduled pipeline is created by a blocked user does not create a new Pipeline
     Got 1 failure and 1 other error:
     2.1) Failure/Error: expect(page).not_to have_selector('.ci-table')
            expected not to find visible css ".ci-table", found 1 match: "Status\nPipeline\nTriggerer\nStages\npending\nIn progress\nMerge branch 'branch-merged' into 'master'\n#72 master b83d6e39\nlatest\nDownload artifacts"
            Timeout (45s) reached while running a waiting Capybara finder.
            Consider using a non-waiting finder.
            See https://www.cloudbees.com/blog/faster-rails-tests
          # ./spec/features/projects/pipelines/pipeline_spec.rb:919:in `block (5 levels) in <top (required)>'
          # ./spec/spec_helper.rb:427:in `block (3 levels) in <top (required)>'
          # ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
          # ./spec/spec_helper.rb:419:in `block (2 levels) in <top (required)>'
          # ./spec/spec_helper.rb:415:in `block (3 levels) in <top (required)>'
          # ./lib/gitlab/application_context.rb:61:in `with_raw_context'
          # ./spec/spec_helper.rb:415: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 <top (required)>'
          # ./spec/support/database/prevent_cross_joins.rb:108:in `block (3 levels) in <top (required)>'
          # ./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 <top (required)>'
     2.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://www.gravatar.com/avatar/c05fbd8ce5a00b04718a2c97a3e3fb3f?s=48&d=identicon - Failed to load resource: net::ERR_CONNECTION_RESET
            https://www.gravatar.com/avatar/c05fbd8ce5a00b04718a2c97a3e3fb3f?s=80&d=identicon - Failed to load resource: net::ERR_CONNECTION_RESET
            http://localhost/com.snowplowanalytics.snowplow/tp2 - Failed to load resource: net::ERR_CONNECTION_REFUSED
            security - Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'interest-cohort'.
            https://www.gravatar.com/avatar/c05fbd8ce5a00b04718a2c97a3e3fb3f?s=48&d=identicon - Failed to load resource: net::ERR_CONNECTION_RESET
            http://localhost/com.snowplowanalytics.snowplow/tp2 - Failed to load resource: net::ERR_CONNECTION_REFUSED
            https://www.gravatar.com/avatar/07e1e9ffdda52d8c519ac5c49929d7dc?s=80&d=identicon - Failed to load resource: net::ERR_CONNECTION_RESET
            https://www.gravatar.com/avatar/c05fbd8ce5a00b04718a2c97a3e3fb3f?s=80&d=identicon - Failed to load resource: net::ERR_CONNECTION_RESET
          # ./spec/support/capybara.rb:221:in `block (2 levels) in <top (required)>'
          # ./spec/spec_helper.rb:427:in `block (3 levels) in <top (required)>'
          # ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
          # ./spec/spec_helper.rb:419:in `block (2 levels) in <top (required)>'
          # ./spec/spec_helper.rb:415:in `block (3 levels) in <top (required)>'
          # ./lib/gitlab/application_context.rb:61:in `with_raw_context'
          # ./spec/spec_helper.rb:415: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 <top (required)>'
          # ./spec/support/database/prevent_cross_joins.rb:108:in `block (3 levels) in <top (required)>'
          # ./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 <top (required)>'
Finished in 28 minutes 39 seconds (files took 49.36 seconds to load)
303 examples, 2 failures
Failed examples:
rspec ./spec/features/projects/pipelines/pipeline_spec.rb:853 # Pipeline when user does not have access to read jobs GET /:project/-/pipelines/:id does not link to job
rspec ./spec/features/projects/pipelines/pipeline_spec.rb:916 # Pipeline when a bridge job exists GET /:project/-/pipelines/:id when a scheduled pipeline is created by a blocked user does not create a new Pipeline

pipeline_when_a_bridge_job_exists_get_project_-_pipelines_id_when_a_scheduled_pipeline_is_created_by_a_blocked_user_does_not_create_a_new_pipeline

pipeline_when_user_does_not_have_access_to_read_jobs_get_project_-_pipelines_id_does_not_link_to_job

Edited by Alina Mihaila