Skip to content

chore(test): remove redundant post-core output mock - #204527

Merged
vincentkoc merged 1 commit into
mainfrom
chore/test-post-core-json-proof-20261124
Nov 24, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
chore/test-post-core-json-proof-20261124

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The post-core update tests cover JSON diagnostic routing with a mocked pipe call even though an existing child-process fixture exercises the same handoff. That duplicates a case without checking the actual bytes.

User Impact

No runtime behavior changes. One redundant expanded test case is removed, and the existing real-child tests now verify diagnostic routing.

Why This Change Was Made

Have the existing child write distinct stdout and stderr diagnostics, then verify that both reach the parent's stderr and neither contaminates its JSON stdout. Remove only the mocked Linux/JSON row; retain the Windows pipe and non-JSON inheritance rows and all existing shutdown and handoff assertions.

Evidence

  • Baseline: 34 tests pass across the two affected suites (14.85 seconds including the wrapper).
  • Controlled wrong-destination mutation: the original suites fail only the mocked JSON row; after the transfer, both retained real-child shutdown cases reject the same defect.
  • Restored production code: all 33 remaining tests pass (38.46 seconds including changed-input compilation).
  • Focused format, lint, CLI-update test types, line-cap, and whitespace checks pass. Full pinned local ClawSweeper review found no actionable issues.
  • The real-child proof is POSIX-only and covers the legacy nondelegated post-core handoff. Delegated-worker routing is outside this change.

Required orphan checks also passed: dependency/all-export scan, production/full-tree unused-file scans, and script/production/full-tree unused-export scans; zero findings.

@vincentkoc vincentkoc self-assigned this Nov 24, 2026
@clawsweeper

clawsweeper Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added the cli CLI command changes label Nov 24, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 24, 2026 09:11
@vincentkoc
vincentkoc merged commit 856ee3d into main Nov 24, 2026
183 checks passed
@vincentkoc
vincentkoc deleted the chore/test-post-core-json-proof-20261124 branch November 24, 2026 09:28
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Nov 24, 2026
* commit '391dea93e0a97fff97f9f3d5e94eac992b247b09': (21 commits)
  test(update): cover maintenance release before conversion (#204548)
  fix(ci): control memory pressure in cron rearm fixture (#204543)
  fix: align release workflow tests with retained evidence
  test(ui): open the Settings drawer by keyboard before the Escape check (#204539)
  fix(ci): avoid redundant globs for literal test inventories (#204529)
  fix(pr): retain protected resources after native squash merges (#204496)
  fix(ui): show the check mark on the custom ask_user answer (#199999)
  chore(ui): refresh control ui locales (#204542)
  fix(update): build Git releases only once (#204512)
  fix(ci): avoid repeated full-inventory matching (#204525)
  test(ci): align exec completion fixtures with process instances (#204507)
  test(update): replace mocked JSON routing with child proof (#204527)
  fix(slack): reject system events with an unresolved conversation type (#204444)
  test(agents): distinguish the source-session root (#204524)
  perf(ai): keep Responses tool history checkpointed across turns (#204519)
  feat(zai): add GLM-5.4 as the Coding Plan default (#204522)
  ci: cover unscheduled test files daily and fail when a test has no scheduled lane (#204472)
  fix(ci): model a distinct FRV job retry in CLI fixtures (#204517)
  improve(ui): defer sign-in controls until needed (#204484)
  test(agents): assert the prepared MCP hook prompt (#204508)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant