Repository navigation
[CI] Refresh unit timing weights and reduce repeated test setup - #27315
Conversation
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: 🔵 Low · up to This change only touches CI timing data, unit-test selection, and test suites. Users and production behavior are unaffected. One test setup could silently drop other worktrees' state if more fixtures are added later. It can be fixed in a follow-up. Pre-merge checks |
|
There was a problem hiding this comment.
🧹 Nitpick comments (1)
tests/e2e/structured-attention-prompt-relay.unit.test.ts (1)
319-328: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueKeep the other worktrees when the test sets
unifiedTabsByWorktree.In the 'different target' case, the updater returns
unifiedTabsByWorktreewith only theWORKSPACEkey. The 'tab/store rerender' case at Line 195 spreadsstate.unifiedTabsByWorktreefirst. This case does not. Zustand merges only the top-level keys. The update therefore drops tabs that other worktrees hold. The current fixture seeds onlyWORKSPACE, so the test passes now. If the fixture later seeds more worktrees, this case changes their state without notice. Spread the existing map here as well.♻️ Proposed fix
unifiedTabsByWorktree: { + ...state.unifiedTabsByWorktree, [WORKSPACE]: state.unifiedTabsByWorktree[WORKSPACE].map((tab) => ({
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
da9b08ba-1828-45a5-8b5e-a9e8863c65e0
📒 Files selected for processing (12)
config/scripts/ci-shard-timings.jsonconfig/scripts/ci-unit-dependency-graph.mjsconfig/scripts/ci-unit-dependency-graph.test.mjssrc/main/runtime/rpc/orchestration-party-addressing.test.tssrc/relay/git-handler-push-target.test.tssrc/renderer/src/components/native-chat/native-chat-runtime-send-launch-draft.test.tssrc/shared/orcad-artifacts.test.tstests/e2e/structured-attention-explicit-read.unit.test.tstests/e2e/structured-attention-prompt-relay.unit.test.tstests/e2e/structured-attention-read-owner-lifecycle.unit.test.tstests/e2e/structured-attention-read-retirement.unit.test.tstests/e2e/structured-attention-relay-settlement.unit.test.ts
💤 Files with no reviewable changes (7)
- tests/e2e/structured-attention-read-owner-lifecycle.unit.test.ts
- tests/e2e/structured-attention-relay-settlement.unit.test.ts
- src/main/runtime/rpc/orchestration-party-addressing.test.ts
- tests/e2e/structured-attention-explicit-read.unit.test.ts
- src/shared/orcad-artifacts.test.ts
- src/renderer/src/components/native-chat/native-chat-runtime-send-launch-draft.test.ts
- src/relay/git-handler-push-target.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
|
Reviewed the fixture-map nitpick: this update is unchanged from the original suite, and each current case seeds only |
ELI5
CI has been balancing tests with stale timings and repeatedly loading the same attention-test setup. Refresh the measurements and combine five related suites into two while retaining all 41 cases.
What Changed
Fresh discovery at local branch epoch e7d7c5b is 12,197 files (+1/-3). Both assignments use the same historical durations/fallback across five shards. Total modeled work remains 10,397.615s. Summed overlapping module time is not job wall time; no hosted saving or fleet 2× claim.
Attention measurements come from the historical 44e1983 epoch and precede fresh-main store changes. Fresh original/candidate correctness retained 41 cases and 37 identical diagnostics. Historical warm arms followed an initial correctness pause; memory is child maxima, not simultaneous family peak.
Why
Update existing balancing data and isolated Vitest suites to reduce repeated setup while retaining meaningful behavior checks.
Linked Issue
N/A — maintainer CI improvement task.
Visual Proof
N/A — testing and CI configuration only; no UI or production behavior changes.
Testing
macOS, stock Bun 1.4.2/Node 24.21: full ordinary/plugin lint for eight live files, changed-quality, Node types, 112 retained cases and 53 CI boundary cases passed. Focused original/candidate E2E programs retain the same two existing type errors; Node typechecking excludes these suites. HappyDOM evidence is per-file configuration and exercised DOM; the reporter exposes the Node project default.
Local qualification cost 35.273s, including 3.094s dependency assessment. Initial incorrect file-count and compiler assumptions are recorded; passed checks were not repeated. Historical attention qualification separately cost 34.109s, excluding an unmeasured pause. Normal commit hooks took 1.464s. No diagnostic CI was dispatched.
AI Disclosure
Review
Independent local source/evidence review passed. All 31 ordinary hosted checks completed: 15 passed and 16 correctly skipped. CodeRabbit reviewed exact head65; its fixture-map suggestion is unchanged original behavior with only one seeded workspace, so a hypothetical fixture extension is deferred. Generated docstrings are unnecessary under the concise-comment policy; no actionable review threads remain.
Hosted run tested synthetic merge 8c724849, including newer main ddcbb78 (69 upstream files, no overlap with this PR’s 12). The local inventory/projection remains from e7d7c5b; source review found no invalidated contract, but there was no new local performance pair on the newer main.
No material >10% regression was observed, and no hosted speedup is established. Five unit allocations remain. Timing weights changed the assignment and the source epochs differ; the 7.16% offline projection is not an observed CI saving. Setup total was 150s versus 160s, with 16s versus 20s after test completion.
The complete single-head pre-merge lifecycle cost was 3,919 assigned runner-seconds across 15 allocations, including Mobile 302s, Git compatibility 154s, Node18 managed hooks 37s and relay 68s. Existing conservative path selectors chose Git and Node18 for the changed relay unit file. No package jobs ran. This is not a matched whole-workflow saving against PR27308’s globally forced final head (5,041s/22 allocations). All finished jobs, including control/evidence jobs, are counted; queue/provisioning and post-merge runs are excluded. No failures, reruns, dispatches or cancellations occurred.
Agent skill upstream boundary
Notes
Production code, dependencies and native runtime contracts remain unchanged. Linux, Windows, SSH and Mobile behavior were not exercised locally; existing CI coverage remains intact.
Checklist
N/Awith reason