forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on b00f3f4cccccd1fa6327b8a807dc66feb5d43fb2Filtered to crates/forge-web/src/ci/api.rsClear filter

2026-10-23

⚡ perf: CI claims wait a configurable time, and the e2e tests set it smallAhmet Kaan Gümüş · f6cbcec
⚡ perf: CI claims wait a configurable time, and the e2e tests set it small

The e2e drain loop claims until the forge has nothing left, and that last
claim always sat out the full 25 s claim long poll. Two drains cost the fork
test 50 s, one drain cost the push and merge queue tests about 25 s each.

The claim wait is now `[ci] claim_wait_ms` (default 25000, unchanged in
production). The e2e servers set it to 50, and the unit-test config does the
same. The live log test drops its fixed `sleep 5` for a release file the test
writes after it sees the first line, so the job still runs while the stream
is read, and the wait is only as long as the job needs.

Timings (nextest, same machine, under shared CPU load):
  fork_pull_waits_for_approval_and_runs_without_secrets  59.6 s -> 6.0 s
  push_run_masks_secrets_keeps_artifacts_and_skips_dependants  33.1 s -> 4.8 s
  merge_queue_lands_the_first_pull_and_kicks_out_the_conflicting_second  34.0 s -> 6.2 s
  live_log_streams_until_the_job_finishes  9.7 s -> 4.8 s

All assertions are unchanged.

2026-10-22

2026-10-21

✨ feat: the runner reports OOM kills from the job cgroup, shown on the job page and in alertsAhmet Kaan Gümüş · edff93b
✨ feat: the runner reports OOM kills from the job cgroup, shown on the job page and in alerts

A killed rustc leaves cargo exiting 101 with the signal only in the log, so the exit code
and message checks missed it. The helper reads memory.events (oom, oom_kill) before the
cgroup is deleted, the runner sends oom_killed and oom_kills in the finish body, the forge
stores them, the job page says killed: out of memory and the killed-job alert fires on it,
with the old exit code and message matches kept as a fallback.

2026-10-20

✨ feat: memory-aware job admission so a runner never over-commits its RAMAhmet Kaan Gümüş · 69c5821
✨ feat: memory-aware job admission so a runner never over-commits its RAM

A job can declare memory in ci.toml. A runner admits a job only when the
reservations of its running jobs plus the new one fit its memory budget
(MemTotal minus headroom by default, swap ignored), tells the forge how much
it can admit on every claim, and the forge hands out the first queued job that
fits. A job that waited 5 minutes and does not fit stops smaller jobs passing
it. Each job's cgroup gets memory.max of its declared memory plus slack, with
swap off. Budget and default reservation are live settings on the runner page,
which also shows budget, reserved and free. Old runners and forges keep the
old behaviour. forge's own ci.toml declares 4g for test and build.

2026-10-21

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 0046

2026-10-19

👷 ci: restore [release] and v* trigger; ⚡ live-updating CI runs pageAhmet Kaan Gümüş · d30dc31
👷 ci: restore [release] and v* trigger; ⚡ live-updating CI runs page

- the server now parses [release] (and ignores unknown keys with a warning),
  so the bootstrap workaround is no longer needed
- log appends wake the run's event stream; runs page refreshes at most 1/s
- running durations and bars tick locally from server-rendered start times

2026-10-18

✨ feat: CI auto-releases, releases REST API, asset replace, retag, R2/S3 storageAhmet Kaan Gümüş · 51b2bbf
✨ feat: CI auto-releases, releases REST API, asset replace, retag, R2/S3 storage

- `[release]` in .forge/ci.toml: successful tag runs publish the release,
  attach matching job artifacts and write commit notes since the last release
- token-authenticated /api/v1/repos/{owner}/{repo}/releases API with streamed uploads
- same-name uploads replace assets in place; per-asset Replace control
- edit a release's tag and target (target moves only while draft)
- release_ops layer shared by pages, API and CI
- `[storage]` backend: fs (default), r2 (native config) or s3
- fix: asset delete now checks the release belongs to the repo in the URL
⚡ 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(ci): live runs list, job graph, badge labels and a one-form profile settings pageAhmet Kaan Gümüş · b25287e
✨ feat(ci): live runs list, job graph, badge labels and a one-form profile settings page

- Runs list updates live over SSE on page 1 (per-repo change signal), rows are whole-row links.
- Run page: compact header and a server-rendered job graph staged by `needs`; job rows are links.
- Job log opens at its tail and keeps following unless the reader scrolls up.
- Badge label: `?label=`, then the job name, then ci.toml `name`, then "ci"; README badge added.
- Profile settings: username, about and timezone in one form, avatar with an Edit menu.
🚀 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.