next-issue 7.8.25 → 7.8.27
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 +31 -26
- package/dist/agent-session.mjs +4 -1
- package/dist/base-checks.mjs +1 -1
- package/dist/gate.mjs +1 -1
- package/package.json +1 -1
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.
|
|
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
|
|
@@ -603,7 +606,9 @@ Three levels of console output:
|
|
|
603
606
|
ssh alias with `ssh -G`. The host `ssh.github.com` (GitHub's ssh over port 443) means `github.com`. Other hosts, such as GitLab, are not supported.
|
|
604
607
|
- pi, logged in to a model provider. The agents use the model, the thinking
|
|
605
608
|
level, the extensions and the skills from your pi settings, except the
|
|
606
|
-
extension and the skills of `pi-next-issue
|
|
609
|
+
extension and the skills of the `pi-next-issue` package. A repository
|
|
610
|
+
under a folder named `pi-next-issue` keeps its project extensions and
|
|
611
|
+
skills. The implementer and the fixer
|
|
607
612
|
get the default tools of your pi settings, the `grep`, `find` and `ls` tools
|
|
608
613
|
and the tools of your extensions. The reviewer gets all of them except
|
|
609
614
|
`edit` and `write`. The agents run with `GIT_OPTIONAL_LOCKS=0`, so a
|
|
@@ -675,30 +680,30 @@ because no pull request is opened.
|
|
|
675
680
|
}
|
|
676
681
|
```
|
|
677
682
|
|
|
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
|
|
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
|
|
683
|
+
| Field | Default | Effect |
|
|
684
|
+
| ----------------------- | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
685
|
+
| `remote` | `origin` | The git remote for the repository and the branches |
|
|
686
|
+
| `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 |
|
|
687
|
+
| `concurrency` | `1` | The most issues that a run handles at the same time |
|
|
688
|
+
| `huntCap` | `1` | With `--hunt`, the hunter hunts only while fewer ready issues than this wait besides the running ones |
|
|
689
|
+
| `maxCiFixes` | `5` | The budget for check fixes per issue |
|
|
690
|
+
| `maxCommitFixes` | `10` | The budget for fixes of a commit that a git hook stopped, per issue |
|
|
691
|
+
| `maxReviewRounds` | `5` | The budget for review rounds per issue |
|
|
692
|
+
| `checkIntervalSeconds` | `15` | The time between two check states, at most `2147483` |
|
|
693
|
+
| `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 |
|
|
694
|
+
| `checkTimeoutMinutes` | `60` | The limit for one check wait, at most `35791` |
|
|
695
|
+
| `agentTimeoutMinutes` | `30` | The limit for one agent call, at most `35791` |
|
|
696
|
+
| `setupTimeoutMinutes` | `15` | The limit for the setup command, at most `35791` |
|
|
697
|
+
| `commandTimeoutMinutes` | `10` | The limit for one `git` or `gh` command, at most `35791` |
|
|
698
|
+
| `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) |
|
|
699
|
+
| `diffMaxChars` | `60000` | The maximum length of the diff that the reviewer reads |
|
|
700
|
+
| `keepRunDays` | `7` | The number of days to keep the run files; `0` keeps them all |
|
|
701
|
+
| `checks` | `[]` | Shell commands that must pass in the worktree, in order, before an approved change is pushed; a failure goes to the fixer |
|
|
702
|
+
| `checksTimeoutMinutes` | `30` | The limit for one command in `checks`, at most `35791` |
|
|
703
|
+
| `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 |
|
|
704
|
+
| `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` |
|
|
705
|
+
| `models` | `null` per role | The pi model per agent role, as `provider/model`: `implementer`, `reviewer`, `fixer` |
|
|
706
|
+
| `labels` | see above | The names of the labels that the harness reads and sets |
|
|
702
707
|
|
|
703
708
|
The hunter adds `labels.hunt` to each issue it files, so you can tell those
|
|
704
709
|
issues apart from your own and filter them.
|
package/dist/agent-session.mjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { join, sep } from 'node:path';
|
|
2
2
|
import { createAgentSession, DefaultResourceLoader, ModelRuntime, SessionManager, } from '@earendil-works/pi-coding-agent';
|
|
3
3
|
export function isOwnResource(path) {
|
|
4
|
-
|
|
4
|
+
const parts = path.split(sep);
|
|
5
|
+
return parts.some((part, index) => part === 'pi-next-issue' &&
|
|
6
|
+
((parts[index + 1] === 'index.ts' && index + 2 === parts.length) ||
|
|
7
|
+
parts[index + 1] === 'skills'));
|
|
5
8
|
}
|
|
6
9
|
export async function openSession(recorder, log, request, agentDir) {
|
|
7
10
|
const runtime = request.runtime ?? {};
|
package/dist/base-checks.mjs
CHANGED
|
@@ -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
|
|
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');
|