Buildkite integration bug - Job remain pending on GitLab UI even it's completed on Buildkite

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

The customer has existing buildkite integration configured 2 years ago. Recently:

  • Each pipeline created two jobs in GitLab UI for the same buildkite job and both jobs linked to the same buildkite job url
  • Only one job status is updated when the job is completed on buildkite, this causes the pipeline to stuck in pending state

Proposal

Steps to reproduce

  1. Have a project configured with Buildkite integration
  2. Trigger a pipeline for a new commit
  3. Run a manual pipeline immediately when the previous pipeline start
  4. Once the job completed, observe that the first pipeline external buildkite job stuck in pending and only the new pipeline external buildkite job status got updated to completed even though they're both linked to the same job on buildkite.

ZD: https://gitlab.zendesk.com/agent/tickets/635954

Edited by 🤖 GitLab Bot 🤖