test(sqlite): right-size reliability crash payloads (#122016)

* test(sqlite): right-size reliability crash payloads

* test(agents): replace hanging provider error integration

---------

Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Peter Steinberger
2026-08-11 05:26:07 -07:00
committed by GitHub
parent a6ab4b7d54
commit 686294f9f8
5 changed files with 26 additions and 60 deletions
@@ -27,7 +27,9 @@ type WorkerExit = IndexRepairProof["exit"];
const INDEX_REPAIR_WORKER_PATH = fileURLToPath(
new URL("./sqlite-reliability-index-repair-worker.ts", import.meta.url),
);
const INDEX_REPAIR_ROWS = 32_768;
// Keep enough index pages to spill both rollback-journal and WAL transactions
// before the worker reports its explicit crash point.
const INDEX_REPAIR_ROWS = 16_384;
const INDEX_REPAIR_TIMEOUT_MS = 30_000;
function fileSize(filePath: string): number {
+3 -1
View File
@@ -57,7 +57,9 @@ type IterationMetric = {
type CompactionProof = ReliabilityReport["maintenanceProof"]["compaction"];
const COMPACTION_BLOAT_ROWS = 256;
// Exceed the 1 MiB interruption thresholds without copying an arbitrary 64 MiB
// through every repository and restore crash phase.
const COMPACTION_BLOAT_ROWS = 64;
const COMPACTION_BLOAT_PAYLOAD_BYTES = 256 * 1024;
function nowMs(): number {