Skip to content

Add a build timeout so a hung process can't occupy a worker forever - #100

Open
aadrian wants to merge 3 commits into
takezoe:masterfrom
aadrian:fix/build-timeout
Open

aadrian wants to merge 3 commits into
takezoe:masterfrom
aadrian:fix/build-timeout

Conversation

@aadrian

@aadrian aadrian commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Builds on top of #98 and #99, please merge those first.

runProcess polled process.isAlive() indefinitely, so a hung build script could tie up a worker thread forever. Adds an admin-configurable buildTimeoutMinutes setting (default 60, 0 disables it) and kills the process once it's exceeded.

addedComment only checked the commenter was logged in, not that they
had write access. Gate it behind isWritable, like the manual "Run
build" button already does.
PRs from forks auto-triggered a build on open and on every push to
the fork branch, with no review step, running the fork's code
directly on the host (or against Docker). Add a per-repo
buildForkPullRequests flag (default off) and gate both trigger
paths on it. Merges are exempt since they build the base repo's own
already-reviewed branch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant