Skip to content

feat: detect deployed-image vs catalog-image drift and warn (CashPilot-5wi)#117

Merged
GeiserX merged 1 commit into
mainfrom
fix/loop-5wi-image-drift
Jul 18, 2026
Merged

feat: detect deployed-image vs catalog-image drift and warn (CashPilot-5wi)#117
GeiserX merged 1 commit into
mainfrom
fix/loop-5wi-image-drift

Conversation

@GeiserX

@GeiserX GeiserX commented Jul 18, 2026

Copy link
Copy Markdown
Owner

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/proxybaseghcr.io/proxybaseorg/peer-cli migration 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) — parses repo/tag/digest from 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/deployed now returns image_outdated per container-backed service.
  • app.js renders a small update available badge (with an explanatory tooltip) in the status cell.

Tests

TestImageDrift covers _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.

…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.
@coderabbitai

coderabbitai Bot commented Jul 18, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@GeiserX, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 3 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 7e7a2cde-eeac-4aa6-ba8c-b81ea0f2182f

📥 Commits

Reviewing files that changed from the base of the PR and between 4cbd330 and ce894b6.

📒 Files selected for processing (3)
  • app/main.py
  • app/static/js/app.js
  • tests/test_main_routes.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/loop-5wi-image-drift

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

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Jul 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.87%. Comparing base (4cbd330) to head (ce894b6).

Additional details and impacted files

Impacted file tree graph

@@            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              
Files with missing lines Coverage Δ
app/main.py 97.68% <100.00%> (+0.03%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@GeiserX

GeiserX commented Jul 18, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 18, 2026

Copy link
Copy Markdown
✅ 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.

@GeiserX
GeiserX merged commit 261a2ad into main Jul 18, 2026
8 checks passed
@GeiserX
GeiserX deleted the fix/loop-5wi-image-drift branch July 18, 2026 16:26
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