Repository navigation
refactor: share LINE message context test fixtures - #157488
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 24, 2026, 3:05 PM ET / 19:05 UTC. ClawSweeper reviewWhat this changesThe branch replaces repeated defaults in LINE message-context tests with a typed local helper while retaining case-specific inputs and assertions. Merge readiness✅ Ready for maintainer review Keep open. This is a useful, bounded part of the linked test-audit campaign, and the shared fixture is absent from current main and the latest release. I found no actionable defect in the introduced change. Priority: P3 Review scores
Verification
How this fits togetherThe LINE plugin turns webhook events, account settings, media, and access decisions into an agent-facing message context and route. This PR changes the tests for that conversion. flowchart LR
A[LINE webhook event] --> D[LINE handler]
B[Account and config] --> D
C[Media and access decision] --> D
D --> E[Message context builder]
E --> F[Agent context and route]
G[Test fixture and assertions] --> E
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -149. Total -149 across 1 file. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Retain the suite-local helper and its explicit exceptional cases, then land the cleanup through normal review and merge gates. Do we have a high-confidence way to reproduce the issue? Not applicable: the PR reports duplicate test setup, not a product failure. The introduced diff and hosted suite result provide the relevant preservation checks. Is this the best way to solve the issue? Yes: a typed helper local to this suite removes repeated setup while keeping the production call and exceptional test inputs explicit. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 0603d46c1b76. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
* commit 'a0905dfe5c17053a3f0ef2aa0cf8f421bce9381c': (75 commits) fix: preserve conversation titles across split-pane agent switches (#157482) test(gateway): settle resumed work before checking announcement fix(update): avoid socket-arrival assumptions in deadline tests (#157504) fix(ci): include Android Access in release coordination refactor: share LINE message context test fixtures (#157488) refactor(matrix): reuse startup verification account key (#157310) perf(config): avoid repeated environment scans during publication (#156457) chore(i18n): refresh native locales (#157495) fix(update): show quiet step progress and date recorded outcomes (#153407) feat(gateway): preserve browser sign-in requirements before connecting (#157454) test(scripts): await CLI admission fixture lifetimes (#157424) fix(ci): preserve consumer selection across core type stripes (#157373) fix(wizard): preserve typed plugin enum values (#127577) (#138090) fix(qa): title mock Code Mode fixture calls refactor: simplify SQLite worker lifecycle and test fixtures (#157458) test: prebuild run-node signal fixture (#157478) refactor(exec): reuse approval policy rule keys (#157198) fix(ci): reuse prepared runtime for changed-target E2E shards (#157365) fix(config): apply Gateway writes without waiting for file events (#157372) fix: count recorded nested tool operations once (#157438) ...
* refactor(acp): consolidate scalar runtime option validation * chore: merge main for ACP validation * commit 'a0905dfe5c17053a3f0ef2aa0cf8f421bce9381c': (75 commits) fix: preserve conversation titles across split-pane agent switches (#157482) test(gateway): settle resumed work before checking announcement fix(update): avoid socket-arrival assumptions in deadline tests (#157504) fix(ci): include Android Access in release coordination refactor: share LINE message context test fixtures (#157488) refactor(matrix): reuse startup verification account key (#157310) perf(config): avoid repeated environment scans during publication (#156457) chore(i18n): refresh native locales (#157495) fix(update): show quiet step progress and date recorded outcomes (#153407) feat(gateway): preserve browser sign-in requirements before connecting (#157454) test(scripts): await CLI admission fixture lifetimes (#157424) fix(ci): preserve consumer selection across core type stripes (#157373) fix(wizard): preserve typed plugin enum values (#127577) (#138090) fix(qa): title mock Code Mode fixture calls refactor: simplify SQLite worker lifecycle and test fixtures (#157458) test: prebuild run-node signal fixture (#157478) refactor(exec): reuse approval policy rule keys (#157198) fix(ci): reuse prepared runtime for changed-target E2E shards (#157365) fix(config): apply Gateway writes without waiting for file events (#157372) fix: count recorded nested tool operations once (#157438) ... Co-authored-by: Vincent Koc <[email protected]>
…#157446) * refactor(acp): consolidate scalar runtime option validation * chore: merge main for ACP validation * commit 'a2532ef8d2eb80fd2fd391ef7ea645c051f8be9c': (75 commits) fix: preserve conversation titles across split-pane agent switches (openclaw#157482) test(gateway): settle resumed work before checking announcement fix(update): avoid socket-arrival assumptions in deadline tests (openclaw#157504) fix(ci): include Android Access in release coordination refactor: share LINE message context test fixtures (openclaw#157488) refactor(matrix): reuse startup verification account key (openclaw#157310) perf(config): avoid repeated environment scans during publication (openclaw#156457) chore(i18n): refresh native locales (openclaw#157495) fix(update): show quiet step progress and date recorded outcomes (openclaw#153407) feat(gateway): preserve browser sign-in requirements before connecting (openclaw#157454) test(scripts): await CLI admission fixture lifetimes (openclaw#157424) fix(ci): preserve consumer selection across core type stripes (openclaw#157373) fix(wizard): preserve typed plugin enum values (openclaw#127577) (openclaw#138090) fix(qa): title mock Code Mode fixture calls refactor: simplify SQLite worker lifecycle and test fixtures (openclaw#157458) test: prebuild run-node signal fixture (openclaw#157478) refactor(exec): reuse approval policy rule keys (openclaw#157198) fix(ci): reuse prepared runtime for changed-target E2E shards (openclaw#157365) fix(config): apply Gateway writes without waiting for file events (openclaw#157372) fix: count recorded nested tool operations once (openclaw#157438) ... Co-authored-by: Vincent Koc <[email protected]>
Related: #139428
What Problem This Solves
LINE message-context tests repeat the same request defaults at 36 call sites.
User Impact
No user-visible change. All 53 cases retain their event inputs, routing and content assertions.
Why This Change Was Made
A local typed helper reads the current per-case config and retains the account reference while creating a fresh request and default media array. Explicit media/config/account overrides and false authorization values remain at their call sites. This removes 149 test lines without production changes or new test seams.
Evidence
Original and candidate complete files each passed all 53 cases with exact ordered file/name/status parity. The approved proposal's 36 input-field maps and byte-exact inverse are retained; formatting preserves its structural AST. The complete mapped changed gate passed, and independent P2 review found no actionable issues.
With
--maxWorkers=1, original command wall time was 30.01 seconds with a compiler-cache miss (13.548 seconds preparation), and candidate wall time was 19.99 seconds with a cache hit (3.974 seconds preparation). These are different preparation conditions, not a speedup comparison. Native cleanup completed with empty owned TMP and no new process holders.Hosted CI and Workflow Sanity are green. The Linux LINE test job passed all 53 cases with matching ordered names, reporting 41.81 seconds Vitest duration (45-second test step; 80-second job including setup).