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

test: Use ubuntu runner instead of macos runner for tests #359

Merged
merged 5 commits into from
May 17, 2024

Conversation

cfergeau
Copy link
Collaborator

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.

cfergeau added 3 commits May 16, 2024 17:09
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]>
@cfergeau cfergeau force-pushed the ghactions branch 3 times, most recently from 8c128be to b87e647 Compare May 17, 2024 08:29
cfergeau added 2 commits May 17, 2024 11:07
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]>
@cfergeau
Copy link
Collaborator Author

I think the packer failures on centos stream 8 and fedora eln are unrelated to this PR.

@praveenkumar
Copy link
Contributor

/lgtm
/approve

Copy link
Contributor

openshift-ci bot commented May 17, 2024

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 3f7ef77 into containers:main May 17, 2024
18 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants