Skip to content
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 flag -skip should be cacheable #70692

Closed
zgzhong opened this issue Dec 5, 2024 · 6 comments
Closed

cmd/go: go test flag -skip should be cacheable #70692

zgzhong opened this issue Dec 5, 2024 · 6 comments
Assignees
Labels
GoCommand cmd/go NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@zgzhong
Copy link

zgzhong commented Dec 5, 2024

Proposal Details

Running tests with the -skip flag should be able to use the test result cache.

In the original design of the test result cache (#11193), the test flag -run is a cacheable flag. However, the subsequent proposal (#41583) that added the -skip flag to go test but did not make it cacheable.

Both -skip and -run are flags used to match or filter the test cases. Since the -run parameter is cacheable, the -skip parameter should also be cacheable, too.

@gopherbot gopherbot added this to the Proposal milestone Dec 5, 2024
@ianlancetaylor ianlancetaylor moved this to Incoming in Proposals Dec 5, 2024
@seankhliao seankhliao added the GoCommand cmd/go label Feb 1, 2025
@matloob
Copy link
Contributor

matloob commented Feb 4, 2025

Yeah, I can't think of a reason to not cache it.

@seankhliao
Copy link
Member

does this need to be a proposal or just a change?

@rsc
Copy link
Contributor

rsc commented Feb 5, 2025

This is a bug; it does not need a proposal.

@seankhliao seankhliao added NeedsFix The path to resolution is known, but the work has not been done. and removed Proposal labels Feb 5, 2025
@seankhliao seankhliao removed this from Proposals Feb 5, 2025
@seankhliao seankhliao removed this from the Proposal milestone Feb 5, 2025
@seankhliao seankhliao changed the title proposal: cmd/go: go test flag -skip should be cacheable cmd/go: go test flag -skip should be cacheable Feb 5, 2025
@matloob
Copy link
Contributor

matloob commented Feb 5, 2025

I'll send a CL for this. Thanks!

@matloob matloob self-assigned this Feb 5, 2025
@gopherbot
Copy link
Contributor

Change https://go.dev/cl/646997 mentions this issue: cmd/go: add '-skip' to list of cacheable test flags

@dmitshur dmitshur added this to the Go1.25 milestone Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GoCommand cmd/go NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

7 participants