Skip to content

The Rust cache stops paying for uploads R2 refuses - #8763

Closed
kixelated wants to merge 4 commits into
mainfrom
quest/m0/ci/mbx-failed-puts
Closed

kixelated wants to merge 4 commits into
mainfrom
quest/m0/ci/mbx-failed-puts

Conversation

@kixelated

@kixelated kixelated commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

Records the first scheduled Nightly after #8631's MBX_GC_MAX_SIZE=20GiB, the ten nights since, and plans the mbx bump that adopts upstream's fix. No CI change.

Results (Nightly 43601796176 vs 43250182795, same 12 h window)

  • PutObject 163,302 → 131,293 (−20%); 412s 151,043 → 86,387 (−43%).
  • Hits rose in 24 of 38 Rust-cache jobs (doctest 165 → 421), misses fell in 29.
  • 20 Linux jobs still spend the full 20 GiB, nearly all on prefetch, and 25 still log "cached action is missing blob".
  • 12 jobs lost hits, mostly to hundreds of "not looked up" units (features, x11, moxygen, Rust bench targets), a cause the budget does not explain; noted in the Plan to investigate.

Later nights (2026-11-15 to 2026-11-24)

PutObject 412s per UTC day ran 52,759 to 111,416 (2026-11-15: 76,069), against 151,043 on 2026-11-12: the drop held, and roughly 40% of the 412s are gone. Every scheduled Nightly on main concluded failure over that span, as they did before #8631. The table is in the quest's Plan.

Waits cleared

  • jdx/mr-boxington#951 (prefetch capped at half the budget) shipped in v1.31.0 on 2026-11-24; its notes list require_equals #951 under Fixed. mbx-prefetch-cap's wait is removed, and mbx-failed-puts now lists it under ## Required instead.
  • The 2026-11-15 Nightly confirmed the numbers (above).

Waiting

  • Maintainer: whether this PR is still worth landing. The newer decision in moq-dev/moq#9514 (2026-11-23, its mbx-b2 quest) moves the Rust cache to Backblaze B2, where puts are free and mbx sends no conditional ones, folds this quest in, and closes this PR when mbx-b2 lands (rejected there: finishing it on R2 first). So the R2 412 cost this quest chases is moot, and I did not bump mbx here. What still matters is the 1.31.0 bump itself: the prefetch cap keeps restores from being refused (hits), independent of the storage backend, and it lives only in this PR's mbx-prefetch-cap follow-up.
    • Options: (a) land this PR as is, so mbx-prefetch-cap reaches main and the bump runs before or alongside mbx-b2; (b) keep it draft and close it when mbx-b2 lands, carrying the 1.31.0 bump into mbx-b2's Plan; (c) close it now and open a one-line bump to 1.31.0 directly.
    • Recommendation: (c). The bump is a one-line, backend-independent win (also drops 1.30's cross-checkout incremental seeding that could break links), and measuring 412s on a bucket about to be deleted buys nothing. quest: plan moving the Rust and Nix caches to Backblaze B2 #9514 should then drop its "closes The Rust cache stops paying for uploads R2 refuses #8763" step or keep it as is (closing an already closed PR is a no-op).

Decisions

Follow-ups

Validation

Counts from Cloudflare GraphQL r2OperationsAdaptiveGroups (bucket mbx-moq-dev, PutObject by day and response status, 2026-11-12 to 2026-11-24, with the maintainer's wrangler login) and every job log's mbx[cache] summary for the two compared runs. v1.31.0's release notes checked for #951. quest check reports no quest document errors (only the repository-wide stale skill stubs). Nothing posted upstream.

Public API: none. Wire: none.

Caused by

None: measurement only.

Models

Size: S
Implementer: Claude Code, claude-opus-5-5, unknown effort
Implementer: Claude Code, claude-opus-5-5, unknown effort (iterate, S)

🤖 Generated with Claude Code

(Written by Claude Opus 5.5)

kixelated and others added 3 commits November 14, 2026 11:54
…he prefetch-cap bump

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…951

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kixelated

Copy link
Copy Markdown
Collaborator Author

Maintainer decision (2026-11-24, /quest-run): ✅ close this draft and bump mbx to 1.31.0 in its own PR (rejected: keep as a draft until mbx-b2 lands; land it). #9514 moves the Rust cache to Backblaze B2, where uploads are free and mbx sends no conditional puts, so cutting R2's refused puts further buys nothing. The 1.31.0 bump (jdx/mr-boxington#951's prefetch cap) still helps on any storage and lands separately. The R2 numbers this draft gathered stay in its branch for reference.

(Written by Claude Opus 5.5)

@kixelated kixelated closed this Nov 24, 2026
kixelated added a commit that referenced this pull request Nov 25, 2026
mbx-failed-puts was already deleted and #8763 closed by #9558; link
nix-nar-stream directly and accept pre-switch cache.yml push failures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant