Skip to content

Commit 7200ec5

Browse files
authored
fix: increase embedding benchmark worker timeout to 30 min (#877)
The 20-minute timeout was too short for CPU-only GitHub Actions runners. Each model needs ~17-20 min for embedding 6k+ symbols, leaving no headroom for the search queries that follow. All 3 model workers were being SIGKILL'd, producing empty results and failing the report update.
1 parent addcc62 commit 7200ec5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/embedding-benchmark.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const dbPath = path.join(root, '.codegraph', 'graph.db');
125125

126126
const { MODELS } = await import(srcImport(srcDir, 'domain/search/index.js'));
127127

128-
const TIMEOUT_MS = 1_200_000; // 20 min — model download + embedding can be slow on CI
128+
const TIMEOUT_MS = 1_800_000; // 30 min — CPU-only CI runners need ~20 min per model for 6k+ symbols
129129
const hasHfToken = !!process.env.HF_TOKEN;
130130
const modelKeys = Object.keys(MODELS);
131131
const results = {};

0 commit comments

Comments
 (0)