Skip to content

Draft: POC for stage needs

Matija Čupić requested to merge mc/feature/unify-stage-dag-scheduling into master

What does this MR do and why?

This is a proof of concept for implementing a needs that references stages instead of builds.

Related #220758

FF Rollout issue #344662

How to set up and validate locally

  1. Create a project with the following pipeline config
stages:
  - first
  - second

sample_job:
  stage: first
  script:
    - echo 1

second_sample_job:
  stage: first
  script:
    - echo 1

test_job:
  needs:
    - name: first
      type: stage
  1. Verify that the test_job requires the stage called first to exist
  2. TODO: Verify that the test_job waits for all jobs in the first stage to complete before running.

MR acceptance checklist

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

Edited by Matija Čupić

Merge request reports