Skip to content

test: add the debian:sid usable scenario - #11

Merged
dan-petty merged 2 commits into
mainfrom
test/7-sid-usable-scenario
Nov 19, 2026
Merged

dan-petty merged 2 commits into
mainfrom
test/7-sid-usable-scenario

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Add the global scenario sid_usable in test/_global. It builds debian:sid with common-utils:2 (user vscode, zsh), git:1, node:2, github-cli:1, copilot-cli:1, claude-code:1 and the local podman-in-podman. sid_usable.sh checks the user and each tool, runs podman-check, and runs quay.io/podman/hello with rootless Podman as vscode. The README tells about the scenario.

Why: one test proves that debian:sid is usable as a dev container base. The test-global job of the weekly test-all.yaml run runs it, so a change in sid that breaks a Feature fails that run. The workflows do not change.

Notes:

  • claude-code:1 declares installsAfter node, so it installs after node:2.
  • test-pr.yaml gives no test for test/_global. The proof is a test-all.yaml run on this branch.
  • The test pulls quay.io/podman/hello. A registry outage fails it with no fault in a Feature.

Closes #7

Add the sid_usable global scenario. It builds debian:sid with
common-utils, git, node, github-cli, copilot-cli, claude-code and
podman-in-podman, checks each tool and runs a rootless Podman
container as vscode. The test-global job of the weekly test-all run
runs it, so a change in sid that breaks a Feature fails that run.
@dan-petty dan-petty added the type/test Unit, integration, invariant, or benchmark test authoring label Nov 19, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Proof

1. Lint (local)

shellcheck test/_global/sid_usable.sh            # exit 0, no finding
git ls-files -z '*.sh' | xargs -0r shellcheck    # exit 0
jq -e . test/_global/scenarios.json              # exit 0

2. npm run test:global (local, Docker Engine 29.9.3, linux/amd64, CLI 0.90.0)

Exit 0 in 4 min 47 s. TEST REPORT: Passed: 'sid_usable'.

  • Install order from the build log: common-utils, podman-in-podman, copilot-cli, git, node, claude-code, github-cli. claude-code installs after node (installsAfter of claude-code 1.0.5).
  • Checks: user is vscode, zsh (5.9.2), git (2.55.0), node (v26.13.1), npm (11.20.0), gh (2.105.0), copilot (1.0.114), claude (2.1.329), podman-check (rootless Podman 5.8.6 for vscode), podman, rootless run hello: all passed.
  • /etc/apt/sources.list.d of the built image holds only debian.sources.
  • After the run, I removed the test images and the test volume.

3. test-all.yaml dispatched on this branch (run 44637758552, head f1e14b0)

  • test-global: success. It ran npm run test:global, and all 11 checks of sid_usable passed (Test Passed!).
  • test (podman-in-podman) and test (podman-outside-podman): success.
  • test-together: skipped as designed (one Feature after podman-outside-podman is left out).

4. Checks of the pull request (head f1e14b0)

13 of 13 done: CodeQL, Analyze (actions), lint, validate, detect-changes pass. test, test-scenarios and podman-host of test-pr.yaml skip, because test/_global names no Feature in src/.

Not done here: the weekly schedule run. It starts after the merge, on the next Monday at 05:17 UTC.

@dan-petty
dan-petty marked this pull request as ready for review November 19, 2026 23:47
@dan-petty
dan-petty merged commit fb06f95 into main Nov 19, 2026
13 checks passed
@dan-petty
dan-petty deleted the test/7-sid-usable-scenario branch November 19, 2026 23:51
dan-petty pushed a commit that referenced this pull request Nov 27, 2026
The pull request workflow `.github/workflows/test-pr.yaml` runs no test
when a pull request changes only `test/_global`: the ids step keeps only
ids that have `src/<id>/devcontainer-feature.json`, so the global
scenario of #7 gets an empty Feature list and its breakage shows only on
the push to `main` or in the weekly `test-all.yaml` run, which is why
the proof of PR #11 needed a run started by hand. #12 adds a
`test-global` job to `.github/workflows/test-pr.yaml` that runs `npm run
test:global` when a file under `test/_global` changes, and skips it for
a Feature-only pull request.

Closes #12

Change:
`openspec/changes/archive/2026-11-27-12-run-global-scenarios-when-test-global/`

---------

Co-authored-by: devops-cli-service[bot] <349441588+devops-cli-service[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/test Unit, integration, invariant, or benchmark test authoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(_global): add the debian:sid usable scenario

1 participant