Skip to content

test(macos): eliminate native warning and timing flake#104434

Merged
steipete merged 1 commit into
mainfrom
codex/swift-clean
Jul 11, 2026
Merged

test(macos): eliminate native warning and timing flake#104434
steipete merged 1 commit into
mainfrom
codex/swift-clean

Conversation

@steipete

@steipete steipete commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Resolves two native Swift validation problems: the macOS test target emits a redundant try compiler warning, and a lock-contention test fails under loaded CI runners because it treats scheduler wall time as protocol behavior.

Why This Change Was Made

The environment-isolation call is now warning-free. The malformed-lock regression keeps its behavioral assertions—failure result, preserved lock bytes, and no persisted mutation—without an unrelated wall-clock ceiling.

User Impact

No product behavior changes. Native Swift validation is quieter and no longer fails solely because a parallel CI runner was delayed.

Evidence

  • Baseline manual CI: macOS release build passed; test compilation emitted the redundant-try warning; the malformed-lock test failed all three attempts at 0.64–0.90 seconds despite returning the expected lock-contention result.
  • Baseline iOS lint, SwiftFormat, and simulator build passed with zero compiler warnings.
  • git diff --check
  • .agents/skills/autoreview/scripts/autoreview --mode local — clean, no accepted/actionable findings.
  • Exact-head CI run 29150876991, macos-swift: SwiftLint 0 violations, SwiftFormat clean, release build clean, 0 compiler warnings, 1,018 tests passed.

AI-assisted: Codex implemented and reviewed this focused cleanup.

@openclaw-barnacle openclaw-barnacle Bot added app: macos App: macos size: XS maintainer Maintainer-authored PR labels Jul 11, 2026
@steipete steipete self-assigned this Jul 11, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready proof for exact head 9aebfd57dbd382ebe6693f249574b08c852c7440:

  • Baseline manual CI 29150405650 reproduced the redundant-try warning and the scheduler-sensitive malformed-lock failure.
  • Exact-head CI 29150876991, macos-swift: SwiftLint 0 violations, SwiftFormat clean, release build clean, 0 compiler warnings, and 1,018 tests passed.
  • git diff --check passed.
  • .agents/skills/autoreview/scripts/autoreview --mode local returned clean with no accepted/actionable findings.

No known proof gaps for the touched test surface.

@steipete
steipete merged commit 1d84acf into main Jul 11, 2026
70 of 72 checks passed
@steipete
steipete deleted the codex/swift-clean branch July 11, 2026 11:30
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@clawsweeper

clawsweeper Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 11, 2026, 7:29 AM ET / 11:29 UTC.

Summary
The PR removes an unnecessary try from a non-throwing environment-isolation call and deletes a sub-0.5-second elapsed-time assertion from a malformed-lock macOS regression test.

PR surface: Other -3. Total -3 across 2 files.

Reproducibility: yes. at source level. The redundant try follows directly from the async rethrows helper signature, and the removed upper bound measures scheduler wall time around a fixed synchronous retry loop; the PR body reports three loaded-runner failures despite the expected result.

Review metrics: none identified.

Merge readiness
Overall: 🦞 diamond lobster
Proof: 🌊 off-meta tidepool
Patch quality: 🦞 diamond lobster
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Next step before merge

  • [P1] No code repair is needed; keep this protected maintainer PR open for explicit maintainer landing.

Security
Cleared: The commit modifies test syntax and assertions only, with no production, dependency, workflow, permission, secret, or supply-chain surface changes.

Review details

Best possible solution:

Merge the narrow cleanup now that exact-head macOS Swift validation is green; retain deterministic tests for controlled valid-lock waiting and malformed-lock failure/state preservation without a shared-runner upper wall-clock ceiling.

Do we have a high-confidence way to reproduce the issue?

Yes at source level. The redundant try follows directly from the async rethrows helper signature, and the removed upper bound measures scheduler wall time around a fixed synchronous retry loop; the PR body reports three loaded-runner failures despite the expected result.

Is this the best way to solve the issue?

Yes. The patch removes only non-contractual checks while retaining the failure result, lock preservation, no-mutation assertion, and separate controlled coverage for valid-lock waiting.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 5a26748c3eb6.

Label changes

Label changes:

  • add P3: This is low-risk compiler-warning and test-flake cleanup with no runtime, configuration, or upgrade behavior change.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.

Label justifications:

  • P3: This is low-risk compiler-warning and test-flake cleanup with no runtime, configuration, or upgrade behavior change.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
Evidence reviewed

PR surface:

Other -3. Total -3 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 1 4 -3
Total 2 1 4 -3

What I checked:

Likely related people:

  • steipete: Peter Steinberger introduced both affected tests and the surrounding macOS exec-approvals hardening in commit 2ed2424, then authored and took assignment for this focused cleanup. (role: introduced behavior and recent area contributor; confidence: high; commits: 2ed24246182f, 9aebfd57dbd3; files: apps/macos/Tests/OpenClawIPCTests/ExecApprovalsSocketPathGuardTests.swift, apps/macos/Tests/OpenClawIPCTests/ExecApprovalsStoreRefactorTests.swift, apps/macos/Sources/OpenClaw/ExecApprovalsFileIO.swift)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

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: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant