Skip to content

Go: Improve robustness of integration tests #15355

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

Merged
merged 3 commits into from
Jan 17, 2024
Merged

Conversation

mbg
Copy link
Member

@mbg mbg commented Jan 17, 2024

This PR improves the robustness of our integration tests for Go. Concretely, we introduce test-specific GOPATHs to ensure that, for each test, our autobuilder is able to perform the right steps to independently acquire the dependencies necessary to successfully extract the respective test project.

Without this change, tests may accidentally benefit from test orderings in which dependencies that were installed for previous tests persist in the global GOPATH and thus allow later tests to succeed when they should not.

@mbg mbg self-assigned this Jan 17, 2024
@github-actions github-actions bot added the Go label Jan 17, 2024
@mbg mbg marked this pull request as ready for review January 17, 2024 15:28
@mbg mbg requested a review from a team as a code owner January 17, 2024 15:28
owen-mc
owen-mc previously approved these changes Jan 17, 2024
Copy link
Contributor

@owen-mc owen-mc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only improvement I can think of is that you could mention in the comment above go clean -modcache why that has to be done.

@mbg mbg force-pushed the mbg/go/increase-test-robustness branch from a72bf24 to 783f006 Compare January 17, 2024 16:04
@mbg mbg requested a review from owen-mc January 17, 2024 16:06
Copy link
Contributor

@owen-mc owen-mc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@mbg mbg merged commit 4a71ddd into main Jan 17, 2024
@mbg mbg deleted the mbg/go/increase-test-robustness branch January 17, 2024 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants