forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 37e985d7446f13ea8d71da4ff0e8d2d11d64a25fFiltered to crates/forge-core/src/ci.rsClear filter

Yesterday

♻️ 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
✨ 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
♻️ 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
♻️ refactor: forge-core, forge-ci, forge-git and forge-ssh drop dead code, duplicated helpers and redundant tests; fixes: streaming log masker no longer leaks a secret whose prefix is another secret, milestone update stores title and folded title the right way round, milestone counts skip pulls, key file is written to a temp file then linked so a crash cannot leave a truncated key, and other verified store fixesAhmet Kaan Gümüş · e587be7
♻️ refactor: forge-core, forge-ci, forge-git and forge-ssh drop dead code, duplicated helpers and redundant tests; fixes: streaming log masker no longer leaks a secret whose prefix is another secret, milestone update stores title and folded title the right way round, milestone counts skip pulls, key file is written to a temp file then linked so a crash cannot leave a truncated key, and other verified store fixes

2026-11-30

✨ feat: runners report the used and total space of their work dir filesystem, and the runner page draws it as a Storage graph beside CPU, memory and network, with a Storage column in its table; the Limits tab can set host headroom and the share of swap in the memory budget, the last two runner.toml fields the UI did not have; a runner's Jobs tab links each job to its page and its repo to the repoAhmet Kaan Gümüş · 2ba0d23
✨ feat: runners report the used and total space of their work dir filesystem, and the runner page draws it as a Storage graph beside CPU, memory and network, with a Storage column in its table; the Limits tab can set host headroom and the share of swap in the memory budget, the last two runner.toml fields the UI did not have; a runner's Jobs tab links each job to its page and its repo to the repo

2026-11-01

✨ feat(ci): a job's top-level log groups are now steps: the server saves each one's name, start and end times and place in the log as chunks arrive, reading the masked text so a step name cannot hold a secret; a step left open takes the job's result, a requeued job starts with none, and each step gets a duration estimate by the same rule as a job; forge's own job prints Unit tests, Release build, E2E tests and Package as steps; the run page shows them: the selected job lists its steps with state and time, each job's row has a thin bar split by step, a step opens the log at its first line with its name held at the top and the failure box out of the way, and the timeline gives the selected job a lane per step; a job's preview no longer reads ::endgroup::; 🐛 fix: a run page on a phone shows its jobs and log, which a long title had squeezed to nothing; 💄 style: Ctrl K sits by the search hint and no longer reads as the key for ExploreAhmet Kaan Gümüş · c4b949a
✨ feat(ci): a job's top-level log groups are now steps: the server saves each one's name, start and end times and place in the log as chunks arrive, reading the masked text so a step name cannot hold a secret; a step left open takes the job's result, a requeued job starts with none, and each step gets a duration estimate by the same rule as a job; forge's own job prints Unit tests, Release build, E2E tests and Package as steps; the run page shows them: the selected job lists its steps with state and time, each job's row has a thin bar split by step, a step opens the log at its first line with its name held at the top and the failure box out of the way, and the timeline gives the selected job a lane per step; a job's preview no longer reads ::endgroup::; 🐛 fix: a run page on a phone shows its jobs and log, which a long title had squeezed to nothing; 💄 style: Ctrl K sits by the search hint and no longer reads as the key for Explore

2026-10-31

✨ feat: commit messages are read as data: lists, the file tree and CI show a type tag, the first clause and +N, a commit page groups its clauses by type with the raw message one click away, and generated release notes get sections, while a message with no type shows as before; Needs you at /needs-you lists your failed runs, requested reviews, your pull requests with changes requested or approved, assigned issues and mentions; lists work from the keyboard with j, k, Enter and x, and ? shows the keys; the command palette lists the actions of the page you are on and posts them only through the server; a failed run opens on its failing job and the log around the first error; a running job shows the time left from past successful runs, or nothing with under three samples; the pull Files tab marks files viewed per user, and a later change to a file clears its mark; density and an optional finish sound are saved to the account; 💄 style: running jobs and pending checks follow the accent instead of yellow, CI bars grow to the server's width on a live update and new log lines fade in, both off for reduced motion; the commit page and Appearance fit one screenAhmet Kaan Gümüş · e832da0
✨ feat: commit messages are read as data: lists, the file tree and CI show a type tag, the first clause and +N, a commit page groups its clauses by type with the raw message one click away, and generated release notes get sections, while a message with no type shows as before; Needs you at /needs-you lists your failed runs, requested reviews, your pull requests with changes requested or approved, assigned issues and mentions; lists work from the keyboard with j, k, Enter and x, and ? shows the keys; the command palette lists the actions of the page you are on and posts them only through the server; a failed run opens on its failing job and the log around the first error; a running job shows the time left from past successful runs, or nothing with under three samples; the pull Files tab marks files viewed per user, and a later change to a file clears its mark; density and an optional finish sound are saved to the account; 💄 style: running jobs and pending checks follow the accent instead of yellow, CI bars grow to the server's width on a live update and new log lines fade in, both off for reduced motion; the commit page and Appearance fit one screen

2026-10-29

✨ feat(ci): a runner's page answers what it is working on and how its host is doing: a Jobs tab lists the jobs it runs now and its last 20 finished ones, each with its run, how long it ran and how long it waited in the queue (the Running jobs stat links there, and ci_jobs gets an index on runner_id, started_at); a Metrics tab graphs the last hour of CPU (with the time jobs ran shaded), memory against the total and network received and sent, from samples the runner takes from /proc every 5 s and sends every 10 s; the graphs are server-drawn SVG in the accent colour with a hover readout per 30 s and a table view, and the forge keeps the samples in memoryAhmet Kaan Gümüş · 42861fb
✨ feat(ci): a runner's page answers what it is working on and how its host is doing: a Jobs tab lists the jobs it runs now and its last 20 finished ones, each with its run, how long it ran and how long it waited in the queue (the Running jobs stat links there, and ci_jobs gets an index on runner_id, started_at); a Metrics tab graphs the last hour of CPU (with the time jobs ran shaded), memory against the total and network received and sent, from samples the runner takes from /proc every 5 s and sends every 10 s; the graphs are server-drawn SVG in the accent colour with a hover readout per 30 s and a table view, and the forge keeps the samples in memory

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-23

✅ test: forge-core drops tests whose removal leaves every mutant caughtAhmet Kaan Gümüş · 654f528
✅ test: forge-core drops tests whose removal leaves every mutant caught

Phase 2 on forge-core, gated with cargo-mutants (full suite vs reduced suite).

Candidates: 109 from per-test coverage and greedy set cover (321 tests before).
- 92 protected by the blind-spot policy before the gate (every store::* test, the
  audit_store, stars_store and store_basic integration tests, and the security and
  format tests: authz, lfs_token, raw_token, token, secret, password, totp, protection,
  oci digests, avatar size limits, config).
- 17 entered the gate. 1 skipped by the closure budget (server_settings precedence,
  369 extra mutants over 200).
- 16 gated over 8 src files, 331 mutants. Full run: 210 caught (incl. 4 timeouts),
  55 missed. Reduced run after 1 restore round: 210 caught, 55 missed (equal).
- 14 candidates survived the gate and were deleted. 2 were restored because removing
  them newly missed a mutant (issues::body_is_checked_in_bytes covers validate_body,
  names::accepted_names_return_folded_form covers validate_name).

Tests: 321 before, 307 after. cargo nextest run -p forge-core: 307 passed.
time.rs: the tests module held only one helper and an import after its tests were
removed, so the module is gone.

Coverage gaps: 55 mutants are missed by both runs (no tests written for them).

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.
✨ 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-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.