Skip to content

fix: adapt to compose-go v2.16.1 promoting x-initialSync silently - #14281

Merged
ndeloof merged 1 commit into
docker:mainfrom
glours:fix/compose-go-2.16.1-x-initial-sync
Oct 1, 2026
Merged

ndeloof merged 1 commit into
docker:mainfrom
glours:fix/compose-go-2.16.1-x-initial-sync

Conversation

@glours

@glours glours commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

What this PR does

Fixes the e2e CI failures caused by dependabot's compose-go v2.16.1 bump:
its loader now silently promotes the deprecated x-initialSync extension to
the official initial_sync attribute, which made our legacy warning code
dead and broke the test asserting on it.

Related issue

Closes #14278 replaces that dependabot PR, which failed CI, with this
manual fix.

@glours
glours requested review from a team as code owners October 1, 2026 09:47
@glours
glours requested a review from ndeloof October 1, 2026 09:47
@glours glours self-assigned this Oct 1, 2026

@docker-agent docker-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Assessment: 🟢 APPROVE

@codecov

codecov Bot commented Oct 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

ndeloof
ndeloof previously approved these changes Oct 1, 2026

@ndeloof ndeloof left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

We can also drop management of x-develop in docker/compose codebase

compose-go's loader now silently renames both deprecated
x-initialSync and x-develop extensions to their official
initial_sync and develop attributes before compose ever sees them
as extensions, so the legacy lookups and deprecation warnings for
both can no longer be reached. That's why the e2e test asserting on
the x-initialSync warning broke under the bump.

Simplify both lookups to rely on the promoted fields directly, and
rewrite the e2e test to check the legacy attribute still triggers a
real initial sync instead of asserting on an unreachable message.

Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
@glours
glours force-pushed the fix/compose-go-2.16.1-x-initial-sync branch from 769848d to 97357b1 Compare October 1, 2026 14:33
@glours
glours requested a review from docker-agent October 1, 2026 14:34

@docker-agent docker-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Assessment: 🟢 APPROVE

@ndeloof
ndeloof merged commit f6423f7 into docker:main Oct 1, 2026
62 checks passed
@ndeloof
ndeloof deleted the fix/compose-go-2.16.1-x-initial-sync branch October 1, 2026 15:35
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