Skip to content

test(watcher): pin name refresh after an external recreate - #1430

Merged
scttbnsn merged 1 commit into
dev/v1.8from
fix/v1.8-external-recreate-name
Oct 20, 2026
Merged

scttbnsn merged 1 commit into
dev/v1.8from
fix/v1.8-external-recreate-name

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

DR-82 already works on dev/v1.8. A cached container keeps up with Docker's current name on every watch (refreshContainerIdentityFromSummary persists it through updateContainerFields in docker-image-details-orchestration.ts), and the rename event path updates it via updateContainerFromInspect. The replacement-id case is covered by removeStaleContainerEntriesWithSameName.

This adds regression tests for a cached container stored under a generated name (abc_service_1 and 8bf70beac570_service) being persisted under the real name, and for a rollback-suffixed name leaving the stored name alone. Test-only, no behavior change.

✨ Added regression tests for external container recreation name handling.

  • Verify generated cached names update to Docker’s current name.

  • Verify name and displayName persistence.

  • Verify rollback-suffixed names remain unchanged.

  • Verify replacement IDs through removeStaleContainerEntriesWithSameName.

  • No production behavior changes.

  • Review findings: unavailable.

  • Test status: unavailable.

A cached container stored under a generated name is persisted under the current Docker name on the next watch, and a rollback-suffixed name is not. DR-82 already works on dev/v1.8.
@vercel

vercel Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
drydock-website Ready Ready Preview Oct 20, 2026 1:45am UTC
drydockdemo-website Ready Ready Preview Oct 20, 2026 1:45am UTC

@coderabbitai

coderabbitai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: CodesWhat/drydock/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ff3c4107-1c07-404e-9118-dbc1bda35b67
📥 Commits

Reviewing files that changed from the base of the PR and between 6f3996c and 7b11fd6.

📒 Files selected for processing: 1
  • app/watchers/providers/docker/docker-image-details-orchestration.test.ts

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

📝 Walkthrough

Adds parameterized tests that verify Docker discovery replaces cached generated names with the current Docker name and persists the name and display name. Adds a test that verifies a rollback-suffixed Docker name does not update an already canonical stored name.

Priority: ⬇️ Low

Change: Other

Merge Risk: ⚪ Minimal · up to 7b11f

The added name-refresh tests are ready to merge after normal checks; replacement-ID cleanup is already covered.

Pre-merge checks: Passed 2
Check name Status Explanation
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.
✨ Finishing Touches: 💡 1
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 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

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

@codecov

codecov Bot commented Oct 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

This branch was successfully deployed

2 active deployments
Preview – drydockdemo-website — 7b11fd67 Deployed Oct 20, 2026 by vercel[bot]
Preview – drydock-website — 7b11fd67 Deployed Oct 20, 2026 by vercel[bot]
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