Skip to content

Retry bazelflare calls for about 40 seconds, not 3 - #8838

Merged
danlapid merged 1 commit into
mainfrom
dlapid/bazelflare-retries
Nov 24, 2026
Merged

danlapid merged 1 commit into
mainfrom
dlapid/bazelflare-retries

Conversation

@danlapid

@danlapid danlapid commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

A remote call that still fails UNAVAILABLE after its retries aborts the whole build, even with --keep_going. Bazel's default 5 retries, from 100 ms doubling, give up after about 3 s. A bazelflare shard that's busy with a burst of actions can refuse calls for longer, and when that happened a CI test run failed outright (//src/workerd/tests:bench-jsstring, Exit 34).

This sets --remote_retries=10 --remote_retry_max_delay=10s for the bazelflare config, which rides out about 40 s. Bazel retries only transient errors such as UNAVAILABLE, so any other failure still surfaces at once.

Tested: bazel info --config=bazelflare --announce_rc shows the new flags applied.

🤖 Generated with Claude Code

@danlapid
danlapid marked this pull request as ready for review November 23, 2026 23:02
@danlapid
danlapid requested review from a team as code owners November 23, 2026 23:02

@clanky-the-clanker clanky-the-clanker Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Superseded by the review of bda0ff3a.

This review, of dc7f1c41

✅ Approved — Small, config-only change to bazelflare retry settings with no findings.

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


✅ All checks passed

📋 Code reviewer: ✅ LGTM

No issues found.


Reviewed commit: dc7f1c41

A remote call that still fails UNAVAILABLE after Bazel's retries aborts the whole build, even with
--keep_going. The default 5 retries, starting at 100 ms and doubling, give up after about 3 s, while
a bazelflare shard busy with a burst of actions can refuse calls for longer. Retry 10 times with up
to 10 s between attempts, about 40 s in all. Only transient errors such as UNAVAILABLE are retried,
so other failures still surface at once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@danlapid
danlapid force-pushed the dlapid/bazelflare-retries branch from dc7f1c4 to bda0ff3 Compare November 23, 2026 23:05
@danlapid danlapid changed the title Retry bazelflare calls for about 3 minutes, not 3 seconds Retry bazelflare calls for about 40 seconds, not 3 Nov 23, 2026

@clanky-the-clanker clanky-the-clanker Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Approved — Small, config-only change to bazelflare retry settings with no findings.

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


✅ All checks passed

📋 Code reviewer: ✅ LGTM

No issues found.


Reviewed commit: bda0ff3a

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.78%. Comparing base (cf1c935) to head (bda0ff3).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8838      +/-   ##
==========================================
- Coverage   68.05%   67.78%   -0.28%     
==========================================
  Files         848      848              
  Lines      219731   215532    -4199     
  Branches    32508    32508              
==========================================
- Hits       149536   146091    -3445     
+ Misses      50992    50238     -754     
  Partials    19203    19203              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 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.

@danlapid
danlapid merged commit 5e21d77 into main Nov 24, 2026
24 checks passed
@danlapid
danlapid deleted the dlapid/bazelflare-retries branch November 24, 2026 03:25
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.

2 participants