-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Labels
Description
For anyone interested, here's a flaky spec I found during a run:
Failures:
1) Work Editor role read permissions with open visibility can see the show page for works deposited by other users
Failure/Error: expect(response).to have_http_status(:success)
expected the response to have a success status code (2xx) but it was 401
# ./spec/requests/work_editor_role_spec.rb:75:in `block (5 levels) in <top (required)>'
# ./spec/support/multitenancy_metadata.rb:50:in `block (2 levels) in <top (required)>'
# /usr/local/bundle/gems/webmock-3.19.1/lib/webmock/rspec.rb:39:in `block (2 levels) in <top (required)>'
# /usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:124:in `block in run'
# /usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `run'
# /usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
# /usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:37:in `block (2 levels) in setup'
Top 10 slowest examples (60.25 seconds, 22.6% of total time):
Admin can select cultural repository theme when the cultural repository theme is selected renders the partials in the theme folder
23.38 seconds ./spec/features/cultural_repository_theme_spec.rb:38
Work Editor role read permissions with authenticated visibility can see the show page for works it deposited
4.52 seconds ./spec/requests/work_editor_role_spec.rb:60
collection_type default collection type participants when creating a collection type includes user access_grants to render in tables
4.48 seconds ./spec/features/collection_type_spec.rb:549
Admin Dashboard as an administrator shows the admin page
4.19 seconds ./spec/features/admin_dashboard_spec.rb:14
Hyrax::OerPresenter#work_presenters filters out members that are file sets
4.16 seconds ./spec/presenters/hyrax/oer_presenter_spec.rb:130
LeaseAutoExpiryJob#perform Expires the lease on a work with expired lease
4.12 seconds ./spec/jobs/lease_auto_expiry_job_spec.rb:54
Work Editor role read permissions with open visibility can see the show page for works it deposited
4.01 seconds ./spec/requests/work_editor_role_spec.rb:60
Work Editor role read permissions with restricted visibility can see the show page for works it deposited
3.86 seconds ./spec/requests/work_editor_role_spec.rb:60
Users trying to access a Public Work's show page a registered user is authorized
3.83 seconds ./spec/requests/work_show_open_visibility_spec.rb:39
Admin can select cultural repository theme as a repository admin sets the cultural repository theme when the theme form is saved
3.7 seconds ./spec/features/cultural_repository_theme_spec.rb:21
Top 10 slowest example groups:
Admin can select cultural repository theme
13.54 seconds average (27.08 seconds / 2 examples) ./spec/features/cultural_repository_theme_spec.rb:5
Users trying to access a Public Work's show page
3.27 seconds average (9.8 seconds / 3 examples) ./spec/requests/work_show_open_visibility_spec.rb:3
CleanupAccountJob
2.89 seconds average (2.89 seconds / 1 example) ./spec/jobs/cleanup_account_job_spec.rb:3
Users trying to access an Institution Work's show page
2.7 seconds average (8.09 seconds / 3 examples) ./spec/requests/work_show_institution_visibility_spec.rb:3
collection_type
2.37 seconds average (37.89 seconds / 16 examples) ./spec/features/collection_type_spec.rb:7
LeaseAutoExpiryJob
2.23 seconds average (8.94 seconds / 4 examples) ./spec/jobs/lease_auto_expiry_job_spec.rb:4
Work Editor role
2.11 seconds average (38.06 seconds / 18 examples) ./spec/features/work_editor_role_spec.rb:6
Admin Dashboard
2.1 seconds average (8.39 seconds / 4 examples) ./spec/features/admin_dashboard_spec.rb:5
Hyrax::Ability::CollectionAbility
1.97 seconds average (25.6 seconds / 13 examples) ./spec/abilities/collection_ability_spec.rb:6
Work Editor role
1.82 seconds average (31.01 seconds / 17 examples) ./spec/requests/work_editor_role_spec.rb:4
Finished in 4 minutes 26.6 seconds (files took 19.12 seconds to load)
704 examples, 1 failure, 17 pending
Failed examples:
rspec './spec/requests/work_editor_role_spec.rb[1:1:1:2]' # Work Editor role read permissions with open visibility can see the show page for works deposited by other users
Randomized with seed 34883