feat(reconciler): reconcile right after a user's first forgejo sign-in #665

Sammanfogat
supernaut sammanfogade 1 incheckning från feat/reconcile-on-first-signin in i main 2026-10-11 15:08:28 +00:00
Ägare

Refs #664

Reconcile right after a user's first Forgejo sign-in, instead of waiting for the timer.

  • Add bitborg-forgejo-signin-watch.service. It follows the forgejo journal and touches the ADR 0037 sentinel on GenerateRandomAvatar() [I] New random avatar created:. Forgejo logs that line when it creates an account. The OAuth callback line is not used, because it also fires on every returning sign-in.
  • The existing .path unit and kick script start the run and debounce bursts (30 s floor).
  • Shorten the reconciler timer to 2 minutes, as the backstop if the log line changes in an upgrade.
  • Add the watcher to monitoring_core_units, so CoreUnitDown pages if it dies.
  • Test the match against a line captured on staging, a callback line and an unrelated line. Runs in CI and lefthook.
  • Lint the reconciler role's shell files with the pinned shellcheck.

Checked: match test, pinned shellcheck 0.10.0, scripts/test-alert-rules.py, ansible-playbook --syntax-check site.yml. Staging test follows after merge: a first sign-in gets its quota within 10 s.

Refs #664 Reconcile right after a user's first Forgejo sign-in, instead of waiting for the timer. - Add `bitborg-forgejo-signin-watch.service`. It follows the forgejo journal and touches the ADR 0037 sentinel on `GenerateRandomAvatar() [I] New random avatar created:`. Forgejo logs that line when it creates an account. The OAuth callback line is not used, because it also fires on every returning sign-in. - The existing `.path` unit and kick script start the run and debounce bursts (30 s floor). - Shorten the reconciler timer to 2 minutes, as the backstop if the log line changes in an upgrade. - Add the watcher to `monitoring_core_units`, so `CoreUnitDown` pages if it dies. - Test the match against a line captured on staging, a callback line and an unrelated line. Runs in CI and lefthook. - Lint the reconciler role's shell files with the pinned shellcheck. Checked: match test, pinned shellcheck 0.10.0, `scripts/test-alert-rules.py`, `ansible-playbook --syntax-check site.yml`. Staging test follows after merge: a first sign-in gets its quota within 10 s.
supernaut lade till 1 incheckning 2026-10-11 15:05:43 +00:00
feat(reconciler): reconcile right after a user's first forgejo sign-in
Alla kontroller lyckades
ci / ci (pull_request) Successful in 2m7s
573a1f7e6a
Watch the forgejo journal for account creation and touch the reconcile
sentinel. Shorten the reconciler timer to 2 minutes. Page on a dead watcher
via CoreUnitDown.

Refs #664
supernaut schemalade den här ändringsförfrågan för automatisk sammanfogning när alla kontroller lyckas 2026-10-11 15:07:00 +00:00
supernaut sammanfogade incheckning d12a0aa690 till main 2026-10-11 15:08:28 +00:00
supernaut tog bort grenen feat/reconcile-on-first-signin 2026-10-11 15:08:28 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
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!665
Ingen beskrivning angiven.