Skip to content

test(rules): replace 1 s wall-clock limits in two perf tests with ratios #2091 - #2161

Merged
nc9 merged 1 commit into
mainfrom
boat/flaky-perf-2091
Nov 20, 2026
Merged

nc9 merged 1 commit into
mainfrom
boat/flaky-perf-2091

Conversation

@nc9

@nc9 nc9 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Closes #2091.

  • a11y-nested-tables-3355: 5,000 nested blocks now asserts the rule is >3x faster than the quadratic per-block reference oracle on the same input (measured ~10x). Both runs slow alike under CI load.
  • component-occurrence-defects: the 5,000-link nav asserts time(5000)/time(1250) < 9 (linear ~4, quadratic ~16), parse excluded, best of three. The deep-wrapper test lost its 1 s assertion (its result assertions stay) and was renamed.

Acceptance:

  • Still catches quadratic: disabling the childTagSequence cache gave ratio 14.0 and failed the test; the nested test compares against the quadratic reference by construction.
  • No absolute wall-clock limit remains in either test.
  • 20 consecutive CI runs: needs CI history after merge (cannot run here).

Gates: bun run scripts/test-suites.ts --run rules 12504 pass, 0 fail; packages/rules typecheck clean. No docs change. Agent skill: no change.

@nc9
nc9 marked this pull request as ready for review November 20, 2026 20:49
@nc9
nc9 merged commit 1cb078e into main Nov 20, 2026
8 of 15 checks passed
@nc9
nc9 deleted the boat/flaky-perf-2091 branch November 20, 2026 20:57
@nc9

nc9 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor Author

Correction to the merge commit body: "#2132 class flakes" should read #2091 (this PR's issue). The commit is already on main, so its message can't be changed.

nik

nc9 added a commit that referenced this pull request Nov 20, 2026
…pass (#2082) (#2164)

security/unauthenticated-api reports every leaking current-user endpoint with no hand-off; after the site pass the runner keeps exactly one finding per endpoint (security/auth-endpoint-disclosure's when its results include the endpoint, otherwise unauthenticated-api's). Before, an endpoint handed to the auth rule lost its finding when that rule threw or ran past its time budget. The deferredToAuth detail on the unauthenticated-api clean row is replaced by reportedBy/reportedElsewhere.

landed during Actions billing lock: Daytona CI pubci-11202044-240a587 (PASS at 240a587; quality, tests, build; DCO 2/2). 4 behind main at merge (#2143, #2150, #2161, #2160): no overlap with packages/rules/src/runner.ts, packages/rules/src/security/ or the 1886/2082 tests. Hold-list security-rule change: merged on Nik's approval.

Signed-off-by: Nik Cubrilovic <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky 1-second wall-clock limits in two rules perf tests (nested tables, component occurrence)

1 participant