Skip to content

add tag, cleanup containers at end of dev, rebuild hotkey, lots of refactoring etc. etc. #9605

Merged
CarmenPopoviciu merged 13 commits intomainfrom
emily/add-tag
Jun 19, 2025
Merged

add tag, cleanup containers at end of dev, rebuild hotkey, lots of refactoring etc. etc. #9605
CarmenPopoviciu merged 13 commits intomainfrom
emily/add-tag

Conversation

@emily-shen
Copy link
Contributor

@emily-shen emily-shen commented Jun 13, 2025

This PR:

  • moves building into wrangler (called in wrangler, actual code is in containers-shared) DEVX-1991
  • tears out the container plugin from miniflare, and any container config
  • Adds a uuid as a tag for images built during dev. Previously we defaulted to latest, which can get into a weird state.
  • add rebuild hotkey, which resets the build id and cleans up containers from the previous build. (DEVX-1943)
  • deletes containers at the end of dev session (DEVX-1965)

Sorry this PR does so many things :(

It's been tested manually - e2es to follow up.


  • Tests
    • TODO (before merge)
    • Tests included
    • Tests not necessary because: will do as followup
  • Wrangler / Vite E2E Tests CI Job required? (Use "e2e" label or ask maintainer to run separately)
    • I don't know
    • Required
    • Not required because:
  • Public documentation
    • TODO (before merge)
    • Cloudflare docs PR(s):
    • Documentation not necessary because: wip feature
  • Wrangler V3 Backport
    • TODO (before merge)
    • Wrangler PR:
    • Not necessary because: new feature

@changeset-bot
Copy link

changeset-bot bot commented Jun 13, 2025

🦋 Changeset detected

Latest commit: 30c7f91

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@cloudflare/containers-shared Patch
miniflare Patch
wrangler Patch
@cloudflare/pages-shared Patch
@cloudflare/vite-plugin Patch
@cloudflare/vitest-pool-workers Patch

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

@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Jun 13, 2025
@workers-devprod workers-devprod added the e2e Run wrangler + vite-plugin e2e tests on a PR label Jun 13, 2025
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jun 13, 2025

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@9605

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@9605

miniflare

npm i https://pkg.pr.new/miniflare@9605

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@9605

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@9605

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@9605

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@9605

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@9605

wrangler

npm i https://pkg.pr.new/wrangler@9605

commit: 30c7f91

@emily-shen emily-shen force-pushed the emily/add-tag branch 2 times, most recently from 28dbd89 to 23649aa Compare June 16, 2025 16:43
@emily-shen emily-shen changed the base branch from main to vicb/container-in-do June 17, 2025 08:41
@emily-shen emily-shen changed the base branch from vicb/container-in-do to main June 17, 2025 08:41
@emily-shen emily-shen changed the base branch from main to vicb/container-in-do June 17, 2025 08:47
@emily-shen emily-shen force-pushed the vicb/container-in-do branch from e33be9f to 4366b16 Compare June 17, 2025 15:59
Base automatically changed from vicb/container-in-do to main June 17, 2025 16:19
@emily-shen emily-shen force-pushed the emily/add-tag branch 4 times, most recently from 796e407 to 43ba1f8 Compare June 17, 2025 17:18
@emily-shen emily-shen changed the title clean up containers at the end of a dev session add tag, cleanup containers at end of dev, rebuild hotkey, lots of refactoring etc. etc. Jun 17, 2025
@emily-shen emily-shen marked this pull request as ready for review June 18, 2025 08:32
@emily-shen emily-shen requested a review from a team as a code owner June 18, 2025 08:32
Copy link
Contributor

@vicb vicb left a comment

Choose a reason for hiding this comment

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

LGTM, added a few minor comments

@github-project-automation github-project-automation bot moved this from Untriaged to Approved in workers-sdk Jun 18, 2025
@github-actions
Copy link
Contributor

Failed to automatically backport this PR's changes to Wrangler v3. Please manually create a PR targeting the v3-maintenance branch with your changes. Thank you for helping us keep Wrangler v3 supported!

Depending on your changes, running git rebase --onto v3-maintenance main emily/add-tag might be a good starting point.

Notes:

  • your PR branch should be named v3-backport-9605
  • add the skip-v3-pr label to the current PR to stop this workflow from failing

CarmenPopoviciu and others added 3 commits June 19, 2025 16:07
…r.ts

Co-authored-by: Victor Berchet <victor@suumit.com>
Co-authored-by: Carmen Popoviciu <cpopoviciu@cloudflare.com>
@CarmenPopoviciu CarmenPopoviciu merged commit 17d23d8 into main Jun 19, 2025
20 of 21 checks passed
@github-project-automation github-project-automation bot moved this from Approved to Done in workers-sdk Jun 19, 2025
@CarmenPopoviciu CarmenPopoviciu deleted the emily/add-tag branch June 19, 2025 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

e2e Run wrangler + vite-plugin e2e tests on a PR

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants