Skip to content

Flaky spec/features/signed_commits_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 #4147557965 failed for 030d14c2:

2) GPG signed commits shows popover badges unverified signature: gpg key email does not match the committer_email when the committer_email belongs to the user as a unconfirmed secondary email
     Got 0 failures and 2 other errors:
     2.1) Failure/Error: super
          Capybara::ElementNotFound:
            Unable to find css ".popover"
            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/support/capybara_slow_finder.rb:18:in `synchronize'
          # ./spec/features/signed_commits_spec.rb:109:in `block (3 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)>'
          # ------------------
          # --- Caused by: ---
          # Capybara::ElementNotFound:
          #   Unable to find css ".popover"
          #   ./spec/support/capybara_slow_finder.rb:18:in `synchronize'
     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/8342950f34a66d9ec7cfe10b33d5494c?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
          # ./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)>'
  3) GPG signed commits shows popover badges unverified signature: commit contains multiple GPG signatures
     Got 0 failures and 2 other errors:
     3.1) Failure/Error: super
          Capybara::ElementNotFound:
            Unable to find css ".popover"
            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/support/capybara_slow_finder.rb:18:in `synchronize'
          # ./spec/features/signed_commits_spec.rb:123:in `block (3 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)>'
          # ------------------
          # --- Caused by: ---
          # Capybara::ElementNotFound:
          #   Unable to find css ".popover"
          #   ./spec/support/capybara_slow_finder.rb:18:in `synchronize'
     3.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/ecd35e491ed24df8aa5ae2c146c3e32d?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
          # ./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)>'
  4) GPG signed commits shows popover badges verified and the gpg user has a gitlab profile
     Got 0 failures and 2 other errors:
     4.1) Failure/Error: super
          Capybara::ElementNotFound:
            Unable to find css ".popover"
            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/support/capybara_slow_finder.rb:18:in `synchronize'
          # ./spec/features/signed_commits_spec.rb:136:in `block (3 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)>'
          # ------------------
          # --- Caused by: ---
          # Capybara::ElementNotFound:
          #   Unable to find css ".popover"
          #   ./spec/support/capybara_slow_finder.rb:18:in `synchronize'
     4.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/ecd35e491ed24df8aa5ae2c146c3e32d?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
          # ./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 13 seconds (files took 44.81 seconds to load)
196 examples, 3 failures
Failed examples:
rspec ./spec/features/signed_commits_spec.rb:101 # GPG signed commits shows popover badges unverified signature: gpg key email does not match the committer_email when the committer_email belongs to the user as a unconfirmed secondary email
rspec ./spec/features/signed_commits_spec.rb:115 # GPG signed commits shows popover badges unverified signature: commit contains multiple GPG signatures
rspec ./spec/features/signed_commits_spec.rb:128 # GPG signed commits shows popover badges verified and the gpg user has a gitlab profile