feat(ci): add shadow-rust-native-build workflow for OS-49 Phase 4 (PR 4a)#973
Draft
feat(ci): add shadow-rust-native-build workflow for OS-49 Phase 4 (PR 4a)#973
Conversation
… 4a) Builds openshell-gateway and openshell-sandbox natively per-arch on the nv-gha-runners shared CPU pool with a GHA-backed sccache, and uploads the resulting binaries as artifacts shaped for Dockerfile.images' BINARY_SOURCE=prebuilt path (added in #945). Dispatch manually 4-5 times after merge to collect cold + warm numbers and compare against the Rust portion of docker-build.yml's ARC baseline. PR 4c will wire these artifacts into the real pipeline once numbers land. Refs OS-128. Signed-off-by: Jonas Toelke <jtoelke@nvidia.com>
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
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
OS-49 Phase 4 / PR 4a — non-blocking shadow workflow that builds
openshell-gatewayandopenshell-sandboxnatively per-arch on thenv-gha-runnersshared CPU pool with a GHA-backed sccache, and uploads the resulting binaries as artifacts.The artifacts are shaped exactly for the
BINARY_SOURCE=prebuiltpath that landed in #945 — one binary per(component, arch), uploaded asrust-binary-{gateway,sandbox}-linux-{amd64,arm64}, staged inside the artifact atprebuilt-binaries/<arch>/openshell-{gateway,sandbox}. PR 4c will wire these intodocker-build.ymlviaactions/download-artifact, flip the Dockerfile default toBINARY_SOURCE=prebuilt, and delete the RustRUN cargo buildstages.Related Issue
Changes
.github/workflows/shadow-rust-native-build.yml(new, 154 lines):component={gateway,sandbox} × arch={amd64,arm64}→ 4 jobs,fail-fast: false.linux-{amd64,arm64}-cpu8(Phase 2-validated).ghcr.io/nvidia/openshell/ci:latest.mozilla-actions/sccache-actionwithSCCACHE_GHA_VERSIONpartitioned per(component, arch)to avoid the 409-Conflict collisions that PR fix(ci): partition GHA sccache cache per arch in shadow spike #961 fixed for Phase 2.uv run python tasks/scripts/release.py get-version --cargo+sedon[workspace.package]inCargo.toml(same asdocker-build.ymlandrelease-dev.yml).cargo build --release --target <triple> -p <crate> --bin <binary> --features openshell-core/dev-settings(matchesdocker-build.yml's defaultEXTRA_CARGO_FEATURESso artifacts are interchangeable with the in-Docker build's output for PR 4c).--versiongrep +ldd --version+ldd <bin>diagnostics (so glibc drift from the Ubuntu noble runtime base image is visible in the logs).if-no-files-found: error, 5-day retention.Testing
[workspace.package]matches the sed pattern;openshell-server+openshell-sandboxboth have[[bin]]entries matchingopenshell-gateway/openshell-sandbox; both depend onopenshell-coredirectly so--features openshell-core/dev-settingspropagates;tasks/scripts/release.py get-version --cargoexists.license:checkpasses.workflow_dispatchto collect cold + warm wall times and sccache hit rates, recorded on OS-128.Checklist
workflow_dispatch+ push-to-main (non-blocking; required-check list untouched).Notes
Draft until the first dispatch completes and the wall-time / sccache-hit numbers look sane. Then ready for review.