Skip to content

cleanup: pre-release sweep#684

Open
parkan wants to merge 2 commits into
mainfrom
cleanup/pre-release-1.0.0
Open

cleanup: pre-release sweep#684
parkan wants to merge 2 commits into
mainfrom
cleanup/pre-release-1.0.0

Conversation

@parkan

@parkan parkan commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Grab-bag cleanup before 1.0.0 -- vet/staticcheck/gofmt were already clean, so this is all blind-spot stuff: wrong printf verbs, dead code (-583 lines), a few Info->Debug demotions on per-file hot paths, and stale docs/typos.

A handful of real one-liners in there worth a look: pure-go sqlite build was silently dropping the busy_timeout/foreign_keys pragmas (url.Values.Set clobber), Wrapf(nil) was eating a CAR size-mismatch, the version cmd nil-derefs when build info is missing, and compose init was migrating a throwaway sqlite instead of the postgres the other services use.

Second commit is the swagger/docs regen off those string changes -- no hand edits. Left the judgment-call items out (the pdp EAM-namespace check etc.), will raise those separately.

parkan added 2 commits July 16, 2026 19:18
…c drift

trivial real bugs: pure-go sqlite build dropped busy_timeout/foreign_keys
pragmas (url.Values.Set clobber); Wrapf(nil) swallowed the CAR size-mismatch
error; version nil-deref on missing build info; endpointfinder LruTimeout
never set; compose init service lacked DATABASE_CONNECTION_STRING (migrated a
throwaway sqlite, not the postgres); downloadserver logged ErrServerClosed as
a failure; ClientConfig.String missing a field separator; deal duration
default 12740h -> 12840h to match the cli.

wrong printf verbs/args in log and error messages: %d on strings, %s on a
bool, an undereferenced *string, reversed range args, wrong variable.

dead code removed: store/item_reference.go blockstore, EmptyReadCloser,
delegatedAddressToCommon, ChunkMapKeys, StoragePricePerEpochToPricePerDeal,
healthcheck State, post-mysql retry strings, and other unreferenced symbols.

per-file Info logs lowered to Debug on the scan/pack/piece-read hot paths.

cli help text, user-facing typos, stale doc comments, and references to
removed features (mysql, bitswap, encryption) corrected.
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