Skip to content

Commit 65e6e9f

Browse files
authored
[EBPF] kmt: avoid cleanup job failures on canceled pipelines (#33525)
1 parent d040bbf commit 65e6e9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.gitlab/kernel_matrix_testing/common.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@
218218
# setup_env job hasn't finished. This causes instances to be leftover for more time than necessary.
219219
- inv kmt.wait-for-setup-job --pipeline-id $CI_PIPELINE_ID --arch $ARCH --component $TEST_COMPONENT
220220
- aws ec2 describe-instances --filters $FILTER_TEAM $FILTER_MANAGED $FILTER_PIPELINE $FILTER_ARCH $FILTER_INSTANCE_TYPE $FILTER_TEST_COMPONENT --output json --query $QUERY_INSTANCE_IDS | tee -a instance.json
221-
- cat instance.json | jq -r 'map(.[]) | .[]' | grep -v "null" | xargs -n 1 -t aws ec2 terminate-instances --instance-ids
221+
- cat instance.json | jq -r 'map(.[]) | .[]' | grep -v "null" | xargs --no-run-if-empty -n 1 -t aws ec2 terminate-instances --instance-ids
222222
after_script:
223223
- DD_API_KEY=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $AGENT_API_KEY_ORG2 token) || exit $?; export DD_API_KEY
224224
- !reference [.tag_kmt_ci_job]

0 commit comments

Comments
 (0)