Repository navigation
Remove cargo home chown steps - #1911
Merged
Merged
Conversation
The Linux runner images give the runner user ownership of /opt/cargo since https://github.com/azure-management-and-platforms/hyperlight-ci-dev-images/pull/13. The tart arm64 runners have no /opt/cargo. The step still walks the whole directory, taking 10 to 40 seconds per job. Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
ludfjig
requested review from
andreiltd,
danbugs,
dblnz,
devigned,
jprendes,
jsturtevant,
simongdavies,
squillace and
syntactically
as code owners
October 8, 2026 21:50
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The obsolete steps are removed consistently, and relevant Rust cache steps succeed without them.
0 open findings
What changed in this PR
Removes obsolete /opt/cargo ownership fixes to reduce CI runtime.
Changes:
- Removes recursive
chownsteps from 10 workflows. - Retains Rust cache behavior across Linux and ARM64 runners.
| File | Description |
|---|---|
.github/workflows/RustNightly.yml |
Removes the nightly permission workaround. |
.github/workflows/RegenSnapshotGoldens.yml |
Removes the snapshot job workaround. |
.github/workflows/PrimeCaches.yml |
Removes the cache priming workaround. |
.github/workflows/dep_update_guest_locks.yml |
Removes the lock update workaround. |
.github/workflows/dep_run_examples.yml |
Removes the examples workaround. |
.github/workflows/dep_code_checks.yml |
Removes the code checks workaround. |
.github/workflows/dep_build_test.yml |
Removes the build and test workaround. |
.github/workflows/dep_build_guests.yml |
Removes the guest build workaround. |
.github/workflows/dep_benchmarks.yml |
Removes the benchmark workaround. |
.github/workflows/Coverage.yml |
Removes the coverage workaround. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
jprendes
approved these changes
Oct 8, 2026
Benchmark ResultsMeasured commit: kvm / amd (Linux) (➖ stable)No benchmark improved or regressed. Benchmark Resultsfunction_call_codec
payload_allocation
sandboxes
slot_pool
snapshot_files
virtq_readonly
virtq_readwrite
kvm / intel (Linux) (➖ stable)No benchmark improved or regressed. Benchmark Resultsfunction_call_codec
payload_allocation
sandboxes
slot_pool
snapshot_files
virtq_readonly
virtq_readwrite
mshv3 / amd (Linux) (➖ stable)No benchmark improved or regressed. Benchmark Resultsfunction_call_codec
payload_allocation
sandboxes
slot_pool
snapshot_files
virtq_readonly
virtq_readwrite
mshv3 / intel (Linux) (➖ stable)No benchmark improved or regressed. Benchmark Resultsfunction_call_codec
payload_allocation
sandboxes
slot_pool
snapshot_files
virtq_readonly
virtq_readwrite
hyperv-ws2025 / amd (Windows) (➖ stable)No benchmark improved or regressed. Benchmark Resultsfunction_call_codec
payload_allocation
sandboxes
slot_pool
snapshot_files
virtq_readonly
virtq_readwrite
hyperv-ws2025 / intel (Windows) (➖ stable)No benchmark improved or regressed. Benchmark Resultsfunction_call_codec
payload_allocation
sandboxes
slot_pool
snapshot_files
virtq_readonly
virtq_readwrite
Reported by |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Remove the
sudo chown -R /opt/cargostep from all workflows to speed up ci.The step worked around Linux runner images that did not let the runner user restore cached files in
/opt/cargo. The images give the runner user ownership of/opt/cargosince https://github.com/azure-management-and-platforms/hyperlight-ci-dev-images/pull/13. The tart arm64 runners have no/opt/cargo, so the step already does nothing there.The step still walks the whole directory, taking 10 to 40 seconds per Linux job. See run 37820817731.
This PR's CI checks that rust-cache still restores without the step.