Skip to content

test(planning): split ui.test.sh into three browser-suite parts - #10928

Merged
melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-10654-40844938550-1
Oct 29, 2026
Merged

melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-10654-40844938550-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #10654

Summary

Opened by the work-resolve-issue lane. The run's own summary:

plugins/planning/shared/tests/ui.test.sh, measured at 404 s against the 540 s test-bash cap, is replaced by ui-a/ui-b/ui-c.test.sh. Each wrapper execs a shared ui-run.sh with its part, and ui-parts.txt puts every ui_*.js in exactly one part. ui-run.sh keeps the old runner's behavior per part (UI_JOBS, slowest-first order by ui-timings.txt, SERIAL ui_snappy/ui_telemetry last, CI=true browser-skip failure). It fails with exit 2 before running when a suite is in no part or in two, a row names no suite, or a part has no wrapper, and --check runs only that check. The planner tags every ui-<letter>.test.sh browser. Part c, which holds the timing suites, is on run-plugin-tests-serial.txt, so it runs alone on its leg and cannot share a whole-tree leg with part a. The suite-seconds estimates are a 187 s, b 139 s and c 154 s, each at most 245 s.

Not verified

  • The shell suites were not run here (ui-require-browser.test.sh, plan-test-lanes.test.sh, run-plugin-tests.test.sh, the ui-a/b/c browser parts). The lane can run only its wrappers, so these are left to the PR's CI.
  • The suite-seconds rows for ui-a (187), ui-b (139) and ui-c (154) are estimates from ui-timings.txt, with unlisted suites at 53 s each so the whole set matches the 404 s measured before the split. The issue says the measured step time is checked on the next whole-tree run and recorded on the issue.
  • Two files still name plugins/planning/shared/tests/ui.test.sh: plugins/source-control/skills/babysit-prs/scripts/tests/fixtures/postmerge/job-log-bash-ui-fail.txt, a captured log of CI job 119563204870, and the assertion at test_babysit_postmerge_quarantine.py:858 that reads it. I left them unchange
  • Parts a and b can still land on one whole-tree leg and run 12 browser jobs at once. The re-triage comment accepted that memory risk and made it a follow-up if a whole-tree run shows it.
  • The re-triage comment that settled the refinement's open questions is not a 'Decision recorded.' comment. The build follows the issue body's own outcome (split ui.test.sh so no suite is over about half a leg's budget) and reads that comment as context.
  • Tidy was skipped: 15 changed files and 3 areas (plugins/planning, scripts, README.md) are over the 10-file and 1-area cutoffs, and the change touches the shared path scripts/.
  • new-changelog-fragment refused on the detached HEAD, so the fragment was written by hand using the existing work-resolve-issue naming; check-changelog-fragments accepts it.
  • Untracked dotfiles at the repository root (.bashrc, .bash_profile, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) appeared in git status. This run did not create them (they look like sandbox mount points), and they are not part of the change.

Fix

  • plugins/planning/shared/tests/ui.test.sh: deleted
  • plugins/planning/shared/tests/ui-run.sh: new; the old runner limited to one part (or --check), plus the check that each ui_*.js is in exactly one part and each part has a ui-<part>.test.sh
  • plugins/planning/shared/tests/ui-parts.txt: new; one '<suite> <part>' row for each of the 52 ui_*.js suites (a 19, b 16, c 17), with ui_snappy and ui_telemetry in c
  • plugins/planning/shared/tests/ui-a.test.sh, ui-b.test.sh, ui-c.test.sh: new wrappers that exec ui-run.sh with their part and carry the old suite's test-scope lines
  • plugins/planning/shared/tests/ui-require-browser.test.sh: now runs copies of ui-run.sh and ui-a.test.sh; adds a live --check case and four part-check cases (suite in no part, in two rows, part with no wrapper, row naming no suite); test-scope covers ui-parts.txt and ui-*.test.sh
  • scripts/plan-test-lanes.sh: the browser tag matches ui-[a-z].test.sh in place of ui.test.sh
  • scripts/plan-test-lanes.test.sh: checks that each of parts a, b and c gets browser and that ui-require-browser.test.sh does not
  • scripts/run-plugin-tests.test.sh: the advisory-list fixture suite path is renamed to ui-a.test.sh
  • scripts/run-plugin-tests-serial.txt: adds ui-c.test.sh, with its reason (timing windows)
  • scripts/suite-seconds.txt: the ui.test.sh 404 row is replaced by estimated rows ui-a 187, ui-b 139 and ui-c 154, and the header says how they were estimated
  • scripts/suite-budget-exceptions.txt: the ui.test.sh row is replaced by ui-a and ui-c rows, the parts whose medians are over 150 s
  • scripts/test-windows-inert-paths.txt: the ui.test.sh row is replaced by ui-parts.txt, ui-run.sh and ui-[a-z].test.sh
  • README.md: the per-suite budget counts are updated (twelve shell suites over 120 s, ten over 150 s)
  • .changes/planning/work-resolve-issue-issue-10654-5e1a9c42.md: new patch fragment

Verification

The runner ran each check from the base copy against fc71bc6:

  • scripts/check-changelog-fragments.sh --check: passed

The run reports:

  • .lane/checks/bin/check-changelog-fragments: all 27 fragments valid (run before and after the review fixes)
  • .lane/checks/bin/check-affected: 12 passed, 6 skipped (ruff: no .py; typos not installed; 3 validate-plugins parts that run tree code; changed-skills: none) over 15 changed files (run before and after the review fixes)
  • cant-fail-scan --file plugins/planning/shared/tests/ui-require-browser.test.sh --check: PASS, no gating findings
  • cant-fail-scan --file scripts/plan-test-lanes.test.sh --check: PASS, no gating findings
  • Grep of ui-parts.txt against a Glob of plugins/planning/shared/tests/ui_*.js: 52 rows for 52 suites, each once
  • fresh-context review subagent over the whole diff: 3 risks and 4 nits. Fixed: part c could share a whole-tree leg with part a, so ui-c is now serial-listed; the ui-c estimate was low, so I re-simulated and moved two unlisted suites to part a; deleting a wrapper selected no suite, so test-scope was w
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40844938550

Left out: the items under Not verified.

Related

#10654

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 089c435d6269d78a7766b642a0a0bb0e315693a2: 0 finding(s), 0 as inline comments.

No security issues found in the incremental change since dae5a98.

The change has no security-relevant surface:

  • A bump: none changelog fragment.
  • Extra # test-scope: comment lines in the ui-a, ui-b and ui-c wrappers, plus a wider test-scope line in ui-require-browser.test.sh. These only change which suites the planner selects.
  • A renamed suite path in the postmerge log fixture and in the assertion in test_babysit_postmerge_quarantine.py.

None of the changed files match a trusted-path glob. The babysit-prs/scripts/tests/ files are not the babysit_*.py modules, and the quarantine test only reads a fixture log. No merge hold, token scope, trust check or kill switch changed. No plugin manifest changed. The PR context holds no embedded instructions.

critical-findings: 0

@github-actions github-actions 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.

claude-review: 1 inline finding(s) on fc71bc6009f03d82f75bda5ab6aee89c3bdb139b; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 089c435d6269d78a7766b642a0a0bb0e315693a2: 0 finding(s), 0 as inline comments.

No findings in the incremental change since dae5a98.

  • Quarantine test and fixture: the test and job-log-bash-ui-fail.txt now both name ui-a.test.sh. That matches the FAIL: (\S+\.test\.sh) pattern in babysit_postmerge.py:910, so the expected frozenset is consistent with the fixture. I read the code and diff only; I did not run the tests.
  • Stale references: the only remaining ui.test.sh mentions are historical CHANGELOG.md and .changes entries, which should keep the old name.
  • test-scope headers: ui-a/b/c.test.sh and ui-require-browser.test.sh now list ui-run.sh, ui-parts.txt and ui-timings.txt (the latter only on the three part wrappers). All three files exist in plugins/planning/shared/tests/. A change to the shared runner or part list now triggers the part suites.
  • Change fragment: bump: none fits a test-only change under .changes/source-control/.
  • Cost: nothing here spends money or credits.

The trusted-path list covers babysit_postmerge.py, but this increment doesn't change it, only a test and a fixture for it.

Comment thread scripts/run-plugin-tests-serial.txt Resolved
Comment thread scripts/suite-seconds.txt Resolved
Comment thread scripts/test-windows-inert-paths.txt Resolved
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on fc71bc6.

@melodic-automation-lanes

melodic-automation-lanes Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 089c435d6269d78a7766b642a0a0bb0e315693a2. The lanes clear this reason on their own; the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:earlier-fail)

melodic-automation-lanes Bot and others added 2 commits October 29, 2026 16:40
Lane-Activity: pr-unblock/resolve-conflicts
… runner

The postmerge quarantine test and its captured job log still named the
deleted plugins/planning/shared/tests/ui.test.sh; they now name
ui-a.test.sh, so the parser test keeps its meaning and no file outside
changelog history names the old suite.

ui-require-browser.test.sh copies and runs ui-run.sh, so its test-scope
now lists it; the three part wrappers list ui-run.sh, ui-parts.txt and
ui-timings.txt, the runner and data each part depends on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton self-requested a review as a code owner October 29, 2026 17:31
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 089c435d6269d78a7766b642a0a0bb0e315693a2.

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.

test-bash: split ui.test.sh, the 404 s floor of its leg

1 participant