diff options
author | Christopher A. Snapp <csnapp@chef.io> | 2020-06-01 11:05:03 -0600 |
---|---|---|
committer | Christopher A. Snapp <csnapp@chef.io> | 2020-06-04 11:16:12 -0600 |
commit | 1234b745a93167d2227c9ab840706377393665e0 (patch) | |
tree | b9ab80b1c599b5b5b610921a749ab9216aac0c72 /.expeditor/config.yml | |
parent | cbf2666da391bde24de60b726d22486545693ae3 (diff) | |
download | chef-1234b745a93167d2227c9ab840706377393665e0.tar.gz |
Add nightly cleanup of orphaned test resources
The private verify pipeline currently uses Test Kitchen Azure to test against Windows 10.
Unfortunately this approach does not clean up after itself and orphaned resource groups are typically left behind. If this is not taken care of we'll exhaust our resource pool (esp. public ips).
This commit simply adds a nightly (1am) script to delete the Azure resource groups associated with the private verify pipeline.
Signed-off-by: Christopher A. Snapp <csnapp@chef.io>
Diffstat (limited to '.expeditor/config.yml')
-rw-r--r-- | .expeditor/config.yml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.expeditor/config.yml b/.expeditor/config.yml index e76830b4b4..7858f9d866 100644 --- a/.expeditor/config.yml +++ b/.expeditor/config.yml @@ -69,6 +69,11 @@ github: - chef-14: version_constraint: 14* +schedules: + - name: cleanup_orphaned_test_resources + description: Cleanup orphaned test resources + cronline: "0 1 * * *" # every day at 1am + changelog: rollup_header: Changes not yet released to stable @@ -96,6 +101,10 @@ merge_actions: only_if: built_in:bump_version subscriptions: + - workload: schedule_triggered:{{agent_id}}:cleanup_orphaned_test_resources:* + actions: + - bash:.expeditor/cleanup_orphaned_test_resources.sh + # the omnibus/docker/gem chain - workload: artifact_published:unstable:chef:{{version_constraint}} actions: |