Repository navigation
test(watcher): pin name refresh after an external recreate - #1430
Conversation
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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Change: Other Merge Risk: ⚪ Minimal · up to
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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
nameanddisplayNamepersistence.Verify rollback-suffixed names remain unchanged.
Verify replacement IDs through
removeStaleContainerEntriesWithSameName.No production behavior changes.
Review findings: unavailable.
Test status: unavailable.