Commits
Commits on
bcaef901dbc87aecf8dc13e336bc101cfd50455e2026-10-23
⚡ feat: relative times on every page keep themselves currentAhmet Kaan Gümüş · bcaef90
⚡ feat: relative times on every page keep themselves current
Server-rendered relative times ("3 hours ago") were static text, so an open page
aged without moving. Every `<time>` that shows an age now carries data-rel, and
nav.js re-words it locally, arming one setTimeout for the next real change of
wording. No request is made.
- views: rel_words() gives the wording; the <html> element carries it as
data-rel-words with the server clock in data-rel-now, copied on each swap.
- All relative <time> tags across pages get data-rel="true", plus the
standalone labels (blame, tree, branches, banner, dashboard, runners,
export, import) that now wrap a stamped <time>.
- CI run list is live on every page, not only page 1.
- Run rows and the run header show their age as a <time data-rel>.
- Tests: rel_words asserts added to relative_time_picks_the_unit; three
asserts updated for the live list and the <time> markup.✅ test: forge-core keeps its stamp ordering and closing keyword spec testsAhmet Kaan Gümüş · 868c8a6
✅ test: forge-core keeps its stamp ordering and closing keyword spec tests Restores stamps_sort_lexicographically_in_time_order (time.rs tests module) and all_keywords_are_case_insensitive (issue_refs.rs), both removed in the phase 2 deletion. Tests: 307 before, 309 after.
✅ 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).
♻️ refactor: forge-core integration tests build as one binaryAhmet Kaan Gümüş · d9b0f87
♻️ refactor: forge-core integration tests build as one binary Four test binaries (audit_store, read_pool, stars_store, store_basic) are now one `integration` binary. Binaries 4 to 1, test count unchanged at 29. The store open and db path helpers are deduped into tests/integration/common.rs.
✅ test: forge-git drops two tests whose removal leaves every mutant caughtAhmet Kaan Gümüş · 9abc059
✅ test: forge-git drops two tests whose removal leaves every mutant caught Phase 2 on forge-git, gated with cargo-mutants (full suite vs reduced suite). Deleted maintenance::tests::after_push_reports_missing_repo and repo::tests::list_trash_without_directory_is_empty. The reduced run matched the full run: 487 caught, 104 missed, so no mutant became newly missed. Tests: 95 before, 93 after. cargo nextest run -p forge-git: 93 passed.
♻️ refactor: forge-git integration tests build as one binaryAhmet Kaan Gümüş · c885553
♻️ refactor: forge-git integration tests build as one binary Four test binaries (browse, browse_tools, forge_git, history) merge into one `integration` binary, cutting linked test executables from 4 to 1. Test count unchanged at 32. Shared BIG limits and the git env constructor move into tests/integration/common.rs; other helpers stay local because their git identities and signatures differ.
✅ test: wait for SIGKILLed job processes to exit before checking themAhmet Kaan Gümüş · 74e2f80
✅ test: wait for SIGKILLed job processes to exit before checking them The executor reaps the job cgroup before run_job returns, and the cgroup is gone by then. A SIGKILLed process leaves its cgroup before it finishes exiting, so a single /proc check right after could still see it in state D. Poll for up to 5 s instead.
♻️ refactor: forge-runner integration tests build as one binaryAhmet Kaan Gümüş · b495552
♻️ refactor: forge-runner integration tests build as one binary Five test binaries (builtin, flow, idmap, sandbox, unpack_subuid) are now one binary named integration, so the crate links one test executable instead of five. Test count unchanged at 27. Shared helper userns_available and can_run moved to tests/integration/common, deduplicated from builtin and sandbox.
✅ test: secret masking keeps its base64 and longest match spec testsAhmet Kaan Gümüş · f7792aaBrowse files
✅ test: forge-ci drops tests whose removal leaves every mutant caughtAhmet Kaan Gümüş · 09a95b5
✅ test: forge-ci drops tests whose removal leaves every mutant caught Candidates found by per-test coverage set cover: 22 of 69 tests (40 forced as sole coverers, 4 without production coverage, 3 greedy-kept). Candidates that survived the mutant gate: 5 (cron: requires_five_fields, next_is_strictly_after; mask: longest_match_wins, masks_base64_encoding, masks_plain_values). Tests before: 69, after: 64. Mutants (cargo-mutants on cron.rs, mask.rs, config.rs): caught full run 193, caught reduced run 193 (equal), missed in both 15. Coverage gaps (15 mutants missed by both runs) were recorded and no tests were written for them.
🚨 lint: merged tests drop needless borrows and name their complex typesAhmet Kaan Gümüş · 5852a68Browse files
✅ test: forge-web page tests share their fixtures and merge into tablesAhmet Kaan Gümüş · b757c23
✅ test: forge-web page tests share their fixtures and merge into tables Test count in scope: 132 before, 103 after. Per file (before -> after): api/statuses 10 -> 5, api/releases 10 -> 9, api/gitea_tests 8 -> 3, backup/tests 10 -> 6, replication 11 -> 9, importer/tests 9 -> 7, pulls_sync 9 -> 8, views/mod 13 -> 10, views/heatmap 13 -> 11, mail/templates 8 -> 7, i18n 7 -> 4. importer/api, importer/forgejo_tests and web_push stay as they were. Refused writes and read-only lookups now share one fixture, with a case label on every assertion. Streak, CSP, Target parse, i18n resolve and unchanged-line cases are folded into tables. No assertion was removed.
✅ test: page tests share their fixtures and merge into tablesAhmet Kaan Gümüş · 40e7f7d
✅ test: page tests share their fixtures and merge into tables Per-file test counts (#[test]/#[tokio::test]), main -> now: - pages/authoring_tests.rs: 7 -> 3 - pages/blame.rs: 3 -> 2 - pages/browse_tests.rs: 9 -> 4 - pages/commit.rs: 6 -> 3 - pages/commits.rs: 7 -> 3 - pages/forgot.rs: 3 -> 1 - pages/fork.rs: 9 -> 1 - pages/import_tests.rs: 5 -> 2 Total: 44 -> 19. Scoped run: 19 passed, 0 failed.
✅ test: CI page tests share their fixtures and merge into tablesAhmet Kaan Gümüş · de06f74
✅ test: CI page tests share their fixtures and merge into tables ci_tests.rs: 32 -> 18 tests. Access, run list, live pages, job log events, log tail, log.txt and follower, artifacts, badge, and run page previews now share one fixture per group, each scenario in its own block with its own runs and names. Finish-based scenarios finish their job before the next one starts, since finish_job claims the oldest queued job. ci_badge.rs: 6 -> 5 tests. The two escaping tests merge into one. No assertion was removed or weakened. Clippy was skipped per the coordinator.
✅ test: page tests share their fixtures and merge into tablesAhmet Kaan Gümüş · 3bcf844
✅ test: page tests share their fixtures and merge into tables ci_runs.rs: 22 -> 19 tests (ref/image shortening, scale/span text, axis/place merged). compare.rs: 10 -> 4 tests (read-only views and pull posts share one fixture each; fork and private keep their own). code_search.rs: 7 -> 2 tests (segment cases merged; all route scenarios share one fixture). Total 39 -> 25. No assertions removed.
✅ test: forge-web page tests share their fixtures and merge into tablesAhmet Kaan Gümüş · 5137546
✅ test: forge-web page tests share their fixtures and merge into tables Per-file test counts before and after: - git_auth.rs: 9 -> 1 (basic auth cases in one table) - git_http.rs: 10 -> 9 (git protocol value cases in one table) - internal.rs: 10 -> 9 (ref name cases in one table) - lfs/route_tests.rs: 12 -> 11 (path-without-.git check moved onto the batch fixture) - notify.rs: 18 -> 16 (mention parsing cases in one table) - raw.rs: 11 -> 1 (read-only scenarios share one 9 MB fixture) - signatures.rs: 7 -> 4 (ssh badge scenarios share one fixture, key listing cases in one table) - webhooks/client.rs: 10 -> 9 (CIDR and hostname accept cases in one loop) - webhooks/payload.rs: 7 -> 7 (no duplicates found) Every assertion is kept and labelled with its case. Scoped run: 115 passed.
✅ test: page tests share their fixtures and merge into tablesAhmet Kaan Gümüş · 8a535cb
✅ test: page tests share their fixtures and merge into tables admin_backups 6 -> 3, admin_replication 5 -> 3, account_tools_tests 8 -> 4, audit_log 6 -> 2, assets 8 -> 6, archive 4 (unchanged), admin_health 1 (unchanged), avatars 3 (unchanged). 41 -> 26 tests in scope. Scenarios that share one fixture run in order, each asserting its own result and naming it in assert messages. Tests that need a pristine instance or different config keep their own fixture.
✅ test: page tests share their fixtures and merge into tablesAhmet Kaan Gümüş · b00f3f4
✅ test: page tests share their fixtures and merge into tables Counts for the page files in this pass: 55 #[test] before, 31 after. media 7 -> 3, new_repo 6 -> 3, reactions_tests 8 -> 2, register 5 -> 3, security_tab_tests 4 -> 2, snippets 9 -> 2. The other 16 files (org_ctx, org_teams, ref_live, repo_settings, settings_sessions, settings_tokens, setup, snippet_raw, theme_cookie, wiki) kept their tests. Read-only scenarios share one fixture; each keeps a labelled assert message. Pristine or mutating cases (a pushed branch, an archived repo, a separate registration mode) keep their own fixture or run last.
✅ test: forge-web page tests share their fixtures and merge into tablesAhmet Kaan Gümüş · d052c07
✅ test: forge-web page tests share their fixtures and merge into tables Test count in the four page files: 46 before, 31 after. - repo_settings_live_tests.rs: 6 -> 4 (security and transfer stream checks merged into one table of paths) - repo_mirrors.rs: 11 -> 6 (non-admin 404s, secret redaction and Turkish list merged; loopback form merged into add and sync; edit and delete share one seeded mirror; pull-mirror owner check merged into the empty-repo add) - repo_webhooks.rs: 12 -> 8 (long-secret case merged into the invalid-form test; other-repo 404 merged with edit and delete; escaped delivery merged with redeliver) - notifications.rs: 17 -> 13 (anonymous login and stream checks merged; pull 404 merged into subscription; owner open merged into another-user 404; second discussion merged into the discussion test)
✅ test: ci page tests share their fixtures and merge into tablesAhmet Kaan Gümüş · 9d64853
✅ test: ci page tests share their fixtures and merge into tables api_tests 32 -> 26, schedule 17 -> 11, release 10 -> 8 (59 -> 45). Folded checks that needed no fresh store into the test that already had one (unknown secret, blank runner name, missing log offset, memory overrides). Merged the OOM, dependant, self-update, cancel, glob, manual, pull request and failed-run cases into one test each, one branch, tag or run number per scenario. The runner binary stream test is unchanged.
✅ test: forge-web page tests share their fixtures and merge into tablesAhmet Kaan Gümüş · a7d2b6c
✅ test: forge-web page tests share their fixtures and merge into tables Counts for the four files (tests before -> after): - settings_security.rs: 15 -> 6 - passkeys_tests.rs: 13 -> 7 - settings_keys.rs: 9 -> 3 - settings_gpg_tests.rs: 7 -> 2 Scenarios that share a fixture run in an order that keeps each assertion valid, and the throttle-sensitive scenarios keep their own fixture. Every assertion is kept, and the rejection cases of the SSH key parser are checked against their exact KeyProblem.
✅ test: page tests share their fixtures and merge into tablesAhmet Kaan Gümüş · 7cded14
✅ test: page tests share their fixtures and merge into tables Per file, test count before -> after: - login.rs: 12 -> 4 (password throttles on one app, audit kept pristine, two-factor flows on one app, two-factor expiry and limit on one app) - issue_pin_tests.rs: 7 -> 2 (write rules in order on one repo, read views on one repo) - edit_history.rs: 7 -> 2 (public scenarios share one fixture, private repo kept separate) - discussion_live_tests.rs: 4 -> 2 (public writes share one seed, streams test kept) - labels_page.rs: 4 -> 1 (defaults button and adding in order on one site) - labels_css.rs: 4 -> 4 (unchanged, no shared fixture to merge) Total: 38 -> 15. Every assertion is kept, with the scenario name in its message.
✅ test: admin page tests share their fixtures and merge into tablesAhmet Kaan Gümüş · 6efb476
✅ test: admin page tests share their fixtures and merge into tables Per file, test count before and after: - admin_runners.rs: 10 -> 4 - admin_server.rs: 10 -> 4 - admin_mail.rs: 8 -> 3 - admin_live_tests.rs: 9 -> 3 Gate, CSRF and refusal checks now run inside the scenario that owns the fixture state. Every assertion is kept, with its scenario named in the message.
⚡ perf: dev builds keep line tables only, so test binaries are smaller and link fasterAhmet Kaan Gümüş · 2f69218Browse files
⚡ 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: page tests share their fixtures and merge into tablesAhmet Kaan Gümüş · cbc0d0b
✅ test: page tests share their fixtures and merge into tables Counts per file, before to after: - profile.rs: 13 to 4 - profile_pins.rs: 6 to 2 - settings_profile.rs: 11 to 2 - settings_appearance.rs: 8 to 5 - settings_live.rs: 5 to 3 - settings_notifications.rs: 4 to 2 Scenarios that share one fixture now run in order in one test, with unique names per scenario and a label on every assertion. Pure checks that cannot fail were folded into their neighbours. No assertion was removed.
✅ test: pull page tests share their fixtures and merge into tablesAhmet Kaan Gümüş · f23b28c
✅ test: pull page tests share their fixtures and merge into tables Counts before/after per file: - pull_view.rs: 20 -> 4 - pull_reviews.rs: 15 -> 5 - pull_files.rs: 11 -> 2 Scenarios that share one open pull run in order inside one test, so each scenario sees only the comments and state added before it. Every assert carries its scenario name. Pristine-instance tests are kept separate.
✅ 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.