Failures in spec/models/preloaders/user_max_access_level_in_projects_preloader_spec.rb:38 and 45 and 56
This test spec/models/preloaders/user_max_access_level_in_projects_preloader_spec.rb:38
and line 45 and 56, can only pass with rspec-retry
, failing with: https://gitlab.com/gitlab-org/gitlab/-/jobs/6324433092
2) Preloaders::UserMaxAccessLevelInProjectsPreloader#execute when user is present avoids N+1 queries
Failure/Error: expect { query }.not_to make_queries
expected not to make queries but received 1 queries
# ./spec/models/preloaders/user_max_access_level_in_projects_preloader_spec.rb:39:in `block (4 levels) in <top (required)>'
And
1) Preloaders::UserMaxAccessLevelInProjectsPreloader#execute when user is present when projects is an array of IDs avoids N+1 queries
Failure/Error: expect { query }.not_to make_queries
expected not to make queries but received 1 queries
# ./spec/models/preloaders/user_max_access_level_in_projects_preloader_spec.rb:46:in `block (5 levels) in <main>'
And
1) Preloaders::UserMaxAccessLevelInProjectsPreloader#execute when user is present when projects is a relation including project_authorizations avoids N+1 queries
Failure/Error: expect { query }.not_to make_queries
expected not to make queries but received 1 queries
# ./spec/models/preloaders/user_max_access_level_in_projects_preloader_spec.rb:57:in `block (5 levels) in <main>'
It's quarantined in !145653 (merged)
Edited by Lin Jen-Shin