Repository navigation
test(install,audit-engine): concurrent install-hardening and attestation cases, shared canonical DB in javascript-shipped #1839 - #2186
Merged
Conversation
…es concurrently, copy the canonical crawl DB in javascript-shipped #1839 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
marked this pull request as ready for review
November 20, 2026 23:09
nc9
added a commit
that referenced
this pull request
Nov 21, 2026
* origin/main: test(install,audit-engine): run install-hardening and attestation cases concurrently, copy the canonical crawl DB in javascript-shipped #1839 (#2186) build(packages): typecheck the tests of crawler, report, utils, tech-detect, core-contracts, config, waf-detect, threat-intel #1859 (#2190) fix(cli): refuse a run whose config rule selection plus WCAG level leaves zero rules #2110 (#2156) fix(rules): links/anchor-mismatch false positives on translated stores #2092 (#2162) fix(rules): coded gap skips for input not fully checked, batch 2 rules #2134 (#2163) test(audit-engine): carriedCheckAsFailure keeps the continuation mark #2098 (#2166) fix(rules): correct zoom-disabled 1.4.4 wording, related criteria for wcagNone rules #2115 (#2174) refactor(cli): list bash completion flags one per line #2116 (#2175) feat(rules): waive a public Supabase table by bare name in security/supabase-rls #2103 (#2177) test(rules): every site rule emits a check on a clean site, with a shrinking baseline #1741 (#2179) feat(rules): report each 5xx page as its own crawl/server-errors finding #2130 (#2181) Signed-off-by: Nik Cubrilovic <[email protected]>
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #1839. Test-only change: no user-visible behaviour, so no changelog.d entry.
What changed
scripts/install-hardening-168.test.ts: every case runstest.concurrent. Each install already gets its own mkdtemp root, shims, HOME and process group, so the cases share nothing. This is the patterninstall-contract.test.tsalready uses (f0c1a6d). 14.1 s to 1.7 s.scripts/install-attestation-169.test.ts: the same, 9.0 s to 3.1 s.packages/audit-engine/tests/javascript-shipped-report.test.ts: each fixture copies the sharedcanonicalFixtureDb()file instead of regenerating the 500-page crawl. The copy is needed because a test body writes to its DB. 36.4 s to 34.8 s.No test is deleted, skipped or weakened. Every assertion and timing bound is unchanged.
Per-file timing (AC 1)
I timed every test file bun discovers (1,487 files, same discovery as
scripts/test-suites.ts) alone, one file per invocation, run from the repo root on public main 9994763 (48-core sandbox, bun 1.4.4):The solo times add up to 1,546.8 s (25.8 min). They are an upper bound for the golden files: in one whole-tree process those files share the memoized canonical captures in
helpers/golden-baseline.ts, so only the first file pays for the capture. The full 1,487-line TSV is kept with the lane report for attaching to the issue.The 20 slowest files, with a reason for each one that stays slow (AC 2 and 3)
receivedarray (:11-13, :243, :256), so running them concurrently would race.Ranks 21 to 40 (solo time):
AC 3: this PR takes the "stated reason" route for the files that stay slow. It does not show the release runner under 20 min. In CI the release quality gate already skips the re-run when main CI passed at the same sha (#1840).
Gates
bun run scripts/test-suites.ts --run rest: 3907 pass, 0 fail (94 s)bun run scripts/test-suites.ts --run audit-engine: 2366 pass, 0 fail (377 s)packages/audit-engine:bun run typecheckpasses (the package has no lint or format script)oxlinton the 3 changed files: clean.oxfmt --checkflags bothscripts/files on origin/main as well, andscripts/sits outside the workspace format gate.Agent skill change: none needed.