Skip to content

fix(v1.6): backport the compose runtime-defaults refresh - #905

Merged
scttbnsn merged 1 commit into
dev/v1.6from
fix/v1.6-compose-runtime-defaults
Aug 27, 2026
Merged

scttbnsn merged 1 commit into
dev/v1.6from
fix/v1.6-compose-runtime-defaults

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Cherry-pick of 154c4e0b (#736) onto the 1.6 line.

#734 reported that APP_VERSION and RELEASE_VERSION stop matching the running image after a compose update, so the UI keeps showing an update against an image that is already current. A manual docker compose down && docker compose up -d clears it, because compose rebuilds the container config from the image every time and drydock was rebuilding it from the stored config instead.

That fix landed on dev/v1.7 only. The reporter runs 1.6.0, so it was unreachable on the line they are actually on, and v1.6.1 has not shipped yet. Backporting it here rather than making them wait for a major.

Cherry-picked clean, no conflicts, no adaptation. 2 files, +68/-1, all of it the original change plus its regression.

Verified on this branch: Dockercompose.compose-exec-and-hooks.test.ts 68 tests passing, and the full pre-push gate green including coverage at 100%.

Fixes: #734

Changelog

  • 🐛 Fixed Compose container recreation to refresh image-provided runtime defaults, including APP_VERSION and RELEASE_VERSION.
  • 🔧 Changed refreshComposeServiceWithDockerApi to pass clone runtime configuration options to cloneContainer.
  • ✨ Added regression coverage for removing stale image defaults while preserving runtime-defined variables.

Concerns

  • Verify the clone runtime configuration path matches conventions used by other providers.
  • Confirm the 68 Compose tests and full pre-push gate pass on v1.6.

A container recreated by the compose action was rebuilt from the stored config
instead of re-reading the runtime defaults the pulled image ships, so image-set
vars like APP_VERSION and RELEASE_VERSION carried over from the old container
and the UI kept reporting an update against an image that was already current.

Cherry-picked from 154c4e0 (#736), which landed on dev/v1.7 only. The reporter
runs 1.6.0, so the fix was unreachable on the line they are on.
@vercel

vercel Bot commented Aug 27, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
drydock-website Ready Ready Preview Aug 27, 2026 9:19pm
drydockdemo-website Ready Ready Preview Aug 27, 2026 9:19pm

@coderabbitai

coderabbitai Bot commented Aug 27, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 76acbd88-9adf-4a63-a7bc-c29dc9b289f8

📥 Commits

Reviewing files that changed from the base of the PR and between 487db3a and 32ed3ab.

⛔ Files ignored due to path filters (1)
  • CHANGELOG.md is excluded by !CHANGELOG.md
📒 Files selected for processing (2)
  • app/triggers/providers/dockercompose/Dockercompose.compose-exec-and-hooks.test.ts
  • app/triggers/providers/dockercompose/Dockercompose.ts

Included review availability: Your plan provides up to 2 included reviews per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

Docker Compose refresh now resolves clone runtime configuration options before rollback capture. Container recreation passes these options to cloneContainer. Regression coverage checks that replacement containers preserve runtime-defined environment variables and exclude stale defaults inherited from the previous image.

Merge Risk: ⚪ Minimal · up to 32ed3

The change refreshes Compose container runtime defaults while preserving explicit runtime values and existing rollback behavior. No actionable merge-blocking risk remains after normal checks and review.

🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Linked Issues check ✅ Passed The changes address issue #734. Compose recreation now passes runtime configuration options into cloneContainer, allowing image-provided environment defaults to refresh while preserving runtime-define…
Out of Scope Changes check ✅ Passed The reviewed changes are limited to the Compose recreation logic and its regression test. Both changes directly support issue #734. The ignored CHANGELOG.md file is unrelated to the coding scope.
Full details: Linked Issues check

Explanation

The changes address issue #734. Compose recreation now passes runtime configuration options into cloneContainer, allowing image-provided environment defaults to refresh while preserving runtime-defined variables. The regression test covers both behaviors.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/v1.6-compose-runtime-defaults

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.

@scttbnsn

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
⚠️ Action not completed

Already reviewed the last commit. Use @coderabbitai full review to rerun a review of the entire changeset.

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.

@codecov

codecov Bot commented Aug 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@scttbnsn

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
⚠️ Action not completed

Already reviewed the last commit. Use @coderabbitai full review to rerun a review of the entire changeset.

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.

@scttbnsn

Copy link
Copy Markdown
Contributor Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
⚠️ Action not completed

Review rate limited.


Your included review limit is currently reached under our Fair Usage Limits Policy. This review may still proceed through usage-based billing if eligible. Your next included review will be available in 17 minutes.

@biggest-littlest biggest-littlest left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Straight cherry-pick of #736 onto the 1.6 line, no behavioral drift from what already merged on dev/v1.7. Checks are green.

@ALARGECOMPANY ALARGECOMPANY left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Backport looks right. Same runtime-defaults refresh, same tests, targeted at dev/v1.6 so #734's reporter can actually get it.

@scttbnsn

Copy link
Copy Markdown
Contributor Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
✅ Action performed

Full review finished.

@scttbnsn
scttbnsn merged commit 196431d into dev/v1.6 Aug 27, 2026
33 checks passed
@scttbnsn
scttbnsn deleted the fix/v1.6-compose-runtime-defaults branch August 27, 2026 23:56

This branch was successfully deployed

2 active deployments
Preview – drydock-website — 32ed3ab0 Deployed Aug 27, 2026 by vercel[bot]
Preview – drydockdemo-website — 32ed3ab0 Deployed Aug 27, 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.

3 participants