refactor: add 1-to-1 client-to-runner relationship into poller #1372

Merged
mfenniak merged 1 commit from mfenniak/forgejo-runner:multiconnect-multirunner into main 2026-02-13 19:54:49 +00:00
Owner

When NewRunner is invoked, it creates a Runner which does client-specific configuration -- environment variables GITHUB_SERVER_URL, ACTIONS_RUNTIME_URL, and ACTIONS_RESULTS_URL are all different based upon the connection address to the remote client. Although the Poller supports multiple clients, it dispatches all the tasks to a single Runner interface.

This PR adds multiple run.RunnerInterface implementations to the poller, one per client, which are the runners created specifically for each client.

  • other
    • PR: refactor: add 1-to-1 client-to-runner relationship into poller
When `NewRunner` is invoked, it creates a `Runner` which does client-specific configuration -- environment variables `GITHUB_SERVER_URL`, `ACTIONS_RUNTIME_URL`, and `ACTIONS_RESULTS_URL` are all different based upon the connection address to the remote client. Although the `Poller` supports multiple clients, it dispatches all the tasks to a single `Runner` interface. This PR adds multiple `run.RunnerInterface` implementations to the poller, one per client, which are the runners created specifically for each client. <!--start release-notes-assistant--> <!--URL:https://code.forgejo.org/forgejo/runner--> - other - [PR](https://code.forgejo.org/forgejo/runner/pulls/1372): <!--number 1372 --><!--line 0 --><!--description cmVmYWN0b3I6IGFkZCAxLXRvLTEgY2xpZW50LXRvLXJ1bm5lciByZWxhdGlvbnNoaXAgaW50byBwb2xsZXI=-->refactor: add 1-to-1 client-to-runner relationship into poller<!--description--> <!--end release-notes-assistant-->
refactor: add 1-to-1 client-to-runner relationship into poller
All checks were successful
checks / validate pre-commit-hooks file (pull_request) Successful in 33s
checks / Build Forgejo Runner (pull_request) Successful in 38s
checks / validate mocks (pull_request) Successful in 40s
checks / Build unsupported platforms (pull_request) Successful in 20s
checks / runner exec tests (pull_request) Successful in 39s
checks / integration tests (docker-latest) (pull_request) Successful in 9m59s
checks / integration tests (docker-stable) (pull_request) Successful in 11m53s
issue-labels / release-notes (pull_request_target) Successful in 4s
cascade / debug (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Successful in 7s
cascade / forgejo (pull_request_target) Successful in 1m14s
d98ac4bdc5
aahlenst approved these changes 2026-02-13 10:57:25 +00:00
Contributor

cascading-pr updated at actions/setup-forgejo#884

cascading-pr updated at https://code.forgejo.org/actions/setup-forgejo/pulls/884
mfenniak deleted branch multiconnect-multirunner 2026-02-13 19:54:50 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
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
forgejo/runner!1372
No description provided.