You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cleanup: lint fixes, tests, and go 1.26.4 bump on top of #276
review-driven follow-ups to PR #276 (CE-1579):
- table-driven tests for the helpers added in #276: TestValueOrDash,
TestFormatTimestamp (precision tiers + boundary cases),
TestCreateCmd_FlagValidation, expanded TestBuildTemplateEndpointGQLInput,
TestModelVersionHash edge cases.
- benchmark + correctness check for cmd/serverless/create.go::randomString
with two alternative implementations; data confirms keeping the current
form (call site is one-shot per CLI invocation).
- lint fixes in #276-touched files: 6× 200 -> http.StatusOK in api/model.go,
sprintfQuotedString in addModelToRepo.go, two PR-introduced err shadows in
create.go and addModelToRepo.go, removed an unjustified //nolint:gosec.
- math/rand -> math/rand/v2 for randomString with a documented nolint
explaining why crypto/rand is not warranted (display-only template-name
uniqueness suffix, not a token).
- range over int in randomString.
- go.mod bump to 1.26.4, drop explicit toolchain directive.
- dep bumps: google/uuid 1.4->1.6, x/crypto 0.50->0.53, x/mod 0.34->0.37,
and transitive x/net x/sys x/term x/text.
- ci.yml + release.yml setup-go bumped to 1.26.4.
build + go vet + full test suite all pass.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
0 commit comments