Repository navigation
feat: expand benchmark suite targets - #508
Conversation
Fix benchmark Pages npm links, add git-backed public benchmark rows, and harden suite workspace preparation for public repos. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughThe PR extends the benchmark suite to support git-backed repos via a structured ChangesBenchmark Suite Git Repos and Workspace Provisioning
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/infrastructure/benchmark/suite.ts (1)
762-763:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winSkip-count text now mislabels non-install preparation failures.
Skipped cells include clone/materialization failures, but the rendered summary still says “skipped for install,” which is misleading for triage.
📝 Suggested wording update
- `- cells_skipped_for_install: ${summary.cells_skipped_for_install}`, + `- cells_skipped_for_install: ${summary.cells_skipped_for_install} (any preparation failure)`, ... - cellSummaryParts.push(`${skippedCount} skipped for install`) + cellSummaryParts.push(`${skippedCount} skipped during preparation`)Also applies to: 1140-1142
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/infrastructure/benchmark/suite.ts` around lines 762 - 763, The summary text mislabels skipped cells as "skipped for install" even when skips are due to non-install preparation failures (clone/materialize); update the template strings that reference summary.cells_skipped_for_install to use a generic, accurate label such as "cells skipped during preparation (install/clone/materialize): ${summary.cells_skipped_for_install}" and similarly adjust the other occurrence that prints summary.cells_skipped_for_env_drift so both summaries reflect preparation/installation vs env-drift distinctions; search for uses of summary.cells_skipped_for_install and summary.cells_skipped_for_env_drift and replace the misleading wording in those template literals.
🧹 Nitpick comments (1)
tests/unit/benchmark-suite-isolation-docs.test.ts (1)
16-23: ⚡ Quick winAlign
project_claude_md_hashtest typing with the pinned environment contract.The parsed
environmenttype still declaresproject_claude_md_hash: nulleven though the pinned JSON now stores a SHA string. Keeping it asnullweakens type-checking for this contract test.Proposed diff
const environment = JSON.parse(readFileSync(resolve('docs/benchmarks/suite/isolation/environment.json'), 'utf8')) as { @@ - project_claude_md_hash: null + project_claude_md_hash: string🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@tests/unit/benchmark-suite-isolation-docs.test.ts` around lines 16 - 23, The test's parsed environment object currently types project_claude_md_hash as null which no longer matches the pinned JSON (it now contains a SHA string); update the inline type for the const environment in tests/unit/benchmark-suite-isolation-docs.test.ts so that project_claude_md_hash is typed as string (or string | null if it can be absent), ensuring the declaration around the environment const and its shape (isolation_required, mcp_servers_active, skills_loaded, plugins_active, user_claude_md_hash, project_claude_md_hash, parent_claude_md_hashes) reflects the actual JSON contract.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/benchmarks/suite/repos.json`:
- Around line 58-145: The manifest uses moving branch refs (source.ref) for
git-backed entries (e.g., ids "documenso", "formbricks", "dub", "twenty",
"cal-diy", "novu"); update each entry's source.ref to an immutable revision
(commit SHA or release tag) instead of "main" or "next" to ensure reproducible
benchmarks—locate the source.ref fields in those repo objects and replace with
the chosen immutable identifiers (or adopt release tags) for each repository.
In `@src/infrastructure/benchmark/suite.ts`:
- Around line 444-454: The current cloneBenchmarkSuiteRepo uses git clone
--branch with source.ref which fails for raw commit SHAs; change the flow to
always clone without passing --branch (keep --depth 1 and --single-branch), then
if source.ref is provided run a separate fetch+detached-checkout against the
repo in targetRoot: use git -C <targetRoot> fetch --depth 1 origin <source.ref>
(or refspec) and then git -C <targetRoot> checkout --detach FETCH_HEAD (or
checkout --detach <fetched-ref>) so commit SHAs are pinned deterministically;
implement these calls using execFileSync in the same function
(cloneBenchmarkSuiteRepo) and handle errors similarly to the existing
execFileSync usage.
---
Outside diff comments:
In `@src/infrastructure/benchmark/suite.ts`:
- Around line 762-763: The summary text mislabels skipped cells as "skipped for
install" even when skips are due to non-install preparation failures
(clone/materialize); update the template strings that reference
summary.cells_skipped_for_install to use a generic, accurate label such as
"cells skipped during preparation (install/clone/materialize):
${summary.cells_skipped_for_install}" and similarly adjust the other occurrence
that prints summary.cells_skipped_for_env_drift so both summaries reflect
preparation/installation vs env-drift distinctions; search for uses of
summary.cells_skipped_for_install and summary.cells_skipped_for_env_drift and
replace the misleading wording in those template literals.
---
Nitpick comments:
In `@tests/unit/benchmark-suite-isolation-docs.test.ts`:
- Around line 16-23: The test's parsed environment object currently types
project_claude_md_hash as null which no longer matches the pinned JSON (it now
contains a SHA string); update the inline type for the const environment in
tests/unit/benchmark-suite-isolation-docs.test.ts so that project_claude_md_hash
is typed as string (or string | null if it can be absent), ensuring the
declaration around the environment const and its shape (isolation_required,
mcp_servers_active, skills_loaded, plugins_active, user_claude_md_hash,
project_claude_md_hash, parent_claude_md_hashes) reflects the actual JSON
contract.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 533823c0-0370-41dc-9113-2f23e45896e4
📒 Files selected for processing (13)
docs/benchmarks/2026-04-30-govalidate/index.htmldocs/benchmarks/2026-05-02-govalidate-pr-review/index.htmldocs/benchmarks/index.htmldocs/benchmarks/suite/README.mddocs/benchmarks/suite/isolation/environment.jsondocs/benchmarks/suite/methodology.mddocs/benchmarks/suite/repos.jsondocs/benchmarks/suite/tasks.jsonsrc/infrastructure/benchmark/suite.tstests/unit/benchmark-docs.test.tstests/unit/benchmark-suite-docs.test.tstests/unit/benchmark-suite-isolation-docs.test.tstests/unit/benchmark-suite.test.ts
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Also updated the suite summary wording to report skipped cells as "skipped during preparation" because those skips now cover broader repo-preparation failures, not just install failures. |
Summary
Test Plan
Summary by CodeRabbit