[wrangler] Add deprecation warning for queue delivery_delay#12279
[wrangler] Add deprecation warning for queue delivery_delay#12279
Conversation
🦋 Changeset detectedLatest commit: a27b9f4 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 |
|
Claude finished @penalosa's task —— View job Changeset Review
✅ All changesets look good The changeset for
The changeset properly documents that |
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: |
|
@claude can you make checks and tests pass |
|
Claude finished @penalosa's task —— View job Todo List:
Changes Made:
The changes have been committed and pushed to fix the failing checks and tests. The warning message now aligns with the test expectation, and the changeset description has been improved per review feedback. |
120fcbd to
bfb187a
Compare
|
@claude the formatting needs fixing - perhaps by running |
|
Claude finished @petebacondarwin's task —— View job Fixing Formatting IssuesTodo List:
The git working tree is clean, which means there are currently no uncommitted formatting issues. However, since you mentioned formatting needs fixing, there might be formatting violations that would be caught by CI checks. I don't have permission to run pnpm fixThis will auto-fix any linting and formatting issues, then you can commit and push the changes. Alternatively, you could add the |
bfb187a to
a4530f1
Compare
Co-authored-by: Victor Berchet <victor@suumit.com>
Co-authored-by: Victor Berchet <victor@suumit.com>
…alidate-config.test.ts Co-authored-by: Victor Berchet <victor@suumit.com>
- Align warning message with test expectation - Update changeset description per review feedback Co-authored-by: Somhairle MacLeòid <penalosa@users.noreply.github.com>
a4530f1 to
a27b9f4
Compare
|
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
|
The changeset description itself is well-written - it explains the issue (setting was silently having no effect), the change (adds deprecation warning), and guidance for users (use |
| `); | ||
| }); | ||
|
|
||
| it("should warn if delivery_delay is set on a queue producer", () => { |
There was a problem hiding this comment.
🔴 Test uses bare expect without destructuring from test context, causing ReferenceError at runtime
The new test at line 3701 uses () => { as its callback, but expect is never imported from vitest (line 3 imports only describe, it, test, vi) and the vitest config does not set globals: true. Every other test in this file correctly destructures expect from the test context (e.g. ({ expect }) => {). This means the test will throw ReferenceError: expect is not defined at runtime, so the deprecation warning behavior is never actually verified. This also violates the explicit AGENTS.md rule: "expect must come from test context — never import { expect } from 'vitest'".
| it("should warn if delivery_delay is set on a queue producer", () => { | |
| it("should warn if delivery_delay is set on a queue producer", ({ expect }) => { |
Was this helpful? React with 👍 or 👎 to provide feedback.
Part of #10286.
The
delivery_delaysetting in[[queues.producers]]was silently having no effect since PR #10288 removed the functionality that used it. This PR adds a deprecation warning when the setting is used, informing users that queue-level settings should be configured usingwrangler queues updateinstead.Changes
validateQueueBindingfunction whendelivery_delayis setwrangler queues updateinstead, which is already documented.