Skip to content

Job status in job log page sidebar does not show real-time updates

What does this MR do and why?

The sidebar in the job log does not update in sync with the actual job status. This MR fixes this problem.

Screenshots or screen recordings

Before After
Screen_Recording_2022-10-25_at_2.31.24_PM Screen_Recording_2022-10-25_at_10.44.45_AM

How to set up and validate locally

  1. Make sure to have a working runner https://docs.gitlab.com/runner/configuration/macos_setup.html#set-up-macos-runners
  2. Make sure to setup a CI configuration file. To make testing this simple, setup a pipeline with just one jobs like so:
job_1:
  script: echo hello
  1. Navigate to the pipelines page and run a pipeline (CI/CD => Pipelines => Click run pipeline button at the top right)
  2. Go to the specific pipeline by clicking on it in the pipelines page
  3. Click on a job in your pipeline
  4. On the job page, hit the retry button
  5. The page will reload and you will see on the right the is running
  6. Wait for the job to finish
  7. Notice that the job finishes and the pipeline status on the right updates but the jobs stays running (thats the bug!)
  8. If you are on this branch, the job updates properly! 🎉

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #325559 (closed)

Edited by Frédéric Caplette

Merge request reports

Loading