test(macos): eliminate native warning and timing flake#104434
Conversation
|
Land-ready proof for exact head
No known proof gaps for the touched test surface. |
|
Merged via squash.
|
|
Codex review: needs real behavior proof before merge. Reviewed July 11, 2026, 7:29 AM ET / 11:29 UTC. Summary PR surface: Other -3. Total -3 across 2 files. Reproducibility: yes. at source level. The redundant Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Next step before merge
Security Review detailsBest 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 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 changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Other -3. Total -3 across 2 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
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
|
What Problem This Solves
Resolves two native Swift validation problems: the macOS test target emits a redundant
trycompiler 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
trywarning; the malformed-lock test failed all three attempts at 0.64–0.90 seconds despite returning the expected lock-contention result.git diff --check.agents/skills/autoreview/scripts/autoreview --mode local— clean, no accepted/actionable findings.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.