Commit graph

151 commits

Author SHA1 Message Date
Dario Piotrowicz
8f0c5449f8
Make argsIgnorePattern for no-unused-vars lint rule more strict (#13180) 2026-04-02 14:31:15 +00:00
Dario Piotrowicz
0d7b7b21c1
In the changesets validation, allow private packages to have major bumps (#13040) 2026-04-01 00:47:49 +01:00
Dario Piotrowicz
e200179d8d
Deduplicate codemod logic in C3 and autoconfig by moving it to its own @cloudflare/codemod package (#13102)
Co-authored-by: Pete Bacon Darwin <pete@bacondarwin.com>
2026-03-30 14:14:32 +01:00
Eric Clemmons
47aa3a9fd1
Update workers-builds assignees (#13066) 2026-03-27 17:06:07 +00:00
Somhairle MacLeòid
cf988366e4
Use Vite 8 and Vitest 4 everywhere (#12947) 2026-03-20 14:39:39 +00:00
Somhairle MacLeòid
f3871f8c25
[wrangler] Shard E2E tests across 4 parallel CI jobs (#12941) 2026-03-20 10:01:03 +00:00
Somhairle MacLeòid
aa26784ce1
Convert from ESLint to oxlint, Prettier to oxfmt (#12930) 2026-03-18 16:03:35 +00:00
Pete Bacon Darwin
5d49380ea0
Add lint rule to enforce SHA pinning for third-party GitHub Actions (#12796)
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-03-11 16:24:33 +00:00
Pete Bacon Darwin
a31ee0b0c7
[workers-playground] Migrate from Cloudflare Pages to Cloudflare Workers (#12655)
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-03-11 13:11:10 +00:00
Somhairle MacLeòid
a6ddbdb2b6
Support Vitest 4 in @cloudflare/vitest-pool-workers (#11632)
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-03-10 17:26:47 -04:00
James Opstad
2f57027c84
Add workers-utils back into changesets (#12817) 2026-03-10 10:51:59 +00:00
Pete Bacon Darwin
e3beb2edaa
Remove temporary block on Worker/Pages deployment changesets (#12791) 2026-03-06 19:21:27 +00:00
Dario Piotrowicz
a3f9d1a4bf
Make workers-utils package private (#12658) 2026-03-03 12:59:48 +00:00
emily-shen
dd78eb5afa
skip next c3 tests on forks and cleanup r2 buckets from e2e tests (#12699) 2026-02-27 16:46:54 +00:00
Pete Bacon Darwin
603fe181be
fix: add maxRetries to recursive directory removal for Windows EBUSY (#12629) 2026-02-24 14:10:45 +00:00
James Garbutt
ebdbe52c2b
perf: remove find-up (#12601) 2026-02-19 22:01:58 +00:00
Somhairle MacLeòid
b7841dbbdb
Migrate tests from unstable_dev() to unstable_startWorker() (#12053) 2026-02-18 16:54:33 +00:00
Somhairle MacLeòid
10e2e15406
[workers-playground] Expandable object logging and improved console UI (#12549) 2026-02-18 10:40:15 +00:00
James Garbutt
22c40ba97c
chore: remove rimraf (#11913)
Co-authored-by: Pete Bacon Darwin <pbacondarwin@cloudflare.com>
2026-02-04 15:06:50 +00:00
emily-shen
60eaf16da4
[explorer] add the UI for the dev resource explorer (#12288) 2026-02-04 11:27:14 +00:00
Victor Berchet
86c6515401
chore: update dependabot changeset to not contain the "chore:" prefix (#12219) 2026-01-29 14:21:26 +00:00
Edmund Hung
7400cd3f78
chore: skip alert if changeset fails to create PR (#11703) 2026-01-26 13:11:18 +00:00
emily-shen
2aa769c873
Add a new linting rule to catch unsafe exec usage (#11902)
* add lint rule for command injection

* add agents.local.md to gitignore

* PR feedback

* Fix any linting errors

* changeset

* fix tooling tests
2026-01-22 10:55:27 +00:00
emily-shen
0b249a103e
Notify when security advisories are submitted to workers-sdk (#11916)
* Notify when security advisories are submitted to workers-sdk

* Use repository_advisory event instead of security_advisory

* add description to body

* Add devprod status bot to COFS exceptions
2026-01-16 13:38:01 +00:00
Pete Bacon Darwin
39465da974
chore: allow quick-edit worker deployments via changesets (#11941)
The quick-edit deployment does not hit the production dashboard until a
change is made to the internal dashboard project, so it is safe to
deploy this worker via the changeset-triggered deployment process.
2026-01-16 12:17:19 +00:00
emily-shen
bd224e0276
misc CI cleanup (#11935) 2026-01-15 11:52:57 +00:00
Pete Bacon Darwin
c17e971af0
chore: add CI validation for external package dependencies (#11898)
* chore: add CI validation for external package dependencies

Add a validation check that ensures packages explicitly declare their
external (non-bundled) dependencies to prevent dependency chain poisoning.

- Add tools/deployments/validate-package-dependencies.ts validation script
- Add check:package-deps npm script and integrate into pnpm check
- Create scripts/deps.ts allowlists for packages with external dependencies:
  - miniflare (12 deps)
  - @cloudflare/vite-plugin (8 deps)
  - @cloudflare/vitest-pool-workers (7 deps)
  - @cloudflare/kv-asset-handler (1 dep)
  - @cloudflare/workers-editor-shared (1 dep)
- Update CONTRIBUTING.md with documentation on managing dependencies
- Add unit tests for the validation logic (22 tests)

* fix(kv-asset-handler): bundle mime dependency instead of keeping it external

Move mime from dependencies to devDependencies so it gets bundled into
the distributable. This follows the project's practice of bundling
dependencies to prevent dependency chain poisoning.

* fix(miniflare): bundle acorn and acorn-walk dependencies

Move acorn and acorn-walk from dependencies to devDependencies so they
get bundled into the distributable. These are pure JavaScript parsing
libraries with no special runtime requirements, so they can be safely
bundled.

* chore: bundle more dependencies to reduce supply chain risk

Move 13 dependencies from dependencies to devDependencies so they get
bundled into the distributed packages rather than being installed as
transitive dependencies by users.

Packages updated:
- miniflare: bundle exit-hook, glob-to-regexp, stoppable, youch
- @cloudflare/vitest-pool-workers: bundle birpc, devalue, get-port, semver
- @cloudflare/vite-plugin: bundle @remix-run/node-fetch-server, defu,
  get-port, picocolors, tinyglobby

Also updates the EXTERNAL_DEPENDENCIES comments to explain WHY each
remaining dependency cannot be bundled (native binaries, optional native
bindings, runtime resolution needs) rather than just describing how
they are used.

* fix(vitest-pool-workers): bundle dependencies that were moved to devDependencies

* chore: add changeset for dependency bundling

* fixup: remove unnecessary stuff from CONTRIBUTING
2026-01-14 21:11:35 +00:00
lrapoport-cf
a50c01d2c9
Update pull_request_template.md (#11654)
* Update pull_request_template.md

* Update .github/pull_request_template.md

Co-authored-by: Pete Bacon Darwin <pete@bacondarwin.com>

* Update PR description validation

* Fix formatting

* Update snapshots

---------

Co-authored-by: Pete Bacon Darwin <pete@bacondarwin.com>
2026-01-09 16:22:52 +00:00
Victor Berchet
5e89bd1662
refactor: consistenly import expect from vitest (#11851)
* refactor: consistenly import expect from vitest

* fixup!
2026-01-09 15:15:40 +00:00
Matt ‘TK’ Taylor
7cf365e74d
Assign Jesse to workers ai issues (#11798) 2026-01-05 21:42:07 +00:00
Victor Berchet
be5ef57244
refactor: consistenly import expect from vitest (#11795) 2026-01-05 14:54:25 +01:00
Victor Berchet
28d269a2ed
chore: add wrangler to the workerd bump changeset (#11792) 2026-01-05 11:40:32 +01:00
Edmund Hung
7b4d45104f
chore: update workflows-shared deploy config (#11746)
* chore: update workflows-shared deploy config

* fix test
2025-12-22 22:53:13 +00:00
Matt Kane
e3c11202c2
chore: remove v3 backport automation and PR validation (#11721)
- Delete .github/workflows/open-v3-maintenance-prs.yml workflow
- Delete tools/deployments/open-v3-pr.ts script
- Remove v3 backport section from PR template
- Remove v3 backport validation from validate-pr-description.ts
- Update tests to reflect removal of v3 backport validation

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2025-12-19 15:11:12 +00:00
emily-shen
34e31b313c
Update container EM assignment in auto-assign script (#11644) 2025-12-15 17:49:58 +00:00
Pete Bacon Darwin
97c53a2f5f
add workers vpc assignees (#11600) 2025-12-11 11:09:20 +00:00
Pete Bacon Darwin
40b1d14dc0
ci: ban landing changes that could lead to a Worker/Pages deployment from workers-sdk (#11591) 2025-12-10 15:59:24 +00:00
Victor Berchet
2d9a30c843
Support <PACKAGE_NAME> as a placeholder for the name in package.jso… (#11560) 2025-12-09 11:24:25 +01:00
Dario Piotrowicz
caf94dbfff
chore: add eslint rule for requiring node: prefix in node imports (#11411) 2025-11-26 15:47:03 +00:00
Pete Bacon Darwin
8ecabd8170
ci: use the correct npm version for releases (#11423)
Trusted publishing requires the installed npm to be at least 11.5.1.
We get this automatically via Node 24.
2025-11-26 12:07:10 +00:00
Pete Bacon Darwin
a897d20aac
ci: make the release failure alert resilient to missing DEPLOYMENT_STATUS (#11422)
* ci: make the release failure alert resilient to missing `DEPLOYMENT_STATUS`

If the npm release fails then the non-npm release is not even attempted.
In which case the `DEPLOYMENT_STATUS` is empty, which was causing the JSON parsing to fail and no alert to be sent.

* Apply suggestion from @edmundhung

---------

Co-authored-by: Edmund Hung <edmund@cloudflare.com>
2025-11-26 11:13:38 +00:00
Pete Bacon Darwin
17cea9c815
ci: fix the cleanup script which stopped working for Pages projects (#11401)
Something about the `per_page` parameter seems to cause the listing of Pages projects to respond with a 400 Bad Request. Removing it and going with the default seems fine.
2025-11-25 10:38:12 +00:00
Victor Berchet
1acd43d044
fix the e2e retry logic (#11399) 2025-11-25 10:53:59 +01:00
Pete Bacon Darwin
eb9fdafcdf
ci: ban major bump changesets in the repo (#11327) 2025-11-18 16:08:24 +00:00
Pete Bacon Darwin
40ce5f9c61
test: add more retries to e2e tests (#11320)
We will now retry wrangler e2e tests up to 4 times.

Also we batch them up so that we don't necessarily retry the previously failed test immediately, since this could actually be a source of the flake.
2025-11-18 13:19:58 +00:00
Pete Bacon Darwin
0a0a7252a4
Test c3 breakage (#11306)
* change basic actions to use single cpu runners

* rename C3 e2e job to distinguish it from wrangler e2e

* move creation of the worker needed for C3 e2e into the test

* simplify c3 e2e matrix; skipping yarn and experimental jobs

* split c3 e2e tests

* improve resilience of snapshots to time-ago messages
2025-11-17 11:10:45 +00:00
Somhairle MacLeòid
4be581af7d
Use eslint flat file config (#11207)
* Use eslint flat file config

* prettify

* fix

* address some comments
2025-11-07 13:15:59 +00:00
Somhairle MacLeòid
305d7bfff9
Full autoconfig flow for some projects (#11164)
* Initial autoconfig

* further fixes

* Use moduleResolution: bundler

* remove directory

* Update packages/wrangler/src/package-manager.ts

* add tests

* fix tests

* Update packages/wrangler/src/deployment-bundle/run-custom-build.ts

Co-authored-by: Dario Piotrowicz <dario@cloudflare.com>

* Update packages/wrangler/src/autoconfig/run.ts

Co-authored-by: Dario Piotrowicz <dario@cloudflare.com>

* Create neat-worms-refuse.md

* fix windows tests

---------

Co-authored-by: Dario Piotrowicz <dario@cloudflare.com>
2025-11-05 12:24:45 +00:00
James Opstad
707e07e7a7
Remove tl auto-assignment for Vite plugin (#11130) 2025-10-30 10:30:11 +00:00
Pete Bacon Darwin
1e43d3f9f5
Add Robbie Sapunarich to the workers-builds issue auto-assignment (#11073) 2025-10-29 16:04:26 +00:00