fix: never clean up observability artifacts — partial file persists after finalize

Removing the _partial-e2e.json deletion from finalize(). These are small files
on a local disk and their persistence is the whole point of observability.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Garry Tan
2026-03-14 12:37:38 -05:00
parent 336dbaa50d
commit 5aae3ce117
2 changed files with 4 additions and 6 deletions
-3
View File
@@ -444,9 +444,6 @@ export class EvalCollector {
tests: this.tests,
};
// Delete partial file now that we're writing the final
try { fs.unlinkSync(path.join(this.evalDir, '_partial-e2e.json')); } catch { /* may not exist */ }
// Write eval file
fs.mkdirSync(this.evalDir, { recursive: true });
const dateStr = timestamp.replace(/[:.]/g, '').replace('T', '-').slice(0, 15);