forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on eb7e617ee40f6d51f5eab3d48edbbd151cc76b53

2026-10-23

✅ test: page tests share their fixtures and merge into tablesAhmet Kaan Gümüş · eb7e617
✅ test: page tests share their fixtures and merge into tables

Counts for the three page files: releases_tests 22 -> 9, repo 15 -> 9,
repo_secrets 7 -> 5 (44 -> 23 tests).

Merged: release scenarios share one fixture per group with unique tags
and releases; the blob-count check runs first in its fixture. The repo
read-only pages and 404 checks share one fixture. Secret refusals share
one fixture, and the value-leak check runs before the language switch.

Kept separate: the three release live-stream tests, the repo push-banner
tests (push events accumulate in a shared repo), and the pure
names_follow_the_pattern test.
✅ test: page tests share their fixtures and merge into tablesAhmet Kaan Gümüş · a83ea02
✅ test: page tests share their fixtures and merge into tables

issue_meta_tests.rs: 13 -> 3 tests (one fixture per scenario group).
issues_list.rs: 15 -> 3 tests (pristine flow, populated flow, private repo).
issue_view.rs: 13 -> 2 tests (page rendering and form gating, comment/close/edit rules).

Merged tests keep every assertion, with a case label in each message.
Tests that need a pristine instance (empty list, pagination, private repo) stay on their own fixture.
The issue-number precondition in the state test was dropped; the number is not the thing under test.
✅ test: page tests share their fixtures and merge into tablesAhmet Kaan Gümüş · 1a6f67b
✅ test: page tests share their fixtures and merge into tables

Merge fixture-sharing scenarios into one table-like test each, keeping
every assertion and labelling each with its case.

- pulls_merge.rs: 22 -> 19 (four refused-merge tests become one)
- push.rs: 8 -> 5 (VAPID, refused subscriptions, public routes)
- pulls_list.rs: 6 -> 4 (list, issues exclusion and new-PR button)
- pull_branch.rs: 6 -> 5 (protected and default branch refusals)

Total in scope: 42 -> 33. Verified with nextest: 34 passed in the
pages module filter.
⚡ 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.
✅ test: page a-l tests merge into tables and drop checks that cannot failAhmet Kaan Gümüş · 9b3e6a7
✅ test: page a-l tests merge into tables and drop checks that cannot fail

Test count in crates/forge-web/src/pages (a-l files) goes from 294 to 288.
Two access-check tests in ci_tests share one fixture now, the two badge
label tests share one, the df and du parser tests merge, the admin mail
stream check runs inside the admin-only test, and the signature badge
checks fold into the commit list and commit page tests.
✅ 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.
✅ test: page tests merge into tables and drop duplicate casesAhmet Kaan Gümüş · 79f48c9
✅ test: page tests merge into tables and drop duplicate cases

Counts for the m-z page files: 332 #[test] before, 324 after.

Merged: three unauthorised merge requests (read only, anonymous,
missing csrf) share one fixture; the profile repo-visibility checks
share one seeded site; the create tag/target checks share one fixture;
three csrf-refusal tests in settings_profile become table or combined
cases; two settings_appearance label tests and two selection tests
become one test each.

Removed: a duplicate "teal" case in settings_appearance.
✅ test: runner tests merge into tables and share fixturesAhmet Kaan Gümüş · f12f76a
✅ test: runner tests merge into tables and share fixtures

Test count in forge-runner src went from 167 to 160.
Merged into tables with labelled asserts: resync cases in logs.rs (4 to 2),
whiteouts and setid/flatten modes in oci/unpack.rs (4 to 2), clone URL
checks in workspace.rs (2 to 1), env rejection in sandbox/spec.rs (2 to 1),
and the cache cap and auto update config checks (2 to 1).
No test was deleted. Sandbox skip logic is unchanged.
✅ test: git tests merge into fewer fixtures and drop duplicate checksAhmet Kaan Gümüş · bffc194
✅ test: git tests merge into fewer fixtures and drop duplicate checks

Test count in forge-git src went from 68 to 63.
The five grep mode and limit tests in search.rs now share one fixture
repo (8 to 4 tests). The blob_at rejection loop moves into the invalid
input test in pulls.rs, which drops one test and one repo build.
Every case and assertion is kept, with a case label in its message.
✅ test: ssh command parser tests merge into tablesAhmet Kaan Gümüş · 36ee1fa
✅ test: ssh command parser tests merge into tables

Test count in forge-ssh src went from 20 to 8.
The 18 parse.rs tests are now 6 table-driven tests. Every accept and
reject case is kept and labelled in its assert message.
Server tests are unchanged.
✅ test: store tests share their store and merge into tablesAhmet Kaan Gümüş · 7a15066
✅ test: store tests share their store and merge into tables

