Skip to content

Fix non-retrying bridges after retried builds in CI pipelines

Furkan Ayhan requested to merge 213456-fix-bridge-retry-after-retry into master

What does this MR do?

Related to #213456 (closed)

When a job fails, subsequent jobs are skipped. After the failed job is retried, subsequent skipped jobs are marked as "processable" (created state).

However, subsequent bridge jobs are not marked as "processable", and this MR fixes that problem.

Example pipeline YAML files:
# .gitlab-ci.yml

build:
  stage: build
  script:
    - exit $((RANDOM % 2))

trigger_job:
  stage: deploy
  trigger:
    include: .child-pipeline.yml
# .child-pipeline.yml

deploy:
  stage: deploy
  script:
    - echo deploy
First run:

Screen_Shot_2020-08-20_at_17.49.18

Second run:

Screen_Shot_2020-08-20_at_17.53.42

What it needs to be:

Screen_Shot_2020-08-20_at_17.50.46

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Furkan Ayhan

Merge request reports