You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(typescript): fix stale .mjs refs the port missed, and type the three dev scripts for real
3 test files (iterate-loop-load-test-script, miner-benchmark-script,
miner-cross-repo-evaluation) still imported the OLD .mjs paths for
load-test-iterate-loop/benchmark/cross-repo-evaluation after their #9527 rename
to .ts -- the package.json runners were updated but these direct test imports
were missed. Broke CI on #9534 (Cannot find module ... .mjs). Fixed, plus the
same stale path in two docs, a manifest description string, a script's own
--help text, and a code comment, none of which the original port's grep sweep
caught.
Typing the three scripts for the first time (they were always .mjs, so tsc
never saw them) surfaced real gaps, not just missing annotations:
- cross-repo-evaluation.ts's main() called parseCrossRepoEvaluationArgs() with
zero arguments against a REQUIRED parameter -- silently fine in untyped JS
because the function internally falls back via ,
but the parameter needed to actually be optional to say what was always true.
- benchmark.ts's buildSyntheticCandidates() was missing owner/repo/assignees
entirely and mixed real booleans into a field opportunity-fanout.ts types as
literal -only. Traced rankCandidateIssues' actual runtime check
() before deciding how to type it: it
genuinely branches on false, so narrowing the benchmark's synthetic mix to
true-only would have silently dropped real exercised coverage. Added the
missing fields for real, kept the deliberate true/false mix with a documented
cast rather than narrowing it away.
- load-test-iterate-loop.ts's fake driver was typed to a hand-narrowed
{ attemptId: string } task shape until the test file's own fuller task
literal (workingDirectory, acceptanceCriteriaPath, ...) failed against it --
switched to the real CodingAgentDriverTask/Result types instead of the
narrower hand-rolled ones.
Refs #9527
Copy file name to clipboardExpand all lines: packages/loopover-miner/benchmarks/cross-repo/manifest.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
{
2
-
"description": "Cross-repo evaluation benchmark set (#4788). Diverse public repos exercised by `node packages/loopover-miner/scripts/cross-repo-evaluation.mjs` after cloning into LOOPOVER_MINER_REPO_CLONE_DIR.",
2
+
"description": "Cross-repo evaluation benchmark set (#4788). Diverse public repos exercised by `node --experimental-strip-types packages/loopover-miner/scripts/cross-repo-evaluation.ts` after cloning into LOOPOVER_MINER_REPO_CLONE_DIR.",
0 commit comments