fix: verify branch follower reuse plan consumption
This commit is contained in:
@@ -43,11 +43,10 @@ export async function runBranchFollowerGate(registry: BranchFollowerRegistry, fo
|
||||
timedOut: command.timedOut,
|
||||
elapsedMs: Date.now() - startedAt,
|
||||
parseError: parsed === null ? "stdout-json-parse-failed" : null,
|
||||
stdoutTail: ok ? "" : redactText(tailText(command.stdout, 1600)),
|
||||
stdoutTail: parsed === null ? redactText(tailText(command.stdout, 1600)) : "",
|
||||
stderrTail: ok ? "" : redactText(tailText(command.stderr, 1200)),
|
||||
},
|
||||
parsedDownstreamCliOutput: false,
|
||||
next: { gate: `bun scripts/cli.ts cicd branch-follower gate --follower ${follower.id} --gate ${options.gate} --json` },
|
||||
};
|
||||
}
|
||||
|
||||
@@ -63,7 +62,7 @@ function gateJobManifest(registry: BranchFollowerRegistry, follower: FollowerSpe
|
||||
"tmpdir=$(mktemp -d)",
|
||||
"cleanup() { rm -rf \"$tmpdir\"; }",
|
||||
"trap cleanup EXIT INT TERM",
|
||||
nativeCicdScriptLoadShell(["branch-follower-gate.sh", "branch-follower-gate.mjs", "reuse-config-summary.mjs"]),
|
||||
nativeCicdScriptLoadShell(["branch-follower-gate.sh", "branch-follower-gate.mjs", "reuse-config-summary.mjs", "plan-artifacts.mjs"]),
|
||||
"\"$tmpdir/branch-follower-gate.sh\"",
|
||||
].join("\n");
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user