chore: ensure all tests are run #1261

Merged
mfenniak merged 1 commit from aahlenst/runner:run-all-tests into main 2026-01-13 22:38:02 +00:00
Member

The Forgejo Runner Makefile only looks for tests in some directories. If someone adds a test in another place, they have to remember to update the Makefile. That is error-prone and easy to forget. Another problem is that integration tests are stored alongside short tests and not in a separate directory tree. That makes it hard to separate them.

In response to #1255 (comment), all go test commands now scan the entire source tree for tests. All integration tests are skipped if testing.Short() is true. While make test runs only short tests, make integration-test now runs all tests, no matter whether they are short or not. Separating them would either require the introduction of test suites or moving them to a separate directory tree.

CI was restructured to reflect the changes. The build step no longer runs any tests because the integration test step will run all tests anyway. CI might run slightly longer than before because short tests and some integration tests that do not require a container runtime are now run twice with each Docker version instead of once.

Additional slow tests were identified and marked as slow by running go test -json -short ./... | gotestsum tool slowest --threshold 200ms. Some were reclassified after a manual review.

  • other
    • PR: chore: ensure all tests are run
The Forgejo Runner Makefile only looks for tests in some directories. If someone adds a test in another place, they have to remember to update the Makefile. That is error-prone and easy to forget. Another problem is that integration tests are stored alongside short tests and not in a separate directory tree. That makes it hard to separate them. In response to https://code.forgejo.org/forgejo/runner/pulls/1255#issuecomment-71897, all `go test` commands now scan the entire source tree for tests. All integration tests are skipped if `testing.Short()` is `true`. While `make test` runs only short tests, `make integration-test` now runs **all** tests, no matter whether they are short or not. Separating them would either require the introduction of [test suites](https://pkg.go.dev/github.com/stretchr/testify/suite) or moving them to a separate directory tree. CI was restructured to reflect the changes. The build step no longer runs any tests because the integration test step will run all tests anyway. CI might run slightly longer than before because short tests and some integration tests that do not require a container runtime are now run twice with each Docker version instead of once. Additional slow tests were identified and marked as slow by running `go test -json -short ./... | gotestsum tool slowest --threshold 200ms`. Some were reclassified after a manual review. <!--start release-notes-assistant--> <!--URL:https://code.forgejo.org/forgejo/runner--> - other - [PR](https://code.forgejo.org/forgejo/runner/pulls/1261): <!--number 1261 --><!--line 0 --><!--description Y2hvcmU6IGVuc3VyZSBhbGwgdGVzdHMgYXJlIHJ1bg==-->chore: ensure all tests are run<!--description--> <!--end release-notes-assistant-->
aahlenst force-pushed run-all-tests from c2bceca816
Some checks failed
issue-labels / release-notes (pull_request_target) Successful in 5s
checks / validate mocks (pull_request) Successful in 45s
checks / validate pre-commit-hooks file (pull_request) Successful in 44s
checks / Build Forgejo Runner (pull_request) Successful in 50s
checks / integration tests (docker-latest) (pull_request) Failing after 14s
checks / integration tests (docker-stable) (pull_request) Failing after 18s
checks / runner exec tests (pull_request) Successful in 24s
to e92b36db0b
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 12s
checks / Build Forgejo Runner (pull_request) Successful in 59s
checks / validate pre-commit-hooks file (pull_request) Successful in 1m2s
checks / validate mocks (pull_request) Successful in 1m5s
checks / integration tests (docker-latest) (pull_request) Failing after 24s
checks / integration tests (docker-stable) (pull_request) Failing after 29s
checks / runner exec tests (pull_request) Successful in 35s
2026-01-08 14:31:29 +00:00
Compare
aahlenst force-pushed run-all-tests from e92b36db0b
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 12s
checks / Build Forgejo Runner (pull_request) Successful in 59s
checks / validate pre-commit-hooks file (pull_request) Successful in 1m2s
checks / validate mocks (pull_request) Successful in 1m5s
checks / integration tests (docker-latest) (pull_request) Failing after 24s
checks / integration tests (docker-stable) (pull_request) Failing after 29s
checks / runner exec tests (pull_request) Successful in 35s
to 26553b9cea
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 4s
checks / Build Forgejo Runner (pull_request) Successful in 26s
checks / validate mocks (pull_request) Successful in 33s
checks / validate pre-commit-hooks file (pull_request) Successful in 49s
checks / runner exec tests (pull_request) Successful in 41s
checks / integration tests (docker-latest) (pull_request) Failing after 1m25s
checks / integration tests (docker-stable) (pull_request) Failing after 1m25s
2026-01-08 14:35:13 +00:00
Compare
aahlenst force-pushed run-all-tests from 26553b9cea
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 4s
checks / Build Forgejo Runner (pull_request) Successful in 26s
checks / validate mocks (pull_request) Successful in 33s
checks / validate pre-commit-hooks file (pull_request) Successful in 49s
checks / runner exec tests (pull_request) Successful in 41s
checks / integration tests (docker-latest) (pull_request) Failing after 1m25s
checks / integration tests (docker-stable) (pull_request) Failing after 1m25s
to fe25cdd00e
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 4s
checks / Build Forgejo Runner (pull_request) Successful in 28s
checks / validate mocks (pull_request) Successful in 28s
checks / validate pre-commit-hooks file (pull_request) Successful in 40s
checks / runner exec tests (pull_request) Successful in 38s
checks / integration tests (docker-latest) (pull_request) Failing after 2m17s
checks / integration tests (docker-stable) (pull_request) Failing after 2m19s
2026-01-08 14:40:44 +00:00
Compare
aahlenst force-pushed run-all-tests from fe25cdd00e
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 4s
checks / Build Forgejo Runner (pull_request) Successful in 28s
checks / validate mocks (pull_request) Successful in 28s
checks / validate pre-commit-hooks file (pull_request) Successful in 40s
checks / runner exec tests (pull_request) Successful in 38s
checks / integration tests (docker-latest) (pull_request) Failing after 2m17s
checks / integration tests (docker-stable) (pull_request) Failing after 2m19s
to 0139187d8d
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) Successful in 34s
checks / validate mocks (pull_request) Successful in 39s
checks / validate pre-commit-hooks file (pull_request) Successful in 47s
checks / runner exec tests (pull_request) Successful in 36s
checks / integration tests (docker-latest) (pull_request) Failing after 1m20s
checks / integration tests (docker-stable) (pull_request) Failing after 1m22s
2026-01-08 15:21:05 +00:00
Compare
aahlenst force-pushed run-all-tests from 0139187d8d
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) Successful in 34s
checks / validate mocks (pull_request) Successful in 39s
checks / validate pre-commit-hooks file (pull_request) Successful in 47s
checks / runner exec tests (pull_request) Successful in 36s
checks / integration tests (docker-latest) (pull_request) Failing after 1m20s
checks / integration tests (docker-stable) (pull_request) Failing after 1m22s
to 2d17f4c344
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 5s
checks / Build Forgejo Runner (pull_request) Successful in 44s
checks / validate mocks (pull_request) Successful in 48s
checks / validate pre-commit-hooks file (pull_request) Successful in 55s
checks / runner exec tests (pull_request) Successful in 33s
checks / integration tests (docker-latest) (pull_request) Failing after 1m15s
checks / integration tests (docker-stable) (pull_request) Failing after 1m18s
2026-01-08 15:24:16 +00:00
Compare
aahlenst force-pushed run-all-tests from 2d17f4c344
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 5s
checks / Build Forgejo Runner (pull_request) Successful in 44s
checks / validate mocks (pull_request) Successful in 48s
checks / validate pre-commit-hooks file (pull_request) Successful in 55s
checks / runner exec tests (pull_request) Successful in 33s
checks / integration tests (docker-latest) (pull_request) Failing after 1m15s
checks / integration tests (docker-stable) (pull_request) Failing after 1m18s
to 6b640ce48d
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) Successful in 32s
checks / validate mocks (pull_request) Successful in 41s
checks / validate pre-commit-hooks file (pull_request) Successful in 53s
checks / runner exec tests (pull_request) Successful in 40s
checks / integration tests (docker-latest) (pull_request) Failing after 2m23s
checks / integration tests (docker-stable) (pull_request) Failing after 2m25s
2026-01-08 15:28:38 +00:00
Compare
aahlenst force-pushed run-all-tests from 53e1d9b9b6
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 30s
checks / validate mocks (pull_request) Successful in 44s
checks / validate pre-commit-hooks file (pull_request) Successful in 30s
checks / Build Forgejo Runner (pull_request) Successful in 52s
checks / runner exec tests (pull_request) Successful in 1m26s
checks / integration tests (docker-latest) (pull_request) Failing after 2m6s
checks / integration tests (docker-stable) (pull_request) Failing after 2m8s
/ example-docker-compose (pull_request) Successful in 3m20s
example / docker-build-push-action-in-lxc (pull_request) Successful in 3m28s
Integration tests for the release process / release-simulation (pull_request) Successful in 5m6s
/ example-on-demand (pull_request) Successful in 5m51s
/ example-lxc-systemd (pull_request) Successful in 8m0s
to bc77fe2ad9
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 5s
checks / Build Forgejo Runner (pull_request) Successful in 35s
checks / validate mocks (pull_request) Successful in 45s
checks / validate pre-commit-hooks file (pull_request) Successful in 50s
checks / runner exec tests (pull_request) Successful in 43s
example / docker-build-push-action-in-lxc (pull_request) Successful in 1m52s
/ example-docker-compose (pull_request) Successful in 2m9s
/ example-on-demand (pull_request) Successful in 4m39s
Integration tests for the release process / release-simulation (pull_request) Successful in 4m59s
/ example-lxc-systemd (pull_request) Successful in 7m9s
checks / integration tests (docker-latest) (pull_request) Failing after 10m2s
checks / integration tests (docker-stable) (pull_request) Failing after 12m1s
2026-01-09 15:49:00 +00:00
Compare
aahlenst force-pushed run-all-tests from bc77fe2ad9
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 5s
checks / Build Forgejo Runner (pull_request) Successful in 35s
checks / validate mocks (pull_request) Successful in 45s
checks / validate pre-commit-hooks file (pull_request) Successful in 50s
checks / runner exec tests (pull_request) Successful in 43s
example / docker-build-push-action-in-lxc (pull_request) Successful in 1m52s
/ example-docker-compose (pull_request) Successful in 2m9s
/ example-on-demand (pull_request) Successful in 4m39s
Integration tests for the release process / release-simulation (pull_request) Successful in 4m59s
/ example-lxc-systemd (pull_request) Successful in 7m9s
checks / integration tests (docker-latest) (pull_request) Failing after 10m2s
checks / integration tests (docker-stable) (pull_request) Failing after 12m1s
to f54d282d93
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 4s
checks / Build Forgejo Runner (pull_request) Successful in 16s
checks / validate mocks (pull_request) Successful in 20s
checks / validate pre-commit-hooks file (pull_request) Successful in 28s
checks / runner exec tests (pull_request) Successful in 27s
checks / integration tests (docker-latest) (pull_request) Failing after 8m12s
checks / integration tests (docker-stable) (pull_request) Failing after 10m49s
2026-01-09 16:09:33 +00:00
Compare
Author
Member

