tools: add resume-ci label handling · nodejs/node@63469ca · GitHub
Skip to content

Commit 63469ca

Browse files
panvaaduh95
authored andcommitted
tools: add resume-ci label handling
Signed-off-by: Filip Skokan <panva.ip@gmail.com> Assisted-by: Codex PR-URL: #65945 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 9b19114 commit 63469ca

3 files changed

Lines changed: 54 additions & 16 deletions

File tree

‎.github/workflows/auto-start-ci.yml‎

Lines changed: 7 additions & 7 deletions

‎doc/contributing/collaborator-guide.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,21 @@ Once this label is added, `github-actions bot` will start
391391
the `node-test-pull-request` automatically. If the `github-actions bot`
392392
is unable to start the job, it will update the label with `request-ci-failed`.
393393

394+
To resume an existing CI run, add the `resume-ci` label to the pull request.
395+
As with `request-ci`, the pull request must have an approving review. The bot
396+
removes `resume-ci` when processing the request. If it cannot resume the job, it
397+
adds `resume-ci-failed` and posts the command output with a link to the workflow
398+
run.
399+
400+
Do not combine `request-ci` and `resume-ci`. If both labels are present, the bot
401+
removes both, adds `request-ci-failed` and `resume-ci-failed`, and reports the
402+
conflict once without starting or resuming CI.
403+
404+
The job must be failed or aborted and resumable, and its CI-approved commit must
405+
still match the pull request's HEAD. Resuming is refused when available failure
406+
diagnostics reference files changed by the pull request. Use `request-ci` when a
407+
fresh CI run is needed instead.
408+
394409
### Internal vs. public API
395410

396411
All functionality in the official Node.js documentation is part of the public
@@ -1011,6 +1026,8 @@ If you cannot find who to cc for a file, `git shortlog -n -s <file>` can help.
10111026
* `never-stale`: Issues and pull requests exempt from automatic stale handling
10121027
* `request-ci`: When this label is added to a PR, CI will be started
10131028
automatically. See [Starting a Jenkins CI job](#starting-a-jenkins-ci-job)
1029+
* `resume-ci`: When this label is added to a PR, the latest linked CI run will be
1030+
resumed if eligible. See [Starting a Jenkins CI job](#starting-a-jenkins-ci-job)
10141031
* `stale`: Issues and pull requests with no activity for 90 days. See
10151032
[Stale issues and pull requests](#stale-issues-and-pull-requests)
10161033
* `tsc-agenda`: Open issues and pull requests with this label will be added to

‎tools/actions/start-ci.sh‎

Lines changed: 30 additions & 9 deletions

0 commit comments

Comments
 (0)