Handle Forgejo job assignment races #6

Merged
simon merged 8 commits from fix/forgejo-assignment-races into main 2026-05-23 00:37:38 +00:00
Owner

Summary

  • treat unassigned running Forgejo jobs as demand so assignment races do not strand capacity
  • suppress excess-idle trimming while any active matching or unknown-label Forgejo job exists
  • treat missing job labels from the org jobs API as unknown/relevant instead of definitely not matching

Test

  • go test ./...
## Summary - treat unassigned running Forgejo jobs as demand so assignment races do not strand capacity - suppress excess-idle trimming while any active matching or unknown-label Forgejo job exists - treat missing job labels from the org jobs API as unknown/relevant instead of definitely not matching ## Test - go test ./...
Handle Forgejo job assignment races
All checks were successful
Build and release / test (pull_request) Successful in 49s
Build and release / build (pull_request) Successful in 1m48s
5223c4e25d
simon force-pushed fix/forgejo-assignment-races from 5223c4e25d
All checks were successful
Build and release / test (pull_request) Successful in 49s
Build and release / build (pull_request) Successful in 1m48s
to 0a22e7b1ed
Some checks failed
Build and release / test (pull_request) Has started running
Build and release / build (pull_request) Has been cancelled
2026-05-22 22:34:41 +00:00
Compare
simon force-pushed fix/forgejo-assignment-races from 0a22e7b1ed
Some checks failed
Build and release / test (pull_request) Has started running
Build and release / build (pull_request) Has been cancelled
to 2bc2152596
Some checks failed
Build and release / test (pull_request) Failing after 1m8s
Build and release / build (pull_request) Has been skipped
2026-05-22 22:40:50 +00:00
Compare
simon force-pushed fix/forgejo-assignment-races from 2bc2152596
Some checks failed
Build and release / test (pull_request) Failing after 1m8s
Build and release / build (pull_request) Has been skipped
to 4b69192392
Some checks are pending
Build and release / test (pull_request) Successful in 50s
Build and release / build (pull_request) Has started running
2026-05-22 22:45:53 +00:00
Compare
simon force-pushed fix/forgejo-assignment-races from 4b69192392
Some checks are pending
Build and release / test (pull_request) Successful in 50s
Build and release / build (pull_request) Has started running
to 79d3c9ca24
Some checks are pending
Build and release / test (pull_request) Successful in 50s
Build and release / build (pull_request) Has started running
2026-05-22 22:53:15 +00:00
Compare
simon force-pushed fix/forgejo-assignment-races from 79d3c9ca24
Some checks are pending
Build and release / test (pull_request) Successful in 50s
Build and release / build (pull_request) Has started running
to 32e9530a02
Some checks failed
Build and release / test (pull_request) Has started running
Build and release / build (pull_request) Has been cancelled
2026-05-22 22:59:52 +00:00
Compare
simon force-pushed fix/forgejo-assignment-races from 32e9530a02
Some checks failed
Build and release / test (pull_request) Has started running
Build and release / build (pull_request) Has been cancelled
to f7acb53f03
Some checks failed
Build and release / test (pull_request) Has started running
Build and release / build (pull_request) Has been cancelled
2026-05-22 23:09:03 +00:00
Compare
simon force-pushed fix/forgejo-assignment-races from f7acb53f03
Some checks failed
Build and release / test (pull_request) Has started running
Build and release / build (pull_request) Has been cancelled
to d88fafa658
Some checks failed
Build and release / test (pull_request) Has started running
Build and release / build (pull_request) Has been cancelled
2026-05-22 23:18:03 +00:00
Compare
simon force-pushed fix/forgejo-assignment-races from d88fafa658
Some checks failed
Build and release / test (pull_request) Has started running
Build and release / build (pull_request) Has been cancelled
to 5fe67e4f1c
Some checks failed
Build and release / test (pull_request) Failing after 11m1s
Build and release / build (pull_request) Has been cancelled
2026-05-22 23:24:22 +00:00
Compare
Retry clean CI after live runner stabilization
Some checks are pending
Build and release / test (pull_request) Successful in 50s
Build and release / build (pull_request) Has started running
1fcf9b04ef
Run release workflow in a single job
Some checks are pending
Build and release / build (pull_request) Has started running
8ace0bc049
Keep handled job runners out of warm idle pool
Some checks are pending
Build and release / build (pull_request) Has started running
338b8e09a2
Limit release workflow checkout depth
Some checks failed
Build and release / build (pull_request) Failing after 11m2s
1191547a20
Clean up stale Forgejo job handle runners
Some checks are pending
Build and release / build (pull_request) Has started running
7fc2c370d8
Reserve idle runners while jobs are active
All checks were successful
Build and release / build (pull_request) Successful in 2m51s
441f06cdb2
Only start handle runners for queued jobs
All checks were successful
Build and release / build (pull_request) Successful in 2m11s
8e7ec3b32e
simon merged commit e9b25ce9e5 into main 2026-05-23 00:37:38 +00:00
simon deleted branch fix/forgejo-assignment-races 2026-05-23 00:37:38 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
carrtech/forgejo-runner-autoscaler!6
No description provided.