@mfenniak I could use some help. For some reason, the test runs fail, seemingly for no reason. There's no FAIL in the entire logs. It abruptly ends with make: *** [Makefile:113: integration-test] Error 1. I cannot reproduce it locally. Do you have an idea? Apart from that, it should be ready.

@mfenniak I could use some help. For some reason, the test runs fail, seemingly for no reason. There's no `FAIL` in the entire logs. It abruptly ends with `make: *** [Makefile:113: integration-test] Error 1`. I cannot reproduce it locally. Do you have an idea? Apart from that, it should be ready.
Owner

It's possible that this is being affected by #1258, and part of the logs are being lost. I pulled your branch into my LXC test environment and was able to get this concrete error out. This is probably caused by the change in FORGEJO_RUNNER_SECRET in the test.yml workflow?

=== RUN   Test_runCreateRunnerFile
    create-runner-file_test.go:92: 
        	Error Trace:	/home/forgejo/.cache/act/4313e89d2d854867/hostexecutor/internal/app/cmd/create-runner-file_test.go:92
        	Error:      	Received unexpected error:
        	            	the secret must be an hexadecimal string: encoding/hex: invalid byte: U+0047 'G'
        	Test:       	Test_runCreateRunnerFile
    create-runner-file_test.go:93: 
        	Error Trace:	/home/forgejo/.cache/act/4313e89d2d854867/hostexecutor/internal/app/cmd/create-runner-file_test.go:93
        	Error:      	Not equal: 
        	            	expected: ""
        	            	actual  : "Error: the secret must be an hexadecimal string: encoding/hex: invalid byte: U+0047 'G'\nUsage:\n  create-runner-file [flags]\n\nFlags:\n      --connect           tries to connect to the instance using the secret (Forgejo v1.21 instance or greater)\n  -h, --help              help for create-runner-file\n      --instance string   Forgejo instance address\n      --name string       Runner name\n      --secret string     secret shared with the Forgejo instance via forgejo-cli actions register\n\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1 +1,12 @@
        	            	+Error: the secret must be an hexadecimal string: encoding/hex: invalid byte: U+0047 'G'
        	            	+Usage:
        	            	+  create-runner-file [flags]
        	            	 
        	            	+Flags:
        	            	+      --connect           tries to connect to the instance using the secret (Forgejo v1.21 instance or greater)
        	            	+  -h, --help              help for create-runner-file
        	            	+      --instance string   Forgejo instance address
        	            	+      --name string       Runner name
        	            	+      --secret string     secret shared with the Forgejo instance via forgejo-cli actions register
        	            	+
        	            	+
        	Test:       	Test_runCreateRunnerFile
    create-runner-file_test.go:99: 
        	Error Trace:	/home/forgejo/.cache/act/4313e89d2d854867/hostexecutor/internal/app/cmd/create-runner-file_test.go:99
        	Error:      	Received unexpected error:
        	            	open /tmp/Test_runCreateRunnerFile2829622984/001/.runner: no such file or directory
        	Test:       	Test_runCreateRunnerFile
