oneapi-src / unified-runtime

https://oneapi-src.github.io/unified-runtime/
Other
33 stars 113 forks source link

Investigate usage of wait-on-check for commenting result of e2e workflows #1740

Open kbenzie opened 4 months ago

kbenzie commented 4 months ago

I found something like this: https://github.com/marketplace/actions/wait-on-check It polls PRs jobs for status. I wonder whether it would be possible to do that, and then extract E2E test status from the job logs.

you could wait up, read the log, but there would be still the same problem - reporting it back to PR requires write permission, which we don't have here... or am I missing something in this wait-on-check action?

Originally posted by @lukaszstolarczuk in https://github.com/oneapi-src/unified-runtime/issues/1734#issuecomment-2158830315

pbalcer commented 4 months ago

you could wait up, read the log, but there would be still the same problem - reporting it back to PR requires write permission, which we don't have here... or am I missing something in this wait-on-check action?

This would be an entirely standalone job with on: [pull_request] trigger. We'd then use wait-on-check inside of it to wait for the E2E jobs to complete. Once they are, github-script should allow us to then download and parse the logs from that job. It's certainly convoluted, but should work in theory.