You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test(apps): preserve Greeting through failed package downloads - #544
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.
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.
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.
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: 4
Check name
Status
Explanation
Title check
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
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
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.
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
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.
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.
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:
Back up PostgreSQL.
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.
Prefer a separate test database and separate Docker volumes.
Use an isolated Docker Compose project and avoid production port bindings.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of Platform #458.
What this covers
greeting-lifecycle.json.Summary by CodeRabbit