Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
TypeScript antigravity-skillsbusiness-knowledgeclaude-codeclaude-skillscodebase-analysiscodexcodex-skillsdeveloper-tools-ai-agentgemini-cli-skillskarpathy-llm-wikiknowledge-baseknowledge-graphmemoryopencode-skillspi-agentunderstandcodevibe-coding
test(ci): drain process events while retrying Git fixture cleanup
Lum11041aea7fb4ae38
diff --git a/tests/benchmark/test_large_repo_benchmark.test.mjs b/tests/benchmark/test_large_repo_benchmark.test.mjsindex e27a64c2..daa9aa8b 100644--- a/tests/benchmark/test_large_repo_benchmark.test.mjs+++ b/tests/benchmark/test_large_repo_benchmark.test.mjs@@ -13,6 +13,7 @@ import {writeFileSync,} from 'node:fs';import { tmpdir } from 'node:os';+import { rm } from 'node:fs/promises';import { basename, dirname, join, resolve } from 'node:path';import { fileURLToPath, pathToFileURL } from 'node:url';import Ajv2020 from 'ajv/dist/2020.js';@@ -1029,11 +1030,12 @@ describe('path redaction', () => {describe('Git metadata probes', () => {const cleanup = [];- afterEach(() => {+ afterEach(async () => {for (const path of cleanup.splice(0)) {// Git-for-Windows can briefly retain its cwd after ENOBUFS termination.- // Retry cleanup rather than failing an otherwise successful bounded probe.- rmSync(path, { recursive: true, force: true, maxRetries: 10, retryDelay: 100 });+ // Async cleanup lets pending process/pipe events drain between retries;+ // synchronous backoff can retain the lock throughout its retry window.+ await rm(path, { recursive: true, force: true, maxRetries: 10, retryDelay: 100 });}});