--- FAIL: Test_runCreateRunnerFile (0.00s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered, repanicked]
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x13fa421]
goroutine 52 [running]:
testing.tRunner.func1.2({0x15ab320, 0x20ecea0})
	/home/forgejo/.cache/act/tool_cache/go/1.25.5/x64/src/testing/testing.go:1872 +0x419
testing.tRunner.func1()
	/home/forgejo/.cache/act/tool_cache/go/1.25.5/x64/src/testing/testing.go:1875 +0x683
panic({0x15ab320?, 0x20ecea0?})
	/home/forgejo/.cache/act/tool_cache/go/1.25.5/x64/src/runtime/panic.go:783 +0x132
code.forgejo.org/forgejo/runner/v12/internal/app/cmd.Test_runCreateRunnerFile(0xc000582380)
	/home/forgejo/.cache/act/4313e89d2d854867/hostexecutor/internal/app/cmd/create-runner-file_test.go:100 +0x641
testing.tRunner(0xc000582380, 0x17b4958)
	/home/forgejo/.cache/act/tool_cache/go/1.25.5/x64/src/testing/testing.go:1934 +0x21d
created by testing.(*T).Run in goroutine 1
	/home/forgejo/.cache/act/tool_cache/go/1.25.5/x64/src/testing/testing.go:1997 +0x9d3
FAIL	code.forgejo.org/forgejo/runner/v12/internal/app/cmd	0.040s
It's possible that this is being affected by #1258, and part of the logs are being lost. I pulled your branch into my LXC test environment and was able to get this concrete error out. This is probably caused by the change in `FORGEJO_RUNNER_SECRET` in the `test.yml` workflow? ``` === RUN Test_runCreateRunnerFile create-runner-file_test.go:92: Error Trace: /home/forgejo/.cache/act/4313e89d2d854867/hostexecutor/internal/app/cmd/create-runner-file_test.go:92 Error: Received unexpected error: the secret must be an hexadecimal string: encoding/hex: invalid byte: U+0047 'G' Test: Test_runCreateRunnerFile create-runner-file_test.go:93: Error Trace: /home/forgejo/.cache/act/4313e89d2d854867/hostexecutor/internal/app/cmd/create-runner-file_test.go:93 Error: Not equal: expected: "" actual : "Error: the secret must be an hexadecimal string: encoding/hex: invalid byte: U+0047 'G'\nUsage:\n create-runner-file [flags]\n\nFlags:\n --connect tries to connect to the instance using the secret (Forgejo v1.21 instance or greater)\n -h, --help help for create-runner-file\n --instance string Forgejo instance address\n --name string Runner name\n --secret string secret shared with the Forgejo instance via forgejo-cli actions register\n\n" Diff: --- Expected +++ Actual @@ -1 +1,12 @@ +Error: the secret must be an hexadecimal string: encoding/hex: invalid byte: U+0047 'G' +Usage: + create-runner-file [flags] +Flags: + --connect tries to connect to the instance using the secret (Forgejo v1.21 instance or greater) + -h, --help help for create-runner-file + --instance string Forgejo instance address + --name string Runner name + --secret string secret shared with the Forgejo instance via forgejo-cli actions register + + Test: Test_runCreateRunnerFile create-runner-file_test.go:99: Error Trace: /home/forgejo/.cache/act/4313e89d2d854867/hostexecutor/internal/app/cmd/create-runner-file_test.go:99 Error: Received unexpected error: open /tmp/Test_runCreateRunnerFile2829622984/001/.runner: no such file or directory Test: Test_runCreateRunnerFile --- FAIL: Test_runCreateRunnerFile (0.00s) panic: runtime error: invalid memory address or nil pointer dereference [recovered, repanicked] [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x13fa421] goroutine 52 [running]: testing.tRunner.func1.2({0x15ab320, 0x20ecea0}) /home/forgejo/.cache/act/tool_cache/go/1.25.5/x64/src/testing/testing.go:1872 +0x419 testing.tRunner.func1() /home/forgejo/.cache/act/tool_cache/go/1.25.5/x64/src/testing/testing.go:1875 +0x683 panic({0x15ab320?, 0x20ecea0?}) /home/forgejo/.cache/act/tool_cache/go/1.25.5/x64/src/runtime/panic.go:783 +0x132 code.forgejo.org/forgejo/runner/v12/internal/app/cmd.Test_runCreateRunnerFile(0xc000582380) /home/forgejo/.cache/act/4313e89d2d854867/hostexecutor/internal/app/cmd/create-runner-file_test.go:100 +0x641 testing.tRunner(0xc000582380, 0x17b4958) /home/forgejo/.cache/act/tool_cache/go/1.25.5/x64/src/testing/testing.go:1934 +0x21d created by testing.(*T).Run in goroutine 1 /home/forgejo/.cache/act/tool_cache/go/1.25.5/x64/src/testing/testing.go:1997 +0x9d3 FAIL code.forgejo.org/forgejo/runner/v12/internal/app/cmd 0.040s ```
Author
Member

Thanks a lot. That helps.

@mfenniak wrote in #1261 (comment):

This is probably caused by the change in FORGEJO_RUNNER_SECRET in the test.yml workflow?

Yes, it is. I passed the runner registration token instead of the offline registration token 🤦 Let's see whether I can create an offline registration token with setup-forgejo. I cannot reuse the previously used service container because it doesn't work with LXC. And separate steps don't work with the new test arrangement.

Thanks a lot. That helps. @mfenniak wrote in https://code.forgejo.org/forgejo/runner/pulls/1261#issuecomment-72441: > This is probably caused by the change in `FORGEJO_RUNNER_SECRET` in the `test.yml` workflow? Yes, it is. I passed the runner registration token instead of the offline registration token 🤦 Let's see whether I can create an offline registration token with `setup-forgejo`. I cannot reuse the previously used service container because it doesn't work with LXC. And separate steps don't work with the new test arrangement.
Author
Member

setup-forgejo seems not to allow me to access forgejo to create an offline registration token. After reading #1268 (comment) and considering that we will need a lot more testing for all the new commands, ideally with different versions of Forgejo, I plan on skipping internal/app/cmd/create-runner-file_test.go so that we can proceed here. Afterwards, I'll turn internal/app/cmd/create-runner-file_test.go into proper end-to-end tests.

`setup-forgejo` seems not to allow me to access `forgejo` to create an offline registration token. After reading https://code.forgejo.org/forgejo/runner/pulls/1268#issuecomment-72574 and considering that we will need a lot more testing for all the [new commands](https://code.forgejo.org/forgejo/forgejo-actions-feature-requests/issues/88), ideally with different versions of Forgejo, I plan on skipping `internal/app/cmd/create-runner-file_test.go` so that we can proceed here. Afterwards, I'll turn `internal/app/cmd/create-runner-file_test.go` into proper [end-to-end](https://code.forgejo.org/forgejo/end-to-end/) tests.
aahlenst force-pushed run-all-tests from 6bde97ab72
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 4s
checks / Build Forgejo Runner (pull_request) Successful in 19s
checks / validate mocks (pull_request) Successful in 24s
checks / validate pre-commit-hooks file (pull_request) Successful in 33s
checks / runner exec tests (pull_request) Successful in 29s
example / docker-build-push-action-in-lxc (pull_request) Successful in 1m39s
Integration tests for the release process / release-simulation (pull_request) Successful in 4m16s
/ example-lxc-systemd (pull_request) Successful in 6m45s
checks / integration tests (docker-latest) (pull_request) Failing after 8m22s
checks / integration tests (docker-stable) (pull_request) Failing after 10m41s
to 5d95da1c3c
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 5s
checks / Build Forgejo Runner (pull_request) Successful in 18s
checks / validate mocks (pull_request) Successful in 22s
checks / validate pre-commit-hooks file (pull_request) Successful in 29s
checks / runner exec tests (pull_request) Successful in 27s
checks / integration tests (docker-latest) (pull_request) Failing after 8m21s
checks / integration tests (docker-stable) (pull_request) Failing after 10m52s
2026-01-12 13:46:43 +00:00
Compare
aahlenst force-pushed run-all-tests from 5d95da1c3c
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 5s
checks / Build Forgejo Runner (pull_request) Successful in 18s
checks / validate mocks (pull_request) Successful in 22s
checks / validate pre-commit-hooks file (pull_request) Successful in 29s
checks / runner exec tests (pull_request) Successful in 27s
checks / integration tests (docker-latest) (pull_request) Failing after 8m21s
checks / integration tests (docker-stable) (pull_request) Failing after 10m52s
to bc576da7d0
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 4s
checks / Build Forgejo Runner (pull_request) Successful in 30s
checks / validate mocks (pull_request) Successful in 33s
checks / validate pre-commit-hooks file (pull_request) Successful in 42s
checks / runner exec tests (pull_request) Successful in 36s
checks / integration tests (docker-latest) (pull_request) Failing after 10m4s
checks / integration tests (docker-stable) (pull_request) Failing after 12m16s
2026-01-12 21:17:51 +00:00
Compare
aahlenst force-pushed run-all-tests from bc576da7d0
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 4s
checks / Build Forgejo Runner (pull_request) Successful in 30s
checks / validate mocks (pull_request) Successful in 33s
checks / validate pre-commit-hooks file (pull_request) Successful in 42s
checks / runner exec tests (pull_request) Successful in 36s
checks / integration tests (docker-latest) (pull_request) Failing after 10m4s
checks / integration tests (docker-stable) (pull_request) Failing after 12m16s
to 31b134c092
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 5s
checks / validate mocks (pull_request) Successful in 1m10s
checks / Build Forgejo Runner (pull_request) Successful in 1m16s
checks / validate pre-commit-hooks file (pull_request) Successful in 1m17s
checks / runner exec tests (pull_request) Successful in 1m26s
checks / integration tests (docker-latest) (pull_request) Failing after 12m11s
checks / integration tests (docker-stable) (pull_request) Failing after 13m56s
2026-01-13 13:35:38 +00:00
Compare
aahlenst force-pushed run-all-tests from 31b134c092
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 5s
checks / validate mocks (pull_request) Successful in 1m10s
checks / Build Forgejo Runner (pull_request) Successful in 1m16s
checks / validate pre-commit-hooks file (pull_request) Successful in 1m17s
checks / runner exec tests (pull_request) Successful in 1m26s
checks / integration tests (docker-latest) (pull_request) Failing after 12m11s
checks / integration tests (docker-stable) (pull_request) Failing after 13m56s
to 711434e1fa
All checks were successful
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
checks / Build Forgejo Runner (pull_request) Successful in 59s
checks / validate mocks (pull_request) Successful in 46s
checks / validate pre-commit-hooks file (pull_request) Successful in 57s
/ example-lxc-systemd (pull_request) Successful in 8m18s
checks / runner exec tests (pull_request) Successful in 43s
checks / integration tests (docker-latest) (pull_request) Successful in 12m55s
checks / integration tests (docker-stable) (pull_request) Successful in 14m34s
2026-01-13 15:49:04 +00:00
Compare
aahlenst force-pushed run-all-tests from 711434e1fa
All checks were successful
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
checks / Build Forgejo Runner (pull_request) Successful in 59s
checks / validate mocks (pull_request) Successful in 46s
checks / validate pre-commit-hooks file (pull_request) Successful in 57s
/ example-lxc-systemd (pull_request) Successful in 8m18s
checks / runner exec tests (pull_request) Successful in 43s
checks / integration tests (docker-latest) (pull_request) Successful in 12m55s
checks / integration tests (docker-stable) (pull_request) Successful in 14m34s
to 3db3bad65f
All checks were successful
checks / Build Forgejo Runner (pull_request) Successful in 44s
checks / validate pre-commit-hooks file (pull_request) Successful in 49s
checks / validate mocks (pull_request) Successful in 50s
checks / runner exec tests (pull_request) Successful in 37s
checks / integration tests (docker-latest) (pull_request) Successful in 12m17s
checks / integration tests (docker-stable) (pull_request) Successful in 14m19s
issue-labels / release-notes (pull_request_target) Successful in 4s
cascade / debug (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Successful in 5s
cascade / forgejo (pull_request_target) Successful in 1m6s
2026-01-13 16:30:04 +00:00
Compare
aahlenst changed title from WIP: chore: ensure all tests are run to chore: ensure all tests are run 2026-01-13 18:09:20 +00:00
@ -7,3 +7,3 @@
- run: |
echo "forgejo.ref=${{ forgejo.ref }}"
[[ "${{ forgejo.ref }}" =~ ^refs/(heads|tags)/.+$ ]] || exit 1
[[ "${{ forgejo.ref }}" =~ ^refs/(heads|remotes|rewritten|tags)/.+$ ]] || exit 1
Owner

Hm... where does this change come from?

Hm... where does this change come from?
Author
Member

When I originally added the test, I didn't include all kinds of refs. I added those now because a PR looks like refs/remotes/pull/1261/head. Because not all tests were run before, and that's one of those that have not been run, we never noticed that the test was broken.

When I originally added the test, I didn't include all kinds of refs. I added those now because a PR looks like `refs/remotes/pull/1261/head`. Because not all tests were run before, and that's one of those that have not been run, we never noticed that the test was broken.
mfenniak marked this conversation as resolved
mfenniak approved these changes 2026-01-13 22:37:29 +00:00
Owner

Thank you for taking this on! 🙂 I've tweaked the repo's branch protection rules to match the update.

Thank you for taking this on! 🙂 I've tweaked the repo's branch protection rules to match the update.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 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!1261
No description provided.