forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on bcaef901dbc87aecf8dc13e336bc101cfd50455eFiltered to crates/forge-web/src/test_support.rsClear filter

2026-10-23

⚡ perf: stop the slow e2e tests waiting on delays they do not checkAhmet Kaan Gümüş · 5f0038c
⚡ perf: stop the slow e2e tests waiting on delays they do not check

Where the time went (isolated runs, before -> after):

- ssh_e2e clone_push_clone_over_ssh: 16.9 s -> 0.5 s
  Every SSH connection's first `none` auth probe was rejected, and russh
  answered each rejection after a fixed 1 s delay. The delay is now the
  `ssh_auth_rejection_secs` setting (default 1, production unchanged); the
  e2e harness and the SSH test set 0.

- mirrors_e2e pull_and_push_mirrors_sync_over_smart_http: 12.9 s -> 3.5 s
  A push mirror waited the hard-coded 10 s push debounce. The debounce is now
  `[mirrors] push_debounce_secs` (default 10, production unchanged); the test
  sets 0.

- git_e2e git_end_to_end: 9.5 s -> 2.9 s
  Its SSH operations paid the same 1 s auth delay as above.

- ci::api::tests::runner_binary_streams_the_running_binary_with_its_sha:
  32 s -> 9.2 s (shared run). The binary body was streamed in 4 KiB frames
  (ReaderStream default), about 350k frames for a 1.4 GB debug binary. Now
  64 KiB frames. The served bytes and assertions are unchanged.

Also: debug builds now optimize argon2, blake2, ml-kem, keccak,
curve25519-dalek, ed25519-dalek and chacha20 (same pattern as sha2), so
password hashing and SSH crypto are fast in tests. Release is unaffected.
⚡ 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

⚡ feat: organization pages update liveAhmet Kaan Gümüş · 230dd1d
⚡ feat: organization pages update live

The members, teams, team and settings pages of an org follow an Org topic that
every POST under the org bumps. A team page also follows each repo it links.
The streams apply the page's own checks: non-members get 404, non-owners get 403
on settings. Org notices now ride in the redirect's query, so a live refresh
does not use them up.

2026-10-21

✨ feat: an OCI container registry per user and orgAhmet Kaan Gümüş · 136f946
✨ feat: an OCI container registry per user and org

Includes: ✨ feat: a cargo registry per user and org
✨ feat: web push notifications with a service worker and per-device settingsAhmet Kaan Gümüş · 8a4b8e7
✨ feat: web push notifications with a service worker and per-device settings

Each inbox notification also goes to the user's devices that turned push on. Pushes are encrypted with web-push-native (RFC 8291, RFC 8292), sent from a spawned task, and carry only a short title, body and link. Devices are managed on the notifications settings page, which updates live. Adds a service worker at /sw.js, a web app manifest and icons.

2026-10-20

✨ feat: site announcement banner, admin health page, nav and stylesAhmet Kaan Gümüş · 75640ff
✨ feat: site announcement banner, admin health page, nav and styles

Includes: ✨ feat: suspend users, admin flag, reset link and 2FA reset; password change notice
✨ 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-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

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.