next-issue 7.8.29 → 7.8.30
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 +5 -2
- package/dist/handover.mjs +6 -1
- package/dist/watch.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -866,8 +866,11 @@ A run without `--watch` ends when no unseen issue is left. With
|
|
|
866
866
|
`next-issue start --watch`, the harness then waits, reads the open issues again
|
|
867
867
|
and runs another pass, so it picks up an issue that someone opens during the run, or one whose blocker
|
|
868
868
|
closes. Each pass tries every open issue again, also one that an earlier pass
|
|
869
|
-
skipped. An issue that failed
|
|
870
|
-
next run.
|
|
869
|
+
skipped. An issue that failed with an error before the claim is not tried
|
|
870
|
+
again until the next run. An issue that failed after the claim and was handed
|
|
871
|
+
over with the needs-human label is tried again in a later pass once a person
|
|
872
|
+
answers the hand-over or takes the label off. The hunter counts the same
|
|
873
|
+
issues as ready.
|
|
871
874
|
|
|
872
875
|
The waits follow a fixed back-off in minutes: 1, 2, 3, 5, 10, then 10 from then
|
|
873
876
|
on. A pass that handles an issue, with any outcome other than `skipped`, resets
|
package/dist/handover.mjs
CHANGED
|
@@ -201,9 +201,11 @@ export async function claimedError(context, log, issue, state, error, started) {
|
|
|
201
201
|
// Saved with the hand-over, so later runs land nothing before the base is checked.
|
|
202
202
|
state.halted = true;
|
|
203
203
|
}
|
|
204
|
+
let handedOver = false;
|
|
204
205
|
try {
|
|
205
206
|
const earlier = error instanceof HandOverFailed ? error.pending : undefined;
|
|
206
207
|
await handOver(context, log, issue.number, state, handOverReason(error, reason), earlier);
|
|
208
|
+
handedOver = true;
|
|
207
209
|
}
|
|
208
210
|
catch (failure) {
|
|
209
211
|
log.event('hand-over.error', { error: message(failure) }, 'quiet');
|
|
@@ -211,7 +213,10 @@ export async function claimedError(context, log, issue, state, error, started) {
|
|
|
211
213
|
// The issue ends (and the waiting questions go out) only once the hand-over is done.
|
|
212
214
|
logIssueError(log, error, started);
|
|
213
215
|
await cleanUp(context, log, state.branch);
|
|
214
|
-
const report =
|
|
216
|
+
const report = {
|
|
217
|
+
...issueReport(issue.number, 'error', state, started, reason),
|
|
218
|
+
...(handedOver ? { handedOver } : {}),
|
|
219
|
+
};
|
|
215
220
|
if (!(error instanceof UnsettledBase)) {
|
|
216
221
|
return report;
|
|
217
222
|
}
|
package/dist/watch.mjs
CHANGED
|
@@ -133,7 +133,7 @@ function addReports(reports, pass) {
|
|
|
133
133
|
}
|
|
134
134
|
function recordFailures(failed, reports) {
|
|
135
135
|
for (const report of reports) {
|
|
136
|
-
if (report.outcome === 'error') {
|
|
136
|
+
if (report.outcome === 'error' && report.handedOver !== true) {
|
|
137
137
|
failed.add(report.issue);
|
|
138
138
|
}
|
|
139
139
|
}
|