ci: run the unit tests outside flow/test
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
调研方向
Read .github/workflows/github-actions-cron-util-test.yml and the listed test paths to understand what CI currently runs and how each suite is invoked. The issue frames the change as a policy decision about test placement and CI coverage; first establish the project’s decision on those questions. Done means the agreed tests run from CI on relevant path changes, including the FakeRAM2.0 runner if that suite is included.
由索引模型根据 Issue 内容生成。
描述
Description
Not urgent, just documenting a chore. I tried to clean this up in a PR but I think this is more of a policy decision than coding work these days.
The Test Util Scripts workflow (.github/workflows/github-actions-cron-util-test.yml) runs flow/test/*.py. Some unit tests elsewhere in the tree are not run by CI, so they are run on demand and can break unnoticed:
| Tests | Cover | Runner |
|---|---|---|
flow/scripts/memories/{detect,gen_memories,idiomatic,schema}_test.py |
AUTO_MEMORIES |
none |
flow/util/genMetrics_test.py |
genMetrics.py |
none |
tools/FakeRAM2.0/test/*_test.py |
FakeRAM2.0 | tools/FakeRAM2.0/test/test_all.sh |
All of them pass on master (9ca2a9e7).
#4807 tried to fix this by documenting these tests as run on demand, and was closed. Moving them is little coding now that an AI can do the edit; what is open is policy:
- Does every unit test in the tree run in CI?
- Do unit tests live in
flow/test/, where CI and contributors find them, or next to the code they cover? - Does a vendored tool such as FakeRAM2.0 keep its own suite and runner, called from the workflow?
Suggested Solution
If the answers are yes, in flow/test/, and yes:
- Move the memories tests and
genMetrics_test.pyintoflow/test/astest_<name>.py. They use only the Python standard library (plusgitforgenMetrics_test.py), so the workflow needs nothing installed. Each reaches the code under test the wayflow/test/test_convertDrc.pyalready does, asys.pathentry for../scripts/memoriesor../util. - Add
flow/scripts/memories/*.pyto the workflow'spathstriggers. Today a pull request that changes only that directory does not run the workflow. - Run
tools/FakeRAM2.0/test/test_all.shas a workflow step instead of moving its tests: its tests import FakeRAM2.0's modules relative totools/FakeRAM2.0, and the suite has its own runner. Addtools/FakeRAM2.0/**to the triggers.
Additional Context
The workflow's loop, for file in *.py; do python3 "$file"; done, runs under the GitHub Actions default bash -e, so it stops at the first failing test.
- 主要语言
- Verilog
- 星标
- 836
- 派生
- 566
- 平均合并
- 2 天 15 小时
- 30 天内合并 PR
- 84
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
The-OpenROAD-Project/OpenROAD-flow-scripts 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 86/100
The-OpenROAD-Project/OpenROAD-flow-scripts#4938 ·
维护者通常 1 天内回复
-
gf180: `-split_cuts {Metal3 0.128}` in the platform PDN config makes overlapping, off-grid Via2/Via3 cuts可能重新可做 @gadfort 于 32 天前认领,目前没有进行中的 PR。 未关闭pdn
难度 2/5 1-3 小时 新手友好度 71/100
The-OpenROAD-Project/OpenROAD-flow-scripts#4754 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
The-OpenROAD-Project/OpenROAD-flow-scripts#4739 · 2 条评论 ·
维护者通常 1 天内回复
-
Make SYNTH_HDL_FRONTEND=slang default可能重新可做 @jeffng-or 于 74 天前认领,目前没有进行中的 PR。 未关闭Stale
难度 2/5 1-3 小时 新手友好度 68/100
The-OpenROAD-Project/OpenROAD-flow-scripts#4548 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 56/100
The-OpenROAD-Project/OpenROAD-flow-scripts#4940 ·
维护者通常 1 天内回复
查看 The-OpenROAD-Project/OpenROAD-flow-scripts 的全部 Issue
相似的 Issue
-
needs triage
难度 2/5 1-3 小时 新手友好度 72/100
389ds/389-ds-base#8251 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
smores56/homelab-platform#289 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
ardia-browser/ardia#6798 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
Lincoln-cn/JAiRouter#1465 ·
维护者通常 1 天内回复
-
good first issue help wanted
难度 2/5 1-3 小时 新手友好度 85/100
Klyroo/klyroo-dashboard#12 ·
维护者通常 1 天内回复