Uh oh!
There was an error while loading. Please reload this page.
build: use pull_request_target to start Jenkins - #34707
Conversation
GitHub recently introduced a new Pull Request event for Actions with access to Secrets and GITHUB_TOKEN with write access. Therefore, we don't need to use the scheduler event to start Jenkins anymore. Ref: https://github.blog/2020-08-03-github-actions-improvements-for-fork-and-pull-request-workflows/
Not entirely sure this will work for existing PRs without rebase though. At least when I tested on |
mmarchini
commented
Aug 10, 2020
Ok, there's a huge downside with this approach: the Action will run on the base commit of the Pull Request, not the base Branch, therefore:
Since we have 271 open PRs, rebasing everything every time we change an Action is unfeasible. Therefore we might not be able to use this event for most tasks. |
richardlau
commented
Aug 10, 2020
It won’t solve the already opened PR case, but could we do the rebasing we do in the Jenkins CI jobs? I guess we’d have to keep the action steps to a minimum and encapsulate the logic in e.g. shell scripts. |
mmarchini
commented
Aug 10, 2020
The Action will not trigger on existing PRs. |
mmarchini
commented
Aug 10, 2020
Seems like the We could also keep both: label using the What do y'all like more:
|
cjihrig
commented
Aug 10, 2020
Can we please avoid using comments since they trigger GitHub notifications. |
mmarchini
commented
Aug 10, 2020
@cjihrig good point, but starting the CI generates a notification anyway, so in this case it's probably not a problem? |
This comment has been minimized.
This comment has been minimized.
cjihrig
commented
Aug 10, 2020
It makes the problem worse for people receiving emails. FWIW, I've asked in the past to make the bot less noisy as well. |
mmarchini
commented
Aug 11, 2020
Closing for now then, will reopen once nodejs/github-bot#272 lands since that should workaround all the limitations we have with current |
GitHub recently introduced a new Pull Request event for Actions with
access to Secrets and GITHUB_TOKEN with write access. Therefore, we
don't need to use the scheduler event to start Jenkins anymore.
Ref: https://github.blog/2020-08-03-github-actions-improvements-for-fork-and-pull-request-workflows
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes