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

Run ARM64 tests in CI #94

Merged
merged 2 commits into from
Aug 6, 2024
Merged

Run ARM64 tests in CI #94

merged 2 commits into from
Aug 6, 2024

Conversation

athre0z
Copy link
Member

@athre0z athre0z commented Jul 22, 2024

Building on top of #80 and combining this with qemu-binfmt we can now run ARM64 tests in CI despite the continuing lack of ARM64 runners on GitHub (Microsoft, please fix!).

@athre0z athre0z self-assigned this Jul 22, 2024
support/run-tests.sh Outdated Show resolved Hide resolved

set -eu
set -o pipefail

qemu_arch="${QEMU_ARCH:-x86_64}"
Copy link
Member Author

Choose a reason for hiding this comment

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

Alternatively we could make this a positional argument to run-tests.sh. No strong preference either way.

Copy link
Contributor

Choose a reason for hiding this comment

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

Env variable seems good to me.

@athre0z athre0z marked this pull request as ready for review July 22, 2024 17:51
@athre0z athre0z requested review from florianl and rockdaboot July 22, 2024 17:51
support/run-tests.sh Outdated Show resolved Hide resolved
Copy link
Contributor

@rockdaboot rockdaboot left a comment

Choose a reason for hiding this comment

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

LGTM

uses: actions/setup-go@v5
with:
go-version: ${{matrix.go}}
go-version: stable
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Using stable as version for Go comes with the risk of breaking CI if there is an unexpected change in Go. E.g. there could be changes similar to golang/go#67401, that could break assumptions.
Manually updating the Go version allows to make sure CI does not break on events, that are happening outside of the scope and control of this repo/maintainership.

Ideally, this action should receive some version information as argument. Using $matrix.go here assumes that in the executed job matrix.go is defined and makes it hard to follow/review.

Copy link
Member Author

Choose a reason for hiding this comment

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

Nit: Using stable as version for Go comes with the risk of breaking CI if there is an unexpected change in Go. E.g. there could be changes similar to golang/go#67401, that could break assumptions.

I'm merely mirroring the previous logic here, but I'd also be OK with hardcoding a particular Go version globally. IMO we should just have one global Go version for all CI workflows and adding it as an argument would force us to duplicate the version everywhere.

Using $matrix.go here assumes that in the executed job matrix.go is defined and makes it hard to follow/review.

Yeah, that's why I opted to just hardcode it directly in the action. Also, all callers either passed "stable" already or forgot to set it entirely.

.github/workflows/unit-test-on-pull-request.yml Outdated Show resolved Hide resolved
.github/workflows/unit-test-on-pull-request.yml Outdated Show resolved Hide resolved
@athre0z athre0z merged commit d61f544 into main Aug 6, 2024
18 checks passed
@athre0z athre0z deleted the joel/arm64-ci branch August 6, 2024 13:48
rockdaboot pushed a commit that referenced this pull request Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants