Skip to content

Flaky test: spec/features/invites_spec.rb:198 # Group or Project invitations when inviting an unregistered user when registering using invitation email with email confirmation disabled when the user sign-up using a different email address signs up and red

Summary

Master-broken incident: gitlab-org/quality/engineering-productivity/master-broken-incidents#2721 (closed)

Job #4446799324 failed for 040fd527:


  1) Group or Project invitations when inviting an unregistered user when registering using invitation email with email confirmation disabled when the user sign-up using a different email address signs up and redirects to the activity page
     Failure/Error: expect(page).to have_current_path(activity_group_path(group), ignore_query: true)

       expected "/users/user5/exists" to equal "/groups/owned/-/activity"

       Timeout (30s) reached while running a waiting Capybara finder.
       Consider using a non-waiting finder.

       See https://www.cloudbees.com/blog/faster-rails-tests
     # ./spec/features/invites_spec.rb:202:in `block (6 levels) in <main>'
     # ./spec/spec_helper.rb:415:in `block (3 levels) in <top (required)>'
     # ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
     # ./spec/spec_helper.rb:406:in `block (2 levels) in <top (required)>'
     # ./spec/spec_helper.rb:402:in `block (3 levels) in <top (required)>'
     # ./lib/gitlab/application_context.rb:61:in `with_raw_context'
     # ./spec/spec_helper.rb:402: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/fast_quarantine.rb:23: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 51.49 seconds (files took 57 seconds to load)
1 example, 1 failure

Failed examples:

rspec ./spec/features/invites_spec.rb:198 # Group or Project invitations when inviting an unregistered user when registering using invitation email with email confirmation disabled when the user sign-up using a different email address signs up and redirects to the activity page

Randomized with seed 63536

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.

Thursday 2023-08-24 00:35 UTC - gitlab-org/gitlab broken master with rspec system pg14 15/28

See master broken incident: gitlab-org/quality/engineering-productivity/master-broken-incidents#3372 (closed)

./spec/features/invites_spec.rb:269 - rspec system pg14 15/28:
 1) Group or Project invitations when inviting an unregistered user when registering using invitation email with email confirmation enabled when the user signs up using a different email address when email confirmation setting is set to `soft` signs up and redirects to the group activity page
     Failure/Error: expect(page).to have_current_path(activity_group_path(group), ignore_query: true)

       expected "/users/user5/exists" to equal "/groups/owned/-/activity"

       Timeout (30s) reached while running a waiting Capybara finder.
       Consider using a non-waiting finder.

       See https://www.cloudbees.com/blog/faster-rails-tests
     # ./spec/features/invites_spec.rb:273:in `block (7 levels) in <main>'
     # ./spec/spec_helper.rb:453:in `block (3 levels) in <top (required)>'
     # ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
     # ./spec/spec_helper.rb:444:in `block (2 levels) in <top (required)>'
     # ./spec/spec_helper.rb:440:in `block (3 levels) in <top (required)>'
     # ./lib/gitlab/application_context.rb:66:in `with_raw_context'
     # ./spec/spec_helper.rb:440:in `block (2 levels) in <top (required)>'
     # ./spec/spec_helper.rb:268:in `block (2 levels) in <top (required)>'
     # ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <main>'
     # ./spec/support/fast_quarantine.rb:22: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 1 minute 17.96 seconds (files took 1 minute 18.75 seconds to load)
1 example, 1 failure

Failed examples:

rspec ./spec/features/invites_spec.rb:269 # Group or Project invitations when inviting an unregistered user when registering using invitation email with email confirmation enabled when the user signs up using a different email address when email confirmation setting is set to `soft` signs up and redirects to the group activity page

Randomized with seed 62412
Edited by Ross Byrne