Reconcile right after a user's first Forgejo sign-in #664

Stängd
öppnade 2026-10-11 15:00:31 +00:00 av supernaut · 1 kommentar
Ägare

A new user's Forgejo account is created at their first Bitborg-id sign-in. Nothing tells the reconciler, so the account keeps the default quota until the next timer run, up to 5 minutes later. On staging on 2026-10-11 it took about 100 s. A new user who has not read the instructions may think the site is broken.

The portal already kicks the reconcile-trigger after sign-up and payment (ADR 0037). The gap is only the Forgejo account creation.

  • Watch Forgejo's journal for the creation of an account from the OAuth2 source and touch the reconcile-trigger sentinel, so the existing .path unit starts a run within seconds.
  • Shorten the reconciler timer to 2 minutes as a safety net.
  • Test the log pattern against a captured Forgejo line, and alert if the watcher unit fails.
  • Staging: a new user's first sign-in gets its quota within 10 seconds.

Later, a Keycloak event listener could replace the log watcher.

Done when: a first sign-in on staging gets the right quota within 10 seconds.

A new user's Forgejo account is created at their first Bitborg-id sign-in. Nothing tells the reconciler, so the account keeps the default quota until the next timer run, up to 5 minutes later. On staging on 2026-10-11 it took about 100 s. A new user who has not read the instructions may think the site is broken. The portal already kicks the reconcile-trigger after sign-up and payment (ADR 0037). The gap is only the Forgejo account creation. - [ ] Watch Forgejo's journal for the creation of an account from the OAuth2 source and touch the reconcile-trigger sentinel, so the existing `.path` unit starts a run within seconds. - [ ] Shorten the reconciler timer to 2 minutes as a safety net. - [ ] Test the log pattern against a captured Forgejo line, and alert if the watcher unit fails. - [ ] Staging: a new user's first sign-in gets its quota within 10 seconds. Later, a Keycloak event listener could replace the log watcher. Done when: a first sign-in on staging gets the right quota within 10 seconds.
Upphovsperson
Ägare

Staging test 2026-10-11 (#665 applied): a new user's first Forgejo sign-in created the account at 15:19:42. The watcher logged it, the kick started the reconciler with lag 0 s, and the quota was set at 15:19:45. That is 3 s. The timer runs every 2 minutes as the backstop. Done-when met on staging; prod apply follows.

Staging test 2026-10-11 (#665 applied): a new user's first Forgejo sign-in created the account at 15:19:42. The watcher logged it, the kick started the reconciler with lag 0 s, and the quota was set at 15:19:45. That is 3 s. The timer runs every 2 minutes as the backstop. Done-when met on staging; prod apply follows.
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-infra#664
Ingen beskrivning angiven.