Skip to content

test(apps): preserve Greeting through failed package downloads - #544

Merged
RentnerKev merged 3 commits into
mainfrom
rentner/test/greeting-update-failures
Nov 23, 2026
Merged

RentnerKev merged 3 commits into
mainfrom
rentner/test/greeting-update-failures

Conversation

@RentnerKev

@RentnerKev RentnerKev commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Part of Platform #458.

What this covers

  • Interrupt the exact published Greeting 1.0.1 download and, in a separate attempt, return altered bytes with its original advertised length. The signed catalog and release fixtures retain their original bytes.
  • Verify each failed update leaves Greeting 1.0.0 running with the same generation and saved data. Verify no new candidate or archive is published in the local package store.
  • Retry with the authenticated bytes and retain the successful update, offline rollback and restart checks. The existing native Linux AMD64 and ARM64 jobs record the fault and retry results in greeting-lifecycle.json.

Summary by CodeRabbit

  • Tests
    • Expanded lifecycle test coverage for interrupted and corrupted update downloads, verifying that failed updates leave the active installation and greeting unchanged.
    • Added checks for successful retries, update results, and rollback after the catalog server stops.

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 66aafa8 and 50d8bb9.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The published-catalog lifecycle test now exercises interrupted and corrupted update downloads, verifies that failures preserve the active installation and its data, and checks that an authentic retry and subsequent rollback succeed.

Changes: Published greeting update lifecycle

Layer / File(s) Summary
Configurable archive responses
core/tests/private/app_manager/lifecycle/published_greeting.rs
The catalog server can serve authentic, half-length interrupted, or same-length-corrupted update archives. It records the number of bytes sent for update downloads.
Failure checks and authenticated retry
core/tests/private/app_manager/lifecycle/published_greeting.rs
The test checks that interrupted and corrupted downloads fail without changing the active release, manager state, package store, or greeting data. It then verifies the authentic retry, requires successful rollback, and adds the update results to the evidence report.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Other

Possibly related issues

Possibly related PRs

  • RentnerProxy/platform#524 — Both PRs test Greeting lifecycle behavior involving altered release bytes and preservation of application data.
  • RentnerProxy/platform#543 — Both PRs test the published Greeting update path in an offline lifecycle context with persisted state and saved data checks.
Merge Risk: Minimal · previous review 66aaf

This PR only adds test coverage for failed Greeting update downloads and an authenticated retry. It does not change product behavior, and no merge-blocking risk was identified. The privileged native lifecycle test still has to run in CI to confirm it.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: tests that Greeting keeps running and keeps its saved data when package downloads fail. The raw summary shows the test was changed to cover interrupted and corrupted u…
Description check Passed The description has a summary of the change, a related issue (Platform #458), and a testing note that names the native Linux AMD64 and ARM64 jobs and greeting-lifecycle.json. It does not fill in the T…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: tests that Greeting keeps running and keeps its saved data when package downloads fail. The raw summary shows the test was changed to cover interrupted and corrupted update downloads, which matches the title. The title follows the conventional commit style and is 7 words long.

Full details: Description check

Explanation

The description has a summary of the change, a related issue (Platform #458), and a testing note that names the native Linux AMD64 and ARM64 jobs and greeting-lifecycle.json. It does not fill in the Type of change checkboxes, the Checklist, or the Breaking changes section. The Related issue section links Platform #458 but does not use the Fixes or Closes keyword, and the template asks for that form for feature and fix PRs. The Testing section names the CI jobs but does not list the commands that were run. The description is mostly complete, so the check passes, but the author should fill in the missing sections.

Resolution

Consider completing the following before merge: tick the Type of change box (likely Bug fix or Other for a test change), state the Related issue as a Fixes or Closes reference or explain why none applies, list the automated commands run under Testing, complete the Checklist, and write None under Breaking changes.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • 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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between d5cbf55 and 66aafa8.

Files selected for processing: 1

  • core/tests/private/app_manager/lifecycle/published_greeting.rs

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@RentnerKev

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor
Action not completed

Head commit changed.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@RentnerKev

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@RentnerKev
RentnerKev marked this pull request as ready for review November 22, 2026 22:56
@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

🐳 RentnerProxy PR Preview

A test-only image for this pull request has been published successfully.

Images

Type Image
Moving preview for this PR ghcr.io/rentnerproxy/platform:pr-544
Exact tested build ghcr.io/rentnerproxy/platform:pr-544-974a53b056e8-45105404675-1

Image digest: sha256:6442e1ecd75a7469ffebb768e82f7343e6f31563a6b034fd2ee8a22b77b1684a

Tested and built merge commit: 974a53b056e82b94315d5fc60b894c95e47980b6

Pull request head commit: 50d8bb902d2edefaee0908fcb8a383811ec13863

For reproducible testing and bug reports, prefer pr-544-974a53b056e8-45105404675-1. The pr-544 tag moves to the newest successful preview for this PR.


⚠️ Unreviewed development preview

This image contains unreviewed pull-request code. It may contain bugs, breaking changes, incomplete or incompatible migrations, configuration errors, and changes that damage data or runtime state.

Do not use this PR preview image with production data.

Before testing:

  1. Back up PostgreSQL.
  2. Back up the complete RentnerProxy controller/runtime state in /var/lib/rentnerproxy, including certificates, private keys, ACME state, active configuration, last-known-good state, and trusted CA material.
  3. Prefer a separate test database and separate Docker volumes.
  4. Use an isolated Docker Compose project and avoid production port bindings.

Docker

docker pull ghcr.io/rentnerproxy/platform:pr-544-974a53b056e8-45105404675-1

Docker Compose

In a separate test copy of docker-compose.yml, replace the service image with:

image: ghcr.io/rentnerproxy/platform:pr-544-974a53b056e8-45105404675-1

Then use an isolated Compose project:

docker compose --project-name rentnerproxy-pr-544 pull
docker compose --project-name rentnerproxy-pr-544 up -d

The repository Compose file binds ports 80, 81, and 443; change those bindings or stop the production stack before testing.

This preview is intended only for testing this pull request and is not a production release.

@RentnerKev
RentnerKev merged commit 12fdbe2 into main Nov 23, 2026
46 checks passed
@RentnerKev
RentnerKev deleted the rentner/test/greeting-update-failures branch November 23, 2026 06:28
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