Repository navigation
[miniflare] Fix Durable Object RPC test lock registration race - #17303
Conversation
|
|
Codeowners approval required for this PR:
Show detailed file reviewers |
|
LGTM |
There was a problem hiding this comment.
Superseded by the review of
b2a053c6.
This review, of a6e92b99
✅ Approved — This only changes a test, and it correctly fixes the lock-registration race. No issues found.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
🔒 Security: ✅ LGTM
Test-only change with no security impact.
📋 Code Quality: ✅ LGTM
No issues found. The retry loop with vi.waitFor and the separate check on the blocked RPC's result together remove the ordering race.
📝 Documentation: ✅ LGTM
No documentation changes needed for a test-only fix.
Reviewed commit: a6e92b99
@cloudflare/autoconfig
@cloudflare/build-output-utils
@cloudflare/cli-shared-helpers
@cloudflare/codemods
@cloudflare/config
@cloudflare/containers-shared
create-cloudflare
@cloudflare/deploy-helpers
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-functions
@cloudflare/pages-shared
@cloudflare/runtime-types
@cloudflare/test-server
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-plugin
@cloudflare/workers-auth
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
a6e92b9 to
b2a053c
Compare
There was a problem hiding this comment.
✅ Approved — This only changes a test, and it correctly fixes the lock-registration race. No issues found.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
🔒 Security: ✅ LGTM
Test-only change with no security impact.
📋 Code Quality: ✅ LGTM
No issues found. The retry loop with vi.waitFor and the separate check on the blocked RPC's result together remove the ordering race.
📝 Documentation: ✅ LGTM
No documentation changes needed for a test-only fix.
Reviewed commit: b2a053c6 — same changes as a6e92b99, so this is that commit's review (no new review was run; line numbers are as of a6e92b99)
workers-devprod
left a comment
There was a problem hiding this comment.
Codeowners reviews satisfied
The
Durable Object RPC calls complete when unblockedtest could send its release RPC before the blocked operation registered its lock. If release arrived first, it did nothing and the test later timed out. This is a plausible cause of the macOS failure on #17250.Have the test Durable Object report whether it released the lock, and retry the release within a five-second registration window. Independently assert that the blocked RPC returns the expected result. This only changes the test, not Miniflare runtime behavior or Undici.
Local validation on Node.js 22.23.4: all 15 tests in
test/plugins/do/index.spec.tspassed; changed-file formatting and lint passed.Note
This is a contribution from Codex.