merge-steward 0.35.1 → 0.35.2
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/config.js +1 -1
- package/dist/install.js +1 -1
- package/dist/reconciler-validate.js +18 -4
- package/package.json +1 -1
package/dist/config.js
CHANGED
|
@@ -14,7 +14,7 @@ export const stewardConfigSchema = z.object({
|
|
|
14
14
|
maxRetries: z.number().int().min(0).default(2),
|
|
15
15
|
flakyRetries: z.number().int().min(0).default(1),
|
|
16
16
|
/** Max speculative branches to maintain in parallel. 1 = serial mode. */
|
|
17
|
-
speculativeDepth: z.number().int().min(1).default(
|
|
17
|
+
speculativeDepth: z.number().int().min(1).default(3),
|
|
18
18
|
pollIntervalMs: z.number().int().min(1000).default(30_000),
|
|
19
19
|
reconcileStaleAfterMs: z.number().int().min(1000).default(5 * 60_000),
|
|
20
20
|
server: z.object({
|
package/dist/install.js
CHANGED
|
@@ -163,7 +163,7 @@ export async function upsertRepoConfig(options) {
|
|
|
163
163
|
gitBin: existing?.gitBin ?? "git",
|
|
164
164
|
maxRetries: existing?.maxRetries ?? 2,
|
|
165
165
|
flakyRetries: existing?.flakyRetries ?? 1,
|
|
166
|
-
speculativeDepth: existing?.speculativeDepth ??
|
|
166
|
+
speculativeDepth: existing?.speculativeDepth ?? 3,
|
|
167
167
|
pollIntervalMs: existing?.pollIntervalMs ?? 30_000,
|
|
168
168
|
server: {
|
|
169
169
|
bind: existing?.server.bind ?? (homeConfig.server?.bind ?? "127.0.0.1"),
|
|
@@ -13,7 +13,9 @@ async function holdForIntegrationRepair(ctx, entry, allActive, index, checks) {
|
|
|
13
13
|
.map((check) => check.name)
|
|
14
14
|
.join(", ");
|
|
15
15
|
ctx.store.transition(entry.id, "validating", {
|
|
16
|
-
|
|
16
|
+
// A failed repaired candidate is still a repaired candidate. Preserve the
|
|
17
|
+
// provenance so a same-SHA rerun remains gated by integration review.
|
|
18
|
+
candidateKind: entry.candidateKind === "integration_repair" ? "integration_repair" : "integration",
|
|
17
19
|
ciRunId: entry.ciRunId ?? `head:${entry.candidateSha ?? entry.headSha}`,
|
|
18
20
|
candidateRef,
|
|
19
21
|
candidateSha: entry.candidateSha ?? entry.headSha,
|
|
@@ -142,9 +144,21 @@ export async function checkValidation(ctx, entry, allActive, index, isLandingHea
|
|
|
142
144
|
if (entry.candidateRef && !await ctx.git.isAncestor(entry.headSha, entry.candidateSha)) {
|
|
143
145
|
return;
|
|
144
146
|
}
|
|
145
|
-
if (entry.candidateRef && entry.
|
|
146
|
-
//
|
|
147
|
-
//
|
|
147
|
+
if (entry.candidateRef && entry.lastFailedBaseSha && entry.ciRunId) {
|
|
148
|
+
// Do not manufacture another CI run on every wakeup, but do re-read the
|
|
149
|
+
// exact SHA: an operator or GitHub may have rerun the failed workflow in
|
|
150
|
+
// place. A green rerun must resume the queue without a no-op commit.
|
|
151
|
+
const checks = (await ctx.github.listChecksForRef(entry.candidateSha))
|
|
152
|
+
.filter((check) => check.name.toLowerCase() !== INTEGRATION_REVIEW_CHECK);
|
|
153
|
+
const evaluation = evaluateCheckPolicy(ctx.policy.getRequiredCheckRules(), ctx.policy.shouldRequireAllChecksOnEmptyRequiredSet(), checks);
|
|
154
|
+
if (evaluation.status === "pass") {
|
|
155
|
+
await acceptPassingIntegrationCandidate(ctx, entry, allActive, index, isLandingHead, entry.ciRunId);
|
|
156
|
+
}
|
|
157
|
+
else if (evaluation.status === "pending") {
|
|
158
|
+
ctx.store.transition(entry.id, "validating", {
|
|
159
|
+
waitDetail: "waiting for exact-candidate rerun",
|
|
160
|
+
}, "exact-candidate rerun pending");
|
|
161
|
+
}
|
|
148
162
|
return;
|
|
149
163
|
}
|
|
150
164
|
if (entry.candidateKind === "head") {
|