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: test against go1.22 #1195

Merged
merged 2 commits into from
Apr 29, 2024
Merged

CI: test against go1.22 #1195

merged 2 commits into from
Apr 29, 2024

Conversation

JacobOaks
Copy link
Contributor

This PR modifies CI to test against Go versions 1.21 and 1.22. To avoid forcing users to upgrade to 1.21, I kept go.mod version at 1.20.

Some tests had to be updated to pass in 1.22.

I can remove stack_120_test.go if there's a good argument for it, but my thoughts are that we should have a complete & passing test suite for every version >= go.mod's version.

This PR modifies CI to test against Go versions 1.21 and 1.22.
To avoid forcing users to upgrade to 1.21, I kept `go.mod` version at `1.20.`

Some tests had to be updated to pass in 1.22.

I can remove `stack_120_test.go` if there's a good argument for it,
but my thoughts are that we should have a complete & passing test suite
for every version >= `go.mod`'s version.
@JacobOaks JacobOaks changed the title Test Against go1.22 CI: test against go1.22 Apr 29, 2024
Copy link

codecov bot commented Apr 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.49%. Comparing base (0ee304c) to head (1c3fc51).
Report is 1 commits behind head on master.

❗ Current head 1c3fc51 differs from pull request most recent head 1d6a008. Consider uploading reports for the commit 1d6a008 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1195      +/-   ##
==========================================
- Coverage   98.73%   98.49%   -0.25%     
==========================================
  Files          31       34       +3     
  Lines        2851     2858       +7     
==========================================
  Hits         2815     2815              
- Misses         29       36       +7     
  Partials        7        7              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@tchung1118 tchung1118 left a comment

Choose a reason for hiding this comment

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

LGTM

@JacobOaks JacobOaks merged commit 2379ac9 into uber-go:master Apr 29, 2024
10 checks passed
@@ -19,7 +19,7 @@ jobs:
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest"]
go: ["1.20.x", "1.21.x"]
go: ["1.21.x", "1.22.x"]
Copy link

Choose a reason for hiding this comment

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

I recently learned a trick via uber-go/tally#258 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants