Skip to content

Synchronize JWKS cancellation tests - #215

Merged
kjanat merged 1 commit into
masterfrom
fix/jwks-cancellation-213
Oct 30, 2026
Merged

kjanat merged 1 commit into
masterfrom
fix/jwks-cancellation-213

Conversation

@kjanat

@kjanat kjanat commented Oct 30, 2026

Copy link
Copy Markdown
Owner

The shared-request cancellation test starts two asynchronous token-signing operations, then cancels after the first HTTP hit. That does not establish that both verifications have joined the resolver, so a legitimate second request can fail its one-request assertion under load.

Prepare the token and JWKS body before the scenario, observe both calls entering the real resolver, and hold the real HTTP response behind a promise until cancellation has been checked. Add the complementary case proving that cancellation of the sole waiter permits a later verification to start a second request. No library runtime changes.

Fixes #213. The independent stress-job setup fix is #214; both PRs target master and can merge independently.

Validation:

  • Full remote-JWKS suite: 79 passed.
  • Cancellation-focused randomized/concurrent run, 100 repetitions with seed 1599345495: 700 passed, zero failures.
  • Mutation check: deliberately omitting the uncancellable waiter's registration makes the shared-request test fail; restored source passes.
  • Package build, typecheck:other, Biome, dprint and diff checks passed.

The full scheduled stress suite was not repeated locally.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T15:43:54.474451Z a024728 PR opened
🔒 Security Review ✅ Completed 2026-10-30T15:44:36.604966Z a024728 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pkg-pr-new

pkg-pr-new Bot commented Oct 30, 2026

Copy link
Copy Markdown

commit: a024728

@codecov

codecov Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
micro509 a024728 Commit Preview URL

Branch Preview URL
Oct 30 2026, 03:45 PM

@kjanat kjanat self-assigned this Oct 30, 2026
@kjanat
kjanat merged commit 714606f into master Oct 30, 2026
22 checks passed
@kjanat
kjanat deleted the fix/jwks-cancellation-213 branch October 30, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Synchronize JWKS cancellation tests

1 participant