fix: don't panic on cacheproxy startup failure #1067

Merged
earl-warren merged 1 commit from mfenniak/forgejo-runner:fix-cacheproxy-failure into main 2025-10-07 08:09:14 +00:00
Owner

In #1064 I theorized that a failure to start up the cache proxy server might cause it to still be registered as ACTIONS_CACHE_URL. It turns out to not be the case as it will just panic, since cacheProxy is nil. But regardless, it seems better to not panic and crash if the intent here is "cache will be disabled" as documented in the log message.

  • bug fixes
    • PR: fix: don't panic on cacheproxy startup failure
In #1064 I theorized that a failure to start up the cache proxy server might cause it to still be registered as `ACTIONS_CACHE_URL`. It turns out to not be the case as it will just panic, since `cacheProxy` is `nil`. But regardless, it seems better to not panic and crash if the intent here is "cache will be disabled" as documented in the log message. <!--start release-notes-assistant--> <!--URL:https://code.forgejo.org/forgejo/runner--> - bug fixes - [PR](https://code.forgejo.org/forgejo/runner/pulls/1067): <!--number 1067 --><!--line 0 --><!--description Zml4OiBkb24ndCBwYW5pYyBvbiBjYWNoZXByb3h5IHN0YXJ0dXAgZmFpbHVyZQ==-->fix: don't panic on cacheproxy startup failure<!--description--> <!--end release-notes-assistant-->
mfenniak force-pushed fix-cacheproxy-failure from 9f92ae9d0e
Some checks failed
checks / validate pre-commit-hooks file (pull_request) Successful in 48s
issue-labels / release-notes (pull_request_target) Successful in 8s
checks / validate mocks (pull_request) Failing after 1m6s
checks / build and test (pull_request) Failing after 1m14s
checks / runner exec tests (pull_request) Has been skipped
checks / runner integration tests (pull_request) Has been skipped
checks / integration tests (pull_request) Successful in 12m6s
to 1440b004cb
All checks were successful
checks / validate pre-commit-hooks file (pull_request) Successful in 43s
checks / validate mocks (pull_request) Successful in 1m4s
checks / build and test (pull_request) Successful in 3m13s
checks / runner exec tests (pull_request) Successful in 29s
checks / runner integration tests (pull_request) Successful in 4m58s
checks / integration tests (pull_request) Successful in 11m26s
issue-labels / release-notes (pull_request_target) Successful in 5s
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 1m35s
2025-10-07 01:05:30 +00:00
Compare
Contributor

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

cascading-pr updated at https://code.forgejo.org/actions/setup-forgejo/pulls/711
mfenniak changed title from fix: disable cache on cacheproxy startup failure to fix: don't panic on cacheproxy startup failure 2025-10-07 02:24:37 +00:00
earl-warren deleted branch fix-cacheproxy-failure 2025-10-07 08:09:15 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
forgejo/runner!1067
No description provided.