You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[CI] Reduce test teardown waits and duplicate CI setup - #27253
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.
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 | 4 | 1
❌ Failed checks (1 warning)
Check name
Status
Explanation
Resolution
Docstring Coverage
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Title check
The title clearly identifies the two primary changes: reducing test teardown waits and avoiding duplicate CI setup.
Description check
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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
Notes
No new library/production patches, native skips, timeout increases or retry changes.
Checklist