-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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: 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 |
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.
LooksReallyGoodToMe!
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. |
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. |
The Action will not trigger on existing PRs. |
Seems like the We could also keep both: label using the What do y'all like more:
|
Can we please avoid using comments since they trigger GitHub notifications. |
@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.
It makes the problem worse for people receiving emails. FWIW, I've asked in the past to make the bot less noisy as well. |
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