Skip to content

test(apps): prove UI updates, coalesced retries and removal of the published reference app - #584

Merged
RentnerKev merged 6 commits into
mainfrom
rentner/test/reference-app-management
Nov 26, 2026
Merged

RentnerKev merged 6 commits into
mainfrom
rentner/test/reference-app-management

Conversation

@RentnerKev

Copy link
Copy Markdown
Member

Summary

Extends the two privileged published-Greeting tests. There are no production code changes, and the harness is unchanged: all edits are inside the existing test bodies.

Distribution gates, step 7 (distribution_gates.rs)

Assertion Criterion
The replaced 1.0.0 generation's /metadata has no nativePresentation. The 1.0.1 generation's metadata carries the native view that 1.0.1 declares (formatVersion 1, at least one page). #458: backend and UI update without a platform rebuild
uiEntryChanged is asserted, not only recorded. Its value is false: Greeting 1.0.1 changes only api/openapi.json and app.config.json, so ui/index.html is byte-identical. It is still served from the new staged package. #458: backend and UI update without a platform rebuild
While the update is pending, the same update is posted twice. Each time the reply is 202 with the same pending operation. A deactivate and an install of 1.0.0 are refused with 409. The release host then serves exactly one archive. #456 criterion 3 (idempotent repeated clicks, concurrent actions refused); #458 duplicate jobs

Published lifecycle (published_greeting.rs)

Step Assertion Criterion
After the first install and save, before the catalog server stops uninstall leaves the row in state removed, and greeting.json is byte-identical. reinstall of the listed 1.0.0 release runs with the same UID, has no previous release, and reads back PERSISTED_GREETING. #456 criteria 1 and 5
After the offline restart, with the catalog server already stopped uninstall keeps the greeting. The separately requested purge removes the installation row and erases /var/lib/rentnerproxy/apps/<uid>. #456 criteria 1, 4 and 5

The purge runs at the end because the test needs the retained previous release for its offline rollback. Running uninstall and purge offline also proves that both are local operations.

The evidence JSON records the new operations, the reinstall generation, the repeated and refused submission statuses, and the native presentation result.

Related issue

Refs #456
Refs #458

Type of change

  • Bug fix
  • New feature
  • Refactoring
  • Documentation
  • CI / tooling
  • Dependency update
  • Other (tests)

Testing

  • cargo clippy --locked --manifest-path core/Cargo.toml --all-targets --all-features -- -D warnings and cargo fmt --check on Linux (Rust 1.99.1).
  • The privileged Greeting tests need native Linux, root and the published release assets. They run in App Runtime Reference (AMD64 and ARM64) and in the CI Rust job's privileged IPC fixtures.

Checklist

  • I tested the relevant functionality.
  • Existing tests pass. (CI pending)
  • I added or updated tests where appropriate.
  • This PR does not include secrets, credentials, production data, or private certificates/keys.
  • I updated documentation where necessary. Not needed.
  • I linked the relevant issue for a feature or fix, or explained why no issue is needed.

Breaking changes

None.

Screenshots

None.

🤖 Generated with Claude Code

…blished reference app

- Distribution gates, step 7: the replaced Greeting 1.0.0 generation has no
  native presentation in its metadata, and the 1.0.1 generation carries the
  native view that 1.0.1 declares. 1.0.1 changes only its API document, so
  the entry document is byte-identical; the gate now asserts that recorded
  value.
- While the update is pending, two identical submissions return the same
  pending operation (202), a deactivate and an install are refused (409), and
  the release host serves exactly one archive.
- Published lifecycle: uninstalling keeps greeting.json, and reinstalling the
  listed 1.0.0 release reopens the persisted greeting with the same UID. After
  the offline restart, uninstall and purge run without the catalog, and the
  purge erases the app directory.

Refs #456
Refs #458

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 11 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 9c6cf25 and a041134.

Files selected for processing: 2

  • core/tests/private/app_manager/lifecycle/published_greeting.rs
  • core/tests/private/app_manager/lifecycle/published_greeting/distribution_gates.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@RentnerKev
RentnerKev merged commit 6a5eb23 into main Nov 26, 2026
41 checks passed
@RentnerKev
RentnerKev deleted the rentner/test/reference-app-management branch November 26, 2026 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant