fix: ensure log buffer flush even if a command error occurs in host & lxc executor #1375

Merged
mfenniak merged 1 commit from mfenniak/forgejo-runner:flush-logs-on-hostexecutor-error into main 2026-02-13 22:11:19 +00:00
Owner

Probably fixes #1374. As soon as subcommand in the host & LXC executor was failing with an error, it would cause a skip of the code path that ensured the log buffer flush was complete.

  • bug fixes
    • PR: fix: ensure log buffer flush even if a command error occurs in host & lxc executor
Probably fixes #1374. As soon as subcommand in the host & LXC executor was failing with an error, it would cause a skip of the code path that ensured the log buffer flush was complete. <!--start release-notes-assistant--> <!--URL:https://code.forgejo.org/forgejo/runner--> - bug fixes - [PR](https://code.forgejo.org/forgejo/runner/pulls/1375): <!--number 1375 --><!--line 0 --><!--description Zml4OiBlbnN1cmUgbG9nIGJ1ZmZlciBmbHVzaCBldmVuIGlmIGEgY29tbWFuZCBlcnJvciBvY2N1cnMgaW4gaG9zdCAmIGx4YyBleGVjdXRvcg==-->fix: ensure log buffer flush even if a command error occurs in host & lxc executor<!--description--> <!--end release-notes-assistant-->
fix: don't skip flushing output buffers when command error occurs
All checks were successful
checks / validate pre-commit-hooks file (pull_request) Successful in 58s
checks / Build Forgejo Runner (pull_request) Successful in 1m9s
checks / validate mocks (pull_request) Successful in 1m18s
checks / runner exec tests (pull_request) Successful in 55s
checks / Build unsupported platforms (pull_request) Successful in 1m27s
checks / integration tests (docker-latest) (pull_request) Successful in 10m2s
checks / integration tests (docker-stable) (pull_request) Successful in 12m42s
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 12s
cascade / forgejo (pull_request_target) Successful in 1m54s
1cd0641c93
mfenniak changed title from fix: don't skip flushing output buffers when command error occurs to fix: ensure log buffer flush even if a command error occurrs 2026-02-13 21:31:13 +00:00
aahlenst approved these changes 2026-02-13 21:44:38 +00:00
Contributor

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

cascading-pr updated at https://code.forgejo.org/actions/setup-forgejo/pulls/886
mfenniak changed title from fix: ensure log buffer flush even if a command error occurrs to fix: ensure log buffer flush even if a command error occurs in host & lxc executor 2026-02-13 21:47:35 +00:00
mfenniak deleted branch flush-logs-on-hostexecutor-error 2026-02-13 22:11:21 +00:00
viceice approved these changes 2026-02-14 07:41:48 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 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!1375
No description provided.