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
build(ci): upload logs on timeout #16255
Conversation
A timeout can cancel tests, which blocks log uploads Issue 16253 https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idif https://docs.github.com/en/actions/learn-github-actions/expressions#cancelled
This PR should not be merged yet, we should rerun it until the failure is replicated This both moves the linked issue along, and acts as a confirmation of PR functionality |
if: failure() | ||
# cancelled() handles test timeouts | ||
# remove when test timeouts cause a failure() | ||
if: failure() || cancelled() |
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.
It appears it may be (untested) possible to do:
if: failure() || cancelled() | |
if: '!success()' |
...and catch every single case except success, but failure && cancelled also seems sufficient
I'll attempt to keep re-running the windows test any time I see it's green, until it goes red. Please anyone else that sees this with windows unit test run as green re-run it as well, the goal is to have it hang + cancel + upload the logs so until it has a red status here we want to re-run it |
This might go faster if the matrix was temporarily tweaked to be windows only for unit tests, and a separate just-for-matrix-expansion-only parameter was added to create like 20 windows runs at once Here is an example that creates the expansion (we would put
And note later in the file the logs need that in their name or they clobber each other:
|
I'm frazzled mentally, I can apply a patch at max, or I'll get the change done tomorrow |
output is a .bin file 😅 - not sure how to interpret, going to table for the moment it's end of day here too |
with some ==== I added lines starting with |
--> @criticalAY FYI ... I remember the day when long stacktraces used to faze me... those were the days 😅 |
But the col was open for other activities too, suspend fun getName(resources: Resources): String {
val overrides = withCol { config.getObject("flagLabels", JSONObject()) }
return overrides.getStringOrNull(code.toString()) ?: resources.getString(defaultNameRes)
} |
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.
works!
slamming this one in outside of queue, queue is rejecting too frequently because of flakes and this is part of fixing the flakes |
This was a huge help! Really happy this is in |
A timeout can cancel tests, which blocks log uploads
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idif
https://docs.github.com/en/actions/learn-github-actions/expressions#cancelled