-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: go test cache unaffected by GODEBUG value #65436
Comments
Adding |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as off-topic.
This comment was marked as off-topic.
Other environment variables go into the test-output cache key here:
|
A little confused here, -count=1 disables test caching explictly. (link) $go clean -cache $GODEBUG=gotypesalias=1 go test ./doc
$ go test ./doc
$ GODEBUG=gotypesalias=1 go test ./doc
$ go test -count=1 ./doc
$ GODEBUG=gotypesalias=1 go test -count=1 ./doc
It seems to me something fishy is going on with the first line: GODEBUG=gotypesalias=1 go test ./doc fails but then succeeds using the cached test with GODEBUG=gotypesalias=1 omitted. Do we want GODEBUG=gotypesalias=1 go test ./doc to not use the cached result from go test ./doc? |
Yep, exactly. The mismatched |
Change https://go.dev/cl/570259 mentions this issue: |
Sorry if you were working on this @samthanawalla. I ran into this problem myself and had to fix it to make progress debugging something else. I didn't see this issue until after I'd written the CL. |
As we work on getting x/tools tests passing with
GODEBUG=gotypesalias=1
in #65294, I noticed that GODEBUG is not included in the test cache key. It probably should be.CC @bcmills @matloob
The text was updated successfully, but these errors were encountered: