Repository navigation
fix(setup): silence the absent-brand-file shell noise in uci-defaults - #568
Amperstrand wants to merge 1 commit into
Conversation
b304a37 to
f7af657
Compare
|
Technical review (evidence pass) Verified against Noise on absent file (literal No behavior change when the file exists — both
The last row is the only delta and it is a strict improvement: Regression and lint. Findings (non-blocking):
Disposition: land — with the one-character |
|
Technical review (evidence pass) — PR head The diagnosis is correct and I reproduced it under real BusyBox ash: One mechanical blocker: the branch conflicts with main in Follow-up, non-blocking: a three-line case in the offline uci-defaults harness — Disposition: land-with-followups — rebase to clear the CHANGELOG conflict (mechanical); optional silence case in the offline uci-defaults harness. |
|
Gate-1 review — APPROVED (code as-is; one mechanical rebase required before merge) reviewer_model: glm-5.3 · review_tier: tier/review-glm The fix is correct and minimal: probe with Evidence run at head:
Gate 2.5 cold audit: PASS — fresh-context audit of this draft confirmed all load-bearing claims (incl. byte-level busybox repro and an independent merge-tree re-run); one sub-claim (a CHANGELOG blank-line style nit) was refuted and dropped. The named FULL_REVIEW: /home/c03rad0r/reports/reviews/tollgate-module-basic-go-t_60cf9c11-glm-5.3.md |
2be5d94 to
376fb43
Compare
|
is this still relevant and why? How does it relate to the SSID one? |
|
Still relevant, and unrelated to the SSID PR functionally. This one is the router side: on a fresh/manual install where |
|
Conflicts resolved on a rebase of your four commits onto Replacement PR: #680 — 2 files, +17/−2, Two things you should know, since one of them is a deliberate deviation:
Proof the noise is actually gone (both functions extracted, Same values, no noise. Merge #680 and this PR closes as superseded, or force-push |
Seen live in the alpha4-pre15 postinst on a fresh 25.12.5 install (two 'can't open /etc/tollgate/brand: no such file' lines): BusyBox ash reports the failed redirect before the command's own null-stderr applies. Guard both brand reads with [ -r ] so a missing file is probed, never opened — the default-brand path stays silent.
|
Rebased in place onto current main ( One deliberate resolution to flag: the rebase conflict offered a ~27-line whitelabel Verification: @felixfelix-bot skip — done (see #676). |
376fb43 to
2467b16
Compare
|
@c03rad0r still relevant, verified on current |
… — rebase of #568 (#680) * fix(setup): silence the absent-brand-file shell noise in uci-defaults Seen live in the alpha4-pre15 postinst on a fresh 25.12.5 install (two 'can't open /etc/tollgate/brand: no such file' lines): BusyBox ash reports the failed redirect before the command's own null-stderr applies. Guard both brand reads with [ -r ] so a missing file is probed, never opened — the default-brand path stays silent. (cherry picked from commit b89b637) * docs(changelog): brand-file noise fix entry (cherry picked from commit 3262fa4) * docs(changelog): correct the PR link to #568 (cherry picked from commit 04e8510) * docs(changelog): fix the entry's link text to match the PR number (cherry picked from commit 376fb43) --------- Co-authored-by: Amperstrand <amperstrand@localhost>
Amperstrand
left a comment
There was a problem hiding this comment.
Skipped per PR-REVIEW.md Step 1 (draft). Small setup-noise fix — when it un-drafts it qualifies for the informal one-paragraph pass, not a 13-point one.
|
🏷️ Next action — on-hold On hold — draft PR. Not in the active merge queue. |
|
Closing as superseded: main already carries this in a stronger form — |
What
One-line behavioral fix found while installing
0.6.0-alpha4-pre15on a fresh OpenWrt 25.12.5 box (#552 provisioning session): the uci-defaults printedBusyBox ash reports the failed
< fileredirect itself, before the command's own2>/dev/null(line 60) or fallback assignment (line 162, no suppression at all) can silence it. Both brand reads now probe with[ -r ]and only then read, so the default-brand path — the overwhelmingly common case — is silent. No behavior change for present brand files, either brand.Verification
sh -non the modified uci-defaults; brand resolution logic unchanged (caseafter read, same defaults).