Flaky test ./spec/features/projects/show/user_sees_collaboration_links_spec.rb[1:1:1]
Flaky test ./spec/features/projects/show/user_sees_collaboration_links_spec.rb[1:1:1]
consistently fails on first attempt and passes on second attempt. Because of this, it is tracked by rspec-flaky-report and reported in gitlab-org/quality/triage-reports#1699 (closed)
The root cause is that the ProjectsController#show
controller exceeds the query limit of 100 at first call. Subsequent calls don't exceed the limit, so it passes after retry.
2021-01-25 15:55:26 +0800 Rack app ("GET /namespace1/project1" - (127.0.0.1)): #<Gitlab::QueryLimiting::Transaction::ThresholdExceededError: Too many SQL queries were executed in ProjectsController#show: a maximum of 100 is allowed but 102 SQL queries were executed>
shows all the expected links (FAILED - 1)
HTML screenshot: /Users/albert/Dev/src/gitlab.com/gitlab-org/gdk/gitlab/tmp/capybara/projects_show_collaboration_links_with_developer_user_shows_all_the_expected_links.html
Image screenshot: /Users/albert/Dev/src/gitlab.com/gitlab-org/gdk/gitlab/tmp/capybara/projects_show_collaboration_links_with_developer_user_shows_all_the_expected_links.png
/Users/albert/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/batch-loader-1.4.0/lib/batch_loader/graphql.rb:38: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/Users/albert/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/batch-loader-1.4.0/lib/batch_loader.rb:26: warning: The called method `batch' is defined here
hides the links when the project is archived
Web IDE link