forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 8e56ffc5ba761d68f2909dedfcd96dcedc76f102Filtered to crates/forge-runner/src/cache.rsClear filter

2026-10-29

⚡ perf(ci): a cancelled or requeued job no longer throws away the build cache: a hit used to move the entry into the job's workspace and only a finished job put it back, so cancelling run #108 and the memory requeue in #109 left main with a cold cache and a full recompile of 674 crates; now a hit copies the entry (cp --reflink=auto) and only a job that succeeds or fails replaces it, several jobs can read one entry at once, and copies hold a read lock so a save or eviction cannot swap the entry halfway; forge's own CI caches CARGO_HOME in the workspace too, so a run downloads only new cratesAhmet Kaan Gümüş · c3349ae
⚡ perf(ci): a cancelled or requeued job no longer throws away the build cache: a hit used to move the entry into the job's workspace and only a finished job put it back, so cancelling run #108 and the memory requeue in #109 left main with a cold cache and a full recompile of 674 crates; now a hit copies the entry (cp --reflink=auto) and only a job that succeeds or fails replaces it, several jobs can read one entry at once, and copies hold a read lock so a save or eviction cannot swap the entry halfway; forge's own CI caches CARGO_HOME in the workspace too, so a run downloads only new crates

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