-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update purge test resources to fix the workflow failures #1552
Conversation
9e3ebf6
to
9ba20f7
Compare
jq -r '.[] | select(.creationTime == null || .creationTime < '$hours_ago') | .Name' resource_groups.json > ${{ env.AZURE_RG_DELETE_LIST_FILE}} | ||
jq -r '.[] | {name: .Name, creationTime: .creationTime // "None"}' resource_groups.json > $GITHUB_STEP_SUMMARY | ||
jq -r '.[] | select(.creationTime == null // (.creationTime | tonumber) < '$hours_ago') | .Name' resource_groups.json > ${{ env.AZURE_RG_DELETE_LIST_FILE}} | ||
jq -r '.[] | "\(.Name) \(.creationTime // "None")"' resource_groups.json > $GITHUB_STEP_SUMMARY |
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.
nit: comments might be helpful here. We made sure creationTime can be converted to a number and we're changing op format
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.
Added comments @lakshmimsft
@@ -40,8 +41,8 @@ jobs: | |||
done | |||
|
|||
- name: Create GitHub issue on failure | |||
if: ${{ failure() }} | |||
if: failure() && github.event_name == 'schedule' |
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.
nice
@@ -40,8 +41,8 @@ jobs: | |||
done | |||
|
|||
- name: Create GitHub issue on failure | |||
if: ${{ failure() }} | |||
if: failure() && github.event_name == 'schedule' |
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.
Does this workflow run anywhere outside of scheduled runs?
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.
I add this to all workflows because I don't want issues to be created during pull requests. I spend a lot of time during some PRs 😁 Any suggestions? @kachawla
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.
What I'm trying to understand is, does this workflow run for PRs? :)
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.
I just double-checked and, no, it does not run for PRs. My bad. I will remove this now.
@@ -22,13 +23,13 @@ jobs: | |||
- name: List Test Resource Groups | |||
run: | | |||
echo "## Test resource group list" >> $GITHUB_STEP_SUMMARY | |||
az group list --query "[?starts_with(name, 'samplestest-')].{Name:name, creationTime:tags.creationTime}" -o json > resource_groups.json | |||
az group list --query "[?starts_with(name, 'rg-samplestest-')].{Name:name, creationTime:tags.creationTime}" -o json > resource_groups.json |
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.
What is causing this to change?
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.
I think it was wrong before. We can see that the resource groups we create have a prefix of rg-samplestest
: https://github.com/radius-project/samples/blob/v0.33/.github/workflows/test.yaml#L122.
Signed-off-by: ytimocin <[email protected]>
9ba20f7
to
87690ee
Compare
Signed-off-by: ytimocin <[email protected]> Signed-off-by: sk593 <[email protected]>
Signed-off-by: ytimocin <[email protected]> Signed-off-by: sk593 <[email protected]>
* update gh to ado sync workflow to use service principals (#1363) * Make env configurable (#1046) Signed-off-by: Reshma Abdul Rahim <[email protected]> * Adding test AKS workflow to v0.32 (#1052) * Run functional tests every 2 hours and add another workflow that runs… (#1020) * Run functional tests every 2 hours and add another workflow that runs the tests on AKS instead of k3d Signed-off-by: ytimocin <[email protected]> * Triggering workflow Signed-off-by: ytimocin <[email protected]> --------- Signed-off-by: ytimocin <[email protected]> * Removing the run of the AKS workflow on PRs (#1051) Signed-off-by: ytimocin <[email protected]> * Update the timeout (30s) for Playwright Signed-off-by: ytimocin <[email protected]> --------- Signed-off-by: ytimocin <[email protected]> * Use retry and update eshop playwright tests to wait for the catalog to appear (#1213) Signed-off-by: ytimocin <[email protected]> * update gh to ado sync workflow to use service principals Signed-off-by: Will Tsai <[email protected]> --------- Signed-off-by: Reshma Abdul Rahim <[email protected]> Signed-off-by: ytimocin <[email protected]> Signed-off-by: Will Tsai <[email protected]> Signed-off-by: Will <[email protected]> Co-authored-by: Reshma Abdul Rahim <[email protected]> Co-authored-by: Yetkin Timocin <[email protected]> Signed-off-by: sk593 <[email protected]> * Workflow and playwright test updates (#1360) Signed-off-by: ytimocin <[email protected]> Signed-off-by: sk593 <[email protected]> * Changing the place of page.reload in the tests (#1492) Signed-off-by: ytimocin <[email protected]> Signed-off-by: sk593 <[email protected]> * Adding a job that will purge AWS EKS clusters every 6 hours (#1462) Signed-off-by: ytimocin <[email protected]> Signed-off-by: sk593 <[email protected]> * Update all deps of all apps (#1536) Signed-off-by: ytimocin <[email protected]> Signed-off-by: sk593 <[email protected]> * Updating the runner of purge azure test resources workflow (#1537) Signed-off-by: ytimocin <[email protected]> Signed-off-by: sk593 <[email protected]> * Update purget test resources to fix the workflow failures (#1552) Signed-off-by: ytimocin <[email protected]> Signed-off-by: sk593 <[email protected]> * Fixing the eShop catalog load issue for the UI tests (#1548) Signed-off-by: ytimocin <[email protected]> Signed-off-by: sk593 <[email protected]> --------- Signed-off-by: Reshma Abdul Rahim <[email protected]> Signed-off-by: ytimocin <[email protected]> Signed-off-by: Will Tsai <[email protected]> Signed-off-by: Will <[email protected]> Signed-off-by: sk593 <[email protected]> Co-authored-by: Will <[email protected]> Co-authored-by: Reshma Abdul Rahim <[email protected]> Co-authored-by: Yetkin Timocin <[email protected]>
Update purge test resources to fix the workflow failures