Skip to content

fix(start-wrt): describe the firewall-section migration - #4656

Merged
Dominion5254 merged 1 commit into
masterfrom
wrt/migration-purpose-fix
Nov 9, 2026
Merged

Dominion5254 merged 1 commit into
masterfrom
wrt/migration-purpose-fix

Conversation

@Dominion5254

Copy link
Copy Markdown
Member

master does not compile startwrt-core. #4604 added the NameProfileFirewallSections migration, and #4608 added Migration::purpose(), whose match has no arm for it. Each passed CI against a master without the other; together they fail with E0004: non-exhaustive patterns: Migration::NameProfileFirewallSections not covered (ctrl/src/migrate.rs:99), breaking the start-wrt riscv64 build and Automated Tests on 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.
  • riscv64 binary built and deployed to the K1 bench router (make start-wrt-update); it started normally.

#4604 added the NameProfileFirewallSections migration and #4608 added
Migration::purpose(), whose match has no arm for it. Each passed CI on
its own; together master's startwrt-core does not compile.

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@helix-white

Copy link
Copy Markdown
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants