Repository navigation
[vite-plugin] Fix v1 Container Docker error guidance - #16818
Conversation
🦋 Changeset detectedLatest commit: c3a7ee0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
@ghostwriternr (verified author of #16682) and @jamesopstad (latest qualifying pre-merge human ant-core approver, November 5 11:28:09Z): please check this v1 adaptation and approve it if it looks good. V1 still supports |
|
Codeowners approval required for this PR:
|
commit: |
There was a problem hiding this comment.
Superseded by the review of
a7f5f5fe.
This review, of 87661e0c
✅ Approved — This small, focused fix corrects the Docker error hint for v1. It comes with a regression test and a changeset, and no issues were found.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
📋 Code Quality: ✅ LGTM
The caller-specific hint goes through the containers-shared API this branch already pins. The test exercises the real Docker failure path.
📝 Documentation: ✅ LGTM
The changeset describes the user-facing fix. No public documentation update is needed.
Reviewed commit: 87661e0c
workers-devprod
left a comment
There was a problem hiding this comment.
Codeowners reviews satisfied
87661e0 to
a7f5f5f
Compare
There was a problem hiding this comment.
Superseded by the review of
411f726b.
This review, of a7f5f5fe
✅ Approved — This small, focused fix corrects the Docker error hint for v1. It comes with a regression test and a changeset, and no issues were found.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
📋 Code Quality: ✅ LGTM
The caller-specific hint goes through the containers-shared API this branch already pins. The test exercises the real Docker failure path.
📝 Documentation: ✅ LGTM
The changeset describes the user-facing fix. No public documentation update is needed.
Reviewed commit: a7f5f5fe — same changes as 87661e0c, so this is that commit's review (no new review was run; line numbers are as of 87661e0c)
…v1-runtime-20261112
There was a problem hiding this comment.
Superseded by the review of
700574a3.
This review, of 411f726b
✅ Approved — This small, focused fix corrects the Docker error hint for v1. It comes with a regression test and a changeset, and no issues were found.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
📋 Code Quality: ✅ LGTM
The caller-specific hint goes through the containers-shared API this branch already pins. The test exercises the real Docker failure path.
📝 Documentation: ✅ LGTM
The changeset describes the user-facing fix. No public documentation update is needed.
Reviewed commit: 411f726b — same changes as 87661e0c, so this is that commit's review (no new review was run; line numbers are as of 87661e0c)
…o Wrangler file Inline-only Worker configs have no Wrangler file, so the hint now reuses the same file name as the rest of the Container guidance.
There was a problem hiding this comment.
Superseded by the review of
c3a7ee0d.
This review, of 700574a3
✅ Approved — This small backport corrects the Docker error hint for v1, including inline-only configs. It comes with a regression test and a changeset, and I found no issues.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
📋 Code Quality: ✅ LGTM
The configFileName value is now shared between the existing guidance and the new disableContainersHint, so inline-only configs name the Vite config file. The regression test runs the real prepareContainerImagesForDev with Docker missing and checks the wording of the hint.
📝 Documentation: ✅ LGTM
The plugin changeset describes the corrected error guidance. No public documentation change is needed.
Reviewed commit: 700574a3
|
Codeowners approval required for this PR:
|
There was a problem hiding this comment.
✅ Approved — Small backport that fixes the v1 Docker hint. The only change since the last review is a test assertion that checks the full hint for all three config cases, and it raises no issues.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
📋 Code Quality: ✅ LGTM
The only change since the last review is one assertion in containers.spec.ts. It checks the full disableContainersHint text for each of three setups: a Wrangler config file, a Vite config fallback, and inline configuration. That matches what containers.ts passes to prepareContainerImagesForDev, so the test would fail if the hint changed or the unsupported --enable-containers flag came back. configFileName is computed once and used for both the existing guidance and the new hint, so the two can't drift apart.
📝 Documentation: ✅ LGTM
The plugin changeset describes the corrected error guidance. No public documentation change is needed.
Reviewed commit: c3a7ee0d
Backport the v1-relevant diagnostic fix from #16682. When Docker cannot be reached, v1 currently suggests
--enable-containers=false, which the Vite plugin does not accept. Supply a caller-specific hint through the already-pinned containers-shared 0.25.0 API, retaining the validdev.enable_containerssetting and configuration filename.The plugin unit tests keep
prepareContainerImagesForDevmocked and assert the complete hint for a Wrangler config, a Vite config fallback, and inline configuration. They cover the supported setting and omission of the unsupported CLI flag on every platform without invoking Docker or entering the shared helper's native Windows guard.The diff is one plugin option, its unit-test assertions, and a plugin patch changeset. No dependency upgrade is needed: #16801 already supplies the optional hint API from #15695. Native cloudflare.config.ts Container export conversion and Vitest pool support remain outside this v1 backport.
This is the first remaining open PR in native GitHub stack #16900, followed by #16859 and its dependents. Merge the stack in order.
Validation on macOS with Node 22.22.1 and pnpm 10.33.0:
pnpm build,pnpm test:ci(including all 10 Container tests and 266 plugin tests), andpnpm check(58 tasks) pass. No credentialed E2E or full OS matrix was run locally.Note
This is a contribution from an AI agent: Codex.