Flaky test ee/spec/controllers/groups/hooks_controller_spec.rb:265 | Groups::HooksController with group_webhooks enabled POST #test when group has a project when the endpoint receives requests above the limit prevents making test requests
Summary
Job #4368991422 failed for eabac934:
1) Groups::HooksController with group_webhooks enabled POST #test when group has a project when the endpoint receives requests above the limit prevents making test requests
Failure/Error: expect(response.body).to eq(_('This endpoint has been requested too many times. Try again later.'))
expected: "This endpoint has been requested too many times. Try again later."
got: "<html><body>You are being <a href=\"http://test.host/groups/group1/-/hooks\">redirected</a>.</body></html>"
(compared using ==)
# ./ee/spec/controllers/groups/hooks_controller_spec.rb:272:in `block (6 levels) in <main>'
# ./spec/spec_helper.rb:425:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:416:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:412:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:61:in `with_raw_context'
# ./spec/spec_helper.rb:412:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:243:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <main>'
# ./spec/support/redis.rb:17:in `block (3 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 8.44 seconds (files took 37.62 seconds to load)
2 examples, 1 failure
Failed examples:
rspec ./ee/spec/controllers/groups/hooks_controller_spec.rb:265 # Groups::HooksController with group_webhooks enabled POST #test when group has a project when the endpoint receives requests above the limit prevents making test requests
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.
Edited by Bojan Marjanovic