Skip to content

fix: stabilize OpenClawKit contract and chat tests#100243

Merged
steipete merged 1 commit into
mainfrom
codex/fix-openclawkit-test-flakes
Jul 5, 2026
Merged

fix: stabilize OpenClawKit contract and chat tests#100243
steipete merged 1 commit into
mainfrom
codex/fix-openclawkit-test-flakes

Conversation

@steipete

@steipete steipete commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Resolves deterministic failure in the Swift Talk provider-selection contract suite after the shared fixture semantics changed, plus timing-sensitive ChatViewModelTests failures under parallel suite load.

Why This Change Was Made

The Swift fixture consumer now treats payloadValid as schema validity, matching the TypeScript contract instead of equating it with provider selection. Chat view-model tests are serialized and use observable async barriers instead of fixed sleeps or incomplete hook-local completion signals.

AI-assisted; implementation and final diff reviewed with Codex autoreview.

User Impact

No runtime behavior change. OpenClawKit contract and chat tests now produce deterministic results on macOS under suite load.

Evidence

  • cd apps/shared/OpenClawKit && swift test --filter TalkConfigContractTests --quiet — 2 tests passed.
  • cd apps/shared/OpenClawKit && swift test --filter ChatViewModelTests --quiet — 105 tests passed.
  • cd apps/shared/OpenClawKit && swift test --skip-build --skip DeviceIdentityStoreTests --quiet — 243 tests in 28 suites passed; excluded independently pre-existing global-state race.
  • swiftformat --lint ... --config config/swiftformat — 0/2 touched files require formatting.
  • Targeted SwiftLint reports no newly introduced violations; its seven findings are identical on origin/main (five existing line/data warnings plus existing file/type size errors in the 5.5k-line test file).
  • git diff --check — clean.
  • Final Codex autoreview — no actionable findings.

@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Jul 5, 2026
@steipete
steipete force-pushed the codex/fix-openclawkit-test-flakes branch from bc0819b to c23d535 Compare July 5, 2026 08:54
@steipete

steipete commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

Land-ready at exact head b7711ae329ab049c054726d1ea195c1177d8fe6c.

Local proof:

  • cd apps/shared/OpenClawKit && swift test --filter TalkConfigContractTests --quiet — 2 passed.
  • cd apps/shared/OpenClawKit && swift test --filter ChatViewModelTests --quiet — 105 passed.
  • cd apps/shared/OpenClawKit && swift test --skip-build --skip DeviceIdentityStoreTests --quiet — 243 tests / 28 suites passed; the excluded DeviceIdentity test has an independently pre-existing global-state race.
  • SwiftFormat lint is clean for both touched files; targeted SwiftLint baseline comparison shows no introduced violations.
  • git diff --check clean; final Codex autoreview and repo review artifacts have no actionable findings.

Hosted exact-head proof: CI run 28735667026 passed, including macos-swift, macos-node, and ios-build. No runtime behavior or changelog surface changed.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: ios App: ios app: web-ui App: web-ui scripts Repository scripts agents Agent runtime and tooling size: XL and removed size: S labels Jul 5, 2026
@clawsweeper

clawsweeper Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head 0f06ca1213a6f1b07bb2e3d1bbe4bae60bd760a8, but the PR head is now b7711ae329ab049c054726d1ea195c1177d8fe6c. Its old verdict and PR readiness labels are no longer current.

Next step
Run or wait for a fresh ClawSweeper review on the current PR head.

@steipete
steipete force-pushed the codex/fix-openclawkit-test-flakes branch from 0f06ca1 to b7711ae Compare July 5, 2026 09:04
@openclaw-barnacle openclaw-barnacle Bot added size: S and removed docs Improvements or additions to documentation app: ios App: ios app: web-ui App: web-ui scripts Repository scripts agents Agent runtime and tooling size: XL labels Jul 5, 2026
@steipete
steipete merged commit 9c5ea29 into main Jul 5, 2026
54 of 57 checks passed
@steipete
steipete deleted the codex/fix-openclawkit-test-flakes branch July 5, 2026 09:12
@steipete

steipete commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant