ci: run the unit tests outside flow/test
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 35/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Verilog
- Sterne
- 836
- Forks
- 566
- Ø Merge
- 2 T. 15 Std.
- Gemergte PRs (30 T.)
- 84
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Kein Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus The-OpenROAD-Project/OpenROAD-flow-scripts
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 86/100
The-OpenROAD-Project/OpenROAD-flow-scripts#4938 ·
Maintainer antworten meist innerhalb von 1 Tag
-
gf180: `-split_cuts {Metal3 0.128}` in the platform PDN config makes overlapping, off-grid Via2/Via3 cutsEvtl. wieder frei @gadfort hat das vor 33 Tagen übernommen, und es ist kein Pull Request offen. Offenpdn
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 71/100
The-OpenROAD-Project/OpenROAD-flow-scripts#4754 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
The-OpenROAD-Project/OpenROAD-flow-scripts#4739 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Make SYNTH_HDL_FRONTEND=slang defaultEvtl. wieder frei @jeffng-or hat das vor 74 Tagen übernommen, und es ist kein Pull Request offen. OffenStale
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
The-OpenROAD-Project/OpenROAD-flow-scripts#4548 · 2 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 56/100
The-OpenROAD-Project/OpenROAD-flow-scripts#4940 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in The-OpenROAD-Project/OpenROAD-flow-scripts
Ähnliche Issues
-
area: ci
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
GlassworksHQ/glassworks#1548 ·
Maintainer antworten meist innerhalb von 1 Tag
-
agent/quality testing
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 95/100
Maintainer antworten meist innerhalb von 1 Tag
-
ci
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 76/100
ft-dev-org/cloudbridge-oss#103 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement github_actions good first issue
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 94/100
Maintainer antworten meist innerhalb von 1 Tag
-
documentation ready size:S
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag