-
Notifications
You must be signed in to change notification settings - Fork 72
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
Use Go version associated with containerd release in CI #166
Use Go version associated with containerd release in CI #166
Conversation
6e1323f
to
8e3e30f
Compare
When looking into this I found that since we need to build the tests from source anyways, we could just use the go version from the source. Got it working but some tests are skipped (go test -test.skip) in CI (#122) using a flag that is only supported in golang 1.20 so CI isn't passing. a couple options to unblock are:
|
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!
unfortunately CI isn't passing do the skipped tests so will need to fix those or only use golang 1.20+ for the tests |
dbbb381
to
ae67593
Compare
4d54042
to
dee6102
Compare
- name: Checkout containerd | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: containerd/containerd | ||
path: src/github.com/containerd/containerd | ||
ref: ${{ matrix.containerd }} | ||
|
||
- name: Get Go Version | ||
run: | | ||
go_version=$(awk -F': ' '/GO_VERSION/ {gsub(/["'\'']/, "", $2); print $2; exit}' .github/workflows/release.yml) |
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 don't have .github/workflows/release.yml
, right?
❯ cat .github/workflows/release.yml
cat: .github/workflows/release.yml: No such file or directory
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.
this is the containerd release file since it is the containerd repository we checked out in the step before
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.
oh, right right.
Could you also squash the commit history? |
This ensures that there isn't flakes with testing when go version doesn't match the release as experienced in containerd#147 Signed-off-by: James Sturtevant <[email protected]>
dee6102
to
2e3b3ef
Compare
This ensures that there isn't failures with testing when go version doesn't match the release as experienced in #147.
this also bumps the containerd versions to latest patches
fixes #147