Skip to content

chore(driver): pin the fork's patched branch at 36761e1 - #17

Closed
mr-miles wants to merge 1 commit into
mainfrom
chore/openshell-patched-36761e1
Closed

mr-miles wants to merge 1 commit into
mainfrom
chore/openshell-patched-36761e1

Conversation

@mr-miles

Copy link
Copy Markdown
Owner

Moves the OpenShell pin from upstream main at f16795b to the patched branch of mr-miles/OpenShell at 36761e1. That branch is f16795b plus:

The driver half of #6056/#6057 is three-way merged into the vendored crate:

  • a launch writes its overlay files in one debugfs run;
  • the guest runtime identity is hashed at build time;
  • the cached host supervisor is re-hashed only when the file changes;
  • a cached digest-pinned bootstrap image resolves without a preparation worker. For us that also skips the launcher's re-exec of the driver.

Adapted to the fork:

  • no mount manifest is written, since bind mounts are refused and our guest init reads none;
  • the fast path applies only to names with a registry host. Those never consult a local engine here, so no engine probe runs.

The gateway protocol is unchanged from f16795b.

Testing: checked locally with cargo fmt and cargo clippy --all-targets -D warnings. The only lints left were 1.99-only lints on lines that predate this change: double_must_use, single_element_loop and assert_is_empty. The driver tests were not run locally because the disk ran out, so this PR relies on CI for the full build and tests.

🤖 Generated with Claude Code

Move the OpenShell pin from NVIDIA/OpenShell main at f16795b to the
`patched` branch of mr-miles/OpenShell at 36761e1a, which is f16795b plus
two stacks not yet upstream:
- the L7 fix: forward percent-encoded reserved path bytes as the client
  sent them, and sign S3 request paths single-encoded and unnormalized;
- ai-openshell/openshell#6056 and #6057: per-launch VM bookkeeping.

Three-way merge the driver half of #6056/#6057 into the vendored crate:
- write a launch's overlay files in one debugfs run (RootfsImageBatch);
- hash the guest runtime identity at build time (build.rs);
- re-hash the cached host supervisor only when the file changes;
- resolve a cached digest-pinned bootstrap image without a preparation
  worker, which here also spares the launcher's exec of the driver.

Adapted to the fork: no mount manifest is written (bind mounts are
refused and the guest init reads none), and the worker is skipped only
for a name with a registry host. Those never consult a local engine
here, so the fast path probes none. write_rootfs_image_file is dropped:
its only upstream caller is the libkrun runtime, which is not vendored.

The gateway protocol is unchanged from f16795b.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mr-miles

Copy link
Copy Markdown
Owner Author

Folded into #5 (merged into try/policy-revalidation as ac7bac5); same tree, CI was green here.

@mr-miles mr-miles closed this Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant