Skip to content

refactor(macos): consolidate gateway process fixtures - #117740

Merged
steipete merged 1 commit into
mainfrom
codex/goal100k-native-fixture
Aug 2, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/goal100k-native-fixture

Conversation

@steipete

@steipete steipete commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

The macOS gateway process test suite repeated launch-agent state, WebSocket setup, listener descriptors, status payloads, polling loops, and cleanup across many cases. That duplication made lifecycle-sensitive tests harder to review and left the file above the repository's file-length lint limit.

Why This Change Was Made

Consolidates the repeated test-only setup into private fixtures while keeping every test declaration, assertion, timing value, hook, and lifecycle transition intact. Global test connections now register cleanup before any throwing config setup, so fixture setup failures cannot leak state into the next serialized test.

User Impact

No runtime behavior changes. Maintainers get a smaller, more consistent gateway process suite with one canonical place for launch-agent and readiness fixture cleanup.

Evidence

  • Test-only diff: 367 additions, 839 deletions; net -472 LOC. Production delta: 0.
  • Preserved exactly and in order: 36 test declarations; 128 #expect, 18 #require, and 3 Issue.record expressions (149 total).
  • Preserved all 17 polling loops (15×100, 1×200, 1×1000 attempts at 1 ms), 17 WebSocket task factories, 14 descriptors, daemon delays, 150 ms waits, and 30 s stalled-receive timers.
  • node scripts/check-changed.mjs -- apps/macos/Tests/OpenClawIPCTests/GatewayProcessManagerTests.swift passed through the documented local fallback, including the full SwiftLint app surfaces and macOS Node CI tests. Blacksmith Testbox was unavailable because its endpoint did not resolve.
  • swiftformat --lint apps/macos/Tests/OpenClawIPCTests/GatewayProcessManagerTests.swift --config config/swiftformat passed.
  • swiftc -frontend -parse apps/macos/Tests/OpenClawIPCTests/GatewayProcessManagerTests.swift passed.
  • git diff --check passed.
  • Hosted macOS Swift build and full swift test --package-path apps/macos are the exact-head merge gate.

@openclaw-barnacle openclaw-barnacle Bot added app: macos App: macos size: XL maintainer Maintainer-authored PR labels Aug 2, 2026
@steipete steipete self-assigned this Aug 2, 2026
@steipete
steipete merged commit 90a3774 into main Aug 2, 2026
54 of 57 checks passed
@steipete
steipete deleted the codex/goal100k-native-fixture branch August 2, 2026 02:18
@steipete

steipete commented Aug 2, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
llwijvbw123 pushed a commit to llwijvbw123/openclaw that referenced this pull request Aug 28, 2026
…elf-release

* commit '10a390ed7fa88d09da0d4523c3ed1e3550ece5c6': (4646 commits)
  fix(release): allow larger npm plugin artifacts (openclaw#117745)
  refactor(macos): consolidate gateway process fixtures (openclaw#117740)
  fix(ui): preserve complete persisted log messages (openclaw#117666)
  fix(ui): decode artifact previews as UTF-8 (openclaw#117657)
  fix(control-ui): restore sandbox media previews (openclaw#117689)
  fix(plugins): link host declared as direct dependency (openclaw#117738)
  fix(macos): avoid self-named defaults suite (openclaw#117690)
  fix(inference): preserve run ownership and completion delivery (openclaw#117731)
  test(talk): align browser E2E tool completion
  test: consolidate OpenClaw E2E fixtures (openclaw#117701)
  fix(release): ignore bundle fields in npm locks (openclaw#117730)
  fix(meeting-bot): keep configured host options internal
  refactor(line): remove dead card helpers (openclaw#117729)
  perf(cli): attribute command startup stages (openclaw#117720)
  refactor(whatsapp): deduplicate reply delivery test fixtures (openclaw#117710)
  docs(changelog): note bounded WebRTC tool calls
  docs(changelog): note meeting audio bounds
  fix(meeting-bot): preserve node host SDK surface
  test(talk): split WebRTC tool lifecycle coverage
  fix(meeting-bot): break node host import cycle
  ...

# Conflicts:
#	package.json
#	src/agents/model-auth.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos maintainer Maintainer-authored PR size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant