Repository navigation
[CI] ci: avoid package and browser jobs for a shared unit fixture - #26575
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (5)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe changes classify the web-session test harness as unit-test support for PR test and E2E routing. They add tests for routing behavior when the harness appears alone or alongside other changed files. The lint configuration restricts production-style source from importing specified test-support modules, with tests for production and test-file fixtures. Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to Fixture-only edits avoid the intended desktop and browser jobs, while other changed files still select their checks. No merge-blocking issue is established; complete the pending CI checks before merging. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 20.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 4 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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. Comment |
ELI5
Changes to the shared web-session unit-test fixture currently start desktop packaging and a two-app browser test. Keep the normal unit, lint and type checks, and avoid those unrelated jobs for that exact fixture.
What Changed
One exact-path classification now serves the existing package and browser-test routers. Unknown helpers, production edits and explicitly changed browser specs retain their checks. Existing Oxlint rejects direct production imports of this fixture or its test rig; real configured-linter tests cover imports, re-exports and literal dynamic imports. Test/spec consumers remain allowed.
No workflow jobs, cache warmers, runtime switches or unit-selection mode changes. All original unit files remain enrolled. Two existing routing suites were already at their line limits, so four new behavior cases use a focused 45-line suite without disabling or increasing limits.
Why
PR #26567 really allocated five package/Electron jobs because its shared fixture lacks a
.testsuffix. Their measured runner occupancy was 781 seconds: Linux package 265; Windows package 291; Electron preparation 52; app build 63; browser tests 110. Ubuntu latest accounted for 490 seconds and Windows for 291. Their 284 seconds of queue delay are separate.Before / after evidence
The four new routing cases passed against the actual classifier and browser selector. The six new real-Oxlint cases also passed (32 cases in that suite). The historical 781 seconds is the capacity opportunity for that observed job mix, not a measured post-change fixture-only run or a fleet-average saving. No fake fixture edit was submitted to manufacture an avoided-allocation result; future real fixture-only PRs can confirm the allocations.
An exact known fixture avoids a broad filename exemption. The import rule checks literal specifiers; computed imports, ordinary
requireand transitive imports through allowed test modules remain outside its scope.Linked Issue
Related to #26567 and the CI concurrency work.
Visual Proof
N/A — CI routing and test-support import policy only.
Testing
All four attached workflows passed on the shipping head
e551fec710664c5d4a822ba6c005ef0cb75f9c9d. Tested merge0e51ac8b87356ceef3ca2ac056e28c7964ad5456has exactly its tree, with named basee3639ef8d69209b8278b41c0e722811960ea7ec0.pnpm execautomatically refreshed ignored dependencies/native builds; subsequent tools used direct binaries, with no tracked dependency changes.Ordinary reports retain module counts, statuses and routes, not every case title or sampled worker binary. Four-worker arguments and unchanged isolation/cache/six setups are source/command-bound.
Complete rollout validation cost
These are unpaired validations with different source, hosts and selected checks. Editing the classifier deliberately forces the existing full policy checks once; this rollout does not claim a faster full run. Current main checks occupied 5,430 seconds; Mobile 346; Node detector 23; LoC 6. Pools: ARM 4,441; Ubuntu latest 735; Windows 404; slim 225. Seven additionally selected policy-validation jobs occupied 835 seconds; the prior three browser E2E allocations (225 seconds) were absent. Common jobs differed by 279 seconds across these unpaired runs. One attempt per workflow, no extra diagnostic or warmer. Longest unit test step 315 seconds; maximum unit creation-to-start delay 98 seconds, separate from occupancy. No whole-CI 2× claim.
Review
Independent source and official-data reviews checked exact consumers, mixed/unknown inputs, sparse checkout dependencies, import-policy preservation, original-file enrollment, actual reports and all-attempt costs. CodeRabbit reviewed the exact head with no actionable comments; no open inline threads in the saved review snapshot. The generic docstring-coverage advisory is declined: the exact-path predicate already has a concise purpose comment.
Agent skill upstream boundary
Checklist