forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on b00f3f4cccccd1fa6327b8a807dc66feb5d43fb2Filtered to crates/forge-web/src/self_update.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.
✅ test: forge-web unit tests merge into tables and drop checks that cannot failAhmet Kaan Gümüş · aeec80c
✅ test: forge-web unit tests merge into tables and drop checks that cannot fail

Test count in forge-web (excluding pages/): 580 before, 544 after.
Removed a redundant theme cycle test and folded several near-identical
tests (markdown links, cache scope, deploy decisions, lfs pointer
rejections, raw 404s and headers, webhook loopback rejections, accent
slugs, highlight None cases, template fallbacks) into table-driven tests
that keep every case and assertion, labelled per case.

2026-10-21

2026-10-20

✨ feat: restart the server from the admin page and follow it back without a reloadAhmet Kaan Gümüş · c80f705
✨ feat: restart the server from the admin page and follow it back without a reload

The button asks for a graceful stop through the self-update path (exit 75, systemd restarts). The page shows Restarting and re-renders itself when the event stream reconnects to a new boot id.

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