Skip to content

Conversation

@arcoraven
Copy link
Contributor

@arcoraven arcoraven commented Mar 23, 2025

Adds a retry (up to 3 attempts) with 20-400ms delay on auth calls


PR-Codex overview

This PR introduces a retryCount option for the authentication request, allowing it to retry fetching team and project data up to a specified number of times. It also adds a helper function to introduce random delays between retries.

Detailed summary

  • Added optional retryCount property to the configuration with a default value of 3.
  • Implemented a retry mechanism for the fetchTeamAndProject function, allowing up to retryCount attempts.
  • Introduced sleepRandomMs function to add random delays between retries.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@arcoraven arcoraven requested a review from a team as a code owner March 23, 2025 04:43
@changeset-bot
Copy link

changeset-bot bot commented Mar 23, 2025

⚠️ No Changeset found

Latest commit: f2d12e8

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Mar 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 23, 2025 2:52pm
4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
login ⬜️ Skipped (Inspect) Mar 23, 2025 2:52pm
thirdweb_playground ⬜️ Skipped (Inspect) Mar 23, 2025 2:52pm
thirdweb-www ⬜️ Skipped (Inspect) Mar 23, 2025 2:52pm
wallet-ui ⬜️ Skipped (Inspect) Mar 23, 2025 2:52pm

@graphite-app
Copy link
Contributor

graphite-app bot commented Mar 23, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@codecov
Copy link

codecov bot commented Mar 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.93%. Comparing base (85a78d4) to head (f2d12e8).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6524   +/-   ##
=======================================
  Coverage   54.93%   54.93%           
=======================================
  Files         881      881           
  Lines       55184    55184           
  Branches     3768     3768           
=======================================
  Hits        30313    30313           
  Misses      24776    24776           
  Partials       95       95           
Flag Coverage Δ
packages 54.93% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 23, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 47.56 KB (0%) 952 ms (0%) 87 ms (+188.15% 🔺) 1.1 s
thirdweb (cjs) 127.31 KB (0%) 2.6 s (0%) 119 ms (+42.19% 🔺) 2.7 s
thirdweb (minimal + tree-shaking) 5.6 KB (0%) 113 ms (0%) 57 ms (+1392.14% 🔺) 169 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 29 ms (+4242.14% 🔺) 39 ms
thirdweb/react (minimal + tree-shaking) 19.34 KB (0%) 387 ms (0%) 75 ms (+1019.48% 🔺) 462 ms

@vercel vercel bot temporarily deployed to Preview – wallet-ui March 23, 2025 14:45 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb-www March 23, 2025 14:45 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground March 23, 2025 14:45 Inactive
@vercel vercel bot temporarily deployed to Preview – login March 23, 2025 14:45 Inactive
@arcoraven arcoraven merged commit 0b8907c into main Mar 23, 2025
30 of 31 checks passed
@arcoraven arcoraven deleted the ph/auth-retry branch March 23, 2025 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants