Fix: shortcuts_work_item_spec hangs on Web IDE test
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
The Developer Experience (DevEx) team is working on improving pipeline stability EPIC and has identified a recurring failure due to shortcuts_work_item_spec.rb That's causing significant job timeouts.
Problem Description
The spec file spec/features/work_items/detail/shortcuts_work_item_spec.rb is expected to take a few minutes to run, but hangs for 60 + minutes before timing out.
Error Details
Here is the error message
Click to view Error logs
# [RSpecRunTime] Starting example group spec/features/work_items/detail/shortcuts_work_item_spec.rb. Expected to take 1 minute 15.72 seconds.
Work item keyboard shortcuts
for signed in user
sidebar
DEPRECATION WARNING: using BatchLoader.for in GraphQL is deprecated. Use BatchLoader::GraphQL.for instead or return BatchLoader::GraphQL.wrap from your resolver.
pressing m opens milestones dropdown for editing
DEPRECATION WARNING: using BatchLoader.for in GraphQL is deprecated. Use BatchLoader::GraphQL.for instead or return BatchLoader::GraphQL.wrap from your resolver.
pressing l opens labels dropdown for editing
DEPRECATION WARNING: using BatchLoader.for in GraphQL is deprecated. Use BatchLoader::GraphQL.for instead or return BatchLoader::GraphQL.wrap from your resolver.
pressing a opens assignee dropdown for editing
DEPRECATION WARNING: using BatchLoader.for in GraphQL is deprecated. Use BatchLoader::GraphQL.for instead or return BatchLoader::GraphQL.wrap from your resolver.
pressing e starts editing mode
# [RSpecRunTime] RSpec elapsed time: 15 minutes 49.38 seconds. Current RSS: ~1610M. Threads: 24. load average: 1.91 1.74 1.42 1/386 3295
, available cpu cores: 2.
pressing r
DEPRECATION WARNING: using BatchLoader.for in GraphQL is deprecated. Use BatchLoader::GraphQL.for instead or return BatchLoader::GraphQL.wrap from your resolver.
focuses main comment field by default
DEPRECATION WARNING: using BatchLoader.for in GraphQL is deprecated. Use BatchLoader::GraphQL.for instead or return BatchLoader::GraphQL.wrap from your resolver.
quotes the selected text in main comment form
DEPRECATION WARNING: using BatchLoader.for in GraphQL is deprecated. Use BatchLoader::GraphQL.for instead or return BatchLoader::GraphQL.wrap from your resolver.
quotes the selected text in the discussion reply form
# [RSpecRunTime] RSpec elapsed time: 16 minutes 11.82 seconds. Current RSS: ~1611M. Threads: 25. load average: 1.78 1.72 1.43 1/387 3316
, available cpu cores: 2.
navigation
DEPRECATION WARNING: using BatchLoader.for in GraphQL is deprecated. Use BatchLoader::GraphQL.for instead or return BatchLoader::GraphQL.wrap from your resolver.
pressing . opens web IDE
# [RSpecRunTime] RSpec elapsed time: 16 minutes 25.03 seconds. Current RSS: ~1625M. Threads: 24. load average: 1.69 1.70 1.42 4/398 3334
, available cpu cores: 2.
message type 0x31 arrived from server while idle
message type 0x32 arrived from server while idle
message type 0x54 arrived from server while idle
message type 0x43 arrived from server while idle
WARNING: step_script could not run to completion because the timeout was exceeded. For more control over job and script timeouts see: https://docs.gitlab.com/ci/runners/configure_runners/#set-script-and-after_script-timeouts
ERROR: Job failed: execution took longer than 1h30m0s seconds
Impact
- Frequency: 20 occurrences in the last 28 days
- Duration: Jobs hang for 60+ minutes before timing out
Related Issue
gitlab-org/quality/analytics/team#145 (closed)
Related Links
Here is the list of failed jobs, due to the same error
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/10794882828
https://gitlab.com/gitlab-org/gitlab/-/jobs/10814186463
https://gitlab.com/gitlab-org/gitlab/-/jobs/10814186463
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/10794882828
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/10783111415
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/10778273087
https://gitlab.com/gitlab-org/gitlab/-/jobs/10778279177
https://gitlab.com/gitlab-org/gitlab/-/jobs/10756303876
https://gitlab.com/gitlab-org/gitlab/-/jobs/10688238403
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/10687738049
https://gitlab.com/gitlab-org/gitlab/-/jobs/10635232715
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/10615338045