Manual job runs even then dependency task artifacts has expired

Summary

I can still run manual task, even though dependent task artifacts has expired.

Steps to reproduce

Given CI config like that:

build:
  stage: build
  script:
    - mkdir -p dir
    - echo "blabla" > dir/test
  artifacts:
    expire_in: 60 seconds
    paths:
      - dir

deploy:
  stage: deploy
  dependencies:
    - build
  script:
    - cat dir/test
  when: manual

What is the current bug behavior?

I can still run deploy task even though dependent task build artifacts has expired.

What is the expected correct behavior?

I cannot run deploy task then dependent task build artifacts has expired. Or at least there should be some dependency expirement warning on pipeline or job view.

Possible fixes

Just check dependency validity.

Assignee Loading
Time tracking Loading