Failure in spec/lib/gitlab/performance_bar_spec.rb
- https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/21960786
- https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/21960820
1) Gitlab::PerformanceBar.enabled? when allowed group exists when user is a member of the allowed group behaves like allowed user IDs are cached caches the allowed user IDs in cache
Failure/Error:
expect do
expect(described_class.enabled?(user)).to be_truthy
end.not_to exceed_query_limit(0)
Expected a maximum of 0 queries, got 2:
SELECT `namespaces`.* FROM `namespaces` WHERE `namespaces`.`type` IN ('Group') AND `namespaces`.`id` = 11 ORDER BY `namespaces`.`id` DESC LIMIT 1
SELECT `members`.`user_id` FROM `members` WHERE `members`.`source_type` = 'Namespace' AND `members`.`type` IN ('GroupMember') AND `members`.`source_id` = 11 AND `members`.`source_type` = 'Namespace' AND `members`.`type` IN ('GroupMember') AND `members`.`requested_at` IS NULL ORDER BY `members`.`id` DESC
Shared Example Group: "allowed user IDs are cached" called from ./spec/lib/gitlab/performance_bar_spec.rb:64
# ./spec/lib/gitlab/performance_bar_spec.rb:11:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:97:in `block (2 levels) in <top (required)>'
Finished in 29 minutes 11 seconds (files took 22.54 seconds to load)
2085 examples, 1 failure, 9 pending
Failed examples:
rspec './spec/lib/gitlab/performance_bar_spec.rb[1:1:4:2:2:1]' # Gitlab::PerformanceBar.enabled? when allowed group exists when user is a member of the allowed group behaves like allowed user IDs are cached caches the allowed user IDs in cache