-
Notifications
You must be signed in to change notification settings - Fork 168
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 tests for 32bit correction + version of Go update #526
Conversation
🔒 Could not start CI tests due to missing safe PR label. Please contact a DEDIS maintainer. |
1 similar comment
🔒 Could not start CI tests due to missing safe PR label. Please contact a DEDIS maintainer. |
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.
Some small changes. And here is how you can have different golang versions in Alpine:
https://github.com/ineiti/test_ubuntu_32bits/blob/main/.github/workflows/test.yaml
TLDR: download the go-binary from the official website and add it to the PATH.
What is your reasoning behind testing go 1.18 and 1.22? In some past projects we had a policy of "the last two stable versions". You might fail on go 1.19, 1.20, or 1.21 with your policy. |
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.
- The matrix in
test_on_pr
still has go 1.18 in it - why is there a
test_on_pr
and atest_on_push
with similar tests in it? This leads to errors, like you can see yourself: one has the correct golang-version matrix, the other doesn't. One still has the debug output in theSetup Alpine Linux
, the other doesn't.
I propose to remove thetest_on_push
- if I read correctly, only theSend coverage
is unique to it. Either include it in thetest_on_pr
, or add anif
to it.
.github/workflows/test_on_pr.yml
Outdated
run: make test | ||
if: ${{ matrix.size == '32b' }} | ||
run: | | ||
GOVERSION=${{ matrix.golang == '1.21' && '1.21.10' || '1.22.3' }} |
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.
Please put 1.21.10 and 1.22.3 in the matrix, so you don't have to test here. This will most probably be overlooked the day somebody will adjust the versions in the matrix above, and then things will start to fail.
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.
Perfect - I think you could remove the matrix from the permission
job for a more-than-perfect CI/CD :)
.github/workflows/tests.yml
Outdated
concurrency: | ||
group: ci-${{ github.ref }}-test | ||
cancel-in-progress: true |
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.
Why remove this early cancellation of already running tests when a new commit is pushed in quick succession on a PR?
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.
Nice spot, it was an unwanted removal indeed
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.
We're entering Nirvana territory :)
Quality Gate failedFailed conditions |
It addresses @ineiti's comments of using a matrix to simplify the ci.
Resolves #522