Skip to content

Show an error in Schedules UI when a scheduled pipeline failed to be created.

Problem to solve

Customer encountered (internal only) an issue where in a scheduled pipeline will not run (even when ran manually via the CI/CD -> Schedules UI). It turns out that the there is a logic error in .gitlab-ci.yml where the main job uses the needs keyword and pointed to a job that has except:schedules set.

Intended users

User experience goal

The user should be able to see a helpful error message either in the CI/CD -> Schedules or CI/CD -> Pipelines when a scheduled pipeline failed to be created due to logic error in .gitlab-ci.yml.

Proposal

Add a pipeline schedule status to reflect that the scheduled pipeline was not created as scheduled.

#224958 (comment 1382437360)

Further details

Steps to reproduce scenario:

  1. Create a project
  2. Add the following as the CI configuration that passes lint checker
    build:
      stage: build
      script: echo
    test:
      stage: test
      needs: ['build']
      script: echo
      except:
        - schedules
    deploy:
      stage: deploy
      needs: ['test']
      script: echo
  3. Create a daily pipeline schedule against the default branch under CI/CD > Schedules page
  4. Await the schedule execution time, or attempt an immediate execution of the schedule
  5. Schedule does not launch a pipeline
  6. Intuitively head to CI/CD > Pipelines page to try to find why the schedule failed to run
  7. No pipeline entry matching the schedule appears in CI/CD > Pipelines page
  8. There's zero information anywhere on the UI as to why the schedule failed to run

Permissions and Security

Documentation

Availability & Testing

What does success look like, and how can we measure that?

What is the type of buyer?

Is this a cross-stage feature?

Links / references

Customer information

Edited by Max Fan