Merge train - incorrect warning for non-merge train pipelines
Summary
Related to Add UI tip for merge trains (!55437 - merged)
With merge trains enabled, it's possible to incorrectly get warnings in the MR pipeline status widget about not being able to retry jobs.
This can happen when a pipeline is NOT a merge train pipeline (Merged Results pipeline or Merge Request pipeline) and a job fails. The UI might display a warning that you cannot retry the job because it's a merge train pipeline, despite the pipeline not being a merge train pipeline, and it's possible to retry the job.
For example, from gitlab-docs!2328 (closed)
The warning should not be there as the jobs can be retried, and the pipelines are not merge train pipelines.
Steps to reproduce
Example Project
What is the current bug behavior?
Warning shows up in the MR widget pipeline status (Incorrect):
Example 2 (July 2024), from gitlab-development-kit!3760 (merged) (but now merged so the UI doesn't show it anymore):
In both cases, the warning should not be there as the jobs can be retried, and the pipelines are not merge train pipelines.
What is the expected correct behavior?
The warning shows for failed jobs in merge train pipelines (that cannot be retried):
The warning does not display for failed jobs in merged results pipelines (that can be retried):
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)