next-issue 6.6.12 → 6.6.14
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/dist/gate.mjs +2 -2
- package/dist/land.mjs +7 -3
- package/dist/revert.mjs +1 -1
- package/package.json +1 -1
package/dist/gate.mjs
CHANGED
|
@@ -75,7 +75,7 @@ async function failedChecksFix(job, sha) {
|
|
|
75
75
|
job.repairing = true;
|
|
76
76
|
return GATE_FIXED;
|
|
77
77
|
}
|
|
78
|
-
async function escalateError(job, error, note, reason) {
|
|
78
|
+
export async function escalateError(job, error, note, reason) {
|
|
79
79
|
if (runStopped()) {
|
|
80
80
|
throw error;
|
|
81
81
|
}
|
|
@@ -91,7 +91,7 @@ async function revertOrReport(job) {
|
|
|
91
91
|
throw error;
|
|
92
92
|
}
|
|
93
93
|
job.repairing = false;
|
|
94
|
-
return ` The revert of the change on ${job.context.base} failed: ${sentence(message(error))}
|
|
94
|
+
return ` The revert of the change on ${job.context.base} failed: ${sentence(message(error))} The landed commits stay on ${job.context.base}.`;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
function sentence(text) {
|
package/dist/land.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { runStopped } from './children.mjs';
|
|
2
2
|
import { rebase } from './conflict.mjs';
|
|
3
|
-
import { checkGate } from './gate.mjs';
|
|
3
|
+
import { checkGate, escalateError } from './gate.mjs';
|
|
4
4
|
import { PUSH_TRIES } from './git-land.mjs';
|
|
5
5
|
import { escalateAndFinish, finishDone } from './handover.mjs';
|
|
6
6
|
import { oneAtATime } from './lock.mjs';
|
|
@@ -37,8 +37,12 @@ function landing(job, work) {
|
|
|
37
37
|
async function landLoop(job) {
|
|
38
38
|
for (;;) {
|
|
39
39
|
const pushed = await pushChange(job).catch(async (error) => {
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
if (!job.repairing || runStopped()) {
|
|
41
|
+
await revertFailedFix(job);
|
|
42
|
+
throw error;
|
|
43
|
+
}
|
|
44
|
+
job.repairing = false;
|
|
45
|
+
return escalateError(job, error, `The landing of the fix for the checks on ${job.context.base} failed`, 'fix landing error');
|
|
42
46
|
});
|
|
43
47
|
if (typeof pushed !== 'string') {
|
|
44
48
|
return pushed;
|
package/dist/revert.mjs
CHANGED
|
@@ -19,7 +19,7 @@ export async function revert(job) {
|
|
|
19
19
|
reapply: `${state.title ?? `fix: resolve issue #${issue.number}`}\n\nRefs #${issue.number}`,
|
|
20
20
|
}));
|
|
21
21
|
if (!pushed) {
|
|
22
|
-
return ` The revert of the change on ${base} failed.`;
|
|
22
|
+
return ` The revert of the change on ${base} failed, so the landed commits stay on ${base}.`;
|
|
23
23
|
}
|
|
24
24
|
state.landed = undefined;
|
|
25
25
|
await writeState(repo, state);
|