Fix: gitlab_ci_yml_spec.rb hangs on #validation_message
Summary
The Developer Experience (DevEx) team is working on improving pipeline stability EPIC and has identified a recurring failure due to gitlab_ci_yml_spec.rb That's causing significant job timeouts.
Problem Description
The spec file spec/models/blob_viewer/gitlab_ci_yml_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/models/blob_viewer/gitlab_ci_yml_spec.rb. Expected to take 1.52 seconds.
BlobViewer::GitlabCiYml
does not allow STI
#validation_message
Terminated
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: 11 occurrences in the last 28 days
- Duration: Jobs hang for 60+ minutes before timing out
Related Issue
gitlab-org/quality/analytics/team#145
Related Links
Here is the list of failed jobs, due to the same error
Click to view Failed JOb URL's
https://gitlab.com/gitlab-org/gitlab/-/jobs/10799566926
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/10796176106
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/10795974055
https://gitlab.com/gitlab-org/gitlab/-/jobs/10796131627
https://gitlab.com/gitlab-org/gitlab/-/jobs/10796128787
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/10795058144
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/10795134689
https://gitlab.com/gitlab-org/gitlab/-/jobs/10795103332
https://gitlab.com/gitlab-org/gitlab/-/jobs/10794878839