Flaky test: ee/spec/lib/audit/project_changes_auditor_spec.rb
In https://gitlab.com/gitlab-org/gitlab/-/jobs/3215913120:
Test environment set up in 0.465478266 seconds
Audit::ProjectChangesAuditor
# order random
.audit_changes
audit changes
when project path is updated
logs project_path_updated event (FAILED - 1)
1st Try error in ./ee/spec/lib/audit/project_changes_auditor_spec.rb:59:
#<Gitlab::Audit::Auditor (class)> received :audit with unexpected arguments
expected: ({:additional_details=>{:change=>"path", :from=>"", :target_details=>"group1/newpath", :to=>"group1/ne...19 group1/newpath>>, :target=>#<Project id:1419 group1/newpath>>, :target_details=>"group1/newpath"})
got: ({:additional_details=>{:change=>"path", :from=>"", :target_details=>"group1/newpath", :to=>"group1/ne...19 group1/newpath>>, :target=>#<Project id:1419 group1/newpath>>, :target_details=>"group1/newpath"})
RSpec::Retry: 2nd try ./ee/spec/lib/audit/project_changes_auditor_spec.rb:59
Failures:
1) Audit::ProjectChangesAuditor.audit_changes audit changes when project path is updated logs project_path_updated event
Failure/Error: auditor_instance.execute
#<Gitlab::Audit::Auditor (class)> received :audit with unexpected arguments
expected: ({:additional_details=>{:change=>"path", :from=>"", :target_details=>"group1/newpath", :to=>"group1/ne...20 group1/newpath>>, :target=>#<Project id:1420 group1/newpath>>, :target_details=>"group1/newpath"})
got: ({:additional_details=>{:change=>"path", :from=>"", :target_details=>"group1/newpath", :to=>"group1/ne...20 group1/newpath>>, :target=>#<Project id:1420 group1/newpath>>, :target_details=>"group1/newpath"})
# ./ee/lib/audit/changes.rb:83:in `audit_event'
# ./ee/lib/audit/changes.rb:25:in `audit_changes'
# ./ee/lib/audit/project_changes_auditor.rb:7:in `execute'
# ./ee/spec/lib/audit/project_changes_auditor_spec.rb:77:in `block (5 levels) in <main>'
# ./spec/spec_helper.rb:413:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:405:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:401:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:58:in `with_raw_context'
# ./spec/spec_helper.rb:401:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:241:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <main>'
# ./spec/support/flaky_tests.rb:27: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 5.31 seconds (files took 37.11 seconds to load)
1 example, 1 failure
Failed examples:
rspec ./ee/spec/lib/audit/project_changes_auditor_spec.rb:59 # Audit::ProjectChangesAuditor.audit_changes audit changes when project path is updated logs project_path_updated event