Wrong job list and no pipeline shown in job view
Summary
When viewing a CI job, sometimes there's no info about which pipeline it belongs to. Also sometimes (I don't know if it's related, this one seems to be recent) the list of jobs shown in the sidebar is completely wrong, they belong to a different pipeline!
Steps to reproduce
I'm not sure, but I can give examples that show the behaviour for me (see below). The different behavior could be related to whether or not the job can be retried (depending on user permissions and settings).
Example Project
(For easier reference, open the following pages in separate windows/tabs.)
Take the pipelines here
Open (click on the "passed" button) pipeline #20780493 (April 20th)
Click on the "tinker" job in the Build stage, that's job #63949248
Inspect also the next pipeline (#20811197) and the corresponding "tinker" job (#64052561)
What is the current bug behavior?
The first job (#63949248) looks alright, but pay attention to the right sidebar. It shows the correct pipeline number, but a "trigger_doc" job that does in fact not belong to this pipeline, it actually belongs to (pipeline #20843505).
The second job (#64052561) does not show any pipeline, there's no clue where it came from! On the positive side, now the list of jobs at least seems to correspond to the same "mystery" pipeline.
What is the expected correct behavior?
I would expect, first, the pipeline number to be always visible for every job. I see no reason why the pipeline number should be secret, especially once I can see the job. And of course the list of jobs should be those belonging to the same pipeline as the job being viewed...
Relevant logs and/or screenshots
See above
Output of checks
This bug happens on GitLab.com