You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 810035e
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .agents/skills/build-openshell-mxc-windows/SKILL.md
+15-9Lines changed: 15 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,7 +115,7 @@ The lane targets a Windows host with Visual Studio Build Tools and rustup.
115
115
| Visual C++ ARM64 tools |`vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.ARM64 -property installationPath`| Required for native ARM64 check, build, and tests and for x64-to-ARM64 check/build. Tests always require a native runner. |
116
116
| Visual C++ ARM64 Spectre-mitigated libraries |`vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Runtimes.ARM64.Spectre -property installationPath`| Required by `regorus` through `msvc_spectre_libs`; the build fails when the selected MSVC toolset lacks `lib\spectre\arm64`. |
117
117
| Visual C++ Clang tools |`vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Llvm.Clang -property installationPath`| Provides host-native `libclang.dll` for `bindgen` and `clang-cl.exe` for ARM64 crypto dependencies such as `aws-lc-sys`. On ARM64, the wrapper uses `VC\Tools\Llvm\Arm64\bin`. |
118
-
| Visual C++ CMake tools |`vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.CMake.Project -property installationPath`| Provides CMake and Ninja for bundled Z3 and other native dependencies. The x64-to-ARM64 path adds Ninja to `PATH`; Z3 uses MSVC's Visual Studio generator. |
118
+
| Visual C++ CMake tools |`vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.CMake.Project -property installationPath`| Provides CMake and Ninja for native dependencies. The x64-to-ARM64 path adds Ninja to `PATH`; Z3 uses an architecture-specific prebuilt release. |
119
119
| Windows SDK |`where.exe rc.exe` from a Developer PowerShell | Install an SDK containing target libraries and ARM64 tools. |
120
120
| Rust via rustup |`rustc --version`| Add each target being validated: `x86_64-pc-windows-msvc` and/or `aarch64-pc-windows-msvc`. The wrapper also adds the selected target. |
121
121
| mise |`mise --version`| Used as a task runner only. |
@@ -135,6 +135,8 @@ from this skill.
135
135
|`CARGO_TARGET_DIR`|`target` under repo root | Override Cargo output location. Use a short absolute path when x64-to-ARM64 builds approach Windows path-length limits. |
136
136
|`Z3_LIBRARY_PATH_OVERRIDE`| unset | Directory containing an x64 system `libz3.lib`; not valid for ARM64. |
137
137
|`Z3_SYS_Z3_HEADER`| unset | Full `z3.h` path required with a system Z3 library. |
138
+
|`Z3_SYS_Z3_VERSION`|`4.16.0`| Pinned official prebuilt Z3 release selected by the wrapper. |
139
+
|`READ_ONLY_GITHUB_TOKEN`| unset | Optional token for the Z3 release lookup; GitHub Actions supplies `github.token`. |
138
140
|`RUSTC_WRAPPER`| inherited | The wrapper resolves an available command to an absolute path. If it is unavailable, the wrapper warns and continues without compiler caching. |
139
141
140
142
Legacy fork variables such as `OPENSHELL_UPSTREAM`,
@@ -203,8 +205,7 @@ jobs in the current mirror push run, or push a new mirrored commit. The binaries
203
205
The ARM64 check/build steps in this x64-host contract are cross-builds. The
204
206
wrapper discovers and adds host-native LLVM and Ninja to `PATH`, requires the
205
207
ARM64 compiler and Spectre-mitigated libraries, lets ARM64 crypto crates select
206
-
`clang-cl`, and builds bundled Z3 with native MSVC `cl.exe` and the Visual
207
-
Studio generator.
208
+
`clang-cl`, and downloads the official prebuilt ARM64 Z3 static library.
208
209
209
210
On ARM64 hosts, validate the native ARM64 check, build, and test path. The
210
211
wrapper rejects test targets that do not match the host architecture, so x64
@@ -213,6 +214,10 @@ compatibility under emulation is not part of these tasks. The aggregate
213
214
commands above on an ARM64 host.
214
215
215
216
The repository-wide `mise run pre-commit` task is also supported on Windows.
217
+
Run `rust:lockfiles:check`, `sdk:ts:ci`, `go:ci`, and `test:e2e-parity` through
218
+
the Windows-aware tasks when validating those surfaces. Do not count the Go
219
+
Windows ARM64 race-detector exclusion or POSIX permission-bit skips as security
220
+
coverage. SDK test dependencies must remain at their lockfile versions.
216
221
Its Rust check, Clippy, and test dependencies enter the same MSVC environment
217
222
for the native host target and use an inherited compiler wrapper when it is
Copy file name to clipboardExpand all lines: .agents/skills/sbom/SKILL.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ The OpenShell SBOM tooling produces source-tree CycloneDX JSON SBOMs using Syft,
15
15
16
16
SBOMs are **release artifacts only** -- they are generated on demand and not committed to the repository. Output lands in `deploy/sbom/output/` (gitignored).
17
17
18
-
Pushed gateway and supervisor images carry an SPDX SBOM and minimal SLSA provenance as OCI attestations. Branch E2E, Release Dev, and Release Tag image binaries embed cargo-auditable metadata, so their image SBOMs include linked Rust crates.
18
+
Pushed gateway, sandbox, and supervisor images carry an SPDX SBOM and minimal SLSA provenance as OCI attestations. Branch E2E, Release Dev, and Release Tag image binaries embed cargo-auditable metadata, so their image SBOMs include linked Rust crates.
Copy file name to clipboardExpand all lines: .agents/skills/test-release-canary/SKILL.md
+12-9Lines changed: 12 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,18 +13,20 @@ The Release Canary (`.github/workflows/release-canary.yml`) smoke-tests the arti
13
13
14
14
| Job | Runner | Verifies |
15
15
|---|---|---|
16
-
|`macos`|`macos-latest-xlarge`|`install.sh` resolves the Homebrew formula, brew installs the cask, and `openshell status` reaches the brew-services–backed local gateway with the VM driver. |
17
-
|`ubuntu`|`ubuntu-latest`|`install.sh` installs the Debian package, the post-install systemd user service starts, and `openshell status` reaches the local gateway with the Docker driver. |
18
-
|`fedora`|`fedora:latest` container |`install.sh` installs the RPM packages, the local gateway starts under Podman, and `openshell status` succeeds. |
19
-
|`ubuntu-snap`|`ubuntu-latest`|Downloads the Snap artifact from Release Dev, installs it with `--dangerous`, connects the required interfaces, and waits up to 30 seconds for the recovered local gateway. |
20
-
|`kubernetes`|`ubuntu-latest` + kind |`helm install oci://ghcr.io/nvidia/openshell/helm-chart --version 0.0.0-dev` succeeds in a kind cluster, the gateway pod becomes Ready, port-forward exposes 8080, and the released CLI registers the in-cluster gateway and runs `openshell status` against it. |
16
+
|`macos`|`macos-latest-xlarge`|Installs the dev Homebrew artifacts, reaches the VM gateway, and creates, executes in, and deletes a sandbox. |
17
+
|`ubuntu`|`ubuntu-latest`|Installs the dev Debian package, reaches the Docker gateway, and creates, executes in, and deletes a sandbox. |
18
+
|`fedora`|`fedora:latest` container |Installs the dev RPM packages, reaches the Podman gateway, and creates, executes in, and deletes a sandbox. |
19
+
|`ubuntu-snap`|`ubuntu-latest`|Installs the Release Dev Snap, connects its interfaces, reaches the Docker gateway, and creates, executes in, and deletes a sandbox. |
20
+
|`kubernetes`|`ubuntu-latest` + kind |Installs the dev Helm chart, reaches the in-clustergateway, and creates, executes in, and deletes a sandbox using the published runtime images. |
21
21
22
22
All canary jobs disable anonymous OpenShell telemetry. Host package jobs inject
23
23
`OPENSHELL_TELEMETRY_ENABLED=false` through the service environment, and the
24
24
Kubernetes job installs with `server.telemetryEnabled=false`, so smoke traffic
25
25
does not contribute to product usage metrics.
26
26
27
-
`install.sh` defaults to the *latest tagged* release — the canary is therefore checking that the most recent public release still installs, not the just-published `dev` build. The `kubernetes` job is the exception: it pins to `0.0.0-dev` chart + `:dev` images.
27
+
The workflow sets `OPENSHELL_VERSION=dev`, so every `install.sh` job consumes the
28
+
rolling dev release produced by the triggering workflow. Kubernetes pins the
29
+
matching `0.0.0-dev` chart and `:dev` images.
28
30
29
31
The host-package jobs exercise fresh installs, not upgrades from a persisted
30
32
schema-v1 gateway config. Validate Homebrew and RPM exact-default migration with
@@ -83,7 +85,7 @@ gh run view <run-id> --log-failed
83
85
84
86
## Iterating on the canary itself
85
87
86
-
When you change `release-canary.yml` on a branch, a manual dispatch on that branch tests *your branch's workflow logic* against *main's published artifacts* (`0.0.0-dev` chart, `:dev` images, latest tagged install.sh assets). This is what you want for iterating on the canary — you're validating that the canary still works against known-good artifacts.
88
+
When you change `release-canary.yml` on a branch, a manual dispatch on that branch tests *your branch's workflow logic* against *main's published dev artifacts* (`0.0.0-dev` chart, `:dev` images, and the `dev` GitHub release). This is what you want for iterating on the canary — you're validating that the canary still works against known-good artifacts.
87
89
88
90
Note `install.sh` is pulled from `raw.githubusercontent.com/NVIDIA/OpenShell/${head_sha}/install.sh`, so changes to `install.sh` on your branch *are* exercised even though the binaries it downloads are from the latest public tag.
89
91
@@ -92,7 +94,7 @@ Note `install.sh` is pulled from `raw.githubusercontent.com/NVIDIA/OpenShell/${h
92
94
`Release Dev` publishes two chart versions for every dev build (see `.github/actions/release-helm-oci/action.yml:89-102`):
93
95
94
96
- `oci://ghcr.io/nvidia/openshell/helm-chart:0.0.0-dev`— floating, overwritten on every main push.
95
-
- `oci://ghcr.io/nvidia/openshell/helm-chart:0.0.0-dev.<sha>`— immutable, `appVersion` set to the same SHA so it pulls `ghcr.io/nvidia/openshell/gateway:<sha>` and `:supervisor:<sha>`.
97
+
- `oci://ghcr.io/nvidia/openshell/helm-chart:0.0.0-dev.<sha>`— immutable, `appVersion` set to the same SHA so it pulls the matching `gateway`, `sandbox`, and `supervisor` images.
96
98
97
99
To smoke-test the chart for a specific dev build, dispatch `Release Dev` on the branch first, then run the kind canary steps locally pointed at the SHA-pinned chart (see "Local kind reproduction" below). The release-canary workflow itself does not currently expose `chart_version` / `image_tag` inputs.
98
100
@@ -134,7 +136,8 @@ Loopback registration auto-derives the gateway name to `openshell` if `--name` i
134
136
135
137
| Symptom | Likely cause | Where to look |
136
138
|---|---|---|
137
-
| `macos`/`ubuntu`/`fedora` job fails on `install.sh` | Latest tagged release missing an asset, checksum mismatch, or `install.sh` regression on this branch. | Job log around the `curl … install.sh \| sh` step. |
139
+
| `macos`/`ubuntu`/`fedora` job fails on `install.sh` | Dev release missing an asset, checksum mismatch, or `install.sh` regression on this branch. | Job log around the `curl … install.sh \| sh` step. |
140
+
| Sandbox create or exec fails | Published sandbox and supervisor artifacts are missing, incompatible, or cannot establish the protected runtime channel. | Gateway logs plus Docker, Podman, VM, Snap, or Kubernetes runtime diagnostics for the job. |
138
141
| `macos`/`ubuntu`/`fedora` job fails on `openshell status` | Local gateway service did not start (systemd/brew/podman). Often a driver issue. | Service logs in the job log; `OPENSHELL_COMPUTE_DRIVER` env in the "Ensure …" step. |
139
142
| `ubuntu-snap` fails after interface connection | The gateway did not recover after Docker became available, or did not become reachable within the 30-second bound. | Failure diagnostics dump Snap service/connection/change state, gateway and snapd journals, Snap logs, and port 17670 listeners. |
140
143
| `kubernetes` job fails on `helm install --wait` | Chart did not deploy in 5 min — usually image pull failure or readiness probe failing. | "Diagnostics on failure" step dumps `helm status`, manifest, pod describe, pod logs. |
0 commit comments