feat(plugin): add experimental gRPC v1alpha plugin backend support #1500

Merged
mfenniak merged 10 commits from eleboucher/runner:plugin into main 2026-08-16 00:37:20 +00:00
Contributor

Implements an experimental gRPC protocol for plugable backend systems, per forgejo/forgejo-actions-feature-requests#107 (comment).


(Notes from @mfenniak, Forgejo merger):

Implements an experimental gRPC protocol for plugable backend systems, per forgejo/forgejo-actions-feature-requests#107 (comment). This allows future development of new job container execution models, such as Firecracker VMs, qEMU VMs, systemd-nspawn containers, Kubernetes pods, etc.

As an v1alpha protocol, the protocol is subject to change with no stability guarantees at the moment.

As an experimental feature, the Forgejo team is not yet willing to fully commit that this feature will be a permanent addition. We believe it is a good direction, and we believe we can continue to iterate it to a fully supportable and capable feature based upon feedback from ourselves and other users. But as that feedback is collected and incorporated, we leave open the possibility that we may gain new knowledge and be required to change direction.


  • features
    • PR: feat(plugin): add experimental gRPC v1alpha plugin backend support
Implements an experimental gRPC protocol for plugable backend systems, per https://code.forgejo.org/forgejo/forgejo-actions-feature-requests/issues/107#issuecomment-85284. --- (Notes from @mfenniak, Forgejo merger): Implements an experimental gRPC protocol for plugable backend systems, per https://code.forgejo.org/forgejo/forgejo-actions-feature-requests/issues/107#issuecomment-85284. This allows future development of new job container execution models, such as Firecracker VMs, qEMU VMs, systemd-nspawn containers, Kubernetes pods, etc. As an v1alpha protocol, the protocol is subject to change with no stability guarantees at the moment. As an experimental feature, the Forgejo team is not yet willing to fully commit that this feature will be a permanent addition. We believe it is a good direction, and we believe we can continue to iterate it to a fully supportable and capable feature based upon feedback from ourselves and other users. But as that feedback is collected and incorporated, we leave open the possibility that we may gain new knowledge and be required to change direction. --- <!--start release-notes-assistant--> <!--URL:https://code.forgejo.org/forgejo/runner--> - features - [PR](https://code.forgejo.org/forgejo/runner/pulls/1500): <!--number 1500 --><!--line 0 --><!--description ZmVhdChwbHVnaW4pOiBhZGQgZXhwZXJpbWVudGFsIGdSUEMgdjFhbHBoYSBwbHVnaW4gYmFja2VuZCBzdXBwb3J0-->feat(plugin): add experimental gRPC v1alpha plugin backend support<!--description--> <!--end release-notes-assistant-->
eleboucher force-pushed plugin from 7764310894
Some checks are pending
Integration tests for the release process / release-simulation (pull_request) Blocked by required conditions
checks / Build Forgejo Runner (pull_request) Blocked by required conditions
checks / Build unsupported platforms (pull_request) Blocked by required conditions
checks / runner exec tests (pull_request) Blocked by required conditions
checks / Run integration tests with Docker (docker-latest) (pull_request) Blocked by required conditions
checks / Run integration tests with Docker (docker-stable) (pull_request) Blocked by required conditions
checks / Run integration tests with Podman (pull_request) Blocked by required conditions
checks / validate mocks (pull_request) Blocked by required conditions
checks / validate pre-commit-hooks file (pull_request) Blocked by required conditions
issue-labels / release-notes (pull_request_target) Successful in 5s
to ff3bfc7532
Some checks are pending
Integration tests for the release process / release-simulation (pull_request) Blocked by required conditions
checks / Build Forgejo Runner (pull_request) Blocked by required conditions
checks / Build unsupported platforms (pull_request) Blocked by required conditions
checks / runner exec tests (pull_request) Blocked by required conditions
checks / Run integration tests with Docker (docker-latest) (pull_request) Blocked by required conditions
checks / Run integration tests with Docker (docker-stable) (pull_request) Blocked by required conditions
checks / Run integration tests with Podman (pull_request) Blocked by required conditions
checks / validate mocks (pull_request) Blocked by required conditions
checks / validate pre-commit-hooks file (pull_request) Blocked by required conditions
cascade / forgejo (pull_request_target) Has been skipped
cascade / debug (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 5s
2026-04-28 13:48:41 +00:00
Compare
eleboucher force-pushed plugin from ff3bfc7532
Some checks are pending
Integration tests for the release process / release-simulation (pull_request) Blocked by required conditions
checks / Build Forgejo Runner (pull_request) Blocked by required conditions
checks / Build unsupported platforms (pull_request) Blocked by required conditions
checks / runner exec tests (pull_request) Blocked by required conditions
checks / Run integration tests with Docker (docker-latest) (pull_request) Blocked by required conditions
checks / Run integration tests with Docker (docker-stable) (pull_request) Blocked by required conditions
checks / Run integration tests with Podman (pull_request) Blocked by required conditions
checks / validate mocks (pull_request) Blocked by required conditions
checks / validate pre-commit-hooks file (pull_request) Blocked by required conditions
cascade / forgejo (pull_request_target) Has been skipped
cascade / debug (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 5s
to 870ea62b11
Some checks failed
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
cascade / debug (pull_request_target) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 5s
checks / validate mocks (pull_request) Failing after 1m28s
checks / validate pre-commit-hooks file (pull_request) Successful in 1m48s
checks / Build Forgejo Runner (pull_request) Successful in 2m15s
checks / runner exec tests (pull_request) Successful in 47s
checks / Build unsupported platforms (pull_request) Successful in 1m52s
Integration tests for the release process / release-simulation (pull_request) Successful in 7m0s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 14m57s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 17m10s
checks / Run integration tests with Podman (pull_request) Successful in 20m2s
2026-04-28 15:07:09 +00:00
Compare
eleboucher force-pushed plugin from 870ea62b11
Some checks failed
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
cascade / debug (pull_request_target) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 5s
checks / validate mocks (pull_request) Failing after 1m28s
checks / validate pre-commit-hooks file (pull_request) Successful in 1m48s
checks / Build Forgejo Runner (pull_request) Successful in 2m15s
checks / runner exec tests (pull_request) Successful in 47s
checks / Build unsupported platforms (pull_request) Successful in 1m52s
Integration tests for the release process / release-simulation (pull_request) Successful in 7m0s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 14m57s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 17m10s
checks / Run integration tests with Podman (pull_request) Successful in 20m2s
to 7df1656f9b
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 6s
checks / validate mocks (pull_request) Failing after 36s
checks / Build Forgejo Runner (pull_request) Failing after 49s
checks / validate pre-commit-hooks file (pull_request) Successful in 48s
checks / Run integration tests with Podman (pull_request) Has been skipped
checks / runner exec tests (pull_request) Has been skipped
checks / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
checks / Build unsupported platforms (pull_request) Has been skipped
checks / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
Integration tests for the release process / release-simulation (pull_request) Successful in 4m57s
2026-05-06 08:41:24 +00:00
Compare
eleboucher force-pushed plugin from 6441c1da3b
Some checks failed
cascade / end-to-end (pull_request_target) Has been skipped
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 4s
checks / validate mocks (pull_request) Failing after 27s
checks / validate pre-commit-hooks file (pull_request) Successful in 39s
checks / Build Forgejo Runner (pull_request) Successful in 48s
checks / Build unsupported platforms (pull_request) Failing after 15s
checks / runner exec tests (pull_request) Successful in 31s
Integration tests for the release process / release-simulation (pull_request) Successful in 4m39s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 10m39s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 12m22s
checks / Run integration tests with Podman (pull_request) Successful in 16m46s
to fed7286109
Some checks failed
cascade / end-to-end (pull_request_target) Has been skipped
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 6s
checks / validate mocks (pull_request) Failing after 51s
checks / validate pre-commit-hooks file (pull_request) Successful in 1m11s
checks / Build Forgejo Runner (pull_request) Successful in 1m27s
/ example-docker-compose (pull_request) Successful in 1m49s
checks / Build unsupported platforms (pull_request) Failing after 33s
example / docker-build-push-action-in-lxc (pull_request) Successful in 2m21s
checks / runner exec tests (pull_request) Successful in 54s
/ example-on-demand (pull_request) Successful in 5m13s
Integration tests for the release process / release-simulation (pull_request) Successful in 7m0s
/ example-lxc-systemd (pull_request) Successful in 9m8s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 15m34s
checks / Run integration tests with Podman (pull_request) Failing after 19m24s
checks / Run integration tests with Docker (docker-stable) (pull_request) Failing after 19m49s
2026-06-01 13:39:34 +00:00
Compare
eleboucher force-pushed plugin from fed7286109
Some checks failed
cascade / end-to-end (pull_request_target) Has been skipped
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 6s
checks / validate mocks (pull_request) Failing after 51s
checks / validate pre-commit-hooks file (pull_request) Successful in 1m11s
checks / Build Forgejo Runner (pull_request) Successful in 1m27s
/ example-docker-compose (pull_request) Successful in 1m49s
checks / Build unsupported platforms (pull_request) Failing after 33s
example / docker-build-push-action-in-lxc (pull_request) Successful in 2m21s
checks / runner exec tests (pull_request) Successful in 54s
/ example-on-demand (pull_request) Successful in 5m13s
Integration tests for the release process / release-simulation (pull_request) Successful in 7m0s
/ example-lxc-systemd (pull_request) Successful in 9m8s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 15m34s
checks / Run integration tests with Podman (pull_request) Failing after 19m24s
checks / Run integration tests with Docker (docker-stable) (pull_request) Failing after 19m49s
to 266be7e9bb
Some checks failed
cascade / forgejo (pull_request_target) Has been skipped
cascade / debug (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 6s
checks / Build Forgejo Runner (pull_request) Failing after 36s
checks / validate mocks (pull_request) Failing after 33s
checks / validate pre-commit-hooks file (pull_request) Successful in 1m18s
Integration tests for the release process / release-simulation (pull_request) Successful in 6m13s
checks / Build unsupported platforms (pull_request) Has been skipped
checks / runner exec tests (pull_request) Has been skipped
checks / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
checks / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
checks / Run integration tests with Podman (pull_request) Has been skipped
2026-06-01 15:30:22 +00:00
Compare
eleboucher force-pushed plugin from 266be7e9bb
Some checks failed
cascade / forgejo (pull_request_target) Has been skipped
cascade / debug (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 6s
checks / Build Forgejo Runner (pull_request) Failing after 36s
checks / validate mocks (pull_request) Failing after 33s
checks / validate pre-commit-hooks file (pull_request) Successful in 1m18s
Integration tests for the release process / release-simulation (pull_request) Successful in 6m13s
checks / Build unsupported platforms (pull_request) Has been skipped
checks / runner exec tests (pull_request) Has been skipped
checks / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
checks / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
checks / Run integration tests with Podman (pull_request) Has been skipped
to eef6a8f04c
Some checks failed
cascade / end-to-end (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / debug (pull_request_target) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 8s
checks / Build Forgejo Runner (pull_request) Failing after 17s
checks / validate mocks (pull_request) Failing after 18s
checks / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
checks / Run integration tests with Podman (pull_request) Has been skipped
checks / runner exec tests (pull_request) Has been skipped
checks / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
checks / Build unsupported platforms (pull_request) Has been skipped
checks / validate pre-commit-hooks file (pull_request) Successful in 31s
Integration tests for the release process / release-simulation (pull_request) Successful in 4m11s
2026-06-01 18:30:57 +00:00
Compare
eleboucher force-pushed plugin from eef6a8f04c
Some checks failed
cascade / end-to-end (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / debug (pull_request_target) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 8s
checks / Build Forgejo Runner (pull_request) Failing after 17s
checks / validate mocks (pull_request) Failing after 18s
checks / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
checks / Run integration tests with Podman (pull_request) Has been skipped
checks / runner exec tests (pull_request) Has been skipped
checks / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
checks / Build unsupported platforms (pull_request) Has been skipped
checks / validate pre-commit-hooks file (pull_request) Successful in 31s
Integration tests for the release process / release-simulation (pull_request) Successful in 4m11s
to 7df964c119
Some checks failed
cascade / end-to-end (pull_request_target) Has been skipped
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 6s
checks / Build Forgejo Runner (pull_request) Failing after 16s
checks / Run integration tests with Podman (pull_request) Has been skipped
checks / validate mocks (pull_request) Failing after 18s
checks / runner exec tests (pull_request) Has been skipped
checks / Build unsupported platforms (pull_request) Has been skipped
checks / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
checks / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
checks / validate pre-commit-hooks file (pull_request) Successful in 32s
Integration tests for the release process / release-simulation (pull_request) Successful in 4m14s
2026-06-01 18:51:14 +00:00
Compare
eleboucher force-pushed plugin from 7df964c119
Some checks failed
cascade / end-to-end (pull_request_target) Has been skipped
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 6s
checks / Build Forgejo Runner (pull_request) Failing after 16s
checks / Run integration tests with Podman (pull_request) Has been skipped
checks / validate mocks (pull_request) Failing after 18s
checks / runner exec tests (pull_request) Has been skipped
checks / Build unsupported platforms (pull_request) Has been skipped
checks / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
checks / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
checks / validate pre-commit-hooks file (pull_request) Successful in 32s
Integration tests for the release process / release-simulation (pull_request) Successful in 4m14s
to 0e8a4fe682
Some checks failed
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
cascade / debug (pull_request_target) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 8s
checks / validate mocks (pull_request) Failing after 28s
checks / Build Forgejo Runner (pull_request) Successful in 33s
checks / validate pre-commit-hooks file (pull_request) Successful in 41s
checks / Build unsupported platforms (pull_request) Failing after 20s
checks / runner exec tests (pull_request) Successful in 37s
Integration tests for the release process / release-simulation (pull_request) Successful in 5m32s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 13m51s
checks / Run integration tests with Podman (pull_request) Failing after 15m9s
checks / Run integration tests with Docker (docker-stable) (pull_request) Failing after 16m8s
2026-06-01 19:28:03 +00:00
Compare
eleboucher force-pushed plugin from 0e8a4fe682
Some checks failed
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
cascade / debug (pull_request_target) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 8s
checks / validate mocks (pull_request) Failing after 28s
checks / Build Forgejo Runner (pull_request) Successful in 33s
checks / validate pre-commit-hooks file (pull_request) Successful in 41s
checks / Build unsupported platforms (pull_request) Failing after 20s
checks / runner exec tests (pull_request) Successful in 37s
Integration tests for the release process / release-simulation (pull_request) Successful in 5m32s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 13m51s
checks / Run integration tests with Podman (pull_request) Failing after 15m9s
checks / Run integration tests with Docker (docker-stable) (pull_request) Failing after 16m8s
to 277b97a3a7
Some checks failed
cascade / end-to-end (pull_request_target) Has been skipped
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 3s
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / runner exec tests (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
checks / validate mocks (pull_request) Failing after 29s
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
checks / validate pre-commit-hooks file (pull_request) Successful in 41s
checks / Build Forgejo Runner (pull_request) Successful in 50s
checks / Build unsupported platforms (pull_request) Failing after 15s
example / docker-build-push-action-in-lxc (pull_request) Successful in 1m29s
checks / runner exec tests (pull_request) Successful in 34s
/ example-docker-compose (pull_request) Successful in 2m51s
Integration tests for the release process / release-simulation (pull_request) Successful in 4m31s
/ example-on-demand (pull_request) Successful in 4m35s
/ example-lxc-systemd (pull_request) Successful in 7m11s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 10m27s
checks / Run integration tests with Podman (pull_request) Successful in 11m32s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 12m34s
2026-06-20 08:23:40 +00:00
Compare
eleboucher force-pushed plugin from 277b97a3a7
Some checks failed
cascade / end-to-end (pull_request_target) Has been skipped
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 3s
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / runner exec tests (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
checks / validate mocks (pull_request) Failing after 29s
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
checks / validate pre-commit-hooks file (pull_request) Successful in 41s
checks / Build Forgejo Runner (pull_request) Successful in 50s
checks / Build unsupported platforms (pull_request) Failing after 15s
example / docker-build-push-action-in-lxc (pull_request) Successful in 1m29s
checks / runner exec tests (pull_request) Successful in 34s
/ example-docker-compose (pull_request) Successful in 2m51s
Integration tests for the release process / release-simulation (pull_request) Successful in 4m31s
/ example-on-demand (pull_request) Successful in 4m35s
/ example-lxc-systemd (pull_request) Successful in 7m11s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 10m27s
checks / Run integration tests with Podman (pull_request) Successful in 11m32s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 12m34s
to 3103fe4476
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 4s
checks / validate mocks (pull_request) Failing after 38s
checks / validate pre-commit-hooks file (pull_request) Successful in 45s
checks / Build Forgejo Runner (pull_request) Successful in 1m1s
checks / Run integration tests with Docker (docker-stable) (pull_request) Has been cancelled
checks / Run integration tests with Podman (pull_request) Has been cancelled
checks / Run integration tests with Docker (docker-latest) (pull_request) Has been cancelled
checks / Build unsupported platforms (pull_request) Has been cancelled
checks / runner exec tests (pull_request) Has been cancelled
Integration tests for the release process / release-simulation (pull_request) Has been cancelled
/ example-docker-compose (pull_request) Successful in 1m41s
example / docker-build-push-action-in-lxc (pull_request) Successful in 2m0s
/ example-on-demand (pull_request) Successful in 4m41s
/ example-lxc-systemd (pull_request) Successful in 7m22s
2026-06-22 14:51:35 +00:00
Compare
eleboucher force-pushed plugin from 3103fe4476
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 4s
checks / validate mocks (pull_request) Failing after 38s
checks / validate pre-commit-hooks file (pull_request) Successful in 45s
checks / Build Forgejo Runner (pull_request) Successful in 1m1s
checks / Run integration tests with Docker (docker-stable) (pull_request) Has been cancelled
checks / Run integration tests with Podman (pull_request) Has been cancelled
checks / Run integration tests with Docker (docker-latest) (pull_request) Has been cancelled
checks / Build unsupported platforms (pull_request) Has been cancelled
checks / runner exec tests (pull_request) Has been cancelled
Integration tests for the release process / release-simulation (pull_request) Has been cancelled
/ example-docker-compose (pull_request) Successful in 1m41s
example / docker-build-push-action-in-lxc (pull_request) Successful in 2m0s
/ example-on-demand (pull_request) Successful in 4m41s
/ example-lxc-systemd (pull_request) Successful in 7m22s
to e46f11d039
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 4s
checks / validate mocks (pull_request) Failing after 17s
checks / Build Forgejo Runner (pull_request) Successful in 23s
checks / Build unsupported platforms (pull_request) Failing after 21s
checks / validate pre-commit-hooks file (pull_request) Successful in 39s
checks / runner exec tests (pull_request) Successful in 33s
Integration tests for the release process / release-simulation (pull_request) Successful in 4m54s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 10m41s
checks / Run integration tests with Podman (pull_request) Successful in 11m23s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 12m34s
2026-06-22 14:52:42 +00:00
Compare
Author
Contributor

Hello @aahlenst
so this will be the next and last PR for the plugin right ? should we tackle it now ?

Hello @aahlenst so this will be the next and last PR for the plugin right ? should we tackle it now ?
eleboucher force-pushed plugin from e46f11d039
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 4s
checks / validate mocks (pull_request) Failing after 17s
checks / Build Forgejo Runner (pull_request) Successful in 23s
checks / Build unsupported platforms (pull_request) Failing after 21s
checks / validate pre-commit-hooks file (pull_request) Successful in 39s
checks / runner exec tests (pull_request) Successful in 33s
Integration tests for the release process / release-simulation (pull_request) Successful in 4m54s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 10m41s
checks / Run integration tests with Podman (pull_request) Successful in 11m23s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 12m34s
to 00ecf1906c
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / runner exec tests (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 10s
checks / validate mocks (pull_request) Failing after 38s
checks / Build Forgejo Runner (pull_request) Successful in 1m1s
checks / validate pre-commit-hooks file (pull_request) Successful in 1m6s
checks / runner exec tests (pull_request) Successful in 55s
checks / Build unsupported platforms (pull_request) Failing after 55s
/ example-docker-compose (pull_request) Successful in 2m26s
example / docker-build-push-action-in-lxc (pull_request) Successful in 2m41s
/ example-on-demand (pull_request) Successful in 4m32s
Integration tests for the release process / release-simulation (pull_request) Successful in 5m39s
checks / Run integration tests with Docker (docker-latest) (pull_request) Has been cancelled
checks / Run integration tests with Podman (pull_request) Has been cancelled
checks / Run integration tests with Docker (docker-stable) (pull_request) Has been cancelled
/ example-lxc-systemd (pull_request) Successful in 8m8s
2026-06-22 16:50:23 +00:00
Compare
eleboucher force-pushed plugin from 00ecf1906c
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / runner exec tests (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 10s
checks / validate mocks (pull_request) Failing after 38s
checks / Build Forgejo Runner (pull_request) Successful in 1m1s
checks / validate pre-commit-hooks file (pull_request) Successful in 1m6s
checks / runner exec tests (pull_request) Successful in 55s
checks / Build unsupported platforms (pull_request) Failing after 55s
/ example-docker-compose (pull_request) Successful in 2m26s
example / docker-build-push-action-in-lxc (pull_request) Successful in 2m41s
/ example-on-demand (pull_request) Successful in 4m32s
Integration tests for the release process / release-simulation (pull_request) Successful in 5m39s
checks / Run integration tests with Docker (docker-latest) (pull_request) Has been cancelled
checks / Run integration tests with Podman (pull_request) Has been cancelled
checks / Run integration tests with Docker (docker-stable) (pull_request) Has been cancelled
/ example-lxc-systemd (pull_request) Successful in 8m8s
to 2ad1539615
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / runner exec tests (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 6s
checks / validate mocks (pull_request) Successful in 27s
checks / Build Forgejo Runner (pull_request) Successful in 29s
checks / validate pre-commit-hooks file (pull_request) Successful in 35s
checks / Build unsupported platforms (pull_request) Failing after 20s
checks / runner exec tests (pull_request) Successful in 37s
Integration tests for the release process / release-simulation (pull_request) Successful in 4m17s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 10m35s
checks / Run integration tests with Podman (pull_request) Successful in 11m9s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 12m42s
2026-06-22 16:58:28 +00:00
Compare
eleboucher force-pushed plugin from 2ad1539615
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / runner exec tests (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 6s
checks / validate mocks (pull_request) Successful in 27s
checks / Build Forgejo Runner (pull_request) Successful in 29s
checks / validate pre-commit-hooks file (pull_request) Successful in 35s
checks / Build unsupported platforms (pull_request) Failing after 20s
checks / runner exec tests (pull_request) Successful in 37s
Integration tests for the release process / release-simulation (pull_request) Successful in 4m17s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 10m35s
checks / Run integration tests with Podman (pull_request) Successful in 11m9s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 12m42s
to c74cb26490
All checks were successful
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / runner exec tests (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 8s
checks / validate mocks (pull_request) Successful in 22s
checks / Build Forgejo Runner (pull_request) Successful in 23s
checks / validate pre-commit-hooks file (pull_request) Successful in 33s
checks / runner exec tests (pull_request) Successful in 53s
checks / Build unsupported platforms (pull_request) Successful in 1m16s
Integration tests for the release process / release-simulation (pull_request) Successful in 4m9s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 10m18s
checks / Run integration tests with Podman (pull_request) Successful in 11m18s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 12m17s
2026-06-22 17:12:15 +00:00
Compare
Member

@eleboucher wrote in #1500 (comment):

so this will be the next and last PR for the plugin right ? should we tackle it now ?

It's been a while, and I'm focused on something else, so my mental model might be outdated or incomplete. As far as I remember, there's no back-end discovery or loading, yet. Would it be possible for the plug-in to land without that?

It looks like this PR contains some commits that have already landed. Would a rebase help making it smaller?

@eleboucher wrote in https://code.forgejo.org/forgejo/runner/pulls/1500#issuecomment-92131: > so this will be the next and last PR for the plugin right ? should we tackle it now ? It's been a while, and I'm focused on something else, so my mental model might be outdated or incomplete. As far as I remember, there's no back-end discovery or loading, yet. Would it be possible for the plug-in to land without that? It looks like this PR contains some commits that have already landed. Would a rebase help making it smaller?
eleboucher force-pushed plugin from c74cb26490
All checks were successful
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / runner exec tests (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 8s
checks / validate mocks (pull_request) Successful in 22s
checks / Build Forgejo Runner (pull_request) Successful in 23s
checks / validate pre-commit-hooks file (pull_request) Successful in 33s
checks / runner exec tests (pull_request) Successful in 53s
checks / Build unsupported platforms (pull_request) Successful in 1m16s
Integration tests for the release process / release-simulation (pull_request) Successful in 4m9s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 10m18s
checks / Run integration tests with Podman (pull_request) Successful in 11m18s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 12m17s
to eb54e71bc8
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / runner exec tests (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 6s
checks / validate mocks (pull_request) Successful in 24s
checks / Build Forgejo Runner (pull_request) Successful in 26s
checks / validate pre-commit-hooks file (pull_request) Successful in 32s
checks / Build unsupported platforms (pull_request) Successful in 21s
checks / runner exec tests (pull_request) Successful in 46s
Integration tests for the release process / release-simulation (pull_request) Failing after 2m7s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 10m5s
checks / Run integration tests with Podman (pull_request) Successful in 11m44s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 12m24s
2026-06-24 15:31:55 +00:00
Compare
Author
Contributor

@aahlenst wrote in #1500 (comment):

It's been a while, and I'm focused on something else, so my mental model might be outdated or incomplete. As far as I remember, there's no back-end discovery or loading, yet. Would it be possible for the plug-in to land without that?

Hey, i squashed some commit so the history is better, but this is everything and rebased.

Yes no discovery yet it's config driven for now

@aahlenst wrote in https://code.forgejo.org/forgejo/runner/pulls/1500#issuecomment-92219: > > > > It's been a while, and I'm focused on something else, so my mental model might be outdated or incomplete. As far as I remember, there's no back-end discovery or loading, yet. Would it be possible for the plug-in to land without that? Hey, i squashed some commit so the history is better, but this is everything and rebased. Yes no discovery yet it's config driven for now
Member

@eleboucher wrote in #1500 (comment):

Yes no discovery yet it's config driven for now

That doesn't really answer my question. 🙂 It was: Would it be possible for the plug-in to land without that [back-end discovery]?

I have even more questions: Would it be sensible to land it without back-end discovery? What does that mean for existing users of Forgejo Runner? Or other people that want to use the plug-in interface?

@eleboucher wrote in https://code.forgejo.org/forgejo/runner/pulls/1500#issuecomment-92235: > Yes no discovery yet it's config driven for now That doesn't really answer my question. 🙂 It was: Would it be possible for the plug-in to land without that [back-end discovery]? I have even more questions: Would it be sensible to land it without back-end discovery? What does that mean for existing users of Forgejo Runner? Or other people that want to use the plug-in interface?
Author
Contributor

@aahlenst wrote in #1500 (comment):

@eleboucher wrote in #1500 (comment):

Yes no discovery yet it's config driven for now

That doesn't really answer my question. 🙂 It was: Would it be possible for the plug-in to land without that [back-end discovery]?

I have even more questions: Would it be sensible to land it without back-end discovery? What does that mean for existing users of Forgejo Runner? Or other people that want to use the plug-in interface?

oh yeah no problem in releasing that already without the backend discovery, here is how i use my config

            cache:
              enabled: true
              dir: /data/cache
            container:
              docker_host: "-"
              workdir_parent: shared/workdir
            host:
              workdir_parent: /data/act
            log:
              level: info
            plugins:
              k8s:
                address: "unix:///plugin/forgejo-runner-k8s.sock"
                options:
                  namespace: forgejo
                  poll_timeout: 10m
                  labels: "app.kubernetes.io/name=forgejo-runner-instance,egress.home.arpa/custom-egress=true"
                  resources: |
                    requests:
                      cpu: 100m
                      memory: 256Mi
                    limits:
                      memory: 1Gi

we can probably rework the config to fit more the backend interface we worked on but no behavior changes for anyone already the forgejo runner already

@aahlenst wrote in https://code.forgejo.org/forgejo/runner/pulls/1500#issuecomment-92236: > @eleboucher wrote in #1500 (comment): > > > Yes no discovery yet it's config driven for now > > That doesn't really answer my question. :slightly_smiling_face: It was: Would it be possible for the plug-in to land without that [back-end discovery]? > > I have even more questions: Would it be sensible to land it without back-end discovery? What does that mean for existing users of Forgejo Runner? Or other people that want to use the plug-in interface? oh yeah no problem in releasing that already without the backend discovery, here is how i use my config ``` cache: enabled: true dir: /data/cache container: docker_host: "-" workdir_parent: shared/workdir host: workdir_parent: /data/act log: level: info plugins: k8s: address: "unix:///plugin/forgejo-runner-k8s.sock" options: namespace: forgejo poll_timeout: 10m labels: "app.kubernetes.io/name=forgejo-runner-instance,egress.home.arpa/custom-egress=true" resources: | requests: cpu: 100m memory: 256Mi limits: memory: 1Gi ``` we can probably rework the config to fit more the backend interface we worked on but no behavior changes for anyone already the forgejo runner already
Member

Before I try to digest over 5000 lines in vain: What do you think, @mfenniak?

Before I try to digest over 5000 lines in vain: What do you think, @mfenniak?
Owner

I'm good with the broad direction. With a few minutes of reviewing, it's clear to me that this will not get a good review if it isn't broken down severely into smaller chunks of reviewable work.

This is certainly subject to @eleboucher's expertise, but I'd say:

  • Plugin lifecycle -- config, startup, shutdown
  • Startup and shutdown of "job containers"
  • Ability to exec remotely in the containers
  • Ability to copy files remotely into the containers
  • delegates_to_docker -- seems like an entirely separate capability that doesn't need to be in one PR

I'm not prescribing how to split it, but, I wouldn't be able to review this. This is really important functionality, with really subtle possible behaviours, and doing it right requires the ability for a reviewer to be able to fully grasp each change and think about the code that isn't present. "is this going to work when a job is cancelled", "what happens when this times out", "will error handling or resource leakage occur here" -- and that requires small chunks of work that build up the capabilities. Even if something doesn't have a meaningful outcome/output/deliverable in the first PRs.

I'm good with the broad direction. With a few minutes of reviewing, it's clear to me that this will not get a good review if it isn't broken down severely into smaller chunks of reviewable work. This is certainly subject to @eleboucher's expertise, but I'd say: - Plugin lifecycle -- config, startup, shutdown - Startup and shutdown of "job containers" - Ability to exec remotely in the containers - Ability to copy files remotely into the containers - `delegates_to_docker` -- seems like an entirely separate capability that doesn't need to be in one PR I'm not prescribing how to split it, but, I wouldn't be able to review this. This is really important functionality, with really subtle possible behaviours, and doing it right requires the ability for a reviewer to be able to fully grasp each change and think about the code that isn't present. "is this going to work when a job is cancelled", "what happens when this times out", "will error handling or resource leakage occur here" -- and that requires small chunks of work that build up the capabilities. Even if something doesn't have a meaningful outcome/output/deliverable in the first PRs.
eleboucher force-pushed plugin from eb54e71bc8
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / runner exec tests (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 6s
checks / validate mocks (pull_request) Successful in 24s
checks / Build Forgejo Runner (pull_request) Successful in 26s
checks / validate pre-commit-hooks file (pull_request) Successful in 32s
checks / Build unsupported platforms (pull_request) Successful in 21s
checks / runner exec tests (pull_request) Successful in 46s
Integration tests for the release process / release-simulation (pull_request) Failing after 2m7s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 10m5s
checks / Run integration tests with Podman (pull_request) Successful in 11m44s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 12m24s
to fdf5ce3f3c
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / runner exec tests (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 8s
checks / validate mocks (pull_request) Successful in 31s
checks / validate pre-commit-hooks file (pull_request) Successful in 42s
checks / Build Forgejo Runner (pull_request) Successful in 50s
checks / runner exec tests (pull_request) Successful in 30s
example / docker-build-push-action-in-lxc (pull_request) Successful in 1m55s
checks / Build unsupported platforms (pull_request) Successful in 1m5s
/ example-docker-compose (pull_request) Successful in 2m9s
/ example-lxc-systemd (pull_request) Has been cancelled
/ example-on-demand (pull_request) Has been cancelled
checks / Run integration tests with Podman (pull_request) Has been cancelled
checks / Run integration tests with Docker (docker-stable) (pull_request) Has been cancelled
Integration tests for the release process / release-simulation (pull_request) Has been cancelled
checks / Run integration tests with Docker (docker-latest) (pull_request) Has been cancelled
2026-06-26 14:48:55 +00:00
Compare
Author
Contributor

@mfenniak wrote in #1500 (comment):

I'm good with the broad direction. With a few minutes of reviewing, it's clear to me that this will not get a good review if it isn't broken down severely into smaller chunks of reviewable work.

This is certainly subject to @eleboucher's expertise, but I'd say:

* Plugin lifecycle -- config, startup, shutdown

* Startup and shutdown of "job containers"

* Ability to exec remotely in the containers

* Ability to copy files remotely into the containers

* `delegates_to_docker` -- seems like an entirely separate capability that doesn't need to be in one PR

I'm not prescribing how to split it, but, I wouldn't be able to review this. This is really important functionality, with really subtle possible behaviours, and doing it right requires the ability for a reviewer to be able to fully grasp each change and think about the code that isn't present. "is this going to work when a job is cancelled", "what happens when this times out", "will error handling or resource leakage occur here" -- and that requires small chunks of work that build up the capabilities. Even if something doesn't have a meaningful outcome/output/deliverable in the first PRs.

I refactored the commit history to make more sense i hope now it's ready for review and i'm still reachable here or on matrix for more

@mfenniak wrote in https://code.forgejo.org/forgejo/runner/pulls/1500#issuecomment-92239: > I'm good with the broad direction. With a few minutes of reviewing, it's clear to me that this will not get a good review if it isn't broken down severely into smaller chunks of reviewable work. > > This is certainly subject to @eleboucher's expertise, but I'd say: > > * Plugin lifecycle -- config, startup, shutdown > > * Startup and shutdown of "job containers" > > * Ability to exec remotely in the containers > > * Ability to copy files remotely into the containers > > * `delegates_to_docker` -- seems like an entirely separate capability that doesn't need to be in one PR > > > I'm not prescribing how to split it, but, I wouldn't be able to review this. This is really important functionality, with really subtle possible behaviours, and doing it right requires the ability for a reviewer to be able to fully grasp each change and think about the code that isn't present. "is this going to work when a job is cancelled", "what happens when this times out", "will error handling or resource leakage occur here" -- and that requires small chunks of work that build up the capabilities. Even if something doesn't have a meaningful outcome/output/deliverable in the first PRs. I refactored the commit history to make more sense i hope now it's ready for review and i'm still reachable here or on matrix for more
mfenniak left a comment

I've reviewed the first one and a half commits. My comments on the protocol are extensive and I'm starting to repeat myself, so I want to send this feedback for you first -- the rest of the protocol likely also needs more documentation, more consistency, and more independence from docker-related concepts.

I've reviewed the first one and a half commits. My comments on the protocol are extensive and I'm starting to repeat myself, so I want to send this feedback for you first -- the rest of the protocol likely also needs more documentation, more consistency, and more independence from docker-related concepts.
Lines 27-41
@ -0,0 +24,18 @@
return x.ep
}
// NewJobContainer creates the container the job runs in.
func (x *ExecutionEnvironment) NewJobContainer(input *actcontainer.NewContainerInput) actcontainer.ExecutionsEnvironment {
return NewContainer(x.ep, input)
}
// NewServiceContainer creates a service container for the job.
func (x *ExecutionEnvironment) NewServiceContainer(input *actcontainer.NewContainerInput) actcontainer.ExecutionsEnvironment {
return NewContainer(x.ep, input)
}
// NewStepContainer creates the container a single step runs in (container
// actions and `uses: docker://`).
func (x *ExecutionEnvironment) NewStepContainer(input *actcontainer.NewContainerInput) actcontainer.ExecutionsEnvironment {
return NewContainer(x.ep, input)
}
Owner

Why are three different methods with the same signature, and same implementation, required? In what case would an execution environment have different behaviour based upon whether you're working in a job, service, or step?

Why are three different methods with the same signature, and same implementation, required? In what case would an execution environment have different behaviour based upon whether you're working in a job, service, or step?
Owner

There has been no response to this comment asking a question, and no change related to it.

There has been no response to this comment asking a question, and no change related to it.
eleboucher marked this conversation as resolved
@ -0,0 +17,4 @@
rpc Create(CreateRequest) returns (CreateResponse);
// Start boots a previously created environment.
rpc Start(StartRequest) returns (StartResponse);
Owner

What do errors look like from this request, or any of these requests? How are errors encoded, and do they contain any information that is actionable / machine-readable? Are there any need for structured errors?

What do errors look like from this request, or any of these requests? How are errors encoded, and do they contain any information that is actionable / machine-readable? Are there any need for structured errors?
Owner

There has been no response to this comment asking a question, and no change related to it.

There has been no response to this comment asking a question, and no change related to it.
eleboucher marked this conversation as resolved
@ -0,0 +44,4 @@
message CapabilitiesRequest {}
message CapabilitiesResponse {
Owner

All the fields in the protocol requests and response deserve documentation to explain them. It would be reasonable to assume this is the primary source of information for a developer working on implementing the protocol.

All the fields in the protocol requests and response deserve documentation to explain them. It would be reasonable to assume this is the primary source of information for a developer working on implementing the protocol.
Owner

Only 2 of the 15 fields in CapabilitiesResponse are documented.

Only 2 of the 15 fields in `CapabilitiesResponse` are documented.
eleboucher marked this conversation as resolved
@ -0,0 +53,4 @@
string default_path_variable = 6;
string path_separator = 7;
bool supports_docker_actions = 8;
bool manages_own_networking = 9;
Owner

There are no APIs on BackendPlugin to manage networking. As an author of a plugin, what am I expecting this parameter to do?

There are no APIs on `BackendPlugin` to manage networking. As an author of a plugin, what am I expecting this parameter to do?
eleboucher marked this conversation as resolved
Lines 61-66
@ -0,0 +58,9 @@
bool environment_case_insensitive = 11;
map<string, string> runner_context = 12;
bool supports_local_copy = 13;
// delegates_to_docker indicates the plugin only manages an execution
// environment lifecycle and exposes a Docker daemon endpoint for the
// runner to drive containers against. When true, the runner ignores
// Exec/CopyIn/CopyLocal/CopyOut/UpdateEnv/IsHealthy on this plugin and
// talks directly to the daemon returned in CreateResponse.delegate.
bool delegates_to_docker = 14;
Owner

This is such a different protocol implementation that I'm inclined to think that it shouldn't be part of the same service. Would it be plausible to split the service along this dimension?

e.g. a plugin can implement either BackendPlugin or DockerTunnelPlugin, and the later doesn't require defining 6 methods that do nothing.

This is such a different protocol implementation that I'm inclined to think that it shouldn't be part of the same service. Would it be plausible to split the service along this dimension? e.g. a plugin can implement either `BackendPlugin` or `DockerTunnelPlugin`, and the later doesn't require defining 6 methods that do nothing.
eleboucher marked this conversation as resolved
@ -0,0 +79,4 @@
}
message CreateRequest {
string image = 1;
Owner

What is image intended to contain in execution environments that are not docker? Can we document that? Is it just plugin-defined arbitrary string, from the protocol's perspective?

What is `image` intended to contain in execution environments that are not docker? Can we document that? Is it just plugin-defined arbitrary string, from the protocol's perspective?
eleboucher marked this conversation as resolved
@ -0,0 +81,4 @@
message CreateRequest {
string image = 1;
string name = 2;
repeated string env = 3;
Owner

Would this make more sense as a key-value pair so that a plugin doesn't have to parse it?

Would this make more sense as a key-value pair so that a plugin doesn't have to parse it?
eleboucher marked this conversation as resolved
@ -0,0 +82,4 @@
string image = 1;
string name = 2;
repeated string env = 3;
string working_dir = 4;
Owner

Kinda surprising that this comes from the runner and not from the plugin to the runner. How does the runner know the right field value here, assuming that, for example, you're writing a plugin that creates a VM in a different OS like Windows?

Kinda surprising that this comes from the runner and not from the plugin to the runner. How does the runner know the right field value here, assuming that, for example, you're writing a plugin that creates a VM in a different OS like Windows?
Author
Contributor

working_dir is just the workflow's configured working directory, the same value the built-in Docker and host backends already get. The runner isn't claiming to know the VM's filesystem layout. It passes the path the job expects, and a plugin that can't use it literally (a Windows VM, say) maps it to wherever makes sense, same as it does for the paths in CapabilitiesResponse.

working_dir is just the workflow's configured working directory, the same value the built-in Docker and host backends already get. The runner isn't claiming to know the VM's filesystem layout. It passes the path the job expects, and a plugin that can't use it literally (a Windows VM, say) maps it to wherever makes sense, same as it does for the paths in CapabilitiesResponse.
Lines 86-87
@ -0,0 +83,5 @@
string name = 2;
repeated string env = 3;
string working_dir = 4;
repeated string cap_add = 5;
repeated string cap_drop = 6;
Owner

These are pretty Linux-specific, and, I wouldn't expect every execution environment can mange this even within Linux. What is a plugin author expected to do if this is not possible on their environment? It wasn't listed in the CapabilitiesResponse...

These are pretty Linux-specific, and, I wouldn't expect every execution environment can mange this even within Linux. What is a plugin author expected to do if this is not possible on their environment? It wasn't listed in the `CapabilitiesResponse`...
eleboucher marked this conversation as resolved
@ -0,0 +85,4 @@
string working_dir = 4;
repeated string cap_add = 5;
repeated string cap_drop = 6;
repeated ServiceContainer services = 7;
Owner

What are the expectations if I authored my plugin and indicated supports_service_containers = false?

What are the expectations if I authored my plugin and indicated `supports_service_containers = false`?
eleboucher marked this conversation as resolved
@ -0,0 +86,4 @@
repeated string cap_add = 5;
repeated string cap_drop = 6;
repeated ServiceContainer services = 7;
map<string, string> backend_options = 8;
Owner

What are backend_options?

What are `backend_options`?
eleboucher marked this conversation as resolved
@ -0,0 +89,4 @@
map<string, string> backend_options = 8;
// force_pull asks the plugin to re-fetch the image. Plugins that cannot
// honor it should still succeed using the cached image.
bool force_pull = 9;
Owner

I'm not sure that this belongs in the protocol; it doesn't seem like a generically meaningful parameter. It implies a lot about the nature of the executor and the image.

I'm not sure that this belongs in the protocol; it doesn't seem like a generically meaningful parameter. It implies a lot about the nature of the executor and the image.
Author
Contributor

force_pull maps 1:1 to the runner's existing Pull(forcePull) contract that the built-in Docker/host backends already honor

force_pull maps 1:1 to the runner's existing Pull(forcePull) contract that the built-in Docker/host backends already honor
@ -0,0 +92,4 @@
bool force_pull = 9;
// platform is the OS/arch (e.g. "linux/amd64") the runner label selected for
// image pulls and container creation. Empty means auto-detect.
string platform = 10;
Owner

This requires the backend to parse a docker-specific platform string (which, aside, contains an optional third parameter in the architecture variant). I'd suggest (a) separating this out into separate fields so it doesn't need to be parsed by a non-docker backend, and (b) maybe turning it into structured data like an enum? I'm not so sure about (b); I don't want to be updating the protocol for new OSes, but, I'm not loving the idea of a plugin author having no idea what is coming here.

Or the field can be described less in terms of linux/amd64, and more in terms of "this is an execution-environment specific value; the runner and the protocol treat it opaquely; whatever is passed in over here arrives over here at the plugin."

Empty means auto-detect -- I'd prefer marking the field optional and omitting it, what do you think?

This requires the backend to parse a docker-specific platform string (which, aside, contains an optional third parameter in the architecture variant). I'd suggest (a) separating this out into separate fields so it doesn't need to be parsed by a non-docker backend, and (b) **maybe** turning it into structured data like an enum? I'm not so sure about (b); I don't want to be updating the protocol for new OSes, but, I'm not loving the idea of a plugin author having no idea what is coming here. Or the field can be described less in terms of `linux/amd64`, and more in terms of "this is an execution-environment specific value; the runner and the protocol treat it opaquely; whatever is passed in *over here* arrives *over here* at the plugin." `Empty means auto-detect` -- I'd prefer marking the field `optional` and omitting it, what do you think?
eleboucher marked this conversation as resolved
@ -0,0 +97,4 @@
message CreateResponse {
string environment_id = 1;
// delegate is set iff CapabilitiesResponse.delegates_to_docker is true.
Owner

I assume iff is intended a if and only if; please elaborate it

I assume `iff` is intended a `if and only if`; please elaborate it
eleboucher marked this conversation as resolved
@ -0,0 +100,4 @@
// delegate is set iff CapabilitiesResponse.delegates_to_docker is true.
// Carries the Docker daemon endpoint and TLS material the runner uses
// to drive containers inside the plugin-managed environment.
DockerDelegate delegate = 2;
Owner

This field should be marked optional?

This field should be marked `optional`?
eleboucher marked this conversation as resolved
@ -0,0 +111,4 @@
string endpoint = 1;
bytes tls_ca = 2;
bytes tls_cert = 3;
bytes tls_key = 4;
Owner

Having a TLS private key transferred is surprising....

What kind of trust model are we trying to establish here? Like... this feels a bit like we connected all the dots required to connect to a TLS-encrypted docker container, but without any thought put into whether any real security is involved in doing so. CA private keys floating around in-memory between are effectively compromised.

This ends up being, why are we using TLS, what security do we want to gain from it, and are we meeting that objective?

Having a TLS private key transferred is surprising.... What kind of trust model are we trying to establish here? Like... this feels a bit like we connected all the dots required to connect to a TLS-encrypted docker container, but without any thought put into whether any real security is involved in doing so. CA private keys floating around in-memory between are effectively compromised. This ends up being, why are we using TLS, what security do we want to gain from it, and are we meeting that objective?
Owner

I don't see anything that addresses this comment -- the DockerDelegate message still contains a TLS private key

I don't see anything that addresses this comment -- the `DockerDelegate` message still contains a TLS private key
Author
Contributor

Yeah, you're right, the current design does not establish a meaningful trust boundary.

For v1alpha (which i think we should rename the proto to that), we should either:

  1. Remove TLS credential fields and support only an explicitly local/unix-socket Docker endpoint, or
  2. Define the delegate as trusted to access the Docker endpoint and document that it receives the client private key, with the TLS configuration supplied only through a secure plugin configuration channel.
Yeah, you're right, the current design does not establish a meaningful trust boundary. For v1alpha (which i think we should rename the proto to that), we should either: 1. Remove TLS credential fields and support only an explicitly local/unix-socket Docker endpoint, or 2. Define the delegate as trusted to access the Docker endpoint and document that it receives the client private key, with the TLS configuration supplied only through a secure plugin configuration channel.
@ -0,0 +123,4 @@
}
message StartResponse {
map<string, string> image_env = 1;
Owner

What is this?

What is this?
eleboucher marked this conversation as resolved
@ -0,0 +130,4 @@
message ExecRequest {
string environment_id = 1;
repeated string command = 2;
map<string, string> env = 3;
Owner

Here you've gone for map<string, string> for env, where earlier it was repeated string.

Here you've gone for `map<string, string>` for `env`, where earlier it was `repeated string`.
eleboucher marked this conversation as resolved
Owner

I'm overall inclined to think that, before we can land this plugin capability, it might be reasonable to have two independent implementations of plugins built on it. The protocol is going to be important and long-standing, so that might be the only way to gain a lot of confidence that it hits the right notes... 🤔

I'm overall inclined to think that, before we can land this plugin capability, it might be reasonable to have two independent implementations of plugins built on it. The protocol is going to be important and long-standing, so that might be the only way to gain a lot of confidence that it hits the right notes... 🤔
eleboucher force-pushed plugin from ce1c26f593
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / runner exec tests (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 4s
checks / validate mocks (pull_request) Successful in 31s
checks / validate pre-commit-hooks file (pull_request) Successful in 37s
checks / Build Forgejo Runner (pull_request) Successful in 48s
checks / runner exec tests (pull_request) Successful in 51s
checks / Build unsupported platforms (pull_request) Successful in 1m10s
Integration tests for the release process / release-simulation (pull_request) Successful in 4m8s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 9m49s
checks / Run integration tests with Podman (pull_request) Failing after 11m33s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 12m38s
to 6e5e2dc356
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / runner exec tests (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 5s
checks / validate mocks (pull_request) Successful in 30s
checks / validate pre-commit-hooks file (pull_request) Successful in 40s
checks / Build Forgejo Runner (pull_request) Successful in 48s
checks / runner exec tests (pull_request) Successful in 36s
example / docker-build-push-action-in-lxc (pull_request) Successful in 1m56s
checks / Build unsupported platforms (pull_request) Successful in 1m7s
/ example-docker-compose (pull_request) Successful in 2m22s
Integration tests for the release process / release-simulation (pull_request) Successful in 4m31s
/ example-on-demand (pull_request) Successful in 5m20s
/ example-lxc-systemd (pull_request) Successful in 6m56s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 10m42s
checks / Run integration tests with Podman (pull_request) Failing after 11m38s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 12m27s
2026-07-09 11:30:41 +00:00
Compare
eleboucher force-pushed plugin from 6e5e2dc356
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / runner exec tests (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 5s
checks / validate mocks (pull_request) Successful in 30s
checks / validate pre-commit-hooks file (pull_request) Successful in 40s
checks / Build Forgejo Runner (pull_request) Successful in 48s
checks / runner exec tests (pull_request) Successful in 36s
example / docker-build-push-action-in-lxc (pull_request) Successful in 1m56s
checks / Build unsupported platforms (pull_request) Successful in 1m7s
/ example-docker-compose (pull_request) Successful in 2m22s
Integration tests for the release process / release-simulation (pull_request) Successful in 4m31s
/ example-on-demand (pull_request) Successful in 5m20s
/ example-lxc-systemd (pull_request) Successful in 6m56s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 10m42s
checks / Run integration tests with Podman (pull_request) Failing after 11m38s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 12m27s
to e0cc068092
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 4s
checks / validate mocks (pull_request) Successful in 35s
checks / validate pre-commit-hooks file (pull_request) Successful in 44s
checks / Build Forgejo Runner (pull_request) Successful in 53s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 31s
example / docker-build-push-action-in-lxc (pull_request) Successful in 1m58s
/ example-docker-compose (pull_request) Successful in 2m36s
checks / Build unsupported platforms (pull_request) Failing after 2m7s
/ example-on-demand (pull_request) Successful in 4m47s
Integration tests for the release process / release-simulation (pull_request) Successful in 5m45s
/ example-lxc-systemd (pull_request) Successful in 8m42s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 11m52s
checks / Run integration tests with Podman (pull_request) Failing after 12m42s
checks / Run integration tests with Docker (docker-stable) (pull_request) Failing after 13m28s
2026-07-26 20:36:59 +00:00
Compare
Author
Contributor

@mfenniak wrote in #1500 (comment):

I'm overall inclined to think that, before we can land this plugin capability, it might be reasonable to have two independent implementations of plugins built on it. The protocol is going to be important and long-standing, so that might be the only way to gain a lot of confidence that it hits the right notes... 🤔

Thanks for the review. Pushed a rework addressing the structural points:

  • Split the service. delegates_to_docker is gone. Now BackendPlugin (full lifecycle) and DockerTunnelPlugin
    (Create/Remove + returns the daemon endpoint). No more no-op methods to stub. Matches the VM-delegate direction from
    #107.
  • Docs. Every proto field now documented.
  • Consistency. env is map<string,string> everywhere; the runner parses KEY=VALUE, not plugins.
  • backend_options/force_pull/networking: documented in place. manages_own_networking is consumed (runner skips network
    creation).
  • platform: now optional and opaque; real rework is #1586.
  • TLS. Documented on DockerTunnelPlugin: runner already trusts the plugin, so TLS protects the in-VM daemon socket, not
    the runner. Default is unix/vsock with no key transfer; networked mode uses ephemeral per-env client certs.
  • Two implementations: a k8s backend and a microVM backend, both on BackendPlugin. The tunnel path still awaits a
    delegate POC.
@mfenniak wrote in https://code.forgejo.org/forgejo/runner/pulls/1500#issuecomment-93103: > I'm overall inclined to think that, before we can land this plugin capability, it might be reasonable to have two independent implementations of plugins built on it. The protocol is going to be important and long-standing, so that might be the only way to gain a lot of confidence that it hits the right notes... :thinking: Thanks for the review. Pushed a rework addressing the structural points: - Split the service. delegates_to_docker is gone. Now BackendPlugin (full lifecycle) and DockerTunnelPlugin (Create/Remove + returns the daemon endpoint). No more no-op methods to stub. Matches the VM-delegate direction from #107. - Docs. Every proto field now documented. - Consistency. env is map<string,string> everywhere; the runner parses KEY=VALUE, not plugins. - backend_options/force_pull/networking: documented in place. manages_own_networking is consumed (runner skips network creation). - platform: now optional and opaque; real rework is #1586. - TLS. Documented on DockerTunnelPlugin: runner already trusts the plugin, so TLS protects the in-VM daemon socket, not the runner. Default is unix/vsock with no key transfer; networked mode uses ephemeral per-env client certs. - Two implementations: a k8s backend and a microVM backend, both on BackendPlugin. The tunnel path still awaits a delegate POC.
Owner

@eleboucher As you've noted in chat that you've made changes, I pulled this into my review queue again. But I'm confused looking at this -- I've started to go through my last comments and bring up the first two commits, b199e0678d978e8cbb3031556200e95470d62041 and 34ef1fb68211c535b5d6971e7c1690c68c822b7d, and all my comments sem to be unaddressed relative to the code (or questions that weren't answered).

I think the problem here is that you've previously split the work into reviewable commits, but, now the changes aren't in those commits. So the original plan of reviewing this commit-by-commit won't work if you haven't incorporated changes into those commits.

Please help me understand what you're expecting for a workflow to collaborate on this. It doesn't make sense, to me, to review commits that are based upon an implementation that changes later in the PR... what did you have in mind here?

@eleboucher As you've noted in chat that you've made changes, I pulled this into my review queue again. But I'm confused looking at this -- I've started to go through my last comments and bring up the first two commits, b199e0678d978e8cbb3031556200e95470d62041 and 34ef1fb68211c535b5d6971e7c1690c68c822b7d, and all my comments sem to be unaddressed relative to the code (or questions that weren't answered). I think the problem here is that you've previously split the work into reviewable commits, but, now the changes aren't in those commits. So the original plan of reviewing this commit-by-commit won't work if you haven't incorporated changes *into* those commits. Please help me understand what you're expecting for a workflow to collaborate on this. It doesn't make sense, to me, to review commits that are based upon an implementation that changes later in the PR... what did you have in mind here?
eleboucher force-pushed plugin from e0cc068092
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 4s
checks / validate mocks (pull_request) Successful in 35s
checks / validate pre-commit-hooks file (pull_request) Successful in 44s
checks / Build Forgejo Runner (pull_request) Successful in 53s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 31s
example / docker-build-push-action-in-lxc (pull_request) Successful in 1m58s
/ example-docker-compose (pull_request) Successful in 2m36s
checks / Build unsupported platforms (pull_request) Failing after 2m7s
/ example-on-demand (pull_request) Successful in 4m47s
Integration tests for the release process / release-simulation (pull_request) Successful in 5m45s
/ example-lxc-systemd (pull_request) Successful in 8m42s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 11m52s
checks / Run integration tests with Podman (pull_request) Failing after 12m42s
checks / Run integration tests with Docker (docker-stable) (pull_request) Failing after 13m28s
to fdf5ce3f3c
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / runner exec tests (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 8s
checks / validate mocks (pull_request) Successful in 31s
checks / validate pre-commit-hooks file (pull_request) Successful in 42s
checks / Build Forgejo Runner (pull_request) Successful in 50s
checks / runner exec tests (pull_request) Successful in 30s
example / docker-build-push-action-in-lxc (pull_request) Successful in 1m55s
checks / Build unsupported platforms (pull_request) Successful in 1m5s
/ example-docker-compose (pull_request) Successful in 2m9s
/ example-lxc-systemd (pull_request) Has been cancelled
/ example-on-demand (pull_request) Has been cancelled
checks / Run integration tests with Podman (pull_request) Has been cancelled
checks / Run integration tests with Docker (docker-stable) (pull_request) Has been cancelled
Integration tests for the release process / release-simulation (pull_request) Has been cancelled
checks / Run integration tests with Docker (docker-latest) (pull_request) Has been cancelled
2026-07-31 22:33:47 +00:00
Compare
eleboucher force-pushed plugin from fdf5ce3f3c
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / runner exec tests (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 8s
checks / validate mocks (pull_request) Successful in 31s
checks / validate pre-commit-hooks file (pull_request) Successful in 42s
checks / Build Forgejo Runner (pull_request) Successful in 50s
checks / runner exec tests (pull_request) Successful in 30s
example / docker-build-push-action-in-lxc (pull_request) Successful in 1m55s
checks / Build unsupported platforms (pull_request) Successful in 1m5s
/ example-docker-compose (pull_request) Successful in 2m9s
/ example-lxc-systemd (pull_request) Has been cancelled
/ example-on-demand (pull_request) Has been cancelled
checks / Run integration tests with Podman (pull_request) Has been cancelled
checks / Run integration tests with Docker (docker-stable) (pull_request) Has been cancelled
Integration tests for the release process / release-simulation (pull_request) Has been cancelled
checks / Run integration tests with Docker (docker-latest) (pull_request) Has been cancelled
to cba3cfcd05
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 6s
checks / validate mocks (pull_request) Successful in 30s
checks / Build Forgejo Runner (pull_request) Successful in 36s
checks / validate pre-commit-hooks file (pull_request) Successful in 39s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 30s
example / docker-build-push-action-in-lxc (pull_request) Successful in 1m41s
/ example-docker-compose (pull_request) Successful in 1m42s
checks / Build unsupported platforms (pull_request) Failing after 1m54s
Integration tests for the release process / release-simulation (pull_request) Successful in 4m18s
/ example-on-demand (pull_request) Successful in 4m38s
/ example-lxc-systemd (pull_request) Successful in 7m21s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 10m11s
checks / Run integration tests with Podman (pull_request) Failing after 11m41s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 12m38s
2026-07-31 22:37:30 +00:00
Compare
eleboucher force-pushed plugin from cba3cfcd05
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 6s
checks / validate mocks (pull_request) Successful in 30s
checks / Build Forgejo Runner (pull_request) Successful in 36s
checks / validate pre-commit-hooks file (pull_request) Successful in 39s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 30s
example / docker-build-push-action-in-lxc (pull_request) Successful in 1m41s
/ example-docker-compose (pull_request) Successful in 1m42s
checks / Build unsupported platforms (pull_request) Failing after 1m54s
Integration tests for the release process / release-simulation (pull_request) Successful in 4m18s
/ example-on-demand (pull_request) Successful in 4m38s
/ example-lxc-systemd (pull_request) Successful in 7m21s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 10m11s
checks / Run integration tests with Podman (pull_request) Failing after 11m41s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 12m38s
to 6bd7a04ae4
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 4s
checks / validate mocks (pull_request) Successful in 19s
checks / validate pre-commit-hooks file (pull_request) Successful in 30s
checks / Build Forgejo Runner (pull_request) Successful in 42s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 50s
checks / Build unsupported platforms (pull_request) Failing after 1m43s
Integration tests for the release process / release-simulation (pull_request) Successful in 3m56s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 10m12s
checks / Run integration tests with Podman (pull_request) Failing after 11m41s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 12m15s
2026-08-01 08:44:05 +00:00
Compare
Author
Contributor

@mfenniak wrote in #1500 (comment):

@eleboucher As you've noted in chat that you've made changes, I pulled this into my review queue again. But I'm confused looking at this -- I've started to go through my last comments and bring up the first two commits, b199e0678d and 34ef1fb682, and all my comments sem to be unaddressed relative to the code (or questions that weren't answered).

I think the problem here is that you've previously split the work into reviewable commits, but, now the changes aren't in those commits. So the original plan of reviewing this commit-by-commit won't work if you haven't incorporated changes into those commits.

Please help me understand what you're expecting for a workflow to collaborate on this. It doesn't make sense, to me, to review commits that are based upon an implementation that changes later in the PR... what did you have in mind here?

my bad i'm sorry, I've rewritten the branch so each commit reflects the final design: the proto commit now has the two-service layout your comments were about, Please re-review from the top.

@mfenniak wrote in https://code.forgejo.org/forgejo/runner/pulls/1500#issuecomment-96341: > @eleboucher As you've noted in chat that you've made changes, I pulled this into my review queue again. But I'm confused looking at this -- I've started to go through my last comments and bring up the first two commits, [`b199e0678d`](/forgejo/runner/commit/b199e0678d978e8cbb3031556200e95470d62041) and [`34ef1fb682`](/forgejo/runner/commit/34ef1fb68211c535b5d6971e7c1690c68c822b7d), and all my comments sem to be unaddressed relative to the code (or questions that weren't answered). > > I think the problem here is that you've previously split the work into reviewable commits, but, now the changes aren't in those commits. So the original plan of reviewing this commit-by-commit won't work if you haven't incorporated changes _into_ those commits. > > Please help me understand what you're expecting for a workflow to collaborate on this. It doesn't make sense, to me, to review commits that are based upon an implementation that changes later in the PR... what did you have in mind here? my bad i'm sorry, I've rewritten the branch so each commit reflects the final design: the proto commit now has the two-service layout your comments were about, Please re-review from the top.
eleboucher force-pushed plugin from 6bd7a04ae4
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 4s
checks / validate mocks (pull_request) Successful in 19s
checks / validate pre-commit-hooks file (pull_request) Successful in 30s
checks / Build Forgejo Runner (pull_request) Successful in 42s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 50s
checks / Build unsupported platforms (pull_request) Failing after 1m43s
Integration tests for the release process / release-simulation (pull_request) Successful in 3m56s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 10m12s
checks / Run integration tests with Podman (pull_request) Failing after 11m41s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 12m15s
to bdcbd91518
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 4s
checks / validate mocks (pull_request) Successful in 20s
checks / Build Forgejo Runner (pull_request) Successful in 26s
checks / validate pre-commit-hooks file (pull_request) Successful in 32s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 30s
checks / Build unsupported platforms (pull_request) Failing after 1m56s
Integration tests for the release process / release-simulation (pull_request) Successful in 3m54s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 10m9s
checks / Run integration tests with Podman (pull_request) Failing after 11m54s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 12m15s
2026-08-01 09:37:52 +00:00
Compare
mfenniak left a comment

I can see that you've put a lot of work into this, but I'm quite uncertain about this development direction. I want to have a plugin-based approach for extension. 👍 The problem is that as I review this, it feels like a hundred things are incomplete or underspecified in this protocol.

This makes is very hard to review comprehensively; it's mentally exhausting to not be able to see how all the pieces fit together, and to see dead ends (like manages_own_networking) where it seems like there's an idea but it is incomplete.

I'm tempted to say that there is a much smaller protocol that should be a "v1", with simpler inputs, simpler requirements, and we can get a very basic version of this done. This revision right now is a gigantic chunk of work that makes it very difficult to get a solid, well designed protocol defined.

I can see that you've put a lot of work into this, but I'm quite uncertain about this development direction. I want to have a plugin-based approach for extension. 👍 The problem is that as I review this, it feels like a hundred things are incomplete or underspecified in this protocol. This makes is very hard to review comprehensively; it's mentally exhausting to not be able to see how all the pieces fit together, and to see dead ends (like `manages_own_networking`) where it seems like there's an idea but it is incomplete. I'm tempted to say that there is a much smaller protocol that should be a "v1", with simpler inputs, simpler requirements, and we can get a very basic version of this done. This revision right now is a gigantic chunk of work that makes it very difficult to get a solid, well designed protocol defined.
Lines 87-91
@ -0,0 +84,8 @@
opt(&cfg)
}
if _, ok := ctx.Deadline(); !ok {
var cancel context.CancelFunc
ctx, cancel = context.WithTimeout(ctx, cfg.dialTimeout)
defer cancel()
}
Owner

Why is cfg.dialTimeout only used here if the context passed into NewClient has a timeout? That doesn't seem to make much sense to me.

Why is `cfg.dialTimeout` only used here if the context passed into `NewClient` has a timeout? That doesn't seem to make much sense to me.
eleboucher marked this conversation as resolved
@ -0,0 +29,4 @@
// BackendPlugin owns the full lifecycle of an execution environment and every
// container operation within it.
service BackendPlugin {
Owner

Missing, in my opinion, is some way for the runner and the plugin to manage cleanup failures.

If the plugin crashes, or the runner crashes, when restarted the plugin may have resources that were created and are no longer being managed by the runner. e.g. we started a job, then crashed. We have no mechanism then to query from the plugin which jobs are currently running and perform cleanup when the runner knows that they aren't valid.

Missing, in my opinion, is some way for the runner and the plugin to manage cleanup failures. If the plugin crashes, or the runner crashes, when restarted the plugin may have resources that were created and are no longer being managed by the runner. e.g. we started a job, then crashed. We have no mechanism then to query from the plugin which jobs are currently running and perform cleanup when the runner knows that they aren't valid.
eleboucher marked this conversation as resolved
@ -0,0 +50,4 @@
// CopyLocal copies a path from a volume shared with the runner into the
// environment. Only called when CapabilitiesResponse.supports_local_copy is
// true; a faster alternative to streaming the same bytes through CopyIn.
Owner

Is the performance difference here worth having a more complicated plugin API and capabilities declaration? Would it maybe make sense to defer this complication to a future protocol addition, and keep things simple in this revision?

Is the performance difference here worth having a more complicated plugin API and capabilities declaration? Would it maybe make sense to defer this complication to a future protocol addition, and keep things simple in this revision?
eleboucher marked this conversation as resolved
@ -0,0 +54,4 @@
rpc CopyLocal(CopyLocalRequest) returns (CopyLocalResponse);
// CopyOut transfers a tar archive out of the environment.
rpc CopyOut(CopyOutRequest) returns (stream CopyOutChunk);
Owner

How does this interact with CopyLocal, is there an equivalent capability for copying out of the container, or does the same capability get reused, or is CopyLocal just one-way (and if so, why?)

How does this interact with CopyLocal, is there an equivalent capability for copying out of the container, or does the same capability get reused, or is CopyLocal just one-way (and if so, why?)
eleboucher marked this conversation as resolved
@ -0,0 +58,4 @@
// UpdateEnv reads an env file inside the environment and returns the parsed
// variables merged over the ones the runner already knows.
rpc UpdateEnv(UpdateEnvRequest) returns (UpdateEnvResponse);
Owner

Why not use CopyOut? Simplify the protocol and the requirements of writing a plugin?

Why not use `CopyOut`? Simplify the protocol and the requirements of writing a plugin?
Author
Contributor

Removed CopyLocal and supports_local_copy for v1alpha. CopyDir now always streams through CopyIn, so there's one copy-in path and CopyOut for the other direction.

Removed CopyLocal and supports_local_copy for v1alpha. CopyDir now always streams through CopyIn, so there's one copy-in path and CopyOut for the other direction.
eleboucher marked this conversation as resolved
@ -0,0 +64,4 @@
rpc IsHealthy(IsHealthyRequest) returns (IsHealthyResponse);
// Remove tears down the environment and releases all resources.
rpc Remove(RemoveRequest) returns (RemoveResponse);
Owner

In some execution environments this might be a time consuming operation. Is there a specific expectation that all the cleanup is completed immediately? Or is it possible that some cleanup can be deferred (maybe as long as any resources referenced by name are freed?)

In some execution environments this might be a time consuming operation. Is there a specific expectation that all the cleanup is completed immediately? Or is it possible that some cleanup can be deferred (maybe as long as any resources referenced by name are freed?)
Author
Contributor

Remove is expected to release the named resources (so the runner won't reference them again), but it doesn't have to block on full teardown.

Remove is expected to release the named resources (so the runner won't reference them again), but it doesn't have to block on full teardown.
@ -0,0 +88,4 @@
message CapabilitiesRequest {}
message CapabilitiesResponse {
reserved 14; // was delegates_to_docker; delegation is now DockerTunnelPlugin.
Owner

As this protocol is still under development, it doesn't seem necessary to mark old fields as reserved. They can just be removed and the fields renumbered.

As this protocol is still under development, it doesn't seem necessary to mark old fields as reserved. They can just be removed and the fields renumbered.
Lines 96-101
@ -0,0 +93,9 @@
// name identifies the backend (e.g. "kubernetes"); used in logs and as the
// container back-end name.
string name = 1;
// root_path is the base directory the runner lays workflow files out under.
string root_path = 2;
// act_path is where the runner stages its helper binaries and action code.
string act_path = 3;
// tool_cache_path is exposed to jobs as RUNNER_TOOL_CACHE.
string tool_cache_path = 4;
Owner

These are responses from the plugin?

I'm quite confused as to why the plugin would need to communicate this back to the runner... for example, tool_cache_path -- the usage just seems to be that it gets passed back to the execution environment as RUNNER_TOOL_CACHE. root_path doesn't seem to be used at all in the runner side of this implementation.

What is the vision for why these are part of the capabilities, and how the runner would use them?

These are *responses* from the plugin? I'm quite confused as to why the plugin would need to communicate this back to the runner... for example, `tool_cache_path` -- the usage just seems to be that it gets passed back to the execution environment as `RUNNER_TOOL_CACHE`. `root_path` doesn't seem to be used at all in the runner side of this implementation. What is the vision for why these are part of the capabilities, and how the runner would use them?
Author
Contributor

These back the ExecutionsEnvironment interface the runner already uses: root_path→GetRoot() (used when staging job files), act_path→GetActPath() (where the runner uploads its helper binaries), tool_cache_path→RUNNER_TOOL_CACHE. The plugin owns the environment's filesystem layout, so it has to tell the runner where those live. Kept, and documented each field in the proto.

These back the ExecutionsEnvironment interface the runner already uses: root_path→GetRoot() (used when staging job files), act_path→GetActPath() (where the runner uploads its helper binaries), tool_cache_path→RUNNER_TOOL_CACHE. The plugin owns the environment's filesystem layout, so it has to tell the runner where those live. Kept, and documented each field in the proto.
Owner

CapabilitiesResponse is invoked once, and must return root_path, act_path, tool_cache_path, etc. Then later, Runner combines these into paths and calls CopyIn. If the plugin is not a plugin that internally creates isolated filesystems, then every invocation of CopyIn it is going to get the same path -- even for different environment_id. A plugin of this nature would have difficulty keeping files apart for different environments. CopyIn could manage this by parsing the path, and rebuilding it with the environment_id, but that feels strange.

How would you propose to solve this problem, if you were authoring a plugin?

One alternative design might be to:

  • Remove all the paths from CapabilitiesResponse.
  • Add an enum to the protocol, CopyRoot, with values ActPath, ToolCachePath, ...
  • Add to CopyInChunk a CopyRoot.
  • Add to CopyOutChunk a CopyRoot.
  • Internally change the necessary interfaces so that a symbolic reference of an enum is used where paths interface to the execution environment.

This would allow the plugin to construct the path based upon a unique prefix for the environment_id, and add subpaths for each enum value. But, I haven't evaluated how complex the implementation changes in the runner would be. Please let me know if you have an alternative approach to solving this problem with the existing design.

`CapabilitiesResponse` is invoked once, and must return `root_path`, `act_path`, `tool_cache_path`, etc. Then later, Runner combines these into paths and calls CopyIn. If the plugin is **not** a plugin that internally creates isolated filesystems, then every invocation of `CopyIn` it is going to get the same path -- even for different `environment_id`. A plugin of this nature would have difficulty keeping files apart for different environments. `CopyIn` could manage this by parsing the path, and rebuilding it with the `environment_id`, but that feels strange. How would you propose to solve this problem, if you were authoring a plugin? One alternative design might be to: - Remove all the paths from `CapabilitiesResponse`. - Add an enum to the protocol, `CopyRoot`, with values `ActPath`, `ToolCachePath`, ... - Add to `CopyInChunk` a `CopyRoot`. - Add to `CopyOutChunk` a `CopyRoot`. - Internally change the necessary interfaces so that a symbolic reference of an enum is used where paths interface to the execution environment. This would allow the plugin to construct the path based upon a unique prefix for the `environment_id`, and add subpaths for each enum value. But, I haven't evaluated how complex the implementation changes in the runner would be. Please let me know if you have an alternative approach to solving this problem with the existing design.
Lines 103-104
@ -0,0 +100,5 @@
// tool_cache_path is exposed to jobs as RUNNER_TOOL_CACHE.
string tool_cache_path = 4;
// path_variable_name is the search-path environment variable ("PATH" on
// POSIX, "Path" on Windows). Defaults to "PATH" when empty.
string path_variable_name = 5;
Owner

Defaults to "PATH" indicates that this should be marked as an optional field.

`Defaults to "PATH"` indicates that this should be marked as an `optional` field.
@ -0,0 +106,4 @@
string default_path_variable = 6;
// path_separator joins entries of path_variable_name (":" or ";"). Defaults
// to ":" when empty.
string path_separator = 7;
Owner

Default value -> also means this is optional.

Default value -> also means this is `optional`.
Lines 113-115
@ -0,0 +110,6 @@
// supports_docker_actions gates `uses: docker://` and container actions. When
// false, the runner errors upfront on a job that needs them.
bool supports_docker_actions = 8;
// manages_own_networking tells the runner the backend provides connectivity
// itself; the runner then skips creating/attaching a Docker-style network.
bool manages_own_networking = 9;
Owner

Still confused over this field, as noted #1500 (comment). There don't appear to be APIs in the plugin for managing a network. The boolean returned here doesn't seem to ever be used. What is this here for?

Still confused over this field, as noted https://code.forgejo.org/forgejo/runner/pulls/1500#issuecomment-93080. There don't appear to be APIs in the plugin for managing a network. The boolean returned here doesn't seem to ever be used. What is this here for?
eleboucher marked this conversation as resolved
@ -0,0 +120,4 @@
// case-insensitive (Windows), so the runner de-duplicates accordingly.
bool environment_case_insensitive = 11;
// runner_context carries backend-provided values for the Actions runner
// context (os, arch, temp, tool_cache). Treated as opaque key/values.
Owner

tool_cache_path is a different field?

Why are these fields unstructured in a map?

`tool_cache_path` is a different field? Why are these fields unstructured in a map?
@ -0,0 +127,4 @@
bool supports_local_copy = 13;
// protocol_version is the plugin protocol the server speaks. The runner
// rejects a plugin whose version it does not support.
uint32 protocol_version = 15;
Owner

I'm not sure that this field is necessary. We're in a package v1 -- if there was a protocol change that was significant enough that it couldn't be managed through optional field detection, it would just be a separate protocol revision v2

I'm not sure that this field is necessary. We're in a package `v1` -- if there was a protocol change that was significant enough that it couldn't be managed through optional field detection, it would just be a separate protocol revision `v2`
eleboucher marked this conversation as resolved
Lines 168-172
@ -0,0 +165,8 @@
// force_pull asks the backend to re-fetch the image rather than use a cached
// copy. Backends that cannot honor it should still succeed with the cache.
bool force_pull = 9;
// platform is an execution-environment-specific value the runner passes
// through verbatim (a Docker backend reads it as an OS/arch string like
// "linux/amd64"). Omitted when the runner has no selection to convey.
// Platform discovery is being reworked; this field is provisional.
optional string platform = 10;
Owner

Passes through verbatim? Where does it get this value from, then? If it's from the backend options... why isn't it just part of backend_options?

Passes through verbatim? Where does it get this value from, then? If it's from the backend options... why isn't it just part of `backend_options`?
@ -0,0 +199,4 @@
bytes tls_ca = 2;
// tls_cert / tls_key are the client certificate and its private key the
// runner presents to the daemon. Empty for non-networked endpoints; when set,
// should be ephemeral and scoped to this environment (see message docs).
Owner

What is (see message docs)?

What is `(see message docs)`?
mfenniak marked this conversation as resolved
@ -0,0 +212,4 @@
string name = 1;
// protocol_version is the plugin protocol the server speaks. The runner
// rejects a plugin whose version it does not support.
uint32 protocol_version = 2;
Owner

same comment as previous re: protocol_version, I don't think these fields are needed.

same comment as previous re: `protocol_version`, I don't think these fields are needed.
eleboucher marked this conversation as resolved
@ -0,0 +222,4 @@
// platform is an execution-environment-specific value passed through verbatim
// (which VM/OS to boot). Omitted when the runner has no selection to convey.
// Platform discovery is being reworked; this field is provisional.
optional string platform = 2;
Owner

Same concern as platform in the CreateRequest

Same concern as `platform` in the `CreateRequest`
eleboucher marked this conversation as resolved
@ -0,0 +254,4 @@
// env are environment variables to set for this command.
map<string, string> env = 3;
// user is the user to run as, when the backend supports it (empty = default).
string user = 4;
Owner

Mark optional.

Mark `optional`.
eleboucher marked this conversation as resolved
@ -0,0 +256,4 @@
// user is the user to run as, when the backend supports it (empty = default).
string user = 4;
// workdir overrides the working directory for this command (empty = default).
string workdir = 5;
Owner

Mark optional.

Mark `optional`.
eleboucher marked this conversation as resolved
@ -0,0 +269,4 @@
// data is a chunk of output bytes.
bytes data = 2;
// exit_code is the command's exit status; only meaningful when done is true.
int32 exit_code = 3;
Owner

Mark optional

Mark `optional`
eleboucher marked this conversation as resolved
@ -0,0 +274,4 @@
bool done = 4;
// error_message describes a failure to run the command (as opposed to the
// command itself failing); only meaningful when done is true.
string error_message = 5;
Owner

Mark optional

Mark `optional`
eleboucher marked this conversation as resolved
Lines 284-286
@ -0,0 +281,6 @@
// environment_id and dest_path; subsequent chunks carry only data. Servers MUST
// reject environment_id or dest_path on later chunks with codes.InvalidArgument.
message CopyInChunk {
string environment_id = 1;
// dest_path is the directory the tar archive is extracted into.
string dest_path = 2;
Owner

as these fields aren't expected on a second chunk, optional.

as these fields aren't expected on a second chunk, `optional`.
eleboucher marked this conversation as resolved
Lines 318-319
@ -0,0 +315,5 @@
string environment_id = 1;
// src_path is the env file inside the environment to read.
string src_path = 2;
// current_env is the runner's current view, which the file is merged over.
map<string, string> current_env = 3;
Owner

Why is the plugin is responsible for merging the contents into the existing map? Shouldn't this be the runner's responsibility?

Why is the plugin is responsible for merging the contents into the existing map? Shouldn't this be the runner's responsibility?
eleboucher marked this conversation as resolved
@ -0,0 +1,713 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
Owner

I don't see any updates in this commit to the Makefile -- is this file generated automatically when the protocol file is changed?

I don't see any updates in this commit to the `Makefile` -- is this file generated automatically when the protocol file is changed?
Lines 345-350
@ -343,6 +343,8 @@
}
workdirParent := r.cfg.Container.WorkdirParent
runnerConfig := &runner.Config{
// On Linux, Workdir will be like "/<parent_directory>/<owner>/<repo>"
// On Windows, Workdir will be like "\<parent_directory>\<owner>\<repo>"
Workdir: filepath.FromSlash(filepath.Clean(fmt.Sprintf("/%s/%s", r.cfg.Container.WorkdirParent, preset.Repository))),
Workdir: filepath.FromSlash(filepath.Clean(fmt.Sprintf("/%s/%s", workdirParent, preset.Repository))),
Owner

Moving workdirParent seems like an irrelevant change here

Moving `workdirParent` seems like an irrelevant change here
Author
Contributor

removed

removed
Lines 53-55
@ -50,9 +50,6 @@ func Parse(str string) (*Label, error) {
if len(splits) >= 2 {
label.Schema = splits[1]
if label.Schema != SchemeHost && label.Schema != SchemeDocker && label.Schema != SchemeLXC {
return nil, fmt.Errorf("unsupported schema: %s", label.Schema)
}
Owner

This validation should be relocated, not removed, so that someone can't typo their label URLs

This validation should be relocated, not removed, so that someone can't typo their label URLs
mfenniak marked this conversation as resolved
eleboucher force-pushed plugin from bdcbd91518
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 4s
checks / validate mocks (pull_request) Successful in 20s
checks / Build Forgejo Runner (pull_request) Successful in 26s
checks / validate pre-commit-hooks file (pull_request) Successful in 32s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 30s
checks / Build unsupported platforms (pull_request) Failing after 1m56s
Integration tests for the release process / release-simulation (pull_request) Successful in 3m54s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 10m9s
checks / Run integration tests with Podman (pull_request) Failing after 11m54s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 12m15s
to ed51d1c259
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 43s
checks / validate mocks (pull_request) Successful in 1m38s
checks / validate pre-commit-hooks file (pull_request) Successful in 1m46s
checks / Build Forgejo Runner (pull_request) Successful in 1m49s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 53s
checks / Build unsupported platforms (pull_request) Failing after 3m10s
Integration tests for the release process / release-simulation (pull_request) Successful in 7m32s
checks / Run integration tests with Docker (docker-latest) (pull_request) Has been cancelled
checks / Run integration tests with Docker (docker-stable) (pull_request) Has been cancelled
checks / Run integration tests with Podman (pull_request) Has been cancelled
2026-08-07 16:44:58 +00:00
Compare
eleboucher force-pushed plugin from ed51d1c259
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 43s
checks / validate mocks (pull_request) Successful in 1m38s
checks / validate pre-commit-hooks file (pull_request) Successful in 1m46s
checks / Build Forgejo Runner (pull_request) Successful in 1m49s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 53s
checks / Build unsupported platforms (pull_request) Failing after 3m10s
Integration tests for the release process / release-simulation (pull_request) Successful in 7m32s
checks / Run integration tests with Docker (docker-latest) (pull_request) Has been cancelled
checks / Run integration tests with Docker (docker-stable) (pull_request) Has been cancelled
checks / Run integration tests with Podman (pull_request) Has been cancelled
to a16f5c90c8
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 11s
checks / validate mocks (pull_request) Successful in 36s
checks / Build Forgejo Runner (pull_request) Successful in 45s
checks / validate pre-commit-hooks file (pull_request) Successful in 54s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 39s
checks / Build unsupported platforms (pull_request) Failing after 2m48s
Integration tests for the release process / release-simulation (pull_request) Has been cancelled
checks / Run integration tests with Docker (docker-latest) (pull_request) Has been cancelled
checks / Run integration tests with Docker (docker-stable) (pull_request) Has been cancelled
checks / Run integration tests with Podman (pull_request) Has been cancelled
2026-08-07 16:56:10 +00:00
Compare
eleboucher force-pushed plugin from a16f5c90c8
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 11s
checks / validate mocks (pull_request) Successful in 36s
checks / Build Forgejo Runner (pull_request) Successful in 45s
checks / validate pre-commit-hooks file (pull_request) Successful in 54s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 39s
checks / Build unsupported platforms (pull_request) Failing after 2m48s
Integration tests for the release process / release-simulation (pull_request) Has been cancelled
checks / Run integration tests with Docker (docker-latest) (pull_request) Has been cancelled
checks / Run integration tests with Docker (docker-stable) (pull_request) Has been cancelled
checks / Run integration tests with Podman (pull_request) Has been cancelled
to 0eb4dc15eb
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 12s
checks / validate mocks (pull_request) Successful in 34s
checks / Build Forgejo Runner (pull_request) Successful in 42s
checks / validate pre-commit-hooks file (pull_request) Successful in 53s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 57s
checks / Build unsupported platforms (pull_request) Failing after 2m57s
Integration tests for the release process / release-simulation (pull_request) Successful in 6m11s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 15m14s
checks / Run integration tests with Podman (pull_request) Failing after 17m35s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 18m33s
2026-08-07 17:00:07 +00:00
Compare
Owner

@eleboucher I think we are not finding a way to collaborate well on this PR.

When I return to a PR to review it again, I'm going to go through my previous review comments. When I'm doing that right now, it seems like some of my comments have been missed, ignored, and even marked as resolved when they aren't:

  • #1500 (comment) -- no response to the comment, no changes to the code. 👎
  • #1500 (comment) -- no response to the comment, no changes to the protocol related to this. 👎
  • #1500 (comment) -- no response to this comment
  • #1500 (comment) -- no response to this comment
  • #1500 (comment) -- no response to this comment, and UpdateEnv still exists in the protocol, and you marked this as "resolved"
  • #1500 (comment) -- no response to this comment, both options still exist in the protocol, and you marked this as "resolved"

Please help me understand the workflow you are expecting here. I find it quite frustrating at the moment.

@eleboucher I think we are not finding a way to collaborate well on this PR. When I return to a PR to review it again, I'm going to go through my previous review comments. When I'm doing that right now, it seems like some of my comments have been missed, ignored, and even marked as resolved when they aren't: - https://code.forgejo.org/forgejo/runner/pulls/1500#issuecomment-96785 -- no response to the comment, no changes to the code. 👎 - https://code.forgejo.org/forgejo/runner/pulls/1500#issuecomment-96781 -- no response to the comment, no changes to the protocol related to this. 👎 - https://code.forgejo.org/forgejo/runner/pulls/1500#issuecomment-96765 -- no response to this comment - https://code.forgejo.org/forgejo/runner/pulls/1500#issuecomment-96762 -- no response to this comment - https://code.forgejo.org/forgejo/runner/pulls/1500#issuecomment-96761 -- no response to this comment, and `UpdateEnv` still exists in the protocol, and you marked this as "resolved" - https://code.forgejo.org/forgejo/runner/pulls/1500#issuecomment-96760 -- no response to this comment, both options still exist in the protocol, and you marked this as "resolved" Please help me understand the workflow you are expecting here. I find it quite frustrating at the moment.
Owner

Merge conflicts need to be resolved, and Forgejo Runner is now v13 requiring package naming updates, and the CI is broken.

Merge conflicts need to be resolved, and Forgejo Runner is now `v13` requiring package naming updates, and the CI is broken.
eleboucher force-pushed plugin from 0eb4dc15eb
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 12s
checks / validate mocks (pull_request) Successful in 34s
checks / Build Forgejo Runner (pull_request) Successful in 42s
checks / validate pre-commit-hooks file (pull_request) Successful in 53s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 57s
checks / Build unsupported platforms (pull_request) Failing after 2m57s
Integration tests for the release process / release-simulation (pull_request) Successful in 6m11s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 15m14s
checks / Run integration tests with Podman (pull_request) Failing after 17m35s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 18m33s
to 947f7b42e7
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 6s
checks / validate mocks (pull_request) Successful in 41s
checks / validate pre-commit-hooks file (pull_request) Successful in 55s
checks / Build Forgejo Runner (pull_request) Successful in 1m7s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 1m1s
example / docker-build-push-action-in-lxc (pull_request) Successful in 2m14s
checks / Build unsupported platforms (pull_request) Failing after 3m12s
Integration tests for the release process / release-simulation (pull_request) Successful in 5m48s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 12m30s
checks / Run integration tests with Podman (pull_request) Failing after 14m16s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 15m16s
2026-08-11 08:00:20 +00:00
Compare
Author
Contributor

@mfenniak wrote in #1500 (comment):

@eleboucher I think we are not finding a way to collaborate well on this PR.

When I return to a PR to review it again, I'm going to go through my previous review comments. When I'm doing that right now, it seems like some of my comments have been missed, ignored, and even marked as resolved when they aren't:

* #1500 (comment) -- no response to the comment, no changes to the code. :-1:

* #1500 (comment) -- no response to the comment, no changes to the protocol related to this. :-1:

* #1500 (comment) -- no response to this comment

* #1500 (comment) -- no response to this comment

* #1500 (comment) -- no response to this comment, and `UpdateEnv` still exists in the protocol, and you marked this as "resolved"

* #1500 (comment) -- no response to this comment, both options still exist in the protocol, and you marked this as "resolved"

Please help me understand the workflow you are expecting here. I find it quite frustrating at the moment.

Hello,

yes you are right i'm sorry, i was pretty frustrated to strip a good part of my work. but i will make sure i check your thread. sorry again

@mfenniak wrote in https://code.forgejo.org/forgejo/runner/pulls/1500#issuecomment-97258: > @eleboucher I think we are not finding a way to collaborate well on this PR. > > When I return to a PR to review it again, I'm going to go through my previous review comments. When I'm doing that right now, it seems like some of my comments have been missed, ignored, and even marked as resolved when they aren't: > > * #1500 (comment) -- no response to the comment, no changes to the code. :-1: > > * #1500 (comment) -- no response to the comment, no changes to the protocol related to this. :-1: > > * #1500 (comment) -- no response to this comment > > * #1500 (comment) -- no response to this comment > > * #1500 (comment) -- no response to this comment, and `UpdateEnv` still exists in the protocol, and you marked this as "resolved" > > * #1500 (comment) -- no response to this comment, both options still exist in the protocol, and you marked this as "resolved" > > > Please help me understand the workflow you are expecting here. I find it quite frustrating at the moment. Hello, yes you are right i'm sorry, i was pretty frustrated to strip a good part of my work. but i will make sure i check your thread. sorry again
Owner

@eleboucher wrote in #1500 (comment):

yes you are right i'm sorry, i was pretty frustrated to strip a good part of my work. but i will make sure i check your thread. sorry again

Understood.

Let's do this. I have two comments that I think can be resolved in this PR.

  • #1500 (comment) is a small change, I think
  • #1500 (comment) could be something where you describe how you think a plugin can work, or, you can evaluate my proposal

Let's get those two comments resolved, and then we'll merge this.

I have started work on a plugin implementation. I will continue that work on and off, which will help me fully understand the protocol. We can both make more PRs, more tweaks and more small changes once this initial version of the protocol is merged. No stability guarantee.

@eleboucher wrote in https://code.forgejo.org/forgejo/runner/pulls/1500#issuecomment-97271: > yes you are right i'm sorry, i was pretty frustrated to strip a good part of my work. but i will make sure i check your thread. sorry again Understood. Let's do this. I have two comments that I think can be resolved in this PR. - https://code.forgejo.org/forgejo/runner/pulls/1500#issuecomment-97295 is a small change, I think - https://code.forgejo.org/forgejo/runner/pulls/1500#issuecomment-97294 could be something where you describe how you think a plugin can work, or, you can evaluate my proposal Let's get those two comments resolved, and then we'll merge this. I have started work on a plugin implementation. I will continue that work on and off, which will help me fully understand the protocol. We can both make more PRs, more tweaks and more *small* changes once this initial version of the protocol is merged. No stability guarantee.
First-time contributor

@eleboucher wrote in #1500 (comment):

@mfenniak wrote in #1500 (comment):

@eleboucher I think we are not finding a way to collaborate well on this PR.
When I return to a PR to review it again, I'm going to go through my previous review comments. When I'm doing that right now, it seems like some of my comments have been missed, ignored, and even marked as resolved when they aren't:

* #1500 (comment) -- no response to the comment, no changes to the code. :-1:

* #1500 (comment) -- no response to the comment, no changes to the protocol related to this. :-1:

* #1500 (comment) -- no response to this comment

* #1500 (comment) -- no response to this comment

* #1500 (comment) -- no response to this comment, and `UpdateEnv` still exists in the protocol, and you marked this as "resolved"

* #1500 (comment) -- no response to this comment, both options still exist in the protocol, and you marked this as "resolved"

Please help me understand the workflow you are expecting here. I find it quite frustrating at the moment.

Hello,

yes you are right i'm sorry, i was pretty frustrated to strip a good part of my work. but i will make sure i check your thread. sorry again

Opensource collaboration is hard, it's a bit like a couple, but where people only have some vague goals in common. It gets frustrating (and I say that as both a contributor and a maintainer of some projects).

@eleboucher wrote in https://code.forgejo.org/forgejo/runner/pulls/1500#issuecomment-97271: > @mfenniak wrote in #1500 (comment): > > > @eleboucher I think we are not finding a way to collaborate well on this PR. > > When I return to a PR to review it again, I'm going to go through my previous review comments. When I'm doing that right now, it seems like some of my comments have been missed, ignored, and even marked as resolved when they aren't: > > ``` > > * #1500 (comment) -- no response to the comment, no changes to the code. :-1: > > > > * #1500 (comment) -- no response to the comment, no changes to the protocol related to this. :-1: > > > > * #1500 (comment) -- no response to this comment > > > > * #1500 (comment) -- no response to this comment > > > > * #1500 (comment) -- no response to this comment, and `UpdateEnv` still exists in the protocol, and you marked this as "resolved" > > > > * #1500 (comment) -- no response to this comment, both options still exist in the protocol, and you marked this as "resolved" > > ``` > > > > > > Please help me understand the workflow you are expecting here. I find it quite frustrating at the moment. > > Hello, > > yes you are right i'm sorry, i was pretty frustrated to strip a good part of my work. but i will make sure i check your thread. sorry again Opensource collaboration is hard, it's a bit like a couple, but where people only have some vague goals in common. It gets frustrating (and I say that as both a contributor and a maintainer of some projects).
Author
Contributor

@mfenniak wrote in #1500 (comment):

@eleboucher wrote in #1500 (comment):

yes you are right i'm sorry, i was pretty frustrated to strip a good part of my work. but i will make sure i check your thread. sorry again

Understood.

Let's do this. I have two comments that I think can be resolved in this PR.

  • #1500 (comment) is a small change, I think
  • #1500 (comment) could be something where you describe how you think a plugin can work, or, you can evaluate my proposal

Let's get those two comments resolved, and then we'll merge this.

I have started work on a plugin implementation. I will continue that work on and off, which will help me fully understand the protocol. We can both make more PRs, more tweaks and more small changes once this initial version of the protocol is merged. No stability guarantee.

thank you for the message

i just have a small unrelated note but i guess there is something broken with the permalink for comments because i cannot find the comments of your first link #1500 (comment) it doesn't move me to it so i need to manually compare the id of every comment to find it

@mfenniak wrote in https://code.forgejo.org/forgejo/runner/pulls/1500#issuecomment-97296: > @eleboucher wrote in #1500 (comment): > > > yes you are right i'm sorry, i was pretty frustrated to strip a good part of my work. but i will make sure i check your thread. sorry again > > Understood. > > Let's do this. I have two comments that I think can be resolved in this PR. > > * #1500 (comment) is a small change, I think > * #1500 (comment) could be something where you describe how you think a plugin can work, or, you can evaluate my proposal > > Let's get those two comments resolved, and then we'll merge this. > > I have started work on a plugin implementation. I will continue that work on and off, which will help me fully understand the protocol. We can both make more PRs, more tweaks and more _small_ changes once this initial version of the protocol is merged. No stability guarantee. thank you for the message i just have a small unrelated note but i guess there is something broken with the permalink for comments because i cannot find the comments of your first link https://code.forgejo.org/forgejo/runner/pulls/1500#issuecomment-97295 it doesn't move me to it so i need to manually compare the id of every comment to find it
@ -1020,0 +1059,4 @@
opts := make(map[string]string, len(pluginOpts)+2)
maps.Copy(opts, pluginOpts)
if labelArg := rc.pluginLabelArg(ctx); labelArg != "" {
opts["label_arg"] = labelArg
Owner

The documentation for backend_options says that it is "opaque, backend-specific options taken verbatim from the runner's per-label plugin configuration (e.g. namespace, VM flavour).". But here, you are inserting specific values generated by the runner -- the label_arg and job_timeout.

I would suggest both of these special values should be defined directly in the protocol, in the CreateRequest. The timeout, in particular, seems like a critical piece of information that should be part of the protocol. The job timeout should not be named "job timeout" either, as "jobs" aren't described in the protocol at all -- it should be named as an "environment timeout".

The documentation for `backend_options` says that it is "opaque, backend-specific options taken verbatim from the runner's per-label plugin configuration (e.g. namespace, VM flavour).". But here, you are inserting specific values generated by the runner -- the `label_arg` and `job_timeout`. I would suggest both of these special values should be defined directly in the protocol, in the `CreateRequest`. The timeout, in particular, seems like a critical piece of information that should be part of the protocol. The job timeout should not be named "job timeout" either, as "jobs" aren't described in the protocol at all -- it should be named as an "environment timeout".
mfenniak marked this conversation as resolved
Owner

@eleboucher wrote in #1500 (comment):

i just have a small unrelated note but i guess there is something broken with the permalink for comments because i cannot find the comments of your first link #1500 (comment) it doesn't move me to it so i need to manually compare the id of every comment to find it

Ah, my error, sorry. I wrote a comment, and didn't submit it in the review.

The two comments are:

  • here, regarding backend_options having things being inserted into it
  • here, regarding pathing and uniqueness between different environments
@eleboucher wrote in https://code.forgejo.org/forgejo/runner/pulls/1500#issuecomment-97312: > i just have a small unrelated note but i guess there is something broken with the permalink for comments because i cannot find the comments of your first link #1500 (comment) it doesn't move me to it so i need to manually compare the id of every comment to find it Ah, my error, sorry. I wrote a comment, and didn't submit it in the review. The two comments are: - [here](https://code.forgejo.org/forgejo/runner/pulls/1500/files#issuecomment-97295), regarding `backend_options` having things being inserted into it - [here](https://code.forgejo.org/forgejo/runner/pulls/1500#issuecomment-97294), regarding pathing and uniqueness between different environments
eleboucher force-pushed plugin from 947f7b42e7
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 6s
checks / validate mocks (pull_request) Successful in 41s
checks / validate pre-commit-hooks file (pull_request) Successful in 55s
checks / Build Forgejo Runner (pull_request) Successful in 1m7s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 1m1s
example / docker-build-push-action-in-lxc (pull_request) Successful in 2m14s
checks / Build unsupported platforms (pull_request) Failing after 3m12s
Integration tests for the release process / release-simulation (pull_request) Successful in 5m48s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 12m30s
checks / Run integration tests with Podman (pull_request) Failing after 14m16s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 15m16s
to 3ee0351a48
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 8s
checks / Build Forgejo Runner (pull_request) Successful in 21s
checks / validate pre-commit-hooks file (pull_request) Successful in 30s
checks / validate mocks (pull_request) Failing after 50s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 39s
checks / Build unsupported platforms (pull_request) Failing after 2m7s
Integration tests for the release process / release-simulation (pull_request) Successful in 3m53s
checks / Run integration tests with Docker (docker-latest) (pull_request) Has been cancelled
checks / Run integration tests with Docker (docker-stable) (pull_request) Has been cancelled
checks / Run integration tests with Podman (pull_request) Has been cancelled
2026-08-12 17:30:09 +00:00
Compare
eleboucher force-pushed plugin from 3ee0351a48
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 8s
checks / Build Forgejo Runner (pull_request) Successful in 21s
checks / validate pre-commit-hooks file (pull_request) Successful in 30s
checks / validate mocks (pull_request) Failing after 50s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 39s
checks / Build unsupported platforms (pull_request) Failing after 2m7s
Integration tests for the release process / release-simulation (pull_request) Successful in 3m53s
checks / Run integration tests with Docker (docker-latest) (pull_request) Has been cancelled
checks / Run integration tests with Docker (docker-stable) (pull_request) Has been cancelled
checks / Run integration tests with Podman (pull_request) Has been cancelled
to 7716b0ec5c
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 6s
checks / validate pre-commit-hooks file (pull_request) Successful in 30s
checks / Build Forgejo Runner (pull_request) Successful in 54s
checks / validate mocks (pull_request) Failing after 55s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 26s
checks / Build unsupported platforms (pull_request) Failing after 1m55s
Integration tests for the release process / release-simulation (pull_request) Successful in 3m48s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 10m46s
checks / Run integration tests with Podman (pull_request) Failing after 12m8s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 13m19s
2026-08-12 17:40:31 +00:00
Compare
Owner

@eleboucher Thank you for making the changes related to backend_options.

I see the revisions which now describe the paths are "logical paths". I'm understanding that this means the plugin has the responsibility to convert any logical path into a physical path. But I believe that the impact of this is that the environment variables will now be "logical paths" inside workflows. As these are not physical paths, commands cannot use them.

  • RUNNER_TOOL_CACHE
  • FORGEJO_OUTPUT, FORGEJO_STATE, FORGEJO_PATH, FORGEJO_ENV, FORGEJO_STEP_SUMMARY, which are all derived from the act_path

In other words, run: echo "myvalue=outputvalue1" >> $FORGEJO_OUTPUT will be a command that references a "logical path", which if my understanding is correct, is not a path that the shell will actually be able to access.

@eleboucher Thank you for making the changes related to [`backend_options`](https://code.forgejo.org/forgejo/runner/pulls/1500#issuecomment-97295). I see the revisions which now describe the paths are "logical paths". I'm understanding that this means the plugin has the responsibility to convert any logical path into a physical path. But I believe that the impact of this is that the environment variables will now be "logical paths" inside workflows. As these are not physical paths, commands cannot use them. - `RUNNER_TOOL_CACHE` - `FORGEJO_OUTPUT`, `FORGEJO_STATE`, `FORGEJO_PATH`, `FORGEJO_ENV`, `FORGEJO_STEP_SUMMARY`, which are all derived from the `act_path` In other words, `run: echo "myvalue=outputvalue1" >> $FORGEJO_OUTPUT` will be a command that references a "logical path", which if my understanding is correct, is not a path that the shell will actually be able to access.
Owner

By the way, I am experimenting with the protocol here by writing a Rust-based systemd-nspawn plugin. Mostly I'm finding that systemd-nspawn may be a bad fit, due to its limited mechanisms for interacting with processes inside the containers. But I thought I'd share it here for the fun.

I do have feedback from this experimentation, but I'll hold onto it for the moment for further evaluation.

By the way, I am experimenting with the protocol here by writing a [Rust-based systemd-nspawn plugin](https://forgejo.kainnef.com/mfenniak/runner-systemd-nspawn). Mostly I'm finding that systemd-nspawn may be a bad fit, due to its limited mechanisms for interacting with processes inside the containers. But I thought I'd share it here for the fun. I do have feedback from this experimentation, but I'll hold onto it for the moment for further evaluation.
eleboucher force-pushed plugin from 7716b0ec5c
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 6s
checks / validate pre-commit-hooks file (pull_request) Successful in 30s
checks / Build Forgejo Runner (pull_request) Successful in 54s
checks / validate mocks (pull_request) Failing after 55s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 26s
checks / Build unsupported platforms (pull_request) Failing after 1m55s
Integration tests for the release process / release-simulation (pull_request) Successful in 3m48s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 10m46s
checks / Run integration tests with Podman (pull_request) Failing after 12m8s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 13m19s
to d63cccde5a
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 8s
checks / validate mocks (pull_request) Failing after 39s
checks / Build Forgejo Runner (pull_request) Successful in 54s
checks / validate pre-commit-hooks file (pull_request) Successful in 1m12s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 51s
checks / Build unsupported platforms (pull_request) Failing after 3m3s
Integration tests for the release process / release-simulation (pull_request) Successful in 5m46s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 12m59s
checks / Run integration tests with Podman (pull_request) Failing after 15m14s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 16m11s
2026-08-13 08:01:45 +00:00
Compare
Author
Contributor

@mfenniak wrote in #1500 (comment):

@eleboucher Thank you for making the changes related to backend_options.

I see the revisions which now describe the paths are "logical paths". I'm understanding that this means the plugin has the responsibility to convert any logical path into a physical path. But I believe that the impact of this is that the environment variables will now be "logical paths" inside workflows. As these are not physical paths, commands cannot use them.

* `RUNNER_TOOL_CACHE`

* `FORGEJO_OUTPUT`, `FORGEJO_STATE`, `FORGEJO_PATH`, `FORGEJO_ENV`, `FORGEJO_STEP_SUMMARY`, which are all derived from the `act_path`

In other words, run: echo "myvalue=outputvalue1" >> $FORGEJO_OUTPUT will be a command that references a "logical path", which if my understanding is correct, is not a path that the shell will actually be able to access.

You are correct. I clarified the protocol and updated the reference plugin to translate canonical paths in both Copy RPCs and Exec environment values. I also added a regression test for writing through $FORGEJO_OUTPUT.

@mfenniak wrote in https://code.forgejo.org/forgejo/runner/pulls/1500#issuecomment-97342: > @eleboucher Thank you for making the changes related to [`backend_options`](https://code.forgejo.org/forgejo/runner/pulls/1500#issuecomment-97295). > > I see the revisions which now describe the paths are "logical paths". I'm understanding that this means the plugin has the responsibility to convert any logical path into a physical path. But I believe that the impact of this is that the environment variables will now be "logical paths" inside workflows. As these are not physical paths, commands cannot use them. > > * `RUNNER_TOOL_CACHE` > > * `FORGEJO_OUTPUT`, `FORGEJO_STATE`, `FORGEJO_PATH`, `FORGEJO_ENV`, `FORGEJO_STEP_SUMMARY`, which are all derived from the `act_path` > > > In other words, `run: echo "myvalue=outputvalue1" >> $FORGEJO_OUTPUT` will be a command that references a "logical path", which if my understanding is correct, is not a path that the shell will actually be able to access. You are correct. I clarified the protocol and updated the reference plugin to translate canonical paths in both Copy RPCs and Exec environment values. I also added a regression test for writing through $FORGEJO_OUTPUT.
eleboucher force-pushed plugin from d63cccde5a
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 8s
checks / validate mocks (pull_request) Failing after 39s
checks / Build Forgejo Runner (pull_request) Successful in 54s
checks / validate pre-commit-hooks file (pull_request) Successful in 1m12s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 51s
checks / Build unsupported platforms (pull_request) Failing after 3m3s
Integration tests for the release process / release-simulation (pull_request) Successful in 5m46s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 12m59s
checks / Run integration tests with Podman (pull_request) Failing after 15m14s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 16m11s
to b0f1d0e370
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 8s
checks / validate mocks (pull_request) Successful in 55s
checks / Build Forgejo Runner (pull_request) Successful in 56s
checks / validate pre-commit-hooks file (pull_request) Successful in 1m18s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 1m35s
checks / Build unsupported platforms (pull_request) Failing after 3m9s
Integration tests for the release process / release-simulation (pull_request) Successful in 6m38s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 17m8s
checks / Run integration tests with Podman (pull_request) Failing after 19m48s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 20m8s
2026-08-13 08:34:22 +00:00
Compare
mfenniak force-pushed plugin from 44d8513001
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 11s
checks / Build Forgejo Runner (pull_request) Successful in 51s
checks / validate pre-commit-hooks file (pull_request) Successful in 56s
checks / validate mocks (pull_request) Failing after 1m4s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 1m9s
checks / Build unsupported platforms (pull_request) Successful in 2m16s
Integration tests for the release process / release-simulation (pull_request) Successful in 6m20s
checks / Run integration tests with Docker (docker-latest) (pull_request) Has been cancelled
checks / Run integration tests with Podman (pull_request) Has been cancelled
checks / Run integration tests with Docker (docker-stable) (pull_request) Has been cancelled
to 4e634c017e
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 8s
checks / validate pre-commit-hooks file (pull_request) Successful in 53s
checks / Build Forgejo Runner (pull_request) Successful in 54s
checks / validate mocks (pull_request) Failing after 1m5s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 44s
checks / Build unsupported platforms (pull_request) Successful in 1m23s
checks / Run integration tests with Docker (docker-latest) (pull_request) Has been cancelled
checks / Run integration tests with Docker (docker-stable) (pull_request) Has been cancelled
Integration tests for the release process / release-simulation (pull_request) Has been cancelled
checks / Run integration tests with Podman (pull_request) Has been cancelled
2026-08-13 20:51:07 +00:00
Compare
mfenniak force-pushed plugin from 4e634c017e
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 8s
checks / validate pre-commit-hooks file (pull_request) Successful in 53s
checks / Build Forgejo Runner (pull_request) Successful in 54s
checks / validate mocks (pull_request) Failing after 1m5s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 44s
checks / Build unsupported platforms (pull_request) Successful in 1m23s
checks / Run integration tests with Docker (docker-latest) (pull_request) Has been cancelled
checks / Run integration tests with Docker (docker-stable) (pull_request) Has been cancelled
Integration tests for the release process / release-simulation (pull_request) Has been cancelled
checks / Run integration tests with Podman (pull_request) Has been cancelled
to fcf89dc3f4
All checks were successful
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
checks / Build Forgejo Runner (pull_request) Successful in 50s
checks / validate pre-commit-hooks file (pull_request) Successful in 50s
checks / validate mocks (pull_request) Successful in 1m7s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 34s
checks / Build unsupported platforms (pull_request) Successful in 1m17s
Integration tests for the release process / release-simulation (pull_request) Successful in 4m43s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 11m12s
checks / Run integration tests with Podman (pull_request) Successful in 12m35s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 13m54s
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 4s
cascade / end-to-end (pull_request_target) Successful in 35m10s
2026-08-13 20:53:30 +00:00
Compare
Owner

I have pushed a few proposed updates to this branch:

!1500 (commit db1a90ce71) -- fixes the CI build error (I hope; tested locally, but we'll see the CI output.)

!1500 (commit 4b70e45500) -- adds missing license headers to the files
- @eleboucher I have assumed you would make this contribution under the GPL licensing terms that Forgejo-Runner is typically distributed under, but if you have an objection please let me know.

!1500 (commit 2cf4439d1f) -- adds missing license header to the plugin.proto file
- While most of forgejo/runner is distributed under the terms of GPL-3.0-or-later, this plugin definition file is more permissively licensed under the MIT license. This choice allows plugin authors to embed it, create derived works of it (e.g. generated source files), and distribute derived products under a wider variety of licenses.
- @eleboucher, as the author you would have the absolute right to make this choice, this is just my proposal.
- @aahlenst & @limiting-factor, would like to lean on your licensing expertise and opinion, if you feel this is a good choice.

!1500 (commit 5794237e53) -- updates the protobuf generation makefile rule to be consistent with tooling used in https://code.forgejo.org/forgejo/actions-proto, which also ensures that the tool's dependencies are pinned in the Makefile and can be updated by renovate. Also adds validation during CI that the generated files are up-to-date.

!1500 (commit fcf89dc3f4) -- removes the concept of a "canonical" / "logical" path. Moves the path definitions from CapabilitiesResponse to CreateResponse, so that they can simply be defined by the plugin on each environment. @eleboucher I'd propose this as an alternative to "translate canonical paths in both Copy RPCs and Exec environment values", as I feel that behaviour is not something I'd expect to have to do as a plugin author.

I have pushed a few proposed updates to this branch: https://code.forgejo.org/forgejo/runner/pulls/1500/commits/db1a90ce7187f509878972f6f2c17b4630a8ffa9 -- fixes the CI build error (I hope; tested locally, but we'll see the CI output.) https://code.forgejo.org/forgejo/runner/pulls/1500/commits/4b70e45500fa9efe540f3b68e13d7cc4830f9526 -- adds missing license headers to the files - @eleboucher I have assumed you would make this contribution under the GPL licensing terms that Forgejo-Runner is typically distributed under, but if you have an objection please let me know. https://code.forgejo.org/forgejo/runner/pulls/1500/commits/2cf4439d1fa23d7c75509beca469c97c42e15382 -- adds missing license header to the plugin.proto file - While most of forgejo/runner is distributed under the terms of GPL-3.0-or-later, this plugin definition file is more permissively licensed under the MIT license. This choice allows plugin authors to embed it, create derived works of it (e.g. generated source files), and distribute derived products under a wider variety of licenses. - @eleboucher, as the author you would have the absolute right to make this choice, this is just my proposal. - @aahlenst & @limiting-factor, would like to lean on your licensing expertise and opinion, if you feel this is a good choice. https://code.forgejo.org/forgejo/runner/pulls/1500/commits/5794237e5347e75d1af1bac12a6ac2170c0463b4 -- updates the protobuf generation makefile rule to be consistent with tooling used in https://code.forgejo.org/forgejo/actions-proto, which also ensures that the tool's dependencies are pinned in the `Makefile` and can be updated by renovate. Also adds validation during CI that the generated files are up-to-date. https://code.forgejo.org/forgejo/runner/pulls/1500/commits/fcf89dc3f4896a2727c5b6e9db019d5b241c0c61 -- removes the concept of a "canonical" / "logical" path. Moves the path definitions from `CapabilitiesResponse` to `CreateResponse`, so that they can simply be defined by the plugin on each environment. @eleboucher I'd propose this as an alternative to "translate canonical paths in both Copy RPCs and Exec environment values", as I feel that behaviour is not something I'd expect to have to do as a plugin author.
Contributor

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

cascading-pr updated at https://code.forgejo.org/actions/setup-forgejo/pulls/1076
Contributor

@mfenniak wrote in #1500 (comment):

  • @aahlenst & @limiting-factor, would like to lean on your licensing expertise and opinion, if you feel this is a good choice.

I think MIT is a good choice for interoperability. I prefer copyleft in general but acknowledge that public domain or permissive licenses can be justified if it helps with interoperability.

@mfenniak wrote in https://code.forgejo.org/forgejo/runner/pulls/1500#issuecomment-97418: > - @aahlenst & @limiting-factor, would like to lean on your licensing expertise and opinion, if you feel this is a good choice. I think MIT is a good choice for interoperability. I prefer copyleft in general but acknowledge that public domain or permissive licenses can be justified if it helps with interoperability.
Member

MIT is the same license that's already being used for the Actions protocol. That makes sense to me.

(We could also use the GPL with some sort of classpath exception, but I assume that our appetite for experiments is low and I don't see the need for it.)

MIT is the same license that's already being used for the Actions protocol. That makes sense to me. (We could also use the GPL with some sort of classpath exception, but I assume that our appetite for experiments is low and I don't see the need for it.)
Author
Contributor

All good for me

and regarding license i also have some problem with finding the right one on my own projects so i'm happy to let expert decide for me :D

All good for me and regarding license i also have some problem with finding the right one on my own projects so i'm happy to let expert decide for me :D
mfenniak force-pushed plugin from fcf89dc3f4
All checks were successful
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
checks / Build Forgejo Runner (pull_request) Successful in 50s
checks / validate pre-commit-hooks file (pull_request) Successful in 50s
checks / validate mocks (pull_request) Successful in 1m7s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 34s
checks / Build unsupported platforms (pull_request) Successful in 1m17s
Integration tests for the release process / release-simulation (pull_request) Successful in 4m43s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 11m12s
checks / Run integration tests with Podman (pull_request) Successful in 12m35s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 13m54s
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 4s
cascade / end-to-end (pull_request_target) Successful in 35m10s
to 6ad9258c7e
All checks were successful
cascade / debug (pull_request_target) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
checks / validate pre-commit-hooks file (pull_request) Successful in 41s
checks / Build Forgejo Runner (pull_request) Successful in 42s
checks / validate mocks (pull_request) Successful in 57s
Integration tests for the release process / release-simulation (pull_request) Successful in 4m31s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 29s
checks / Build unsupported platforms (pull_request) Successful in 1m12s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 11m0s
checks / Run integration tests with Podman (pull_request) Successful in 12m6s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 13m19s
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 5s
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
cascade / end-to-end (pull_request_target) Successful in 16s
cascade / forgejo (pull_request_target) Successful in 1m2s
2026-08-15 15:02:05 +00:00
Compare
Contributor

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

cascading-pr updated at https://code.forgejo.org/actions/setup-forgejo/pulls/1076
Owner

My intent is to merge this soon. I'm working through my systemd-nspawn based plugin with the goal to get all the basics working with the plugin API to ensure there are no immediate blocker bugs.

fcf89dc3f4..6ad9258c7e is a bugfix for an issue that I introduced in my last change. RUNNER_TEMP was only ever sent to the plugin during the create gRPC call, so moving it to be initialized after the create call didn't work out in reality. I've adjusted it to be sent with every exec.

Implementing copy_out, and testing the output capabilities, is my remaining testing work. I expect to be done within a day.

My intent is to merge this soon. I'm working through my systemd-nspawn based plugin with the goal to get all the basics working with the plugin API to ensure there are no immediate blocker bugs. https://code.forgejo.org/forgejo/runner/compare/fcf89dc3f4896a2727c5b6e9db019d5b241c0c61..6ad9258c7e88d92d65c33eef665c449fdceadc80 is a bugfix for an issue that I introduced in my last change. `RUNNER_TEMP` was only ever sent to the plugin during the `create` gRPC call, so moving it to be initialized *after* the `create` call didn't work out in reality. I've adjusted it to be sent with every `exec`. Implementing `copy_out`, and testing the output capabilities, is my remaining testing work. I expect to be done within a day.
mfenniak approved these changes 2026-08-16 00:30:18 +00:00
mfenniak changed title from feat(plugin): add gRPC v1 plugin backend support to feat(plugin): add experimental gRPC v1alpha plugin backend support 2026-08-16 00:30:59 +00:00
Owner

Thanks @eleboucher for all the work on this plugin interface!

I've updated the description of the PR with some notes on what I mean by alpha, and experimental, as this will be linked to the release notes when this is released.

I've created a few issues which represent observations from creating a proof-of-concept implementation with the plugin: #1673, #1674, #1675, #1676, #1677, #1678, #1679, #1680, #1681, #1682, #1683. This may seem like a lot of issues, but none of them were blockers -- either small stumbling blocks or features we should think about and design. No intent that any one person does them either. I intend to look into a few of these as I have time myself.

(My POC is somewhat perfectly working, with a small scope, in systemd-nspawn containers. A fun piece of technical work. https://forgejo.kainnef.com/mfenniak/runner-systemd-nspawn/)

Thanks @eleboucher for all the work on this plugin interface! I've updated the description of [the PR](https://code.forgejo.org/forgejo/runner/pulls/1500#issue-12431) with some notes on what I mean by alpha, and experimental, as this will be linked to the release notes when this is released. I've created a few issues which represent observations from creating a proof-of-concept implementation with the plugin: #1673, #1674, #1675, #1676, #1677, #1678, #1679, #1680, #1681, #1682, #1683. This may seem like a lot of issues, but none of them were blockers -- either small stumbling blocks or features we should think about and design. No intent that any one person does them either. I intend to look into a few of these as I have time myself. (My POC is somewhat perfectly working, with a small scope, in systemd-nspawn containers. A fun piece of technical work. https://forgejo.kainnef.com/mfenniak/runner-systemd-nspawn/)
All checks were successful
cascade / debug (pull_request_target) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
checks / validate pre-commit-hooks file (pull_request) Successful in 41s
checks / Build Forgejo Runner (pull_request) Successful in 42s
checks / validate mocks (pull_request) Successful in 57s
Integration tests for the release process / release-simulation (pull_request) Successful in 4m31s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 29s
checks / Build unsupported platforms (pull_request) Successful in 1m12s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 11m0s
checks / Run integration tests with Podman (pull_request) Successful in 12m6s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 13m19s
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 5s
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
cascade / end-to-end (pull_request_target) Successful in 16s
cascade / forgejo (pull_request_target) Successful in 1m2s
Some workflows are waiting to be reviewed.
Sign in to join this conversation.
No reviewers
No milestone
No assignees
6 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!1500
No description provided.