Repository navigation
fix: avoid Swift contention on hosted release runs - #116137
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 29, 2026, 8:33 PM ET / July 30, 2026, 00:33 UTC. ClawSweeper reviewWhat this changesThis PR makes the macOS Swift suite run without SwiftPM parallelism for manual CI dispatches and workflow reruns, while leaving the first automatic attempt parallel. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 4 items remain Keep this PR open for explicit maintainer handling: it carries the protected Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s CI workflow determines which native validation jobs run, selects their runner environment, and executes the macOS Swift package suite as part of release validation. This change adds a trigger-and-retry-derived execution mode immediately before that test command. flowchart LR
A[CI trigger] --> B[macOS Swift job]
B --> C[Dispatch or retry decision]
C --> D[Swift execution mode]
D --> E[Swift package tests]
E --> F[Release validation result]
Decision needed
Why: The protected Before merge
Agent review detailsSecurityNone. PR surfaceTests +20, Config +7. Total +27 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Retain the conditional argument approach, but attach redacted evidence from a hosted manual-dispatch or rerun showing the serial Swift command and a successful suite result before landing. Do we have a high-confidence way to reproduce the issue? No deterministic product reproduction is applicable: the reported problem is intermittent contention on GitHub-hosted macOS CI. The source path is clear, but the supplied evidence does not include a successful after-fix hosted manual-dispatch or rerun result. Is this the best way to solve the issue? Unclear: conditionally omitting AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 156d2e623eb3. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Release-owner decision: land this narrow workflow fix now without a separate pre-merge manual-dispatch cycle. The requested Rank-up move is intentionally deferred because exact-head CI run 30502647386 is fully green, the focused guard proves the event-to-command mapping, and the release owner explicitly accepted this bounded CI tuning to unblock beta.6. The immediately following beta.6 Full Release Validation will exercise the GitHub-hosted manual-dispatch path and provide the real hosted proof. Coverage, assertions, and the three retry attempts remain unchanged. |
|
Merged via squash.
|
What Problem This Solves
Fixes an issue where manual release validation and retry CI runs could repeatedly fail the macOS Swift suite when parallel test processes contended on GitHub-hosted macOS runners.
Why This Change Was Made
The macOS Swift job now omits SwiftPM parallel test execution only for manual dispatches and workflow reruns, which are already routed to GitHub-hosted macOS. First-attempt automatic runs retain parallel execution on Blacksmith. Coverage, assertions, and all three retry attempts remain unchanged.
User Impact
Release validation gets a lower-contention hosted fallback without slowing the normal Blacksmith CI path. There is no product runtime change.
Evidence
actionlint .github/workflows/ci.ymltest/scripts/ci-workflow-guards.test.ts: 92 passed, 1 skippedgit diff --check