next-issue 6.6.108 → 6.6.110
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 +3 -2
- package/dist/gate.mjs +1 -1
- package/dist/revert.mjs +8 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -219,8 +219,9 @@ the run handles one issue. For each issue:
|
|
|
219
219
|
issue to a person. A revert
|
|
220
220
|
push that the remote refuses, for example because the base moved, makes
|
|
221
221
|
the revert again on the new base, three times at most. A failed revert
|
|
222
|
-
push that the base holds after a fetch counts as landed
|
|
223
|
-
fails
|
|
222
|
+
push that the base holds after a fetch counts as landed. When that fetch
|
|
223
|
+
fails too, the revert may be on the base with checks nobody awaited: the
|
|
224
|
+
harness reports it so, saves the halt and blocks later landings. The state file holds the
|
|
224
225
|
revert commit during the push, so a run stopped meanwhile checks the base
|
|
225
226
|
on resume. When the base holds the revert, the harness puts the change
|
|
226
227
|
back on the branch on top of the revert, as after a revert that
|
package/dist/gate.mjs
CHANGED
|
@@ -150,7 +150,7 @@ async function unreadFixChecks(job, error) {
|
|
|
150
150
|
state.halted = true;
|
|
151
151
|
await writeState(context.repo, state);
|
|
152
152
|
const reverted = await revertOrReport(job);
|
|
153
|
-
const halt = state.halted === true ? ` ${HALT_NOTE}` : '';
|
|
153
|
+
const halt = state.halted === true && !reverted.includes(HALT_NOTE) ? ` ${HALT_NOTE}` : '';
|
|
154
154
|
return escalateAndFinish(job, `The read of the checks on ${context.base} failed: ${sentence(message(error))}${reverted}${halt}`, 'checks error');
|
|
155
155
|
}
|
|
156
156
|
export async function escalateError(job, error, note, reason) {
|
package/dist/revert.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { runStopped } from './children.mjs';
|
|
2
2
|
import { message } from './errors.mjs';
|
|
3
3
|
import { writeState } from './state.mjs';
|
|
4
|
-
import { releaseSettled } from './unsettled.mjs';
|
|
4
|
+
import { HALT_NOTE, releaseSettled } from './unsettled.mjs';
|
|
5
5
|
export async function revertFailedFix(job) {
|
|
6
6
|
if (!job.repairing || (job.state.landed ?? []).length === 0) {
|
|
7
7
|
return '';
|
|
@@ -18,6 +18,13 @@ export async function revertOrReport(job) {
|
|
|
18
18
|
throw error;
|
|
19
19
|
}
|
|
20
20
|
job.repairing = false;
|
|
21
|
+
const { context, state } = job;
|
|
22
|
+
if (state.reverting !== undefined) {
|
|
23
|
+
// The revert push was tried and its result is unknown, like a push unknown: the halt is saved.
|
|
24
|
+
state.halted = true;
|
|
25
|
+
await writeState(context.repo, state);
|
|
26
|
+
return ` The revert of the change on ${context.base} failed: ${sentence(message(error))} The revert may be on \`${context.base}\`, and its checks were not awaited. ${HALT_NOTE}`;
|
|
27
|
+
}
|
|
21
28
|
return ` The revert of the change on ${job.context.base} failed: ${sentence(message(error))} The landed commits stay on ${job.context.base}.`;
|
|
22
29
|
}
|
|
23
30
|
}
|