Skip to content

Merge CI gates work (PR #34) into main - #35

Merged
naliyi merged 4 commits into
mainfrom
bump-nmilat-0.2.7
Sep 4, 2026
Merged

Merge CI gates work (PR #34) into main#35
naliyi merged 4 commits into
mainfrom
bump-nmilat-0.2.7

Conversation

@naliyi

@naliyi naliyi commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

PR #34 was merged into its stale base branch bump-nmilat-0.2.7 instead of main -- #33 merged to main before #34 finished, and #34 never got retargeted (flagged as a risk in #34's own description). This brings that work (178 lint fixes + the actual CI gate additions) into main, where it was always meant to land.

Purely mechanical -- no behavior change. Needed before adding a gofmt CI
gate, since these files predate it and had drifted.
…k/unused)

178 pre-existing errcheck findings (mostly best-effort Close()/Flush()/
Fprint*/WriteMessage/MarkFlag* calls whose error was never actionable),
15 staticcheck quick-fixes (embedded-field selector simplification, De
Morgan's, Fprintf-over-WriteString+Sprintf, an empty branch), and 3 unused
findings -- all found ahead of adding CI gates for them.

A few needed real judgment rather than blind suppression, since they're
this codebase's own persistence/lifecycle calls rather than stdlib
boilerplate:
- client/recovery.go's deleteMeta/saveMeta/metaDB.View calls now log on
  failure instead of silently dropping it, matching this file's existing
  log.Error()/log.Warn() convention -- a lost delete/save here means a
  retry-recovery entry silently goes stale or never converges.
- cli/bunker/policy.go's two saveLocked() calls (resolveGrantLocked,
  Prune) are left as best-effort with an explanatory comment: in-memory
  grant state is already updated and authoritative, and this package has
  no logger dependency anywhere else to introduce just for these two
  sites.
- cli/bunker/command.go's `go daemon.Run(ctx)` now logs via the daemon's
  own d.log() if Run returns (currently only reachable via "no relays
  configured", silently dropped before -- the bunker command would just
  hang with zero explanation).
- client/client.go's Ctrl+S save callback now surfaces a failure via
  c.app.Error(), matching the sibling callback right above it that
  already does this for a different error. Its TUI's app.Run() (and
  client/ping.go's) now logs via the existing zerolog logger instead of
  discarding a real startup/render failure.

cli/relay/service.go also drops a dead, comment-explained no-op branch
for config.HandshakeTimeout: it's parsed but was never wired to anything
(relay.SessionConfig has no such field) -- actually wiring it up would be
a real behavior change belonging in its own PR, not this cleanup.
check gains Gofmt/Build/Tidy steps alongside the existing Vet/Test; two
new jobs, lint (golangci-lint v2.13) and vulncheck (govulncheck), run in
parallel. All four pass clean against the current tree as of the prior
lint-cleanup commit.
CI: gofmt/lint/tidy/vulncheck gates, enable -race
@naliyi
naliyi merged commit 9ff8441 into main Sep 4, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant