Do not abort the run on one refused user write #83
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-auth-reconciler#83
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "%!s()"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
What
setOrgCreatethrows on any non-2xx.addUserToQuotaGroupthrows on anything but 2xx or 409. Either one aborts the whole user loop.Why
Users after the failing one, in Forgejo id order, are not reconciled that run. A permanent failure starves them for good.
setOrgCreatealso bypasses the unreachable-host check.Failing case
A user is deleted between the list call and the PATCH. The run aborts with HTTP 404. A permanent 422 on one account does the same every run.
Fix
Return a status from
setOrgCreate. Treat 404 as skip with a warning. Treat other refusals as warn, count, flag degraded under its own gauge, and continue. Keep the abort for status 0. Apply the same rule to the quota add.Done when