diff --git a/src/code-validator/guest/Cargo.toml b/src/code-validator/guest/Cargo.toml index 4745507..258b846 100644 --- a/src/code-validator/guest/Cargo.toml +++ b/src/code-validator/guest/Cargo.toml @@ -17,11 +17,11 @@ license = "Apache-2.0" repository = "https://github.com/anthropics/hyperagent" [workspace.dependencies] -# Hyperlight dependencies - pinned to same revision as hyperlight-js -hyperlight-common = { git = "https://github.com/hyperlight-dev/hyperlight", rev = "620339aa95d508e8cbd1d38b4374f09090aade7b", default-features = false } -hyperlight-guest-bin = { git = "https://github.com/hyperlight-dev/hyperlight", rev = "620339aa95d508e8cbd1d38b4374f09090aade7b" } -hyperlight-guest = { git = "https://github.com/hyperlight-dev/hyperlight", rev = "620339aa95d508e8cbd1d38b4374f09090aade7b" } -hyperlight-host = { git = "https://github.com/hyperlight-dev/hyperlight", rev = "620339aa95d508e8cbd1d38b4374f09090aade7b", default-features = false, features = ["executable_heap", "init-paging", "kvm", "mshv3"] } +# Hyperlight dependencies - aligned with the hyperlight-js runtime resolved via Cargo git checkout +hyperlight-common = { git = "https://github.com/simongdavies/hyperlight", branch = "update-surrogate", default-features = false } +hyperlight-guest-bin = { git = "https://github.com/simongdavies/hyperlight", branch = "update-surrogate" } +hyperlight-guest = { git = "https://github.com/simongdavies/hyperlight", branch = "update-surrogate" } +hyperlight-host = { git = "https://github.com/simongdavies/hyperlight", branch = "update-surrogate", default-features = false, features = ["executable_heap", "kvm", "mshv3"] } [profile.dev] panic = "abort" diff --git a/vitest.config.ts b/vitest.config.ts index c3ad1a6..7e94fdd 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -9,6 +9,15 @@ export default defineConfig({ include: ["tests/**/*.test.ts"], // Exclude compiled build artefacts and dependency clones exclude: ["dist/**", "node_modules/**", "deps/**"], + // On Windows, two SurrogateProcessManagers each pre-create a pool of + // surrogate processes. Keep the initial pool small — on-demand growth + // up to the default 512 max handles spikes without wasting resources. + env: + process.platform === "win32" + ? { + HYPERLIGHT_INITIAL_SURROGATES: "4", + } + : {}, }, resolve: { alias: {