Add staged kernel arguments and explicit CLI output contracts
This commit is contained in:
parent
caaab79965
commit
b0199c76f1
2 changed files with 28 additions and 0 deletions
27
pipeline/CLI-FORMATS.md
Normal file
27
pipeline/CLI-FORMATS.md
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
# CLI consumers and acceptance formats (D-096)
|
||||
|
||||
Audit scope: the release-cycle driver, builder shell adapters, installed Core and
|
||||
Desktop probes, optional rollout drivers, native store plugins and legacy bridge.
|
||||
|
||||
| Consumer | Input contract | Verification |
|
||||
| --- | --- | --- |
|
||||
| `release-cycle.py` | Cargo exit status; native adapter tests; probe exit status and evidence files | Normal source stage runs Rust tests and `system/tests/kernel_arguments.py` before image builds |
|
||||
| Builder/install adapters | Command exit status and artifact files, no installed-host presentation parsing | Existing build/install assertions retained; raw `--debug` bypasses decoration |
|
||||
| `core_iso_acceptance.py` | Explicit `transaction list --json`; installed metadata v3; package/boot state | Shared CLI probe before extension staging and after activation; history counts only `Kind=stage` |
|
||||
| `gnome_native_acceptance.py` (GNOME and KDE) | Explicit `status --json`; command exit status; native D-Bus GUI interfaces | Shared CLI probe before nano staging and after reboot, so extensions must inherit kargs |
|
||||
| `cli_contract_guest.py` | One JSON document, empty normal JSON stderr; debug JSON-lines stderr | Human status/no-op, protected argument rejection, append/replace/no-op identity, boot activation and inherited arguments |
|
||||
| `update_rollout_guest.py` | Explicit plan/apply JSON; daemon-owned plan ID and verified target | Optional configured-track rollout; rejects candidate mismatch instead of rewriting private plans |
|
||||
| `finish-update-rollout.py`, `resume-update-rollout.py` | Historical callers of optional rollout probe | Not the scheduled driver; old pre-D-Bus VMs and unpublished arbitrary candidates no longer meet probe prerequisites |
|
||||
| Native GNOME Software/Discover plugins | Typed D-Bus results and transaction properties | No CLI text dependency; existing GUI checks retained |
|
||||
| `system/src/software.rs` | Historical cache/CLI bridge | No CLI entrypoint or current image service invokes it; not evidence for native plugins |
|
||||
| Portal/release wrapper | Driver `pipeline.json`, catalog JSON and systemd status | Independent of installed CLI formatting; publication verification remains HTTPS/catalog/size based |
|
||||
|
||||
The legacy direct-context updater still has its own JSON mode. Installed commands
|
||||
always route to the daemon, including global output/auth flags before the command
|
||||
and `service host` dispatch. Consumers must not parse `Plan:`, translated progress,
|
||||
retry tokens, implicit JSON, or legacy `generations/*/staged` marker files.
|
||||
|
||||
Old-image network upgrade, Polkit denial/reconnect/crash recovery and complete GUI
|
||||
admission are separate evidence. The shared CLI checks do not certify those paths.
|
||||
No VM waiver is enabled for this change. Runtime checks run only in the normal
|
||||
terra pipeline; implementation of a check is not a passing result.
|
||||
|
|
@ -207,6 +207,7 @@ docker run --rm --network=none --mount type=bind,src={remote_root}/source/src,ds
|
|||
cp {shlex.quote(config['worker_source_root'])}/target/release/archipelago {remote_root}/archipelago
|
||||
cp {shlex.quote(config['worker_source_root'])}/target/release/archipelagod {remote_root}/archipelagod
|
||||
docker run --rm --network=none --mount type=bind,src={remote_root}/source/src,dst=/build/src,readonly --mount type=bind,src={shlex.quote(config['worker_source_root'])}/target,dst=/build/target --mount type=bind,src={shlex.quote(config['worker_root'])}/cache/cargo,dst=/usr/local/cargo/registry {shlex.quote(config['worker_tools_image'])} cargo test --manifest-path /build/src/cli/Cargo.toml --offline --locked --release -p archipelago-system -p archipelago-contracts -p archipelago-composer > {remote_root}/service-contract-checks.log 2>&1
|
||||
docker run --rm --network=none --mount type=bind,src={remote_root}/source/src,dst=/build/src,readonly {shlex.quote(config['worker_tools_image'])} python3 /build/src/system/tests/kernel_arguments.py >> {remote_root}/service-contract-checks.log 2>&1
|
||||
python3 {remote_root}/source/src/composer/tests/materialize.py > {remote_root}/composer-filesystem-checks.log 2>&1
|
||||
python3 {remote_root}/source/src/composer/tests/artifact.py >> {remote_root}/composer-filesystem-checks.log 2>&1
|
||||
python3 {remote_root}/source/src/composer/tests/package_db.py >> {remote_root}/composer-filesystem-checks.log 2>&1
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue