Repository navigation
test(apps): install and update a published release with approved capabilities - #599
Conversation
…bilities Add the --grants reference gate. Three releases repackaged from the official Greeting 1.0.1 archive request notifications, proxy host reads and upstream probes. One fresh appliance state installs with the Owner's approval, carries it to an update, refuses an update that requests more until it is approved, revokes a host from the live generation, rolls back, restarts and reinstalls, while the authority stub records every grant publication. CI runs it on AMD64 and ARM64 and uploads greeting-grants.json. Move the repackaging helpers into a module shared with the data migrations gate. Refs #590 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
The Rust job already needs 17 to 19 of its 20 minutes on main, and the instrumented grants gate pushed it over the limit. The native reference job runs the gate on AMD64 and ARM64, and the signed lifecycle covers the same manager paths under coverage. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Summary
PR 2 of 3 for #590. The published-app reference gate now installs signed releases that request capabilities, on AMD64 and ARM64, through the real app manager and catalog UI. It covers the acceptance criterion "the published-app reference gate installs a fixture release with capabilities on AMD64 and ARM64".
New gate
published_greeting/grants.rs(--grants, evidencegreeting-grants.json)notifications.publish.v1andproxy.hosts.read.v1;diagnostics.upstream.probe.v1.Shared helpers
data_migrations.rsintopublished_greeting/repackage.rs, so both gates share them. A release now sets arbitrary manifest fields and adds its own files. The migrations gate behaves as before.start_authoritytakes an optional grant log for the authority stub.Related issue
Refs #590 (PR 2 of 3). PR 3 adds the approval dialog, host picker and revoke UI.
Refs RentnerProxy/app-monitoring#1
Type of change
Testing
cargo fmt --checkandcargo clippy --locked --all-targets --all-features -- -D warningsare clean.cargo test --all-features: 1123 passed, 27 ignored.--grantspassed in 71 s. It recorded nine publications across eight generations, including the live revoke.--migrationspassed after the helper move.greeting-grants.json. Both architectures passed on the first commit.--grants: the Rust job already uses 17 to 19 of its 20 minutes on main, and the instrumented gate (148 s) pushed it over the limit. The signed lifecycle covers the same manager paths under coverage.Checklist
Breaking changes
None.
🤖 Generated with Claude Code
Summary by CodeRabbit