Commits
Commits on
0d793e79661b6fda70ef67e41b548320a00a8598Filtered to crates/forge-runner/src/cli.rsClear filterYesterday
♻️ refactor: runner memory is one box (RAM minus kept-for-host) shared by all jobs, swap left to the OS, concurrency the only gate; drops reservations, pressure parking and requeue. Fixes: log upload retries transient failures instead of dropping the rest of the log, running jobs spin and their live step pulses, wiki hides its empty page railAhmet Kaan Gümüş · d75b65d
♻️ refactor: runner memory is one box (RAM minus kept-for-host) shared by all jobs, swap left to the OS, concurrency the only gate; drops reservations, pressure parking and requeue. Fixes: log upload retries transient failures instead of dropping the rest of the log, running jobs spin and their live step pulses, wiki hides its empty page rail
ci/buildSucceededDetails
✨ feat: runners handle SIGTERM, report a clean stop so they show offline at once, and can unregister themselves (install.sh --uninstall uses it); runner name is editable from the admin page; docs: runner check runs under systemd-run --userAhmet Kaan Gümüş · 2e29cbc
✨ feat: runners handle SIGTERM, report a clean stop so they show offline at once, and can unregister themselves (install.sh --uninstall uses it); runner name is editable from the admin page; docs: runner check runs under systemd-run --user
ci/buildFailedDetails
♻️ refactor: leftover cross-crate simplification (signed-token helper, NewPull, settings table, row helpers, strings! i18n macro, csrf form, RepoCtx helpers, shared page and e2e helpers, ci config split, one time helper set); fixes: runner reported labels survive override clears, milestone titles repaired from the swapped update bug, runner helper lines can no longer be spoofed by job output, rootfs GC no longer touches other id ranges, restart only labels jobs it cancelled, artifact quota re-checked in the store write, LFS gc and upload share a lock, OCI orphan blobs swept, mirror worker no longer spins on syncing mirrors, merge queue fails missing checks after the job timeout and resumes after restart, post_update walks every pushed commit, close-with-comment is one transaction, pull create is retry-safeAhmet Kaan Gümüş · c3c44bb
♻️ refactor: leftover cross-crate simplification (signed-token helper, NewPull, settings table, row helpers, strings! i18n macro, csrf form, RepoCtx helpers, shared page and e2e helpers, ci config split, one time helper set); fixes: runner reported labels survive override clears, milestone titles repaired from the swapped update bug, runner helper lines can no longer be spoofed by job output, rootfs GC no longer touches other id ranges, restart only labels jobs it cancelled, artifact quota re-checked in the store write, LFS gc and upload share a lock, OCI orphan blobs swept, mirror worker no longer spins on syncing mirrors, merge queue fails missing checks after the job timeout and resumes after restart, post_update walks every pushed commit, close-with-comment is one transaction, pull create is retry-safe
ci/buildjob was cancelledDetails
🔥 remove: every code comment and doc comment in the Rust sources (12k lines), per the no-comments rule; docs/ holds the rationaleAhmet Kaan Gümüş · 7e521ed
Browse files
ci/buildSucceededDetails
♻️ refactor: forge-runner and forge-web-base drop dead code, duplicated parsing and stale comments; fixes: memory.high no longer drops to 0 on small boxes, log lines are cut at MAX_LINE exactly, a half-installed image rootfs is replaced on retry, register resolves local paths before using the one-time token, strip_ansi keeps the char after a lone ESCAhmet Kaan Gümüş · 68935b0
♻️ refactor: forge-runner and forge-web-base drop dead code, duplicated parsing and stale comments; fixes: memory.high no longer drops to 0 on small boxes, log lines are cut at MAX_LINE exactly, a half-installed image rootfs is replaced on retry, register resolves local paths before using the one-time token, strip_ansi keeps the char after a lone ESC
2026-11-30
🐛 fix: the swap share of a runner's memory budget is swap again: a job without memory may hold the RAM part and swap up to the share, where before the whole budget was its RAM limit with swap off, so a build bigger than RAM was OOM-killed even with swap on the hostAhmet Kaan Gümüş · a574fbfBrowse files
2026-10-29
✨ feat(ci): a runner's page has a Logs tab with the runner's own log, so a long queue can be explained: the runner keeps its last 2000 info and warn lines and sends them to the forge every 2 s (resending what a restarted forge lost), logs once per change why it is not claiming (all slots busy, a pending restart or update, memory pressure), and the forge adds a note when a claim ends with nothing while jobs are queued: how many need labels the runner lacks, how many wait for memory and the smallest need against the free memory, and when a job that waited over 5 minutes holds smaller ones back until it fitsAhmet Kaan Gümüş · 67c3573Browse files
2026-10-28
🔒 harden: a builtin job with network = true gets its own network namespace through pasta (internet yes; the runner's localhost, private and link-local ranges no; IPv6 none), and shares the host's only when pasta is missing, saying so in the job log; a job may fill limits.job_disk_gb (20, on the runner page) of disk before it is stopped; the runner removes leftover job dirs, cgroups, pasta processes and workspaces at startupAhmet Kaan Gümüş · 570e592
🔒 harden: a builtin job with network = true gets its own network namespace through pasta (internet yes; the runner's localhost, private and link-local ranges no; IPv6 none), and shares the host's only when pasta is missing, saying so in the job log; a job may fill limits.job_disk_gb (20, on the runner page) of disk before it is stopped; the runner removes leftover job dirs, cgroups, pasta processes and workspaces at startup
2026-10-21
♻️ refactor: map subuids from a spawned helper instead of an unsafe forkAhmet Kaan Gümüş · 6e9cbff
♻️ refactor: map subuids from a spawned helper instead of an unsafe fork Subuid mode spawns the runner binary as __sandbox-map before unshare. The helper waits on stdin for a gate byte, then runs newuidmap and newgidmap against the parent pid. Errors come back on stderr. This removes the only fork in the sandbox path, so idmap.rs has no unsafe code.
✨ feat: the runner parks the youngest job in swap under memory pressure instead of letting the kernel killAhmet Kaan Gümüş · 197fa34
✨ feat: the runner parks the youngest job in swap under memory pressure instead of letting the kernel kill Jobs now live in a runner-owned box cgroup capped at the memory budget. An inotify watch on memory.events and a PSI trigger wake a controller that freezes the youngest job, pushes it to swap, and thaws it when there is room. A job that cannot be parked is killed and requeued. Admission waits on the controller instead of a timer, memory declarations in ci.toml are now optional.
2026-10-20
✨ feat: restart a runner from the admin pages, after its jobs or nowAhmet Kaan Gümüş · 767f2d0
✨ feat: restart a runner from the admin pages, after its jobs or now A runner that advertises the restart capability gets the request in the claim answer or heartbeat, stops claiming, drains or cancels its jobs and exits 75. The request clears when it reports a new boot id.
✨ feat: show a real build identity (commit, date) for server and runnersAhmet Kaan Gümüş · 1979f80
✨ feat: show a real build identity (commit, date) for server and runners Embeds the git short sha and commit date at build time (forge-ci build.rs, env fallback, then unknown). forge --version, /admin/server and /admin/health show it. Runners report it on claim and heartbeat, it is stored (migration 0056), and /admin/runners and the runner page show it with an up to date, outdated or unknown badge.
✨ feat: live runner config and server settings in admin UIAhmet Kaan Gümüş · 8609bad
✨ feat: live runner config and server settings in admin UI
- Runner config: per-runner concurrency and labels editable live from
/admin/runners, applied via heartbeat/claim header with no restart; the
runner limiter resizes without killing running jobs
- Runner detail page at /admin/runners/{id} shows every runner.toml field
with source and kind (live / restart needed / read-only), secrets redacted,
with live SSE updates
- New GET/PUT /api/v1/ci/runners/config endpoints; migrations 0044, 0045
- Server settings at /admin/server: DB-backed overrides over the config file
(UI > file > default), five tabs, per-field live / restart / read-only /
write-only secret kinds, reset to file value
- Shared AppState::live() handle, validation via Config::validate, saves
audited by key only; migration 00462026-10-18
⚡ perf(ci): per-branch build cache kept on the runnerAhmet Kaan Gümüş · fabd8b3
⚡ perf(ci): per-branch build cache kept on the runner - Jobs list workspace paths to keep with `cache = ["target"]`. - The runner moves a same-branch entry into the checkout and back after the run; a new branch starts from a copy of its base or default branch entry. - The server picks the scope from the run's trigger: pushes write `ref:<ref>`, pull requests only `pr:<n>`, so a PR can never seed the cache a deploy build reuses. - `cache_max_gib` (default 20, 0 = off) evicts the least recently saved entries. 🐛 deploy: exit 75 is a deliberate restart, not a failure. Without SuccessExitStatus the OnFailure rollback ran on every self-update and restored the previous binary.
2026-10-17
🚀 feat: self-update on green ci and repo workflowAhmet Kaan Gümüş · 4c18432
🚀 feat: self-update on green ci and repo workflow - forge swaps its binary when a push to main passes CI (artifact dist_forge), keeps .prev, exits 75 for systemd restart - runners update from the server's binary when idle via claim headers - systemd user units with OnFailure rollback and a .bad list - .forge/ci.toml runs test and build
2026-10-16
🎉 feat: initial commit of forgeAhmet Kaan Gümüş · 50bfaf3
🎉 feat: initial commit of forge Self-hosted git forge in Rust: web UI, SSH and smart HTTP git, issues, pull requests with reviews and merge rules, CI with a sandboxed runner, webhooks, notifications, releases, LFS, mirrors, replication and scheduled backups.