Skip to content

fix: align code-validator hyperlight deps with hyperlight-js#64

Merged
simongdavies merged 2 commits intohyperlight-dev:mainfrom
simongdavies:fix/align-hyperlight-deps
Apr 22, 2026
Merged

fix: align code-validator hyperlight deps with hyperlight-js#64
simongdavies merged 2 commits intohyperlight-dev:mainfrom
simongdavies:fix/align-hyperlight-deps

Conversation

@simongdavies
Copy link
Copy Markdown
Member

  • 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.

- 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.
Copilot AI review requested due to automatic review settings April 22, 2026 19:31
@simongdavies simongdavies added the bug Something isn't working label Apr 22, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Aligns the Rust code-validator/guest Hyperlight dependencies with the Hyperlight versions used by hyperlight-js, and adjusts the Vitest environment to avoid large surrogate pre-allocation during test runs (notably on Windows).

Changes:

  • Set HYPERLIGHT_INITIAL_SURROGATES in vitest.config.ts to reduce eager surrogate pre-creation during tests.
  • Update src/code-validator/guest/Cargo.toml Hyperlight git dependencies to the simongdavies/hyperlight update-surrogate branch and drop the removed init-paging feature.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
vitest.config.ts Adds a Vitest test environment variable to cap initial surrogate pool size during tests.
src/code-validator/guest/Cargo.toml Re-pins Hyperlight Rust crates to a different git source/branch and updates the enabled feature set.

Comment thread src/code-validator/guest/Cargo.toml
Comment thread src/code-validator/guest/Cargo.toml Outdated
Comment thread vitest.config.ts Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@simongdavies simongdavies merged commit 0368c07 into hyperlight-dev:main Apr 22, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants