-
Notifications
You must be signed in to change notification settings - Fork 99
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
Add workflow condition in cloud functional tests #7907
Add workflow condition in cloud functional tests #7907
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7907 +/- ##
=======================================
Coverage 61.00% 61.00%
=======================================
Files 527 527
Lines 27844 27844
=======================================
Hits 16986 16986
Misses 9365 9365
Partials 1493 1493 ☔ View full report in Codecov by Sentry. |
Radius functional test overview
Click here to see the list of tools in the current test run
Test Status⌛ Building Radius and pushing container images for functional tests... |
The problem is here:
When this action is called from not a pull request then the matchArtifact is null and, that is why, the matchArtifact.id throws an error:
|
@ytimocin, we want to restrict the downstream workflow (cloud functional tests) to run on valid approved PRs when the event is workflow_run. All the errored workflow runs the past few days were on branches that had a 'failure' conclusion status (so far i looked, it was set to failure for either timing out, waiting for approvals or deploy errors on the upstream approval workflow), There were not valid active PRs and these branches were deleted (in the above example) multiple weeks ago. After the current proposed change is merged in, we still want to continue to monitor and see if we still get this error when the conclusion is a 'success' and if that does occur, debug why the artifacts will not exist in those cases.(so far that has not occured) Let me know if that makes sense or we should change approach. |
776c349
to
059d4bd
Compare
Radius functional test overview
Click here to see the list of tools in the current test run
Test Status⌛ Building Radius and pushing container images for functional tests... |
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.
We can give it a try.
Description
Ref: #7892
Based on logs seen for errors in the past week,
eg. https://github.com/radius-project/radius/actions/runs/10753879482/job/29823820614
Adding condition to workflow to run when github.event.workflow_run.conclusion == 'success' when event is workflow_run.
Keeping additional debug logs in place for the next few days to monitor any subsequent failures.
Another PR to remove logs will be sent closer to end of this week if no failures are detected.
Type of change
TypeError: Cannot read properties of undefined (reading 'id')
infunctional-test-cloud
workflow in main #7782).Fixes: #7782