Skip to content

fix(ci): release workflow checks fail on macOS Bash 3.2 - #121669

Merged
steipete merged 8 commits into
mainfrom
steipete/eager-booth-3649b3
Aug 10, 2026
Merged

steipete merged 8 commits into
mainfrom
steipete/eager-booth-3649b3

Conversation

@steipete

@steipete steipete commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where maintainers running the package-acceptance workflow tests on macOS would hit repo_filter_tokens[*]: unbound variable when a QA-only live filter left the repo filter array empty under Bash 3.2 nounset semantics. It also preserves focused proof for deterministic current-main blockers exposed while validating that release-workflow fix.

Why This Change Was Made

The release input owner now uses Bash's default-value array expansion, which yields an empty repo filter for QA-only selections while preserving comma-joined nonempty filters on newer Bash/Linux. The matching workflow assertion follows that contract, and adjacent timeout data uses a closed beta/stable/full object.

The required red-main repair established that Gateway wizard sessions distinguish runner settlement from setup-target admission settlement, preventing an immediate replacement setup from racing the still-held file lock. Cron tests assert canonical generic operator alerts while proving raw errors and diagnostics remain in job state/history. Agent lifecycle tests assert the normalized closed event shape, and changed-target routing includes package-acceptance as a direct consumer of the release matrix planner.

Successive exact-head runs exposed current-main protocol, Plugin SDK, approval, architecture, and Skill Workshop drift. Required conflict rebases preserved this PR's unique assertions while allowing current main to absorb the runtime fixes, generated Swift and SDK refreshes, approval event-kind cases, and Knip ownership. The final Skill Workshop assertions inject copy failures through the real module boundary and compare canonical realpath values on macOS. Per-account approval runtimes report raw candidates while the route coordinator rejects unbound multi-account groups as ambiguous before delivery.

User Impact

Maintainers can run the release workflow and changed-gate paths on macOS without changing release lane scheduling or product behavior. The adjacent assertions protect setup cleanup, generic cron alerts with durable diagnostics, normalized lifecycle events, approval coordinator ownership, and release-planner routing.

Evidence

  • Pre-fix focused macOS cases failed with repo_filter_tokens[*]: unbound variable.
  • Setup admission: 7/7 passed; wizard lifecycle: 16/16 passed.
  • Cron regressions: 8/8, 8/8, and 11/11 passed.
  • Agent lifecycle progress: 19/19 passed.
  • Approval resolver: 42/42; handler runtime: 13/13; Plugin SDK approval helpers: 17/17.
  • Skill Workshop reconciliation: 16/16; scheduled review: 11/11.
  • Package-acceptance workflow: 190/190 passed.
  • Full-release validation helper: 20/20 passed.
  • Core, core-test, extension, extension-test, scripts, and root-test typechecks passed.
  • Madge and runtime import checks report zero cycles; Plugin SDK API/surface checks passed.
  • Core, extension, and scripts lint, formatting, workflow checks, Knip export scans, guards, and git diff --check passed.
  • The complete changed-file gate passed through the documented local fallback because no remote provider was ready.
  • An earlier broader pre-rebase gate reached every repository-controlled lane but local SwiftLint crashed loading sourcekitdInProc.framework; current main subsequently absorbed the generated Swift repair, and the final 10-file changed gate no longer selected the app lane.
  • Local test-projects.test.ts targeted proof timed out after 120 seconds in repository import scanning under heavy host load. The exact executable resolver probe returned the required package-acceptance, release-matrix-plan, and direct-run target set; hosted exact-head CI is the final proof for this lane.
  • Final branch-wide P1 Codex autoreview reported no accepted/actionable findings.
  • Exact-head CI run 31440287630 completed green for f1781ac96dab7e13686006ba6c12237bd40e1a16; the bounded watcher ended with STATUS state=SUCCESS pending=0 superseded=14 and GREEN.
  • Earlier exact-head CI runs 31428302094, 31429747456, and 31431731058 exposed the successive current-main blockers repaired or absorbed here. Run 31437193944 remained green while pending but stopped when advancing main made the merge ref conflicting, which triggered the required rebase.

Final branch delta: production +3/-0, tests +97/-68, and CI/tooling +1/-1. The production lines are lifecycle-settlement and coordinator-ownership comments; runtime fixes already landed on current main during the required rebases.

AI-assisted: yes. The patch was inspected and understood by the maintainer.

@clawsweeper

clawsweeper Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review August 10, 2026 17:03
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS maintainer Maintainer-authored PR labels Aug 10, 2026
@steipete
steipete force-pushed the steipete/eager-booth-3649b3 branch from 33f4423 to 5551a63 Compare August 10, 2026 17:20
@openclaw-barnacle openclaw-barnacle Bot removed the scripts Repository scripts label Aug 10, 2026
@steipete
steipete force-pushed the steipete/eager-booth-3649b3 branch from 5551a63 to a7faf24 Compare August 10, 2026 17:39
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 10, 2026
@clawsweeper

clawsweeper Bot commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 10, 2026, 7:01 PM ET / 23:01 UTC.

ClawSweeper review

What this changes

This PR changes the release-check workflow so a QA-only live filter can leave its repository-filter array empty under macOS Bash 3.2, and aligns focused regression assertions after rebases.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open: current main still has the Bash 3.2-sensitive expansion, and the branch supplies the narrow portable replacement with aligned boundary coverage. No blocking patch defect found; wait for exact-head CI before merge. Likely related people: steipete (high) and Ayaan Zaidi (medium).

