-
Notifications
You must be signed in to change notification settings - Fork 77
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
Add CI tests for ARM64 #44
Conversation
39cdcfd
to
075a82d
Compare
@hakman: GitHub didn't allow me to request PR reviews from the following users: afbjorklund, zhsj. Note that only kubernetes-sigs members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
075a82d
to
3f70512
Compare
8b32345
to
932e0c7
Compare
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
thanks!
Thanks @neolit123. Will wait for #42 to merge and rebase. |
/assign @liggitt |
.travis.yml
Outdated
script: | ||
- diff -u <(echo -n) <(gofmt -d *.go) | ||
- diff -u <(echo -n) <(golint $(go list -e ./...) | grep -v YAMLToJSON) | ||
- GO111MODULE=on go vet . | ||
- GO111MODULE=on go test -v -race ./... | ||
- if [[ $TRAVIS_CPU_ARCH == "arm64" ]]; then | ||
GOARCH=arm GOARM=7 GO111MODULE=on go test -v ./...; |
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.
can you describe what this is doing? I'm surprised setting GOARCH explicitly is required
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.
I think it is building and testing the 32-bit binary (armv7), so it's like a two-for-one (arm64+arm32)
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.
One idea in the original issue was to use the CI setup to run the ARM v7 tests also, as it should be compatible with both v7 and v8.
In case the TravisCI CPU is ARM64, an ARM v7 test is also run, but without -race
, which is not supported.
932e0c7
to
396c684
Compare
9e95499
to
52890f4
Compare
02d0e46
to
81e230f
Compare
840c2b1
to
38c293b
Compare
38c293b
to
3cc309c
Compare
@neolit123 @liggitt as TravisCI was replaced by GitHub actions, I updated the PR to only test ARM64, which is missing from GitHub actions for now (should be available sometime in Q1). |
thanks @hakman /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dims, hakman The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Ref: #34 (comment)
Skipping Go 1.14 because it was never used in any k8s release.
The
-race
flag is not supported on linux/arm.Tests should fail until #42 is merged.