Skip to content

[CI] ci: avoid package and browser jobs for a shared unit fixture - #26575

Merged
nwparker merged 1 commit into
mainfrom
nwparker/ci-unit-fixture-job-scope
Oct 8, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/ci-unit-fixture-job-scope

Conversation

@nwparker

@nwparker nwparker commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

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 .test suffix. 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

Fixture-only input Before: actual #26567 detector/jobs After: CI-tested routing in #26575
Linux/Windows packaging selected Both Neither
Restart-survival browser spec selected One Zero
Package/Electron allocations selected Five Zero
Unit, lint and type checks Retained Retained
Unknown helper / mixed production edit Select checks Still select checks

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 require and 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 merge 0e51ac8b87356ceef3ca2ac056e28c7964ad5456 has exactly its tree, with named base e3639ef8d69209b8278b41c0e722811960ea7ec0.

  • All 11,868 original files retained, one routing test added; all 11,869 files appear exactly once across ten successful reports.
  • 114,204 passed cases, three expected failures and 1,069 skips; zero unhandled errors.
  • Actual reported routes: 10,710 Bun, 1,158 protected Node-runtime, one measurement; all 507 protected patterns preserved.
  • Routing 4 passed; code quality 32 passed. Current module-duration exposure: 77 ms and 3,344 ms respectively. The preceding 26-case code-quality module was 2,673 ms; its 671 ms unpaired difference includes collection/body/overlap and does not isolate incremental lint-case cost.
  • Static analysis/typecheck, both packages, mobile/browser bundle, Git compatibility, shell, managed hooks, Codex, xterm, wire and relay checks passed. Node platform lanes correctly skipped for this change.
  • Static lint, formatting and normal commit hooks passed. No local tests or application execution. The formatter's initial pnpm exec automatically 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

Metric #26567: import/fixture change #26575: classifier-policy change
Occupied runner-seconds, all attached workflows 4,916 5,805
Allocated jobs 24 28
Unit runner-seconds 3,290 3,341
Unit test steps 2,934 2,932
Unit setup/post time 356 409

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

  • Not applicable; no upstream skill-installer material.

Checklist

  • Small and focused; behavior, mechanism and alternatives explained.
  • No UI impact; cross-platform, SSH and folder behavior preserved.
  • Automated behavior tests and required CI pass; before/after evidence and its limits recorded.

@coderabbitai

coderabbitai Bot commented Oct 8, 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: 8b919339-bcfd-4507-8f7d-f5420b026168
📥 Commits

Reviewing files that changed from the base of the PR and between e3639ef and e551fec.

📒 Files selected for processing (5)
  • .oxlintrc.json
  • config/scripts/check-changed-code-quality.test.mjs
  • config/scripts/pr-code-change-scope.mjs
  • config/scripts/pr-e2e-source-routing.mjs
  • config/scripts/pr-unit-support-routing.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

The 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 e551f

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)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning 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… 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 and concisely describes the main change: avoiding package and browser jobs for the shared unit fixture.
Description check ✅ Passed The description is detailed and covers the change, rationale, linked issue context, testing, review, limitations, and checklist. The omitted AI Disclosure and Notes sections are non-critical in this c…
Full details: Docstring Coverage

Explanation

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.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
  • Autopilot · 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 89ba968 into main Oct 8, 2026
37 checks passed
@nwparker nwparker changed the title ci: avoid package and browser jobs for a shared unit fixture [CI] ci: avoid package and browser jobs for a shared unit fixture Oct 9, 2026
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