next-issue 7.8.25 → 7.8.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -224,7 +224,10 @@ the run handles one issue. For each issue:
224
224
  `strategy.fail-fast` of a matrix, that job never finished: the harness
225
225
  hands the issue to a person with the reason `main checks cut short` and
226
226
  halts, and the issue stays open. Set `fail-fast: false` on a matrix
227
- with an ignored job to avoid this. A
227
+ with an ignored job to avoid this. The same goes when an ignored job
228
+ fails and another job of the same run ends `skipped`, for example
229
+ because it `needs` the ignored job; a skipped job in a run with no
230
+ failed job still passes. A
228
231
  failed or errored commit status, or a workflow run or check run that
229
232
  ends with `failure`, `timed_out` or
230
233
  `action_required`, fails the checks. The harness does not rerun a
@@ -675,30 +678,30 @@ because no pull request is opened.
675
678
  }
676
679
  ```
677
680
 
678
- | Field | Default | Effect |
679
- | ----------------------- | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
680
- | `remote` | `origin` | The git remote for the repository and the branches |
681
- | `issueLimit` | `100` | The maximum number of open issues to read. With `labels.ready` set, only issues with the ready, in-progress or in-review label count |
682
- | `concurrency` | `1` | The most issues that a run handles at the same time |
683
- | `huntCap` | `1` | With `--hunt`, the hunter hunts only while fewer ready issues than this wait besides the running ones |
684
- | `maxCiFixes` | `5` | The budget for check fixes per issue |
685
- | `maxCommitFixes` | `10` | The budget for fixes of a commit that a git hook stopped, per issue |
686
- | `maxReviewRounds` | `5` | The budget for review rounds per issue |
687
- | `checkIntervalSeconds` | `15` | The time between two check states, at most `2147483` |
688
- | `checkGraceSeconds` | `60` | The time to wait for the first check to show, and for more checks after they all pass; the grace ends at the `checkTimeoutMinutes` limit, where checks that all pass, or no checks, still count as a pass |
689
- | `checkTimeoutMinutes` | `60` | The limit for one check wait, at most `35791` |
690
- | `agentTimeoutMinutes` | `30` | The limit for one agent call, at most `35791` |
691
- | `setupTimeoutMinutes` | `15` | The limit for the setup command, at most `35791` |
692
- | `commandTimeoutMinutes` | `10` | The limit for one `git` or `gh` command, at most `35791` |
693
- | `logMaxChars` | `20000` | The maximum length of the failed job logs, shared between the failed GitHub Actions runs (failed external checks are listed by name and link only) |
694
- | `diffMaxChars` | `60000` | The maximum length of the diff that the reviewer reads |
695
- | `keepRunDays` | `7` | The number of days to keep the run files; `0` keeps them all |
696
- | `checks` | `[]` | Shell commands that must pass in the worktree, in order, before an approved change is pushed; a failure goes to the fixer |
697
- | `checksTimeoutMinutes` | `30` | The limit for one command in `checks`, at most `35791` |
698
- | `ignoredChecks` | `[]` | Names of GitHub Actions jobs, check runs and commit statuses, such as `release`, that the checks on the base branch do not wait for and whose failure does not count, unless it makes GitHub cancel another job |
699
- | `setupCommand` | from the lock file | A shell command to run in a new worktree, before the implementer, and after each merge of the base before the `checks` |
700
- | `models` | `null` per role | The pi model per agent role, as `provider/model`: `implementer`, `reviewer`, `fixer` |
701
- | `labels` | see above | The names of the labels that the harness reads and sets |
681
+ | Field | Default | Effect |
682
+ | ----------------------- | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
683
+ | `remote` | `origin` | The git remote for the repository and the branches |
684
+ | `issueLimit` | `100` | The maximum number of open issues to read. With `labels.ready` set, only issues with the ready, in-progress or in-review label count |
685
+ | `concurrency` | `1` | The most issues that a run handles at the same time |
686
+ | `huntCap` | `1` | With `--hunt`, the hunter hunts only while fewer ready issues than this wait besides the running ones |
687
+ | `maxCiFixes` | `5` | The budget for check fixes per issue |
688
+ | `maxCommitFixes` | `10` | The budget for fixes of a commit that a git hook stopped, per issue |
689
+ | `maxReviewRounds` | `5` | The budget for review rounds per issue |
690
+ | `checkIntervalSeconds` | `15` | The time between two check states, at most `2147483` |
691
+ | `checkGraceSeconds` | `60` | The time to wait for the first check to show, and for more checks after they all pass; the grace ends at the `checkTimeoutMinutes` limit, where checks that all pass, or no checks, still count as a pass |
692
+ | `checkTimeoutMinutes` | `60` | The limit for one check wait, at most `35791` |
693
+ | `agentTimeoutMinutes` | `30` | The limit for one agent call, at most `35791` |
694
+ | `setupTimeoutMinutes` | `15` | The limit for the setup command, at most `35791` |
695
+ | `commandTimeoutMinutes` | `10` | The limit for one `git` or `gh` command, at most `35791` |
696
+ | `logMaxChars` | `20000` | The maximum length of the failed job logs, shared between the failed GitHub Actions runs (failed external checks are listed by name and link only) |
697
+ | `diffMaxChars` | `60000` | The maximum length of the diff that the reviewer reads |
698
+ | `keepRunDays` | `7` | The number of days to keep the run files; `0` keeps them all |
699
+ | `checks` | `[]` | Shell commands that must pass in the worktree, in order, before an approved change is pushed; a failure goes to the fixer |
700
+ | `checksTimeoutMinutes` | `30` | The limit for one command in `checks`, at most `35791` |
701
+ | `ignoredChecks` | `[]` | Names of GitHub Actions jobs, check runs and commit statuses, such as `release`, that the checks on the base branch do not wait for and whose failure does not count, unless GitHub cancels or skips another job of its run |
702
+ | `setupCommand` | from the lock file | A shell command to run in a new worktree, before the implementer, and after each merge of the base before the `checks` |
703
+ | `models` | `null` per role | The pi model per agent role, as `provider/model`: `implementer`, `reviewer`, `fixer` |
704
+ | `labels` | see above | The names of the labels that the harness reads and sets |
702
705
 
703
706
  The hunter adds `labels.hunt` to each issue it files, so you can tell those
704
707
  issues apart from your own and filter them.
@@ -58,7 +58,7 @@ function jobsConclusion(kept, anyFailed) {
58
58
  return 'failure';
59
59
  }
60
60
  if (!kept.some((job) => job.conclusion === 'cancelled')) {
61
- return 'success';
61
+ return anyFailed && kept.some((job) => job.conclusion === 'skipped') ? CUT : 'success';
62
62
  }
63
63
  return anyFailed ? CUT : 'cancelled';
64
64
  }
package/dist/gate.mjs CHANGED
@@ -37,7 +37,7 @@ export async function checkGate(job, sha) {
37
37
  return escalateAndFinish(job, `The checks on ${base} were cancelled before they finished. ${HALT_NOTE}`, 'main checks cancelled');
38
38
  }
39
39
  if (checks === 'cut') {
40
- return escalateAndFinish(job, `A job in \`ignoredChecks\` failed on ${base} and GitHub cancelled another job of its workflow run before it finished, for example through \`strategy.fail-fast\`. Rerun the cancelled job, or set \`fail-fast: false\` so an ignored job no longer cancels the others. ${HALT_NOTE}`, 'main checks cut short');
40
+ return escalateAndFinish(job, `A job in \`ignoredChecks\` failed on ${base} and GitHub cancelled or skipped another job of its workflow run before it finished, for example through \`strategy.fail-fast\` or a \`needs\` on the ignored job. Rerun the cancelled or skipped job, or set \`fail-fast: false\` and drop the \`needs\` so an ignored job no longer stops the others. ${HALT_NOTE}`, 'main checks cut short');
41
41
  }
42
42
  if (checks !== 'fail') {
43
43
  return escalateAndFinish(job, `The checks on ${base} did not finish in time. ${HALT_NOTE}`, 'main checks timeout');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-issue",
3
- "version": "7.8.25",
3
+ "version": "7.8.26",
4
4
  "description": "Autonomous issue harness driven by the pi SDK",
5
5
  "keywords": [
6
6
  "github",