Skip to content

test(e2e): expand child agent lists in spinner benchmark fixture - #37184

Merged
nwparker merged 2 commits into
mainfrom
nwparker/spinner-bench-subagent-rows
Nov 2, 2026
Merged

nwparker merged 2 commits into
mainfrom
nwparker/spinner-bench-subagent-rows

Conversation

@nwparker

@nwparker nwparker commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​32 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​30
Prod 0 0 0 0

ELI5

The spinner benchmark checks that working sub-agent rows are on screen before it measures anything. Sub-agent lists now start collapsed in the sidebar, so those rows never showed up and the benchmark failed right away. The fixture now opens the lists before it measures.

What Changed

seedSpinnerWorkspaces (tests/e2e/spinner-workspace-fixture.ts) clicks every collapsed child-agent disclosure ([data-agent-child-disclosure-button][aria-expanded="false"]) in the mounted sidebar. It repeats because expanding cards can mount more virtualized cards. It reports expandedChildAgentLists in the seeded summary. Product code is unchanged.

Why

#36936 (506bcaa) made child agent lists start collapsed. The expansion state lives in a renderer-module cache and isn't in the store, so the fixture has to use the real disclosure control. The census assertion is unchanged. This unblocks measuring with tests/e2e/spinner-workspace-perf.spec.ts.

Linked Issue

N/A (internal benchmark fixture drift)

Visual Proof

N/A: this only changes a test fixture. There is no product UI or behavior change.

Testing

ORCA_SPINNER_BENCH=1 ORCA_SPINNER_CPU=0 ... -g "one-family|200-flat|200-lineage" on macOS. All three failed before this change and pass now. workingSubagentRows before → after:

  • one-family: 0 → 4

  • 200-flat: 0 → 48 (mounted rings 71 → 90)

  • 200-lineage: 0 → 800 (mounted rings 1003 → 1403)

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below (fixture-only change to an opt-in benchmark)

Risk

Level: Low. Only the opt-in spinner benchmark is affected. To back it out, revert this PR.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I stated the risk
  • N/A with reason for visuals
  • Self-reviewed
  • Cross-platform/SSH impact considered (N/A)
  • oxlint, oxfmt, pnpm tc, pnpm check:code-quality:changed origin/main pass

@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bb9f85ca-7aa3-4631-9656-dbed9c5f32e1
Commits

Reviewing files that changed from the base of the PR and between 96cacc9 and 2726367.

Files selected for processing: 1
  • tests/e2e/spinner-workspace-fixture.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

Walkthrough

seedSpinnerWorkspaces now awaits renderer-scale fixture configuration. When subagentsPerAgent is truthy, it expands mounted child-agent lists and returns the number of disclosure buttons clicked. Otherwise, it returns an expansion count of zero. The helper polls every 250 ms until a poll clicks no buttons.

Merge Risk: Minimal · up to 27263

No actionable merge-blocking risk was established for the fixture change.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title "test(e2e): expand child agent lists in spinner benchmark fixture" names the main change: the spinner benchmark fixture now expands collapsed child-agent lists before measuring. It is specif…
Description check Passed The description follows the repository template closely. It includes ELI5, What Changed, Why, Linked Issue (marked N/A with a reason), Visual Proof (N/A with a reason), Testing with specific commands,…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "test(e2e): expand child agent lists in spinner benchmark fixture" names the main change: the spinner benchmark fixture now expands collapsed child-agent lists before measuring. It is specific, follows conventional commit style, and matches the raw summary and objectives. The title does not mention the polling/repeat loop or the new expandedChildAgentLists summary field, which is acceptable because the title need not cover every detail.

Full details: Description check

Explanation

The description follows the repository template closely. It includes ELI5, What Changed, Why, Linked Issue (marked N/A with a reason), Visual Proof (N/A with a reason), Testing with specific commands, platform, and before/after numbers, Risk with level Low and a revert path, the Agent skill upstream boundary checkbox, and a checklist. Gaps: the Linked Issue section is N/A rather than a linked issue, which the template says there should always be for outside contributors (the author appears to be an internal maintainer, so this is likely acceptable). The Review and Notes sections are omitted, and the AI Disclosure section is absent, which the template marks as optional for internal contributors. The Testing section does not list the platforms beyond macOS, which is acceptable. Overall the description is mostly complete.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 1 files.

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 75d18d7a-9461-403d-900d-dbcaafa76dae
Commits

Reviewing files that changed from the base of the PR and between 70dae97 and ca572ee.

Files selected for processing: 1
  • tests/e2e/spinner-workspace-fixture.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.

Comment thread tests/e2e/spinner-workspace-fixture.ts Resolved
Sub-agent lists start collapsed since #36936, so the spinner benchmark's
working subagent rows never mounted and the census assertion failed.
@nwparker
nwparker force-pushed the nwparker/spinner-bench-subagent-rows branch from ca572ee to 96cacc9 Compare November 1, 2026 23:30
@nwparker
nwparker merged commit b6467f0 into main Nov 2, 2026
42 checks passed
@nwparker
nwparker deleted the nwparker/spinner-bench-subagent-rows branch November 2, 2026 00:05
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.

1 participant