fix: no rename on a case-only login difference, stop on an unreachable forgejo #69
Inga granskare
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!69
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "fix/classify-profile-case"
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
classifyProfilecompares the Kanidm name and the Forgejo login withownerKey(lower case), not!==.Why
How
assertReachable(status, what)inreconcile.tsthrows on status 0. A non-zero refusal (403, 422) keeps its existing best-effort handling.mainalready turns a throw into exit 1 and the failure metric.FakeForgejogetsdownWhen: from the matching call on, status methods return 0 and reads throw, as the real adapter does.Tested
Tests written first. 3 case tests (2 unit, 1 reconcile) and 11 unreachable tests: user add, quota removal, org add, repo list, repo patch, identity rename, legacy purge, Renovate repo list, collaborator add, collaborator remove, profile update. Each asserts the run rejects with the unreachable message and that no call follows the first failed one.
All new tests fail without the fix except the user-add and org-add tests, which are regression guards (those adds already aborted on status 0). Each of the four later-added abort sites was checked by removing its
assertReachablecall.listOwnerReposreturns 502 for a 200 reply that is not JSON, so a bad body stays best-effort and is not read as unreachable.pnpm test136 passed,pnpm lintclean,pnpm typecheckclean.Open questions