-
Notifications
You must be signed in to change notification settings - Fork 121
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@izellevy see one comment, other than that LGTM
.github/workflows/PR.yml
Outdated
echo "Test Run ID: ${run_id}" | ||
echo "run_id=${run_id}" >> $GITHUB_OUTPUT | ||
- name: Cleanup indexes | ||
if: failure() && github.event_name == 'merge_group' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if: failure() && github.event_name == 'merge_group' | |
if: always() && github.event_name == 'merge_group' |
Let's not take any chances. The added time for successful tests is probably negligible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
logger.info("Usage: python scripts/cleanup_indexes.py <testrun_uid>") | ||
sys.exit(1) | ||
|
||
testrun_uid = sys.argv[1] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please promise me that if we're every adding even more one parameter, we're switching to argparse
😄
Problem
When an action get cancelled pytest is stopped using SIGKILL (by Github CI) which causes unused indexes to remain after the test.
Solution
Add a new step to clean up the indexes in case the run is interrupted in the middle.
Type of Change
Test Plan
Describe specific steps for validating this change.