Repository navigation
chore(benchmarks): cover the paths that call-count tests guard - #357
Conversation
…-fix benchmarks Add a shared CLI fixture helper that runs the built CLI in process, checks each fixture once during setup, and works under both the tinybench runner (bench options) and the CodSpeed runner (suite hooks). New cases: intent review --json with 20 distinct source patterns and with one shared pattern, intent validate with TypeScript code blocks for one package and for a monorepo, and intent validate --fix with a pending frontmatter migration.
Add cases for list (allowlisted scopes among plain dependencies, nested symlinked node_modules), load (one skill from a 200-skill package, a workspace package in a 120-member workspace), stale (large workspace, targeted package, artifact entries matched by name, installed-dependency fallback), install --review, and maintainer check and sync on a reviewed repository.
|
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
View your CI Pipeline Execution ↗ for commit 36cb002
💡 With Ultracache enabled, Nx Cloud learns each task's file inputs in CI and uses them on later runs. Turn on Ultracache in workspace settings ↗ · Read docs ↗ ☁️ Nx Cloud last updated this comment at |
commit: |
🎯 Changes
tests/repeated-work.test.ts, the read-count assertions intests/scanner.test.ts, and a few others. This adds a benchmark for each of those paths, so the same work is also measured. No test is removed and no source file changes.review.bench.tsandinstall.bench.tsare new;list,load,stale,validate, andmaintainergain cases.createCliFixturetohelpers.ts. It runs the CLI in process against one fixture perdescribeand checks the fixture at setup, so a case cannot pass on an empty result.validate --fixrewrites its fixture, andbench()in vitest 4.1.11 passes no per-iteration hook to tinybench. The case restores the fixture in the suitebeforeEachand falls back to a restore inside the function.review.bench.tsreports every pending skill as json(distinct sources per skill)review.bench.tsreuses source matches and hashes across skills(one shared source pattern)install.bench.tsreviews unchanged permissions with one scanlist.bench.tsscans allowlisted scopes among dependencies without skillslist.bench.tsdiscovers symlinked nested packages without crawling loops or source treesload.bench.tsloads one skill without reading its siblingsload.bench.tsloads a workspace package skill from a large workspacestale.bench.tsreports drift for every package with shared artifactsstale.bench.tschecks only the targeted packagestale.bench.tsmatches artifact entries to skills by namestale.bench.tsreports installed packages through the fallback scanvalidate.bench.tstypechecks code blocks that import the packagevalidate.bench.tstypechecks code blocks for every workspace packagevalidate.bench.tsmigrates pending frontmatter in every skill(--fix)maintainer.bench.tschecks skills, typed examples, and reviewsmaintainer.bench.tsplans an unchanged repository distribution✅ Checklist
pnpm run test:pr(runpnpm build:allfirst).🚀 Release Impact