Test counts per file, before -> after (58 -> 33 in scope):
mirrors 9 -> 5, releases 6 -> 2, repo_listing 5 -> 1, profile_pins 5 -> 1,
advisories 5 -> 3, signatures 4 -> 3, backup_runs 4 -> 3, admin_alerts 2 -> 1,
lfs 2 -> 1, push_recent 2 -> 1, replication 2 -> 1, wiki 2 -> 1,
snippets 4 -> 4, migrate 4 -> 4, contributions 1 -> 1, health 1 -> 1.

Scenarios that ran on a fresh store now share one store, each on its own
repo or owner, with the case label on every assert. No test was deleted
for lack of logic. The persisted snippet visibility and signature status
literals now have explicit checks.
✅ test: store tests share their store and merge into tablesAhmet Kaan Gümüş · 965436c
✅ test: store tests share their store and merge into tables

Scenarios that built the same fixture now run one after another on one
store, each with its own repo, issue or users so their assertions stay
exact. Every assert carries its scenario label.

Test counts per file (before -> after):
- issues.rs: 16 -> 3
- labels.rs: 14 -> 3
- discussions.rs: 10 -> 3
- notifications.rs: 9 -> 3
- pinned.rs: 4 -> 2
- attachments.rs: 1 -> 1 (unchanged)

Total: 54 -> 15. Full-store checks (whole-table row counts after a repo
delete) keep their own store.
✅ test: store tests share their store and merge into tablesAhmet Kaan Gümüş · 7824c81
✅ test: store tests share their store and merge into tables

Scenarios that build the same fixture now run one after another in a
single test, so each store is opened once. Each scenario has its own
repo or user, and asserts keep their context.

Counts before -> after:
- store/mod.rs: 21 -> 11
- store/user_delete.rs: 7 -> 4
- store/transfers.rs: 7 -> 1
- store/suspension.rs: 3 -> 1
- store/snapshot.rs: 3 -> 2
- total: 41 -> 19

Pure tests (email shape, display name validation) and the
empty-store snapshot test are unchanged.
✅ test: store tests share their store and merge into tablesAhmet Kaan Gümüş · 535510d
✅ test: store tests share their store and merge into tables

Scenarios that build the same store now run one after another inside one
test, each with its own users and names, so each store is opened once.
Every assertion is kept. Nothing was removed as trivial.

Counts before -> after:
- webhooks.rs: 12 -> 8
- mail.rs: 12 -> 10
- orgs.rs: 10 -> 4
- account_tokens.rs: 10 -> 3
- passkeys.rs: 4 -> 1
Total: 48 -> 26
✅ test: pure forge-core tests merge into tables and drop no real checksAhmet Kaan Gümüş · c389fb6
✅ test: pure forge-core tests merge into tables and drop no real checks

Test counts before/after per file in scope:
- config.rs 25 -> 15 (listen fallback and parse merged, four bad-config rejections merged, four optional-section default checks merged, four r2 field checks merged)
- issue_refs.rs 19 -> 3 (issue reference and closing reference cases as tables, keyword loop kept)
- names.rs 8 -> 7 (valid names and usernames folded into one test, rejections into one test)
- suggestions.rs 9 -> 3 (split_body and replace_line cases as tables)
- server_settings.rs 7 -> 7, time.rs 4 -> 4, tz.rs 4 -> 4 (unchanged)
Total 76 -> 43. Every assertion kept, each with a case label in its message.
✅ test: forge-core pure tests merge into tablesAhmet Kaan Gümüş · 1093644
✅ test: forge-core pure tests merge into tables

Test counts in the touched files, before to after:
- authz 15 to 14: two hidden-repo 404 tests share one table
- protection 12 to 11: pattern validation accept and reject merge into one table
- advisories 12 to 8: range boundary cases merge into one table
- mail 8 to 7: the two enum round-trip tests merge into one
- avatar 8 to 4: accepted inputs and rejected inputs each merge into one table
- alerts 5 to 4: kill signature cases merge into one table

Security-sensitive token, totp, secret and password tests are unchanged.
✅ test: store tests share their store and merge into tablesAhmet Kaan Gümüş · 281e0ee
✅ test: store tests share their store and merge into tables

Each scenario in these modules now runs against one shared store,
with its own repo or pull request so cases cannot see each other.
Every assert carries its scenario label.

Counts in scope (store/reviews, pulls, commit_status, reactions,
review_requests, suggest), #[test] and #[tokio::test] attributes:
- reviews.rs: 17 -> 4 (16 store tests merged into 2 scenario tests)
- pulls.rs: 15 -> 3 (15 store tests merged into 2 scenario tests,
  global-count delete test kept separate)
