Auto-stop not showing on environment
Summary
When trying to configure auto-stop the setting is apparently not being applied to the environment. When viewing the environment the auto-stop time doesn't appear next to the environment name in the top-left and the environment doesn't show an auto-stop time. I've tried to reproduce this locally and wasn't able to do so.
Steps to reproduce
- Configure a project with this .gitlab_ci.yml:
- build
- review
build-min-code:
stage: build
script:
- exit 0
review_app:
stage: review
before_script:
- echo $CI_COMMIT_REF_SLUG
- echo "review_app before_script"
environment:
name: review-master/${CI_COMMIT_REF_SLUG}
auto_stop_in: 11 minutes
on_stop: stop-review
script: echo "A++++++++++ Would review again"
stop-review:
stage: review
variables:
GIT_STRATEGY: fetch
environment:
name: review-master/${CI_COMMIT_REF_SLUG}
action: stop
script: echo "Stop review"
when: manual
- Commit the change and immediately check the Environment; until the Build stage completes the auto_stop_in value will not appear when viewing the Environment.
- Update the Build script to
exit 1
and test again. The auto_stop_in value will be removed from the environment.
Example Project
https://gitlab.com/duncan_harris/auto-stop-test
What is the current bug behavior?
It's not clear to me if the auto_stop_in value should be displayed at the environment prior to the stage being run.
What is the expected correct behavior?
The documentation seems to state that the interface will reflect this value prior to the stage being run.
Relevant logs and/or screenshots
Output of checks
GitLab Enterprise Edition 13.3.0-pre 52083dab
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)
Edited by Duncan