Repository navigation
Moves the surrogate from the shared target\release\build\hls - #2038
Merged
simongdavies merged 1 commit intoNov 9, 2026
Merged
Conversation
…ory into `target\release\build\hyperlight-host-<hash>\out\hls` Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
simongdavies
requested review from
andreiltd,
danbugs,
dblnz,
devigned,
jprendes,
jsturtevant,
ludfjig,
squillace and
syntactically
as code owners
November 9, 2026 13:35
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for the change placing the Windows surrogate’s build output under OUT_DIR/hls.
No open issues 🎉
What changed in this PR
Keeps the Windows surrogate binary inside Hyperlight’s dependency build output so Rust cache cleanup preserves the file needed for embedding.
Changes:
- Places the surrogate’s nested Cargo target directory under
OUT_DIR/hls. - Retains a separate target directory to avoid Cargo lock conflicts and documents the cache requirement.
| File | Description |
|---|---|
src/hyperlight_host/build.rs |
Sets the surrogate target directory to OUT_DIR/hls and explains its placement. |
Review effort: Balanced
syntactically
approved these changes
Nov 9, 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 |
simongdavies
added a commit
to hyperlight-dev/hyperlight-js
that referenced
this pull request
Nov 9, 2026
…T_DIR (#404) This is a temporary fix until a hyperlight release with [this fix](hyperlight-dev/hyperlight#2038) is available. This prevents failures like [this](https://github.com/hyperlight-dev/hyperlight-js/actions/runs/42554800118/job/128958039351). Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
ludfjig
added a commit
to hyperlight-dev/hyperlight-wasm
that referenced
this pull request
Nov 9, 2026
* Clean hyperlight-host in Windows jobs after restoring the cache, because rust-cache deletes the surrogate it builds outside OUT_DIR and every Windows build fails, as in hyperlight-dev/hyperlight-js#404 (until hyperlight-dev/hyperlight#2038 is released). * Stop caching Linux arm64 builds, because the caches total 10.6 GB over the 10 GB quota and those jobs aren't on the critical path. --------- Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
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.
This moves the surrogate from the shared
target\release\build\hlsdirectory intotarget\release\build\hyperlight-host-<hash>\out\hls. The nested Cargo invocation still uses a separate target directory, avoiding the lock conflict, but cache cleanup now preserves it inside the dependency’s build output.Fix Windows builds failing after restoring a Rust dependency cache. Cache cleanup removes the surrogate binary but preserves the build-script state, leaving compilation trying to embed a missing file.
This caused the hyperlight-js Windows CI failure with
#[derive(RustEmbed)] folder '…\hls\x86_64-pc-windows-msvc\release' does not exist.