[codex] add freenove route parity checker and lightweight workflow #97
Reference in New Issue
Block a user
Delete Branch "codex/zacus-issue-94-route-parity-gate"
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?
Scope
Implements issue #94 with a low-cost static route parity gate for Freenove WebUI.
Changes
hardware/firmware/tools/dev/check_freenove_web_route_parity.pyg_web_server.on(...)and frontend routes from embedded WebUI calls (fetch(...)andpost(...)) inui_freenove_allinone/src/main.cpp..github/workflows/freenove-route-parity.ymlhardware/firmware/hardware/firmware/docs/SPEC_FREENOVE_WEB_ROUTE_PARITY_V1.mdValidation
python3 -m py_compile hardware/firmware/tools/dev/check_freenove_web_route_parity.py-> PASSpython3 hardware/firmware/tools/dev/check_freenove_web_route_parity.py-> PASSNotes
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
a3a180e0e5ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
@@ -0,0 +23,4 @@parser = argparse.ArgumentParser(description="Check Freenove WebUI route parity.")parser.add_argument("--source",default="hardware/firmware/hardware/firmware/ui_freenove_allinone/src/main.cpp",The
--sourcedefault is hardcoded as a repo-root-relative path, so running this tool fromhardware/firmware(the standard firmware working directory) resolves to a non-existent location and crashes withFileNotFoundErrorbefore any parity result is produced. This makes local use brittle outside CI; computing the default from__file__(or repo root discovery) would keep behavior consistent regardless of current working directory.Useful? React with 👍 / 👎.