ci(frontend): execute node --test suite in forgejo actions CI workflow #239
Labels
No labels
blocked
bug
enhancement
high-priority
low-priority
needs-info
needs-triage
ready-for-agent
ready-for-human
referenced
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gabogg/hikcentral#239
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Add execution of the 242 frontend unit tests (
tests/frontend/*.test.js) to the Forgejo Actions continuous integration workflow (.forgejo/workflows/ci.yml).Background & Research Findings
From the testing research in
docs/research/test-performance-and-agent-workflows.md(ref #217):tests/frontend/*.test.jscovering 242 assertions across navigation, deck views, calibration controls, and telemetry modules.node --testin ~5.7s with zero external dependencies..pre-commit-config.yamlnor.forgejo/workflows/ci.ymlruns these tests.Requirements
.forgejo/workflows/ci.ymlto include a job step runningnode --test tests/frontend/*.test.js(ornpm testif defined inpackage.json).gabogg referenced this issue2026-10-03 08:11:56 +00:00
Triage:
ready-for-agent→needs-triage(premise looks already implemented)The frontend
node --testsuite already runs in CI and pre-commit, through pytest.tests/test_frontend_modules.py::test_telemetry_frontend_modulesglobstests/frontend/*.test.jsand runsnode --teston them. Its docstring states the invariant: "runningpytestacts as the single 100% green verification gate for all backend and frontend units". The #218 findings document lists that test among the slowest (5.20 s) but still concludes the frontend suite isn't wired anywhere, because it only greppedci.ymland.pre-commit-config.yamlfornode.Implementing this issue as written would run the frontend suite twice per CI run.
Recommendation: close as already implemented, unless the maintainer wants the frontend suite as a separate CI step (separate reporting, or running without the Python environment). In that case, drop the pytest wrapper in the same change, so the suite still runs exactly once.
Closing as redundant: pytest already runs
node --testthroughtests/test_frontend_modules.py::test_telemetry_frontend_modules, so the frontend tests are already in the suite and the pre-commit hook. The finding in PR #218 that produced this issue was wrong; that is pass 1 finding 1 on #218.