Skip to content

feat(wrangler): add binding overrides to test harness#14446

Merged
edmundhung merged 7 commits into
mainfrom
edmundhung/harness-binding-overrides
Jun 30, 2026
Merged

feat(wrangler): add binding overrides to test harness#14446
edmundhung merged 7 commits into
mainfrom
edmundhung/harness-binding-overrides

Conversation

@edmundhung

@edmundhung edmundhung commented Jun 26, 2026

Copy link
Copy Markdown
Member

Fixes n/a.


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: I will update the docs later

A picture of a cute animal (not mandatory, but encouraged)


Open in Devin Review
@changeset-bot

changeset-bot Bot commented Jun 26, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 08c60ff

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

This PR includes changesets to release 3 packages
Name Type
wrangler Minor
@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 26, 2026
@workers-devprod workers-devprod requested review from a team and ascorbic and removed request for a team June 26, 2026 20:35
@workers-devprod

workers-devprod commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler
Show detailed file reviewers
@ask-bonk

ask-bonk Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Both 2026-05-29 (10 chars) and 2026-05-29.png (sliced to 10) resolve to the same date. Consistent.

The PR is well-implemented. The core logic correctly merges binding overrides via inputBindings precedence in getBindings, the overrides only apply to configPath workers (sensible), and tests cover the override, reset, and missing-target cases. The fixtures and types are consistent.

I reviewed PR #14446 thoroughly: the binding override mechanism (bindingOverridesservice bindings → inputBindings taking precedence in getBindings), the new getExport() API, the merge ordering against vars/secrets/config bindings, the reset flow, the fixture changes, and the date-slice change in the web worker. I found no logic bugs, security issues, backward-compatibility violations, or incorrect API behavior. The changes are well-tested (override, reset reload, missing-target error) and internally consistent.

LGTM

github run

@github-actions

Copy link
Copy Markdown
Contributor

✅ All changesets look good

@pkg-pr-new

pkg-pr-new Bot commented Jun 26, 2026

Copy link
Copy Markdown
@cloudflare/autoconfig

npm i https://pkg.pr.new/@cloudflare/autoconfig@14446

create-cloudflare

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

@cloudflare/deploy-helpers

npm i https://pkg.pr.new/@cloudflare/deploy-helpers@14446

@cloudflare/kv-asset-handler

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

miniflare

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

@cloudflare/pages-shared

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

@cloudflare/unenv-preset

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

@cloudflare/vite-plugin

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

@cloudflare/vitest-pool-workers

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

@cloudflare/workers-auth

npm i https://pkg.pr.new/@cloudflare/workers-auth@14446

@cloudflare/workers-editor-shared

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

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@14446

wrangler

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

commit: 08c60ff

devin-ai-integration[bot]

This comment was marked as resolved.

@petebacondarwin petebacondarwin requested review from petebacondarwin and removed request for ascorbic June 29, 2026 09:45
@edmundhung edmundhung force-pushed the edmundhung/harness-binding-overrides branch from 4bc0083 to ef732c6 Compare June 29, 2026 13:38
@edmundhung edmundhung force-pushed the edmundhung/harness-binding-overrides branch from 90311dd to ede3459 Compare June 29, 2026 21:32

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Devin Review found 0 new potential issues.

Open in Devin Review

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Devin Review found 0 new potential issues.

Open in Devin Review

@petebacondarwin petebacondarwin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A couple of nits but this looks good to me.

Comment thread .changeset/tiny-oranges-sip.md Outdated
Comment thread packages/wrangler/src/api/test-harness.ts
Comment thread packages/wrangler/src/api/test-harness.ts

@workers-devprod workers-devprod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Codeowners reviews satisfied

@github-project-automation github-project-automation Bot moved this from Untriaged to Approved in workers-sdk Jun 30, 2026

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Devin Review found 0 new potential issues.

Open in Devin Review
@edmundhung edmundhung merged commit e0cc2cb into main Jun 30, 2026
62 checks passed
@edmundhung edmundhung deleted the edmundhung/harness-binding-overrides branch June 30, 2026 11:34
@github-project-automation github-project-automation Bot moved this from Approved to Done in workers-sdk Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants