Skip to content

Commit 0368c07

Browse files
fix: align code-validator hyperlight deps with hyperlight-js (#64)
* fix: align code-validator hyperlight deps with hyperlight-js - Switch code-validator/guest from hyperlight-dev/hyperlight@620339a to simongdavies/hyperlight branch update-surrogate, matching deps/hyperlight-js - Drop removed 'init-paging' feature (absorbed into default in v0.13.1) - Add HYPERLIGHT_INITIAL_SURROGATES=4 to vitest.config.ts to avoid eagerly spawning 512 surrogate processes during tests Fixes SurrogateProcessManager creation failure on Windows. * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent f949b9c commit 0368c07

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

src/code-validator/guest/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ license = "Apache-2.0"
1717
repository = "https://github.com/anthropics/hyperagent"
1818

1919
[workspace.dependencies]
20-
# Hyperlight dependencies - pinned to same revision as hyperlight-js
21-
hyperlight-common = { git = "https://github.com/hyperlight-dev/hyperlight", rev = "620339aa95d508e8cbd1d38b4374f09090aade7b", default-features = false }
22-
hyperlight-guest-bin = { git = "https://github.com/hyperlight-dev/hyperlight", rev = "620339aa95d508e8cbd1d38b4374f09090aade7b" }
23-
hyperlight-guest = { git = "https://github.com/hyperlight-dev/hyperlight", rev = "620339aa95d508e8cbd1d38b4374f09090aade7b" }
24-
hyperlight-host = { git = "https://github.com/hyperlight-dev/hyperlight", rev = "620339aa95d508e8cbd1d38b4374f09090aade7b", default-features = false, features = ["executable_heap", "init-paging", "kvm", "mshv3"] }
20+
# Hyperlight dependencies - aligned with the hyperlight-js runtime resolved via Cargo git checkout
21+
hyperlight-common = { git = "https://github.com/simongdavies/hyperlight", branch = "update-surrogate", default-features = false }
22+
hyperlight-guest-bin = { git = "https://github.com/simongdavies/hyperlight", branch = "update-surrogate" }
23+
hyperlight-guest = { git = "https://github.com/simongdavies/hyperlight", branch = "update-surrogate" }
24+
hyperlight-host = { git = "https://github.com/simongdavies/hyperlight", branch = "update-surrogate", default-features = false, features = ["executable_heap", "kvm", "mshv3"] }
2525

2626
[profile.dev]
2727
panic = "abort"

vitest.config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ export default defineConfig({
99
include: ["tests/**/*.test.ts"],
1010
// Exclude compiled build artefacts and dependency clones
1111
exclude: ["dist/**", "node_modules/**", "deps/**"],
12+
// On Windows, two SurrogateProcessManagers each pre-create a pool of
13+
// surrogate processes. Keep the initial pool small — on-demand growth
14+
// up to the default 512 max handles spikes without wasting resources.
15+
env:
16+
process.platform === "win32"
17+
? {
18+
HYPERLIGHT_INITIAL_SURROGATES: "4",
19+
}
20+
: {},
1221
},
1322
resolve: {
1423
alias: {

0 commit comments

Comments
 (0)