openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

CI Full: Rust Core Tests job repeatedly killed by runner shutdown

Open senamakel opened this issue 4 months ago • 3 comments

Summary

CI Full / Full Unit Suites / Rust Core Tests + Quality is repeatedly failing on PR #4610 without a Rust test assertion. Both the original run and failed-job rerun ended with the GitHub runner shutdown signal and exit 137 while cargo test -p openhuman was running.

Evidence

  • PR: https://github.com/tinyhumansai/openhuman/pull/4610
  • Workflow run: https://github.com/tinyhumansai/openhuman/actions/runs/28830473608
  • First failed job: https://github.com/tinyhumansai/openhuman/actions/runs/28830473608/job/85503121032
  • Rerun failed job: https://github.com/tinyhumansai/openhuman/actions/runs/28830473608/job/85509540033

Both logs end with:

The runner has received a shutdown signal. This can happen when the runner service is stopped, or a manually started runner is canceled.
Process completed with exit code 137.

Impact

This blocks the CI Full Gate for release PRs even when no Rust test failure is reported.

Notes

This surfaced while babysitting PR #4610 after workflow action/runtime updates. The PR already removed the redundant sccache layer from the full Rust core jobs, so this looks like runner capacity/termination rather than a test regression.

senamakel avatar Jul 07 '26 00:07 senamakel

Looks like this is already resolved on PR #4610.

Root cause (likely): OOM-kill during the openhuman test-binary compile on the ubuntu-22.04 runner. Exit 137 + "runner has received a shutdown signal" mid-rustc is the classic GHA hosted-runner OOM signature (OOM killer takes rustc/sccache, runner loses heartbeat, then reports "shutdown"). The openhuman crate's whisper-rs / llama.cpp / GGML deps push the test link close to the 7 GB runner limit, and the RUSTC_WRAPPER: sccache layer added its own resident overhead on cold caches for little benefit.

Fix already on #4610: commit c98f7816 — ci: reduce full rust core test pressure — drops RUSTC_WRAPPER: sccache, SCCACHE_GHA_ENABLED, and the mozilla-actions/sccache-action step from both rust-core-tests and rust-core-tests-windows in .github/workflows/test-reusable.yml. Follow-ups d6243c95, c3b52ad4, and 17462021 tuned link/stack settings.

Verification: On PR #4610's latest run (28868496807):

  • Full Unit Suites / Rust Core Tests + Quality — SUCCESS
  • Full Unit Suites / Rust Core Tests (Windows — secrets ACL) — SUCCESS

Suggest closing this once #4610 merges. If OOM resurfaces later we can consider a defensive follow-up (e.g., mold/lld, or a [profile.test] tweak) with fresh evidence.

CodeGhost21 avatar Jul 07 '26 19:07 CodeGhost21

Triage: needs opinion — “CI Full: Rust Core Tests job repeatedly killed by runner shutdown” needs a maintainer decision on product scope/priority or fresh reproduction evidence before its status can be settled. Please advise whether to pursue, narrow, or close it.

senamakel avatar Oct 09 '26 17:10 senamakel

Thanks for logging this. The cause was memory pressure while building the test binary on the hosted runner. It was addressed on #4610 (merged 07-07), and #4721 then removed the sccache wrapper from CI. We haven't seen this issue come up again since, so we're closing it. If a Rust Core Tests run is killed again with exit 137, please reopen it with the run link.

M3gA-Mind avatar Nov 16 '26 16:11 M3gA-Mind