fix: production hardening for merge races, timeouts, and webhook ops

Pin merge SHA, lock conflict repair, bound subprocess/proxy output,
fail-fast incomplete R2/webhook config, redact validation/stderr
secrets, and document that webhook 202 is best-effort after ACK.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
wdawdwaandClaude Opus 4.8 committed 2026-08-23 15:44:08 +08:00
1 parent d6f33a71c3
commit 039acabd96
29 files changed
+1163 -240

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
import assert from "node:assert/strict";
import test from "node:test";
import { acquireConflictLock } from "../src/review/conflictResolver.js";
test("conflict lock rejects overlapping runs for the same pull request", async () => {
const release = await acquireConflictLock("acme/demo#7");
await assert.rejects(() => acquireConflictLock("acme/demo#7"), /already active/);
release();
const releaseAgain = await acquireConflictLock("acme/demo#7");
releaseAgain();
});
test("conflict lock allows concurrent runs for different pull requests", async () => {
const first = await acquireConflictLock("acme/demo#8");
const second = await acquireConflictLock("acme/demo#9");
first();
second();
});