Skip to content

refactor: release audit cleanup — atomic writes, flag parsing, dead code#464

Merged
tomasz-tomczyk merged 1 commit intomainfrom
audit/go-fixes
May 5, 2026
Merged

refactor: release audit cleanup — atomic writes, flag parsing, dead code#464
tomasz-tomczyk merged 1 commit intomainfrom
audit/go-fixes

Conversation

@tomasz-tomczyk
Copy link
Copy Markdown
Owner

Summary

  • cli_install.go installOneFile: use atomicWriteFile (crash-safe, consistent with all other writes post-refactor: consolidate atomic-file-write helpers #430)
  • aider_install.go: collapse byte-identical force/!force write branches into one
  • cli_install.go runInstall: fix order-sensitive flag parsing — --force now accepted before or after the agent name
  • main.go: remove dead _ = keys[i] (pre-existing leftover from refactor)
  • share.go: delete test-only buildLocalFingerprints shim; tests now call buildLocalFingerprintIndex directly
  • cli_serve.go: add comment clarifying bindListener retry semantics (explicit port retries on transient contention; ephemeral port fails fast)

Review

  • Code review: passed
  • Parity audit: N/A (no frontend changes)

Test plan

  • go test -race -count=1 ./... — pass
  • golangci-lint run ./... — 0 issues
  • gofmt -l . — clean

🤖 Generated with Claude Code

- installOneFile: use atomicWriteFile (consistent with all other writes post-#430)
- aider_install: collapse byte-identical force/!force write branches
- cli_install: fix order-sensitive flag parsing (--force before agent name now works)
- main: remove dead _ = keys[i] (pre-existing leftover)
- share: delete test-only buildLocalFingerprints shim; tests now call buildLocalFingerprintIndex directly
- cli_serve: add comment clarifying bindListener retry semantics (explicit port retries, ephemeral fails fast)
@codecov
Copy link
Copy Markdown

codecov Bot commented May 5, 2026

Codecov Report

❌ Patch coverage is 36.36364% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 69.05%. Comparing base (5e6bd6b) to head (494f273).

Files with missing lines Patch % Lines
cli_install.go 18.75% 11 Missing and 2 partials ⚠️
main.go 0.00% 1 Missing ⚠️

❌ Your patch check has failed because the patch coverage (36.36%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #464      +/-   ##
==========================================
+ Coverage   69.01%   69.05%   +0.03%     
==========================================
  Files          36       36              
  Lines       10698    10698              
==========================================
+ Hits         7383     7387       +4     
+ Misses       2750     2747       -3     
+ Partials      565      564       -1     
Flag Coverage Δ
e2e 32.53% <0.00%> (ø)
unit 66.56% <36.36%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tomasz-tomczyk tomasz-tomczyk merged commit 78ae39b into main May 5, 2026
7 of 8 checks passed
@tomasz-tomczyk tomasz-tomczyk deleted the audit/go-fixes branch May 5, 2026 19:43
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