-
Notifications
You must be signed in to change notification settings - Fork 54
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
test: Use ubuntu runner instead of macos runner for tests #359
Conversation
We can use 1.22.x instead Signed-off-by: Christophe Fergeau <[email protected]>
The current implementation hardcodes that the binary name is qemu-system-x86_64 on macOS, and qemu-kvm otherwise. Otherwise, on an ubuntu runner, the binary name will be qemu-system-x86_64. This commit makes use of exec.LookPath() to detect the correct binary name. Signed-off-by: Christophe Fergeau <[email protected]>
This is needed when running `qemu-system-x86_64` instead of `qemu-kvm` Signed-off-by: Christophe Fergeau <[email protected]>
8c128be
to
b87e647
Compare
This commit changes uses of actions/setup-go to pick the go version required in go.mod. This means we'll be using the same go version everywhere, and since there is no major version hardcoded (such as '1.20.x'), this means we don't need to remember to update it once in a while. Signed-off-by: Christophe Fergeau <[email protected]>
M1 macos runners can't build our test code, and the M1 runners don't support nested virt, which is required by `make test` Since I expect in the future the x86_64 macos runners to go away, and since the ubuntu runners now support nested virt, this commit uses an ubuntu runner to run `make test`. This fixes containers#358 Signed-off-by: Christophe Fergeau <[email protected]>
I think the packer failures on centos stream 8 and fedora eln are unrelated to this PR. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cfergeau, praveenkumar 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 |
3f7ef77
into
containers:main
M1 macos runners can't build our test code, and the M1 runners don't
support nested virt, which is required by
make test
Since I expect in thefuture the x86_64 macos runners to go away, and since the ubuntu runners
now support nested virt, this commit uses an ubuntu runner to run
make test
.