Repository navigation
refactor: share explicit heartbeat configuration fixtures - #146853
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 6:04 AM ET / 10:04 UTC (Revision 2). ClawSweeper reviewWhat this changesShares repeated heartbeat test configurations through a typed fixture and an existing local helper without changing runtime behavior. Merge readiness✅ Ready for maintainer review This maintainer-sponsored cleanup remains useful and is absent from inspected main. The fixture substitutions preserve configuration values, isolation, and assertions; no actionable defect was found. Priority: P3 Review scores
Verification
How this fits togetherHeartbeat checks turn scheduled work and queued events into agent runs and optional channel replies. These test fixtures supply isolated configuration and session locations to verify that behavior. flowchart LR
A[Test-specific settings] --> B[Fresh configuration fixtures]
B --> C[Heartbeat runner]
D[Seeded sessions and queued events] --> C
C --> E[Injected reply and channel handlers]
E --> F[Unchanged behavior assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -150. Total -150 across 6 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the narrow shared fixture for identical configurations while preserving explicit variants and independent behavioral assertions. Do we have a high-confidence way to reproduce the issue? Not applicable: this removes repeated test setup rather than repairing a reported runtime defect; source comparison confirms equivalent fixture values and retained assertions. Is this the best way to solve the issue? Yes: reusing existing test support removes duplication without introducing production seams, shared mutable fixtures, or broader configuration defaults. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b938f093b1e4. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
* refs/heads/temp/pr-146883: (159 commits) fix: retain route ownership while discovering conversations (#146927) refactor: reuse plugin fixture shell runner (#146920) fix(worker): stop preparing disabled live previews (#146896) fix(runtime): support Bun across tooling suite (#146807) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) improve(infra): reduce scheduling work for session notice bursts (#146818) improve: prepare Gateway skill commands asynchronously (#146812) improve(agents): skip unused assistant delivery parsing (#146858) improve(ui): reuse date formatters across timestamp lists (#146789) fix(tests): isolate installer and Docker shell snippets (#146897) test(heartbeat): share explicit channel configuration fixtures (#146853) fix: retain conversation reply claims through write admission (#146866) perf(sessions): bound history reads and stabilize cursor paging (#146770) fix(ui): let slow dashboard downloads finish before recovery (#146881) ...
* refs/heads/temp/pr-146833: (43 commits) fix(memory): preserve newer indexes and disclose automatic rebuild costs (#146908) fix: retain route ownership while discovering conversations (#146927) refactor: reuse plugin fixture shell runner (#146920) fix(worker): stop preparing disabled live previews (#146896) fix(runtime): support Bun across tooling suite (#146807) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) improve(infra): reduce scheduling work for session notice bursts (#146818) improve: prepare Gateway skill commands asynchronously (#146812) improve(agents): skip unused assistant delivery parsing (#146858) improve(ui): reuse date formatters across timestamp lists (#146789) fix(tests): isolate installer and Docker shell snippets (#146897) test(heartbeat): share explicit channel configuration fixtures (#146853) fix: retain conversation reply claims through write admission (#146866) perf(sessions): bound history reads and stabilize cursor paging (#146770) ...
…ssion-list-roster-batch-20260913 * commit 'f513c0f345f7f2514c49ccfbc00adc3f78b9a755': (46 commits) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) improve(infra): reduce scheduling work for session notice bursts (#146818) improve: prepare Gateway skill commands asynchronously (#146812) improve(agents): skip unused assistant delivery parsing (#146858) improve(ui): reuse date formatters across timestamp lists (#146789) fix(tests): isolate installer and Docker shell snippets (#146897) test(heartbeat): share explicit channel configuration fixtures (#146853) fix: retain conversation reply claims through write admission (#146866) perf(sessions): bound history reads and stabilize cursor paging (#146770) fix(ui): let slow dashboard downloads finish before recovery (#146881) fix: share Doctor lifecycle coordination with SQLite workers (#146714) fix: retain native session model provenance (#146801) fix: settle embedded transcript repairs before session cleanup (#146842) feat(macos): improve agent navigation and chat layout (#146531) ...
What Problem This Solves
Heartbeat tests repeat the same nested configuration at sixteen setup sites across sibling suites.
User Impact
There is no user-visible behavior change. The tests retain their independent session, model, delivery and event-routing assertions with less repeated setup.
Why This Change Was Made
Thirteen sites share a narrow typed fixture, and three reuse the existing local event-routing fixture. Each call constructs fresh nested objects and its own allowlist, preserving property order, values, omitted options and the original configuration annotations. The five-minute interval and wildcard allowlist remain explicit test constants, not production defaults. Other configuration variants stay explicit.
The change removes 150 physical test/support lines; excluding 28 layout-only lines gives a conservative structural reduction of 122 lines. Production code and runtime behavior are unchanged.
Evidence
All 104 cases in the five full suites pass before and after with identical ordered names, ancestor titles and statuses. All 16 fixture variants match ordered keys, values, descriptors and omissions; separate calls keep all seven objects and the allowlist array independent. Exact inverse checks reconstruct all six original files. The actual compiler graph guard, full mapped changed gate, deslop and independent P2 review pass. No runtime speedup is claimed.