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

Add QEMU workaround for macOS tests #641

Closed
ghickman opened this issue Aug 22, 2023 · 1 comment
Closed

Add QEMU workaround for macOS tests #641

ghickman opened this issue Aug 22, 2023 · 1 comment
Assignees

Comments

@ghickman
Copy link
Contributor

ghickman commented Aug 22, 2023

Our macOS tests are failing after failing to open the QMP socket, example logs:

Run colima start
time="2023-08-22T07:36:40Z" level=info msg="starting colima"
time="2023-08-22T07:36:40Z" level=info msg="runtime: docker"
time="2023-08-22T07:36:40Z" level=info msg="preparing network ..." context=vm
time="2023-08-22T07:36:40Z" level=info msg="creating and starting ..." context=vm
time="2023-08-22T07:36:40Z" level=info msg="Terminal is not available, proceeding without opening an editor"
time="2023-08-22T07:36:40Z" level=info msg="Attempting to download the image" arch=x86_64 digest="sha512:f761b807fe9ba345968df72c07f8c5abcae0c4a44976fe5595c0ff748ef693841221a70e663986c700b027cea32b7cac24d5490d4c721593c39f2b8840c362a2" location="https://github.com/abiosoft/alpine-lima/releases/download/colima-v0.5.5/alpine-lima-clm-3.18.0-x86_64.iso"
Downloading the image (alpine-lima-clm-3.18.0-x86_64.iso)

315.00 MiB / 315.00 MiB (100.00%) ? p/stime="2023-08-22T07:36:45Z" level=info msg="Downloaded the image from \"[https://github.com/abiosoft/alpine-lima/releases/download/colima-v0.5.5/alpine-lima-clm-3.18.0-x86_64.iso\](https://github.com/abiosoft/alpine-lima/releases/download/colima-v0.5.5/alpine-lima-clm-3.18.0-x86_64.iso/)""
time="2023-08-22T07:36:49Z" level=info msg="[hostagent] Starting QEMU (hint: to watch the boot progress, see \"/Users/runner/.lima/colima/serial*.log\")"
time="2023-08-22T07:36:49Z" level=info msg="SSH Local Port: 49180"
time="2023-08-22T07:36:49Z" level=info msg="[hostagent] Waiting for the essential requirement 1 of 5: \"ssh\""
time="2023-08-22T07:36:49Z" level=info msg="[hostagent] Driver stopped due to error: \"exit status 255\""
time="2023-08-22T07:36:49Z" level=info msg="[hostagent] Shutting down the host agent"
time="2023-08-22T07:36:49Z" level=warning msg="[hostagent] failed to exit SSH master"
time="2023-08-22T07:36:49Z" level=info msg="[hostagent] Shutting down QEMU with ACPI"
time="2023-08-22T07:36:49Z" level=warning msg="[hostagent] failed to open the QMP socket \"/Users/runner/.lima/colima/qmp.sock\", forcibly killing QEMU"
time="2023-08-22T07:36:49Z" level=info msg="[hostagent] QEMU has already exited"
time="2023-08-22T07:36:49Z" level=fatal msg="exiting, status={Running:false Degraded:false Exiting:true Errors:[] SSHLocalPort:0} (hint: see \"/Users/runner/.lima/colima/ha.stderr.log\")"
time="2023-08-22T07:36:49Z" level=fatal msg="error starting vm: error at 'creating and starting': exit status 1"
Error: Process completed with exit code 1.

This appears to be a problem with QEMU in a recent GHA image update for macOS runners:

There's a workaround in this comment on the actions-runner ticket. To save on code churn lets give this 24h to see if it percolates through the ecosystem first.

@ghickman ghickman self-assigned this Aug 22, 2023
@ghickman ghickman transferred this issue from opensafely-core/job-server Aug 25, 2023
@ghickman
Copy link
Contributor Author

Done in #639

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

No branches or pull requests

1 participant