Repository navigation
fix(start-wrt): describe the firewall-section migration - #4656
Conversation
helix-white
left a comment
There was a problem hiding this comment.
Approved. The missing exhaustive-match arm is the integration build failure; this supplies the existing migration's activity-log description without changing migration execution, order, or progress recording. The wording matches the migration's purpose: naming profile-owned firewall sections allows profile saves to preserve LuCI customizations. Both successful and failed migration summaries reuse this description.
Implementation diff: +3 / −0 lines in 1 file (excludes lockfiles, tests, docs, release notes, and changelog).
Verification recorded by the author for b609bc3: make start-wrt-test passed 873 startwrt-core and 30 uciedit tests; make start-wrt-format-check passed; the riscv64 binary built and started on the K1 bench router. I reviewed the diff and affected callers without running builds or tests. The branch merges cleanly into current master. Prettier and Conflict Markers passed; the riscv64 build, automated tests, changelog/version validation, Formatting & Lockfiles, Dependency Licenses, and Generated Artifacts remain pending. No additional changelog entry is needed for completing these unreleased changes.
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
|
Both reviews now approve the unchanged head b609bc3, and GitHub reports it mergeable. CI is still running (riscv64 build, automated tests, changelog/version validation, Formatting & Lockfiles, and Generated Artifacts); no code changes are requested. |
master does not compile
startwrt-core. #4604 added theNameProfileFirewallSectionsmigration, and #4608 addedMigration::purpose(), whosematchhas no arm for it. Each passed CI against a master without the other; together they fail withE0004: non-exhaustive patterns: Migration::NameProfileFirewallSections not covered(ctrl/src/migrate.rs:99), breaking thestart-wrtriscv64 build andAutomated Testson every master push since f4ae12b.This adds the missing arm, describing the migration in the activity log as "Updated settings to name each profile's firewall sections so saving a profile keeps changes made in LuCI".
No changelog fragment: neither change has been released.
Verification
On b609bc3 (based on master 04fff2e):
make start-wrt-test: startwrt-core 873 passed, uciedit 30 passed, 0 failed.make start-wrt-format-check: clean.make start-wrt-update); it started normally.