mirror of
https://github.com/containers/podman.git
synced 2025-06-24 03:08:13 +08:00
Cirrus: Fix #3543: Failure in 'release' task
Normally when testing PRs, the final task to run is 'success'. It's purpose is three-fold: - Notify on IRC that a PR passed all testing. - Block merging of a PR unless all dependent tasks are successful. - When successful, publish cached binary release archives. Mistakenly, the 'release' task was not made dependent upon the 'success' task. Since 'success' only runs for PRs, this was causing post-merge failures due to the 'release' task not finding any release archives - the tasks which generate them are still running. Fix this by making the 'release' task depend upon the same items as the 'success' task. This will ensure it only runs as the very last step, for both PRs and on branches (post-merge). Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
@ -476,13 +476,13 @@ verify_test_built_images_task:
|
||||
always:
|
||||
<<: *standardlogs
|
||||
|
||||
|
||||
# Post message to IRC if everything passed
|
||||
# Post message to IRC if everything passed PR testing
|
||||
success_task:
|
||||
|
||||
only_if: $CIRRUS_BRANCH != 'master'
|
||||
|
||||
depends_on: # ignores any dependent task conditions
|
||||
# ignores any dependent task conditions, include everything except 'release'
|
||||
depends_on: &alltasks
|
||||
- "gating"
|
||||
- "vendor"
|
||||
- "varlink_api"
|
||||
@ -515,8 +515,7 @@ release_task:
|
||||
# allow_failures: $CI == "true"
|
||||
# skip_notifications: $CI == "true"
|
||||
|
||||
depends_on:
|
||||
- "success"
|
||||
depends_on: *alltasks
|
||||
|
||||
gce_instance:
|
||||
image_name: "${IMAGE_BUILDER_CACHE_IMAGE_NAME}"
|
||||
|
Reference in New Issue
Block a user