sync local containers with latest workerd#9576
Conversation
🦋 Changeset detectedLatest commit: 4366b16 The changes in this PR will be included in the next version bump. 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 |
create-cloudflare
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-editor-shared
wrangler
commit: |
6550604 to
020482a
Compare
8235ba0 to
c172c0e
Compare
|
@emily-shen what about merging this PR as is? We could discuss some points and create follow-up PRs if need be:
|
c172c0e to
d740a64
Compare
looks like totally fine to punt on external DOs, don't think its a big deal. |
d740a64 to
838602f
Compare
|
@emily-shen I renamed for the env var to I have tried to address the config thing but <rant>there is nothing that bothers me more that trying to understand code w/o comments - we have 10 different config types, most have no comments, function have no comments. There is probably a good reason to have all those different objects and functions but I will not spend more time trying to reverse engineering the code - I think we should do a better job commenting our codebase!</rant> |
838602f to
a4ea561
Compare
|
blocked pending the next workerd release which has a bugfix. |
|
Failed to automatically backport this PR's changes to Wrangler v3. Please manually create a PR targeting the Depending on your changes, running |
c55918b to
e33be9f
Compare
| import assert from "assert"; | ||
| import { readFileSync } from "fs"; | ||
| import fs from "fs/promises"; | ||
| import { platform } from "node:os"; |
Co-authored-by: emily-shen <69125074+emily-shen@users.noreply.github.com>
e33be9f to
4366b16
Compare
…seba/containers_scope * 'main' of ssh://github.com/cloudflare/workers-sdk: (31 commits) Refactor preview mode and ensure compatibility with Vite 7 (cloudflare#9647) Block requests vulnerable to opennext vulnerability (cloudflare#9635) Add test for cloudchamber buildAndMaybePush (cloudflare#9638) chore: remove redundant binding guide superseded by internal docs (cloudflare#9648) add changeset to trigger release of workers/pages projects (cloudflare#9649) Add @handler to Python templates. (cloudflare#9305) Migrate from unbuild to obuild (cloudflare#9243) Version Packages (cloudflare#9650) fix changeset (cloudflare#9651) containers: Default scheduling policy should be the default (cloudflare#9621) Rename Mixed Mode to remote proxy/remote bindings depending on context (cloudflare#9586) Version Packages (cloudflare#9632) Correctly mock out getDockerImageDigest for testing buildAndMaybePush (cloudflare#9636) [C3] Bump create-remix from 2.16.6 to 2.16.8 in /packages/create-cloudflare/src/frameworks (cloudflare#9525) Remove "Cloudchamber" from user facing error messages (cloudflare#9628) sync local containers with latest workerd (cloudflare#9576) Bump the workerd-and-workers-types group with 2 updates (cloudflare#9591) [C3] Bump gatsby from 5.14.3 to 5.14.4 in /packages/create-cloudflare/src/frameworks (cloudflare#9524) [C3] Bump create-react-router from 7.6.1 to 7.6.2 in /packages/create-cloudflare/src/frameworks (cloudflare#9526) [C3] Bump create-docusaurus from 3.8.0 to 3.8.1 in /packages/create-cloudflare/src/frameworks (cloudflare#9527) ...
The first commit populate the
container : ContainerOptionsinDurableObjectNamespace. Encoding the capnp struct fails for now as the the version ofworkerdused by miniflare does not support containers. Will need to update the generate code after theworkerdupdate.The second commit adds a
container_engineconfiguration to wrangler. It should be either a unix socketunix:/path/to/socketor a full configuration. Note that as @danlapid mentioned, win32 is not supported ATM.Edit:
I added 2 more fixup! commits.
fixup! do not add container to DurableObjectNamespaceDesignatorfixes the first commit.fixup! socket address default to WRANGLER_DOCKER_SOCKETreads the Socket address from WRANGLER_DOCKER_SOCKET when no value is specified in the wrangler config file. Open question: do we want to keep the config file option or always use the env var? Also note thatMiniflarestill uses the platform default when no value is provided (for people usingMiniflaredirectly)Edit:
WRANGLER_DOCKER_SOCKETrenamed toWRANGLER_DOCKER_HOSTin the review feedback fixup