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

ci: set GOTOOLCHAIN=local for unit tests #2832

Merged
merged 2 commits into from
Sep 4, 2024
Merged

Conversation

nsrip-dd
Copy link
Contributor

@nsrip-dd nsrip-dd commented Aug 28, 2024

What does this PR do?

Set GOTOOLCHAIN=local for our unit tests.

I didn't change the go get -u smoke tests. Those tests are inherently
incompatible with GOTOOLCHAIN=local. We could perhaps make them
work with GOTOOLCHAIN=local by adding [email protected] to the go get -u
commands, like Orhcestrion does.

Motivation

Users may build our library with GOTOOLCHAIN=local. If they do, and our
go.mod file specifies a newer Go version than their local toolchain, their
build will break. Run our tests with GOTOOLCHAIN=local to ensure that
our library builds with all of the Go versions we claim to support,
without having to download a newer one.

@pr-commenter
Copy link

pr-commenter bot commented Aug 28, 2024

Benchmarks

Benchmark execution time: 2024-08-29 16:04:25

Comparing candidate commit e39271d in PR branch nick.ripley/gotoolchain with baseline commit e7ca17e in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 59 metrics, 0 unstable metrics.

@nsrip-dd nsrip-dd force-pushed the nick.ripley/gotoolchain branch from a8be066 to e153884 Compare August 29, 2024 14:47
Users may build our library with GOTOOLCHAIN=local. If they do, and our
go.mod file specifies a newer Go version than their local toolchain, their
build will break. Run our tests with GOTOOLCHAIN=local to ensure that
our library builds with all of the Go versions we claim to support,
without having to download a newer one.
@nsrip-dd nsrip-dd force-pushed the nick.ripley/gotoolchain branch from e153884 to e39271d Compare August 29, 2024 15:39
@nsrip-dd nsrip-dd marked this pull request as ready for review September 3, 2024 16:38
@nsrip-dd nsrip-dd requested a review from a team as a code owner September 3, 2024 16:38
Copy link
Member

@felixge felixge left a comment

Choose a reason for hiding this comment

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

LGTM, thanks 🙇

@nsrip-dd nsrip-dd enabled auto-merge (squash) September 4, 2024 10:54
@nsrip-dd nsrip-dd merged commit 50f9384 into main Sep 4, 2024
185 of 186 checks passed
@nsrip-dd nsrip-dd deleted the nick.ripley/gotoolchain branch September 4, 2024 11:01
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.

2 participants