Support multiple Forgejo runner registrations with shared controller capacity #8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Use case
Run CI for both a personal account and an organization on the same Forgejo instance using one Rith controller and one pool of disposable Firecracker VMs. Each scope has its own Forgejo runner UUID/token, and neither should require an instance-level runner registration.
Our deployed NixOS configuration uses Rith revision
80c7179240dcf28afe00337bedfe94a8bb744ffcand exposes a singleservices.unified-ci.forgejoregistration. We want to attach both registrations to the existing host while keeping its total concurrency at three jobs. Running separate controllers would require manually partitioning capacity and maintaining separate services.Requested behavior
Support multiple named Forgejo registrations in a single controller, with corresponding NixOS module options:
Acceptance criteria
With personal and organization registrations configured, both appear online in Forgejo and can execute jobs through the same controller. Queuing jobs in both scopes never exceeds the global three-job limit. Restart recovery and log publication use the correct registration, and one registration's invalid credentials do not prevent the other from processing work.
Include scheduler/recovery tests for multiple registrations, including overlapping task IDs, and a documented NixOS configuration example. Disposable Firecracker VMs should continue to require no individual Forgejo registration.