fix(testing): add retry logic for testing token fetch on 429/5xx#8138
fix(testing): add retry logic for testing token fetch on 429/5xx#8138jacekradko wants to merge 4 commits intomainfrom
Conversation
🦋 Changeset detectedLatest commit: 131cff5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
@clerk/agent-toolkit
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/dev-cli
@clerk/expo
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@clerk/localizations
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdded an internal 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
Summary
@clerk/testingfetchEnvVarsfunction callstestingTokens.createTestingToken()without retry handling, causing E2E test failures when FAPI returns 429 (Too Many Requests)retryableClerkClientused in integration testsretryAfterand exponential backoff delay paths are consistently capped byMAX_RETRY_DELAY_MSTest plan
@clerk/testingbuilds successfullySummary by CodeRabbit