Repository navigation
Conversation
Build openshell-driver-vm for x86_64 and aarch64 Linux and for aarch64 macOS, with the guest init the Linux binaries workflow builds, the VM runtime from the flake, and openshell-sandbox and openshell-supervisor from OpenShell: the Linux ones from the published test-inputs bundle, the macOS one from an OpenShell run, as the bundle has no macOS artifacts. Adapt the imported VM kernel workflow to this repository and build the Linux ARM64 and macOS ARM64 runtimes in it, drop the temporary exemptions for it from the header check and zizmor, and adapt the VM runtime scripts to take openshell-sandbox and openshell-supervisor from a checkout of OpenShell. Signed-off-by: Evan Lezar <elezar@nvidia.com>
Install OpenShell's packaged gateway on the runner, configure it to launch the VM driver built in the same run, and run OpenShell's prebuilt conformance program against the installed gateway. The runner is used, as the driver needs KVM. The package comes from the integration inputs, the program and the host supervisor from the published test-inputs bundle. This does for the VM driver what tmachine's deb installer does for the Docker driver, on the host, until tmachine can describe the host it runs on. Signed-off-by: Evan Lezar <elezar@nvidia.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.
Summary
The VM driver's CI, split out of #4 and stacked on it: review after #4 is merged, and this PR's base moves to
mainthen.openshell-driver-vmfor x86_64 and aarch64 Linux (build-vm-driver-linux.yml) and aarch64 macOS (build-vm-driver-macos.yml), in the flake's dev shell, from the flake's hash-pinned VM runtime and the guest init thatbuild-binaries-linux.ymlbuilds.openshell-sandboxandopenshell-supervisorcome from OpenShell's published test-inputs bundle (theruntimelayer, through thepull-test-inputsaction from ci: build and test the Docker and Podman drivers #4) for Linux. The bundle has no macOS artifacts (Publish the macOS supervisor in the test-inputs bundle openshell#6166), so the macOS build takes them from an OpenShell run whose id is the default ofopenshell-run-idindriver-build-test.yml; those artifacts expire after about five days, so pass a recent run's id as the input when they are gone.vm-initjob returns tobuild-binaries-linux.yml, cross-built for both architectures on an x86_64 runner.release-vm-kernel.ymlis adapted to this repository (read-only permissions, no persisted credentials,github.repository) and builds the Linux x86_64, Linux ARM64 and macOS ARM64 runtimes, as OpenShell's does. The temporary exemptions for it in the header check (ci.yml) and zizmor (.github/zizmor.yml) are removed.tasks/scripts/vm/*takeopenshell-sandboxandopenshell-supervisorfrom a checkout of OpenShell (OPENSHELL_DIR), andtasks/scripts/build-env.shis added for them.mise.tomlincludestasks/vm.toml.vm-runtimepackage of the flake (nix/pkgs/vm-runtime.nix).Testing
mise run workflows:checkpasses locally.driver-build-test.yml. The kernel workflow is dispatch-only and has not been run from this repository.runtimelayer holds the aarch64 supervisor and sandbox.Part of ai-openshell/openshell#5200.