Flaky test './spec/services/groups/group_links/create_service_spec.rb[1:1:2:2:1:1]' # Groups::GroupLinks::CreateService#execute when user has proper membership to share a group when sharing outside the hierarchy is disabled when group is inside hierarchy
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 #4807383487 failed for 092dc15d:
Failures:
1) Groups::GroupLinks::CreateService#execute when user has proper membership to share a group when sharing outside the hierarchy is disabled when group is inside hierarchy behaves like shareable adds group to another group
Failure/Error: expect(result[:status]).to eq(:success)
expected: :success
got: :error
(compared using ==)
Diff:
@@ -1 +1 @@
-:success
+:error
Shared Example Group: "shareable" called from ./spec/services/groups/group_links/create_service_spec.rb:68
# ./spec/services/groups/group_links/create_service_spec.rb:40:in `block (4 levels) in <top (required)>'
# ./spec/services/groups/group_links/create_service_spec.rb:36:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:448:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:439:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:435:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:66:in `with_raw_context'
# ./spec/spec_helper.rb:435:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:266:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7: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 17.13 seconds (files took 15.14 seconds to load)
11 examples, 1 failure
Failed examples:
rspec './spec/services/groups/group_links/create_service_spec.rb[1:1:2:2:1:1]' # Groups::GroupLinks::CreateService#execute when user has proper membership to share a group when sharing outside the hierarchy is disabled when group is inside hierarchy behaves like shareable adds group to another group