Skip to content

Commit 78975ea

Browse files
authored
chore(test-guest): remove snap reproduction helper (#4368)
Signed-off-by: Evan Lezar <elezar@nvidia.com>
1 parent fa22ccd commit 78975ea

3 files changed

Lines changed: 0 additions & 228 deletions

File tree

‎nix/test-guest/README.md‎

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -296,44 +296,6 @@ nix run .#test-guest -- \
296296
-- openshell --version
297297
```
298298

299-
## Reproduce Snap installation
300-
301-
Copy the repository installer and reproduction script into a prepared Ubuntu
302-
guest. The script follows both Release Canary Snap flows: it runs `install.sh`
303-
with `OPENSHELL_VERSION=dev`, checks the `latest/edge` channel and Docker
304-
interface, and exercises a sandbox. Repeated attempts also cover the installer's
305-
idempotent Snap refresh path. On each failure the script prints snapd, Docker,
306-
and gateway diagnostics.
307-
308-
Reuse system Docker and verify that the Docker snap is not installed:
309-
310-
```shell
311-
nix run .#test-guest -- \
312-
--distro ubuntu-24-04 \
313-
--with docker \
314-
--with snapd \
315-
--keep \
316-
--copy ./install.sh:/tmp/install.sh \
317-
--copy ./nix/test-guest/scripts/snap-gateway-repro.sh:/usr/local/bin/snap-gateway-repro \
318-
-- /usr/local/bin/snap-gateway-repro /tmp/install.sh system-docker 10
319-
```
320-
321-
Start without Docker and verify that `install.sh` rejects the Snap installation:
322-
323-
```shell
324-
nix run .#test-guest -- \
325-
--distro ubuntu-24-04 \
326-
--with snapd \
327-
--keep \
328-
--copy ./install.sh:/tmp/install.sh \
329-
--copy ./nix/test-guest/scripts/snap-gateway-repro.sh:/usr/local/bin/snap-gateway-repro \
330-
-- /usr/local/bin/snap-gateway-repro /tmp/install.sh missing-docker 10
331-
```
332-
333-
`--keep` retains the overlay and serial log when diagnosing a failure. The
334-
runner prints their location after shutdown.
335-
336-
337299
The destination must be an absolute guest path. Use bare octal permission bits
338300
from `000` through `777` for explicit modes.
339301

‎nix/test-guest/scripts/snap-gateway-repro.sh‎

Lines changed: 0 additions & 180 deletions
This file was deleted.

‎tasks/scripts/test-packaging-assets.sh‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ snapcraft="${ROOT}/snapcraft.yaml"
119119
snap_workflow="${ROOT}/.github/workflows/snap-package.yml"
120120
snap_install_docs="${ROOT}/docs/about/installation.mdx"
121121
snap_canary="${ROOT}/.github/workflows/release-canary.yml"
122-
snap_repro="${ROOT}/nix/test-guest/scripts/snap-gateway-repro.sh"
123122
snap_configure_hook="${ROOT}/snap/hooks/configure"
124123
snap_install_hook="${ROOT}/snap/hooks/install"
125124
snap_post_refresh_hook="${ROOT}/snap/hooks/post-refresh"
@@ -129,7 +128,6 @@ assert_file_exists "$snapcraft"
129128
assert_file_exists "$snap_workflow"
130129
assert_file_exists "$snap_install_docs"
131130
assert_file_exists "$snap_canary"
132-
assert_file_exists "$snap_repro"
133131
assert_file_exists "$snap_configure_hook"
134132
assert_file_exists "$snap_install_hook"
135133
assert_file_exists "$snap_post_refresh_hook"
@@ -152,7 +150,6 @@ for snap_file in \
152150
"$snapcraft" \
153151
"$snap_install_docs" \
154152
"$snap_canary" \
155-
"$snap_repro" \
156153
"$snap_configure_hook" \
157154
"$snap_install_hook" \
158155
"$snap_post_refresh_hook"; do
@@ -242,15 +239,8 @@ assert_contains "$snap_canary" "install.sh | sh"
242239
assert_contains "$snap_canary" "ubuntu-snap-system-docker:"
243240
assert_contains "$snap_canary" "ubuntu-snap-docker-preflight:"
244241
assert_contains "$snap_canary" "openshell.prover check"
245-
assert_contains "$snap_repro" 'OPENSHELL_INSTALL_METHOD=snap OPENSHELL_VERSION=dev sh "${install_script}"'
246-
assert_contains "$snap_repro" "/snap/bin/openshell.prover check"
247-
assert_contains "$snap_repro" "system-docker"
248-
assert_contains "$snap_repro" "missing-docker"
249-
assert_contains "$snap_repro" "docker-snap"
250242
assert_not_contains "$snap_canary" "--dangerous"
251-
assert_not_contains "$snap_repro" "--dangerous"
252243
assert_not_contains "$snap_canary" "snap connect openshell:docker"
253-
assert_not_contains "$snap_repro" "snap connect openshell:docker"
254244
if ! awk '/config preflight/ { seen = 1 } /generate-certs/ { exit !seen }' "$service"; then
255245
echo "FAIL: Debian preflight must precede certificate generation" >&2
256246
exit 1

0 commit comments

Comments
 (0)