Skip to content

[CI] Reduce test teardown waits and duplicate CI setup - #27253

Merged
nwparker merged 2 commits into
mainfrom
nwparker/ci-test-imports-fixtures-browser-relay-20261010
Oct 10, 2026
Merged

nwparker merged 2 commits into
mainfrom
nwparker/ci-test-imports-fixtures-browser-relay-20261010

Conversation

@nwparker

@nwparker nwparker commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 24 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​128 $\color{#cf222e}{\Huge{\mathbf{−}}}$​215 $\color{#cf222e}{\Huge{\mathbf{−}}}$​87
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​34 $\color{#cf222e}{\Huge{\mathbf{−}}}$​46 $\color{#cf222e}{\Huge{\mathbf{−}}}$​12

ELI5

Reduce test teardown waits and share browser/relay setup on one runner.

What Changed

Reuse public state setters instead of repeatedly resetting imports in three suites. Release owned fixtures; scripted agents answer cancellation during final public close. Intentional unanswered, grace and older-client controls remain.

Browser and relay commands share checkout/dependencies in one x64 job. Either failure fails the combined test status; cancellation/dependency guards remain and other callers default browser checks off. Update the readiness companion to map logical browser ownership to that combined physical check, preserving its full dependency assertion.

Remove 21 static/inventory/duplicate cases from eight files. This loses static EDR, launch/source/configuration, architecture, English/default-translation, effort-catalog and own-property alarms. Retained behavioral tests do not replace them. Production, dependencies, native contracts, isolation and timeout budgets are unchanged.

Why

Use existing public cleanup/state APIs and share an existing runner instead of patching libraries, changing production, or increasing workers.

Linked Issue

Maintainer-directed CI capacity work; no new issue.

Visual Proof

N/A — tests and CI only.

Testing

  • macOS: 89 runtime tests, 258 CI admission checks, ACP background tasks (22), ACP Stop/Steer (17), and remaining tests after removals (97), in separate runs. Node/Bun routes preserved.
  • Readiness correction: 195 checks across three whole modules, formatter, native lint and seven quality families; 3.007942 s.
  • Corrected head: 22 successful checks and 9 conditional skips; all five unit shards passed with zero unhandled errors. Real Chrome (1), relay (16) and Windows native contracts passed.
Local whole suite Before After Reduction
ACP background tasks (22), ABBA mean 37.090532 s 4.375366 s 88.20%
Settings persistence (12), ABBA median 3.376404 s 2.381934 s 29.45%
Profile transfers (21), ABBA median 2.721145 s 2.444291 s 10.17%
ACP Stop/Steer (17), ABBA mean 10.316640 s 2.500107 s 75.77%

These separate measurements do not establish combined, hosted or fleet gains. The measured background-task revision received a brace-only lint repair and current-base verification. Stop/Steer rounded CPU means 4.40 → 3.95 s; public paired RSS means 497,876,992 → 512,172,032 bytes (+2.87%, two observations per revision), not aggregate/hosted memory evidence.

First head failed our missed readiness companion's obsolete standalone-browser expectation. All other checks passed, including real Chrome (1), relay (16) and Windows packaging. Browser/relay shared job: 80 assigned seconds, without a paired savings claim. All first-head workflows cost 5,318 assigned seconds, including failed shard (608) and aggregate (4). Corrected-head workflows cost 5,349 assigned seconds: 22 assigned jobs and 9 runnerless skips. Both heads total 10,667 assigned seconds. Natural postmerge Mobile (202 s), headless selection (27 s) and closed-PR cleanup (4 s) add 233 seconds: all observed assigned cost is 10,900 seconds. Current browser/relay job used 78 assigned seconds; these unmatched heads do not establish hosted savings.

Known local project attempts cost 236.562151 s, including failed/unqualified lint attempts; normal commit hooks cost 2.526981 s separately. First cloud install exit/wall is unknown; interrupted controller exit 130/sample 6:02 and 6.369746 s recovery remain separate. Other administration/guard overhead is unmeasured. Negative-control/persistence/TLS stderr and cache records remain; process checks cover recorded children only. YAML checks do not execute GitHub expressions; mocked ACL/SSH checks do not qualify Windows kernels.

AI Disclosure

Review

Independent source, local-result and exact corrected-head hosted reviews are clear. Both posted CodeRabbit reviews found no actionable code issues. The current generic docstring nudge is explicitly declined under the concise non-obvious WHY-comment policy; new callbacks are not public APIs and no substantive documentation gap was identified.

Agent skill upstream boundary

  • No upstream skill source copied.

Notes

No new library/production patches, native skips, timeout increases or retry changes.

Checklist

  • Mechanism, alternatives, measurements, lost coverage and platform limits documented.
  • Normal commit hooks passed.
  • All current-head hosted checks/reviews clear.

@coderabbitai

coderabbitai Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fc7fb3ae-d189-4214-8eea-6162c1cb164a



📥 Commits

Reviewing files that changed from the base of the PR and between e4ab779 and d147119.




📒 Files selected for processing (1)
  • config/scripts/pr-ready-check-reuse.test.mjs



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
📝 Walkthrough
📝 Walkthrough

Walkthrough

The PR routes the OrCAD browser contract through the reusable unit-test workflow, which resolves Chrome and runs the browser-provider test when enabled. Workflow tests now check the updated admission conditions and dependencies. Other test changes add cancellation replies and cleanup, remove selected assertions, and stop resetting the module cache in several helpers.





Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to d1471

The readiness check reflects the consolidated test job. The reviewed change shows no concrete mergeability risk.

Pre-merge checks | Passed 4 | Failed 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 10.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 10 functions across 15 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
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.
Title check Passed The title clearly identifies the two primary changes: reducing test teardown waits and avoiding duplicate CI setup.
Description check Passed The description covers the required sections and provides detailed scope, rationale, testing evidence, limitations, review notes, and checklist status. The lack of a linked issue is explained as maint…

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 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

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker merged commit 83db5b5 into main Oct 10, 2026
31 checks passed
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