-
Notifications
You must be signed in to change notification settings - Fork 116
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
chore: upgrade go versions and fix ci test execution #187
Conversation
@r-hang do you have an feedback on this? 🙂 |
Hey @fasmat, I see some CI errors. I'm wondering if this has to do with the changes to the GO111MODULE flag. As for the test configuration, I think having CI tests for just the two latest versions of Go is sufficient. Thank you for your contribution! |
Hi @r-hang! I'm still trying to figure out why the one package fails to be parsed when executing the tests with newer go versions. I don't think this is related to Since this contribution: golang/mock#641 tests have only been executed for Go 1.18.x but not for other versions and since this contribution #6 the CI has been using Go 1.19.x and 1.20.x which means some PR merged after that broke the tests. The package that fails the test was contributed in #11 and if I checkout that commit and run |
but it didn't show up in the CI because the tests were never executed. 🙁 |
@r-hang I identified and fixed the issue. Can you take another look? 🙂 |
be54010
to
a711782
Compare
Hi @fasmat , thanks for this PR and the ping! I will take a look at this either today or tomorrow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! Thank you so much!
Note: I landed https://github.com/uber-go/mock/pull/189/files which address the ISGOMOCK regeneration issue (this issue is also resolved in this diff) since that commit was created earlier than equivalent commit in this PR.
I updated the CI to use the two newest stable versions of go (v1.21.x and v1.22.x) to test the code as well as the oldest version (
v1.19.x
) that could still be used to build the source.The behaviour of the
go version
line ingo.mod
changed withv1.21.x
: it should state the oldest version of go that is needed to build the source. The source builds and tests fine withv1.19.x
, older versions however fail, so I set it to this version.Before my changes the
test
GH workflow didn't actually execute./ci/test.sh
because there was a check that skipped testing if the used go version was any other than1.18
. I removed this check which showed some tests failing even without my changes.The issue turned out to have been introduced by accident (because tests weren't executed) in #48. The fix for it can be found in commit 0403497 (part of this PR). Additionally I had to regenerate all mocks or
./ci/tests.sh
would complain that they weren't up to date.