Skip to content

Commit 0da876d

Browse files
committed
chore(policy): merge main into frozen sandbox policy
Signed-off-by: Shiju <shiju@nvidia.com>
2 parents 68ce5f6 + 78ba347 commit 0da876d

156 files changed

Lines changed: 17067 additions & 4192 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.agents/skills/helm-dev-environment/SKILL.md‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,8 +447,19 @@ Use `mise run e2e:kubernetes` for the standard Helm-backed Kubernetes suite.
447447
Set `OPENSHELL_E2E_KUBE_TEST=kubernetes_image_update` to scope the Rust suite to
448448
combined image, command, environment, and metadata updates with retained sandbox,
449449
SSH, and PVC identities. The next start verifies the new argv and environment. This target is
450-
included in both existing Agent Sandbox API-version lanes; unlike the Python
451-
Docker suite, it exercises the driver that supports image updates.
450+
included in both existing Agent Sandbox API-version lanes. Docker separately
451+
supports image-only updates on stopped, opt-in persistent `/sandbox` workspaces;
452+
this Kubernetes lane does not qualify that path. Docker requires locally cached
453+
images, a matching numeric target `USER UID:GID`, and no image-declared volumes.
454+
Do not treat a skipped Docker lane as live image-replacement coverage.
455+
456+
The separate `docker-updates` testkit suite qualifies the full Docker path
457+
through an owned mTLS gateway, including SSH exec, image replacement, restart,
458+
credential-publication repair and deletion. Follow
459+
`tests/suites/features/docker-updates/README.md`; the wrapper's
460+
`OPENSHELL_E2E_DOCKER_IMAGE_UPDATES=1` opts in only its fresh gateway and refuses
461+
an existing endpoint. On Docker Desktop without host networking, select the
462+
documented bridge override rather than changing engine settings.
452463

453464
Image updates default to disabled outside test fixtures. The e2e wrapper opts
454465
in only for a fresh gateway fixture that it owns; set

‎.config/nextest.toml‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ failure-output = "immediate-final"
1010
slow-timeout = { period = "30s", terminate-after = 4 }
1111

1212
[profile.e2e-kubernetes]
13-
# Temporary waiver: port-forward reconnect can attach read-only while the old
14-
# SSH session retains stdin ownership. Keep recovery coverage on other drivers.
15-
# Remove this exclusion after resolving https://github.com/NVIDIA/OpenShell/issues/4445.
16-
default-filter = "not test(/^canonical_main_connect_recovers_its_ssh_transport$/)"
1713
fail-fast = false
1814
status-level = "slow"
1915
final-status-level = "fail"

‎.github/actions/setup-nix/action.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ runs:
2626
with:
2727
github-token: ${{ github.token }}
2828
summarize: false
29+
# One failed HTTP/2 connection fails every NAR multiplexed on it, and
30+
# Nix fails completed NARs it then resumes at EOF with HTTP 416
31+
# (NixOS/nix#16722). Separate HTTP/1.1 connections limit the damage.
32+
extra-conf: |
33+
http2 = false
2934
3035
- uses: cachix/cachix-action@5f2d7c5294214f71b873db4b969586b980625e71 # v17
3136
with:

‎.github/workflows/branch-e2e.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,6 @@ jobs:
339339
if: needs.pr_metadata.outputs.run_integration == 'true'
340340
permissions:
341341
contents: read
342-
packages: read
343342
uses: ./.github/workflows/deb-package.yml
344343
with:
345344
checkout-ref: ${{ github.sha }}

‎.github/workflows/deb-package.yml‎

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ on:
1212

1313
permissions:
1414
contents: read
15-
packages: read
1615

1716
defaults:
1817
run:
@@ -25,22 +24,16 @@ jobs:
2524
matrix:
2625
include:
2726
- arch: amd64
28-
runner: linux-amd64-cpu8
2927
deb_arch: amd64
3028
cli_target: x86_64-unknown-linux-musl
3129
gnu_target: x86_64-unknown-linux-gnu
3230
- arch: arm64
33-
runner: linux-arm64-cpu8
3431
deb_arch: arm64
3532
cli_target: aarch64-unknown-linux-musl
3633
gnu_target: aarch64-unknown-linux-gnu
37-
runs-on: ${{ matrix.runner }}
34+
# package-deb.sh only stages files, so both architectures build on amd64.
35+
runs-on: ubuntu-24.04
3836
timeout-minutes: 20
39-
container:
40-
image: ghcr.io/nvidia/openshell/ci:9cb72baa2e61a1b5f12407e6e82da7fdba0aa722@sha256:67a9a0c32cb99825e6d3e9d9eec45d67149ea1ff7c11a1b1e1b3480d2d3df684
41-
credentials:
42-
username: ${{ github.actor }}
43-
password: ${{ secrets.GITHUB_TOKEN }}
4437
steps:
4538
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
4639
with:

