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

[BUG] Github action for gradle precommit failing on main #9478

Closed
ankitkala opened this issue Aug 22, 2023 · 1 comment · Fixed by #9486
Closed

[BUG] Github action for gradle precommit failing on main #9478

ankitkala opened this issue Aug 22, 2023 · 1 comment · Fixed by #9486
Assignees
Labels
bug Something isn't working CI CI related untriaged

Comments

@ankitkala
Copy link
Member

ankitkala commented Aug 22, 2023

Describe the bug
Gradle precommit is failing on main due to error below. It doesn't fail when tried on my local workspace though.
Sample failure: https://github.com/ankitkala/OpenSearch/actions/runs/5937653411

Note: Recompile with -Xlint:deprecation for details.
----- End of the daemon log -----

JVM crash log found: file:///D:/a/OpenSearch/OpenSearch/hs_err_pid6888.log

FAILURE: Build failed with an exception.

* What went wrong:
Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)

To Reproduce
Steps to reproduce the behavior:

  1. Forked the main branch into a personal repository.
  2. Enabled the github action on the repo & branch(example commit).
  3. Pushed the code and monitor the gradle precommit workflow.
    Sample branch: https://github.com/ankitkala/OpenSearch/tree/archived_setting_test_control

Expected behavior
The gradle precommit should not fail.

@tlfeng
Copy link
Collaborator

tlfeng commented Aug 22, 2023

It's a bug from the macOS image of GitHub Action actions/runner-images#8104

I would rather wait GitHub Action to fix the macOS image problem, than making a fix from outside.
If necessary, we can exclude macOS from running precommit task in the workflow (https://github.com/opensearch-project/OpenSearch/blob/main/.github/workflows/precommit.yml#L10).
Since Gradle "precommit" task is included in "check" task, I think we can ignore the result of "precommit" task under macOS when reviewing the PRs.

Log messages:

time="2023-08-22T10:57:13Z" level=info msg="starting colima"
time="2023-08-22T10:57:13Z" level=info msg="runtime: docker"
time="2023-08-22T10:57:13Z" level=info msg="preparing network ..." context=vm
time="2023-08-22T10:57:13Z" level=info msg="creating and starting ..." context=vm
time="2023-08-22T10:57:13Z" level=info msg="Terminal is not available, proceeding without opening an editor"
time="2023-08-22T10:57:13Z" 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-22T10:57:18Z" 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-22T10:57:22Z" level=info msg="[hostagent] Starting QEMU (hint: to watch the boot progress, see \"/Users/runner/.lima/colima/serial*.log\")"
time="2023-08-22T10:57:22Z" level=info msg="SSH Local Port: 49362"
time="2023-08-22T10:57:22Z" level=info msg="[hostagent] Waiting for the essential requirement 1 of 5: \"ssh\""
time="2023-08-22T10:57:22Z" level=info msg="[hostagent] Driver stopped due to error: \"exit status 255\""
time="2023-08-22T10:57:22Z" level=info msg="[hostagent] Shutting down the host agent"
time="2023-08-22T10:57:22Z" level=warning msg="[hostagent] failed to exit SSH master"
time="2023-08-22T10:57:22Z" level=info msg="[hostagent] Shutting down QEMU with ACPI"
time="2023-08-22T10:57:22Z" level=warning msg="[hostagent] failed to open the QMP socket \"/Users/runner/.lima/colima/qmp.sock\", forcibly killing QEMU"
time="2023-08-22T10:57:22Z" level=info msg="[hostagent] QEMU has already exited"
time="2023-08-22T10:57:22Z" 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-22T10:57:23Z" level=fatal msg="error starting vm: error at 'creating and starting': exit status 1"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CI CI related untriaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants