Repository navigation
[containers-shared] Share cf config Container image preparation with the Vite plugin - #16877
Conversation
🦋 Changeset detectedLatest commit: bbc01bd The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
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 |
|
LGTM |
@cloudflare/autoconfig
@cloudflare/build-output-utils
@cloudflare/codemods
@cloudflare/config
@cloudflare/containers-shared
create-cloudflare
@cloudflare/deploy-helpers
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-functions
@cloudflare/pages-shared
@cloudflare/runtime-types
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-plugin
@cloudflare/workers-auth
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
ad875fc to
9df5d63
Compare
|
Codeowners approval required for this PR:
Show detailed file reviewers
|
9df5d63 to
9ad2a1e
Compare
…anceRegion exports containers-shared depends on workers-utils at runtime and, with #16877, imports toApiComplianceRegion from it, so a release needs a workers-utils version that has the new exports.
9ad2a1e to
daf92f7
Compare
…anceRegion exports containers-shared depends on workers-utils at runtime and, with #16877, imports toApiComplianceRegion from it, so a release needs a workers-utils version that has the new exports.
daf92f7 to
2d32138
Compare
There was a problem hiding this comment.
Superseded by the review of
4da9e6ea.
This review, of 2d321382
✅ Approved — This is a clean refactor that moves the Container image preparation code into a shared package. The earlier suggestion is resolved and there are no new findings.
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
packages/containers-shared/src/cf-config-images.ts now uses the shared toApiComplianceRegion from @cloudflare/workers-utils/compliance, so the inline copy is gone.
Also checked, with no problems found:
- The
./complianceand./errorssubpath exports of workers-utils. - The export of
prepareContainerImagesForCfConfigfrompackages/containers-shared/index.ts. - The updated call sites in
dev.tsandpreview.ts. - The moved unit tests.
- The updated mock in the Vite plugin's
containers-serverspec.
📝 Documentation: ✅ LGTM
The changeset and the JSDoc for the new operation option are accurate.
Reviewed commit: 2d321382
…anceRegion exports containers-shared depends on workers-utils at runtime and, with #16877, imports toApiComplianceRegion from it, so a release needs a workers-utils version that has the new exports.
2d32138 to
4da9e6e
Compare
…the Vite plugin Move the Vite plugin's Container image preparation for cf config into @cloudflare/containers-shared as prepareContainerImagesForCfConfig, so the test harness can use it instead of a copy.
…ainer image preparation With #16880 underneath, the shared conversion replaces this file's own copy.
4da9e6e to
769e40b
Compare
There was a problem hiding this comment.
Superseded by the review of
bbc01bdb.
This review, of 769e40bd
✅ Approved — Clean refactor that now uses the shared compliance-region helper; no correctness or documentation problems 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 shared prepareContainerImagesForCfConfig, its export, the switch to toApiComplianceRegion() and the updated Vite plugin call sites and tests look correct.
📝 Documentation: ✅ LGTM
The changeset and JSDoc are accurate.
Reviewed commit: 769e40bd
There was a problem hiding this comment.
✅ Approved — No findings. A clean refactor that shares the cf config Container image preparation, and the changeset now also releases the Vite plugin.
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
No issues. The shared prepareContainerImagesForCfConfig, its export, the optional operation passthrough (defaults to "running dev") and the updated Vite plugin call sites and tests are correct.
📝 Documentation: ✅ LGTM
The changeset now bumps both @cloudflare/containers-shared (minor) and @cloudflare/vite-plugin (patch), and its description is accurate.
Reviewed commit: bbc01bdb
petebacondarwin
left a comment
There was a problem hiding this comment.
Codeowners bypass
|
Codeowners approval required for this PR:
Show detailed file reviewers
|
workers-devprod
left a comment
There was a problem hiding this comment.
Codeowners reviews satisfied
Part of RM-31812. #16798 builds on this.
Moves the Vite plugin's Container image preparation for cf config into
@cloudflare/containers-sharedasprepareContainerImagesForCfConfig, so@cloudflare/test-harness(#16798) can call it instead of keeping a copy. It adds an optionaloperation, so the harness's Docker error can say "running tests". The only change for Vite users is that the managed-registry credentials error no longer names the Vite plugin.