Priority: P2
Reviewed head: f1781ac96dab7e13686006ba6c12237bd40e1a16

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is focused and contract-preserving; pending exact-head CI is the remaining merge gate.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored internal CI repair is supported by the reported pre-fix failure and focused workflow-boundary coverage; external contributor proof gating does not apply.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored internal CI repair is supported by the reported pre-fix failure and focused workflow-boundary coverage; external contributor proof gating does not apply.
Evidence reviewed 5 items Current-main failure site: The current workflow initializes an empty repository-token array, marks QA-only tokens without appending repository tokens, then expands that empty array at the reported portability-sensitive line.
Boundary coverage: The existing helper extracts and executes the workflow input step with bash; its QA-only Telegram case reaches the empty-array branch, while the PR updates the portable expansion assertion.
Workflow provenance: Blame ties the current filter logic, including the old expansion, to the initial release-check workflow commit.
Findings None None.
Security None None.

How this fits together

The release-check workflow normalizes manual release inputs into QA and repository live-suite filters, then passes those filters to downstream validation jobs. The changed branch handles the QA-only case before those jobs are scheduled.

flowchart LR
A[Release workflow input] --> B[Normalize live-suite filter]
B --> C[Split QA and repository selections]
C --> D{QA-only selection?}
D --> E[Emit empty repository filter]
D --> F[Emit repository suite filter]
E --> G[QA validation jobs]
F --> H[Repository live validation]
Loading

Before merge

  • Resolve merge risk (P1) - Exact-head CI is still incomplete; the release-workflow change should merge only after its required checks finish green.
  • Complete next step (P2) - Await the pending exact-head checks; this maintainer-authored protected-label PR has no concrete repair-lane task.
Agent review details

Security

None.

PR surface

Source +3, Tests +29, Config 0. Total +32 across 10 files.

View PR surface stats
Area Files Added Removed Net
Source 2 3 0 +3
Tests 7 97 68 +29
Docs 0 0 0 0
Config 1 1 1 0
Generated 0 0 0 0
Other 0 0 0 0
Total 10 101 69 +32

Review metrics

Metric Value Why it matters
Production versus test delta runtime comments +3/-0; workflow metadata +1/-1; tests +97/-68 The positive production delta is limited to invariant comments; behavior changes are confined to the release workflow and its regression coverage.

Merge-risk options

Maintainer options:

  1. Complete exact-head validation (recommended)
    Merge after the current head’s required CI confirms that the release workflow and package-acceptance checks remain healthy.

Technical review

Best possible solution:

Keep the portable empty-array expansion and land it once the current head has green workflow and package-acceptance validation.

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

No high-confidence local reproduction on Bash 3.2 was available; the current workflow and its QA-only boundary test clearly reach the empty-array expansion path.

Is this the best way to solve the issue?

Yes; replacing only the empty-array expansion preserves the existing output contract without adding a second workflow path.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add merge-risk: 🚨 automation: The changed Bash expansion directly controls release validation filter scheduling.

Label justifications:

  • P2: The PR repairs a bounded release-workflow portability failure for maintainers.
  • merge-risk: 🚨 automation: The changed Bash expansion directly controls release validation filter scheduling.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored internal CI repair is supported by the reported pre-fix failure and focused workflow-boundary coverage; external contributor proof gating does not apply.

Evidence

What I checked:

Likely related people:

  • steipete: The current filter lines blame to Peter Steinberger's release-workflow commit, and the PR head continues that focused repair. (role: introduced current workflow filter and recent area contributor; confidence: high; commits: 511db367fecc, f1781ac96dab; files: .github/workflows/openclaw-release-checks.yml, test/scripts/package-acceptance-workflow.test.ts)
  • Ayaan Zaidi: The merged account-custody work explains the aligned approval test and SDK invariant comment, but is separate from the workflow fix. (role: adjacent approval-contract contributor; confidence: medium; commits: 9935ca3b30dc; files: src/infra/approval-gateway-resolver.test.ts, src/plugin-sdk/approval-native-helpers.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Wait for required exact-head checks to complete successfully.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • 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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-08-10T19:04:11.291Z sha a7faf24836b2390f60e382ff395c7038a11fb865 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-10T21:07:25.319Z sha 95cbb91 :: needs maintainer review before merge. :: none

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: S and removed size: XS labels Aug 10, 2026
@steipete
steipete force-pushed the steipete/eager-booth-3649b3 branch 2 times, most recently from ce5fe05 to 4e3c33f Compare August 10, 2026 20:35
@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Aug 10, 2026
@steipete
steipete force-pushed the steipete/eager-booth-3649b3 branch from 95cbb91 to 0e84bd4 Compare August 10, 2026 22:10
@steipete steipete self-assigned this Aug 10, 2026
@steipete
steipete force-pushed the steipete/eager-booth-3649b3 branch from 0e84bd4 to f1781ac Compare August 10, 2026 22:55
@openclaw-barnacle openclaw-barnacle Bot added size: S and removed docs Improvements or additions to documentation size: M labels Aug 10, 2026
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. label Aug 10, 2026
@steipete
steipete merged commit 3cd034f into main Aug 10, 2026
144 checks passed
@steipete
steipete deleted the steipete/eager-booth-3649b3 branch August 10, 2026 23:11
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 11, 2026
)

* fix(ci): keep release workflow checks portable on macOS

* fix(ci): repair current main compact shard regressions

* fix(ci): repair latest main validation drift

* fix(approvals): restore native account ownership gates

* fix(ci): repair skill workshop validation drift

* fix(ci): align approval route selection with main

* fix(ci): remove stale skill workshop test exports

* fix(ci): align repairs with latest main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant