[Good first issue] 评测 CLI 报出找不到的显式 --case ID

Open Beginner friendly
#77 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
bun, typescript
Domain
devtools

Research direction

Start with the case selection in scripts/eval/select-cases.ts (lines 17-45) and the pre-run check in scripts/eval/run.ts (lines 764-791). Reproduce by running the fixture-mode eval with one valid and one unknown --case ID against a temporary --store and noting exit code 0. Done when unknown explicit IDs are listed in the error and mixed valid/invalid input exits as an argument error, with offline cases added to scripts/eval/select-cases.test.ts covering all-valid, mixed, and all-invalid inputs.

Written by the indexing model from the issue text.

Description

area:evaluation bug good first issue help wanted

最小复现

以 fixture 模式和临时 --store 执行评测,传入 --case fv1-market-001 --case fixture-id-does-not-exist。命令只运行第一条,摘要为 requested=1 和 1/1 通过,进程退出 0,输出没有提到无效的 ID。只传不存在的 ID 时,退出 1,提示 No cases selected.。

Windows 上用 Bun 1.4.2 在 main 579395e 复验。

验收标准

  • 在执行前核对每个显式用例 ID,并在错误信息列出当前数据集中找不到的 ID。有效和无效 ID 混用时按参数错误退出。
  • 补离线回归,覆盖全部 ID 有效、有效和无效混用、全部无效。继续支持用标签和用例上限筛选已存在的 ID。

源码起点

验证入口 bun test scripts/eval/select-cases.test.ts。可以在 fixture 模式用临时目录复验命令的退出码。

准备参与时,可先说明最小改动范围,再评论 /claim。贡献入口见 #7。

Dominant language
TypeScript
Stars
206
Forks
37
Avg merge
8h 8m
Merged PRs (30d)
7

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ydflow/Trail

All issues in ydflow/Trail

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.