mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
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:
committed by
GitHub
parent
a6ab4b7d54
commit
686294f9f8
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user