Repository navigation
fix(worker): use the always-built test logger in repo stats tests - #448
Merged
Merged
Conversation
repo_stats_test.go called testLog, which is defined in ai_analysis_test.go behind //go:build !noai, so the worker test package did not compile in slim builds and `make check` (vet-tags) failed with "undefined: testLog". Use testLogger from regen_queue_test.go, which has no build constraint. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
|
Thanks, reproduced with |
This was referenced Nov 9, 2026
M0Rf30
pushed a commit
that referenced
this pull request
Nov 9, 2026
The slim builds (-tags noai, nomcp) were only vetted by `make check`, so code that compiles in the full build but not in a slim one reached main (#448). Run `make vet-tags` after go vet, and the unit tests with -tags noai,nomcp after the race run, in the build / vet / test job. Co-authored-by: Areef <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
make checkfails on main at the slim-build vet step:repo_stats_test.gocallstestLog, which lives inai_analysis_test.gobehind//go:build !noai. This switches its six calls totestLoggerfromregen_queue_test.go, which has no build constraint. Test-only change.Checked locally:
make checkpasses, andgo test -short -race ./internal/worker/passes with and without-tags noai,nomcp.CI doesn't seem to run
vet-tagsor the slim-tag tests, which is how this slipped through. Would you like a follow-up that adds them to CI?🤖 Generated with Claude Code