Reconcile writes only differences #84

Stängd
öppnade 2026-10-08 21:12:32 +00:00 av supernaut · 0 kommentarer
Ägare

What

Each run re-sends quota membership, the org-create flag and has_actions for every user and repo, one call at a time.

Why

Requests grow with users times repos. It is fine today. It will outgrow the 5 minute timer at a few thousand users.

Failing case

3000 users with 5 repos each is about 30,000 sequential calls per run.

Fix

Read current quota group members and repo has_actions, then issue only the writes that differ. Keep dry-run output the same.

Done when

  • A second run over an unchanged world sends no writes
  • A test asserts it
## What Each run re-sends quota membership, the org-create flag and `has_actions` for every user and repo, one call at a time. ## Why Requests grow with users times repos. It is fine today. It will outgrow the 5 minute timer at a few thousand users. ## Failing case 3000 users with 5 repos each is about 30,000 sequential calls per run. ## Fix Read current quota group members and repo `has_actions`, then issue only the writes that differ. Keep dry-run output the same. ## Done when - [ ] A second run over an unchanged world sends no writes - [ ] A test asserts it
Logga in för att delta i denna konversation.
Ingen milstolpe
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-auth-reconciler#84
Ingen beskrivning angiven.