- commit_status.rs: 9 -> 5 (5 store tests merged into 1; pure tests kept)
- reactions.rs: 4 -> 1 (4 store tests merged into 1)
- review_requests.rs: 1 -> 1 (unchanged)
- suggest.rs: 1 -> 1 (unchanged)
Total: 47 -> 15. No assertions removed.
✅ test: ci store tests share their store and merge into tablesAhmet Kaan Gümüş · 0fef3ae
✅ test: ci store tests share their store and merge into tables

Nine store scenarios that each work in their own repo and never claim
a job now run in one test over one store. The scenarios are helpers
that keep their asserts. Store tests in ci.rs go from 33 to 25.
A failure still points at the helper's line, and each helper is named
after its scenario.

Left separate: the runner tests (list_runners is global), the claim
and reap tests (claim_job and reap_lost_jobs see every repo's rows),
purge_old and delete_repo (global counts), and secrets_need_the_key
(needs a store without a secret key).
✅ test: forge-core unit tests merge into tables and drop checks that cannot failAhmet Kaan Gümüş · 5099461
✅ test: forge-core unit tests merge into tables and drop checks that cannot fail

Counts for forge-core src: 495 before, 485 after (-10).
Ui prefs store tests: 7 tests (each with its own store) merged into 2,
one pure validator test and one store test that reuses a single store.
Model visibility and role round-trips merged into one table test that
pins the stored literals. Pulls mergeable and merge style round-trips
merged the same way. Labels default-label tests merged into one
test over the two fixture repos.
✅ test: config and mask tests merge into tables and drop checks that cannot failAhmet Kaan Gümüş · 2bd834b
✅ test: config and mask tests merge into tables and drop checks that cannot fail

forge-ci unit tests go from 84 to 69. Defaults that come from serde
attributes are checked in one test, and the trigger, workflow name,
release enum, image/run and streaming mask tests now loop over case
tables with a labelled assert per case. No assertion was weakened.

config.rs 59 to 49, mask.rs 13 to 8, all other files unchanged.
⚡ perf: tests build the store, parser and password hash crates optimizedAhmet Kaan Gümüş · 2b7f1c7
⚡ perf: tests build the store, parser and password hash crates optimized

Every test opens a fresh store and runs the migrations through turso, and the login tests hash passwords with argon2. Unoptimized, those two dominate the suite. With opt-level 3 for them the summed test time drops from 946 s to 409 s and the workspace run from 80 s to 57 s. A nextest config adds a ci profile that writes JUnit timings.

2026-10-22

🐛 fix: the runners table gives each column room and lines its cells upAhmet Kaan Gümüş · d8555ce
🐛 fix: the runners table gives each column room and lines its cells up

Every header and cell now shares one 16px right gap, the last column has none, and cells sit on a common centre line. The commit hash and its pill are separated by a small gap, and Name is capped at half the table width so the compact columns keep their room.
🐛 fix: a run's jobs are listed in the order they run, not by nameAhmet Kaan Gümüş · b67eb9a
🐛 fix: a run's jobs are listed in the order they run, not by name

A run's jobs come from ci_jobs in insertion order, which is dependency
order from the scheduler. The query sorted them by name, so a job drawn
after its dependency could appear above it on the timeline. Order by
rowid instead; matrix combinations stay grouped as they were inserted.
✅ test: a private linked repo stays hidden from a viewer who cannot read itAhmet Kaan Gümüş · b20e524
✅ test: a private linked repo stays hidden from a viewer who cannot read it

The team stream follows only the org's repos an owner sees, so a rename of a
private repo does not wake a non-owner whose page would not change.
⚡ 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.
⚡ feat: wiki and snippet pages update liveAhmet Kaan Gümüş · aedd20e
⚡ feat: wiki and snippet pages update live

Wiki home, page list, page view and history follow Topic::Wiki (saves and wiki pushes bump it).
Snippet list and snippet page with revisions follow Topic::Snippets and Topic::Snippet.
Edit and new forms carry no data-live.
✅ test: snippet streams follow writes; docs list the wiki and snippet streamsAhmet Kaan Gümüş · 6388b13
✅ test: snippet streams follow writes; docs list the wiki and snippet streams
💄 ui: nine more accents and three more backgroundsAhmet Kaan Gümüş · a2b0fed
💄 ui: nine more accents and three more backgrounds

Accents: Crimson, Coral, Gold, Lime, Mint, Cyan, Sky, Violet and Fuchsia (22 in all). Backgrounds: Blush, Graphite and Pine (11 in all). Every light and dark pair passes the WCAG AA targets the existing set is held to. Gold takes dark text on its accent. Turkish names added.

The colour pickers are CSS grids with equal columns, so Background and Accent rows share column lines. The light and dark theme cards stack at full width, which gives 11 columns on desktop: the 11 backgrounds are one row and the 22 accents two. Medium cards get 6 columns and phone 4. Names sit under their swatches and are cut with an ellipsis if a column is too narrow. Tests cover the new ids, the counts and the settings form.