Skip to content

lint: fix the two issues keeping the test workflow red on main - #269

Merged
glennneuber merged 1 commit into
mainfrom
fix/lint-red-on-main
Sep 4, 2026
Merged

lint: fix the two issues keeping the test workflow red on main#269
glennneuber merged 1 commit into
mainfrom
fix/lint-red-on-main

Conversation

@glennneuber

Copy link
Copy Markdown

The test workflow has been red on main since 2026-08-26 — not on tests (all 64 packages pass; #267's re-run shows the same) but on golangci-lint: server/routes_generate_test.go:2838 not gofumpt-formatted, and x/mlxrunner/client_env_test.go:29 using os.Setenv in a t.Cleanup (usetesting). gofumpt for the first; for the second, t.Setenv registers the restore and only the os.Unsetenv under test remains. Verified with golangci-lint 2.13.2 at repo root (the only remaining findings are the dead constrain layer #267 deletes) and go test ./server/ ./x/mlxrunner/.

🤖 Generated with Claude Code

golangci-lint in the test job has failed on main since 2026-08-26 on two
findings: server/routes_generate_test.go not gofumpt-formatted (one
literal), and x/mlxrunner/client_env_test.go restoring an environment
variable with os.Setenv inside t.Cleanup, which usetesting rejects.
gofumpt the former; in the latter let t.Setenv register the restore and
keep only the os.Unsetenv that is the state under test. All 64 test
packages already passed; this only turns the job green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@glennneuber
glennneuber merged commit 73610f1 into main Sep 4, 2026
6 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