fix(scripts): détection unité runner — exclure forgejo-runner-update.service du restart #12
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/runner-unit-detection"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
Le
grep -m1 'runner'dansrunner-cleanup.sh(section 6) etsetup-dc-cache.shattrapait forgejo-runner-update.service au lieu de forgejo-runner.service (tri ASCII :-(45) <.(46)).Conséquence : après une purge
--force-full, le restart visait le service d'AUTO-UPDATE (one-shot) et non le runner → le processus forgejo-runner gardait son cache mémoire corrompu (échecsCannot find module dist/index.jspersistants malgré purge).Fix
Détection ciblant exactement les unités runner, en excluant
*-update/*-cleanup:Couvre :
forgejo-runner.service,act-runner.service,runner.service,forgejo-actions-runner.service,runner-<ct>.service. Testé en local (update bien exclu).Validation
Observé en run réel (2026-08-17) :
systemd : forgejo-runner-update.service redémarré(mauvais service) sur runner-murin puis runner-hugin — le runner principal n'était pas redémarré. Le workflow de réparation a dû forcer le restart deforgejo-runner.serviceexplicitement.