‎.github/workflows/e2e-suites.yml‎

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ jobs:
104104
{"environment":"fedora-podman-rootless","installer":"rpm","family":"features","package":"host-gateway","gateway":"openshell","runner":"ubuntu-24.04"},
105105
{"environment":"ubuntu-k3s","installer":"k3s","family":"features","package":"host-gateway","gateway":"tmachine","runner":"ubuntu-24.04"},
106106
{"environment":"ubuntu-k3s","installer":"k3s-ha","family":"features","package":"host-gateway","gateway":"tmachine","runner":"ubuntu-24.04"},
107+
{"environment":"ubuntu-docker-rootful","installer":"deb","family":"features","package":"connect-ssh-supervision","gateway":"openshell","runner":"ubuntu-24.04"},
107108
{"environment":"fedora-podman-rootful-keycloak","installer":"rpm","family":"features","package":"keycloak-provider-refresh","gateway":"openshell","runner":"ubuntu-24.04"},
108109
{"environment":"fedora-podman-rootless-keycloak","installer":"rpm","family":"features","package":"keycloak-provider-refresh","gateway":"openshell","runner":"ubuntu-24.04"},
109110
{"environment":"fedora-podman-rootful-userns-default","installer":"rpm","family":"drivers/podman","gateway":"openshell","runner":"ubuntu-24.04"},
@@ -160,24 +161,24 @@ jobs:
160161
with:
161162
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
162163

163-
# integration-runner.yml skips the disk cache for ubuntu-k3s and doesn't say
164-
# why, so the k3s environment skips it here too until that is understood.
165164
- name: Cache tmachine disks
166-
if: matrix.environment != 'ubuntu-k3s'
167165
uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0
168166
with:
169-
path: ~/.cache/tmachine
170-
# tmachine keys its disk layers on a hash of the Ansible tree, the
167+
# Only the setup layers, which depend on the environment alone. The
168+
# install layers under disks/install hold this commit's build (and
169+
# on k3s, the gateway's credentials), so no later run could use them.
170+
path: ~/.cache/tmachine/disks/*.qcow2
171+
# tmachine keys its setup layers on a hash of the Ansible tree, the
171172
# environments' playbook lists and setup inputs (config.nix, and
172-
# files such as the Keycloak realm file) and the cache versions in
173-
# setup.rs and install.rs. actions/cache doesn't save after an
174-
# exact key hit, so a key that misses one of those would rebuild the
175-
# changed layers on every run. Environments share no layers, and
173+
# files such as the Keycloak realm file) and the cache version in
174+
# setup.rs. actions/cache doesn't save after an exact key hit, so a
175+
# key that misses one of those would rebuild the changed layers on
176+
# every run. Environments share no layers, and
176177
# only the first job to save a key gets its disks in, so each
177-
# environment and installer needs its own key. No restore-keys
178-
# fallback: restoring an older entry would carry its stale disks
179-
# into the new one, which then only grows.
180-
key: tmachine-${{ runner.os }}-${{ runner.arch }}-${{ matrix.environment }}-${{ matrix.installer }}-${{ hashFiles('tests/tmachine/ansible/**', 'tests/tmachine/config.nix', 'tests/tmachine/images.nix', 'tests/tmachine/src/qemu/setup.rs', 'tests/tmachine/src/qemu/install.rs', 'scripts/keycloak-realm.json') }}
178+
# environment needs its own key; its installers share it. No
179+
# restore-keys fallback: restoring an older entry would carry its
180+
# stale disks into the new one, which then only grows.
181+
key: tmachine-${{ runner.os }}-${{ runner.arch }}-${{ matrix.environment }}-${{ hashFiles('tests/tmachine/ansible/**', 'tests/tmachine/config.nix', 'tests/tmachine/images.nix', 'tests/tmachine/src/qemu/setup.rs', 'tests/tmachine/src/qemu/layer.rs', 'tests/tmachine/src/qemu/ansible_hash.rs', 'scripts/keycloak-realm.json') }}
181182

182183
- name: Download integration inputs
183184
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1

0 commit comments

Comments
 (0)