feat: detect deployed-image vs catalog-image drift and warn (CashPilot-5wi)#117
Conversation
…t-5wi) When a provider changes or re-pins its Docker image (e.g. the ProxyBase migration), a running container keeps looking healthy while silently on a retired image. Add _split_image/_image_outdated helpers, expose an image_outdated flag on /api/services/deployed, and render an 'update available' badge in the dashboard so the operator can re-deploy from the catalog. Deliberately conservative: empty images and pure tag-vs-digest differences of the same repo are not flagged.
|
Warning Review limit reached
Next review available in: 3 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #117 +/- ##
==========================================
+ Coverage 93.84% 93.87% +0.02%
==========================================
Files 33 33
Lines 3884 3902 +18
==========================================
+ Hits 3645 3663 +18
Misses 239 239
🚀 New features to boost your workflow:
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
What
Detects when a running container's image no longer matches its catalog entry and surfaces an update available badge in the dashboard.
When a provider changes or re-pins its Docker image (the ProxyBase
proxybase/proxybase→ghcr.io/proxybaseorg/peer-climigration is the motivating case), a deployed container keeps reporting healthy while silently running a retired image. The operator has no signal to re-deploy.How
_split_image(ref)— parsesrepo/tag/digestfrom a Docker ref (a:after the last/is a tag; before it is a registry port)._image_outdated(deployed, catalog_image)— True when the repo path changed, or both sides are digest-pinned to different digests. Conservative: empty/unknown images and a pure tag-vs-digest difference of the same repo are not flagged./api/services/deployednow returnsimage_outdatedper container-backed service.app.jsrenders a smallupdate availablebadge (with an explanatory tooltip) in the status cell.Tests
TestImageDriftcovers_split_image(digest, tag, bare, registry-port) and_image_outdated(repo migration, digest re-pin, identical, empty, tag-vs-digest). Full suite: 1164 passing, ruff clean.Closes bead CashPilot-5wi.