Skip to content

perf(ci): partition Mac tests and admit long jobs first - #134847

Merged
vincentkoc merged 1 commit into
mainfrom
maint/ci-native-admission-replacement
Sep 1, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
maint/ci-native-admission-replacement

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 1, 2026 •

Copy link
Copy Markdown
Member

Related: #134710

What Problem This Solves

Broad CI admits shorter work before several long Mac and plugin jobs, and the Swift build cache omits local inputs that can force avoidable recompilation.

Why This Change Was Made

This preserves Peter Steinberger’s reviewed CI patch as a maintainer-owned replacement after the contributor branch ancestry was replaced and later acquired unrelated macOS test stabilization. It partitions Mac test ownership, admits longer estimated jobs first, and completes the Swift cache input inventory without including the stabilization change.

User Impact

Developers should receive earlier results from the longest existing CI jobs. Application behavior is unchanged.

Evidence

  • Stable patch ID matches the reviewed cd77fe7b4ee09b3323c2fdc66f2ee714154ae6c4 CI delta.
  • Exact manifest: 20 files; the three macOS stabilization files are excluded.
  • Focused planner/package/cache/tooling proof: 977 passed, 2 skipped.
  • actionlint, changed-file formatting, docs inventory, generated CI Git owner, composite-action interpolation, conflict-marker, dependency, SDK surface, plugin-boundary, wrapper, patch, script erasability, and UI i18n checks passed.
  • Local tsgo:scripts passed after materializing sparse dependencies.
  • Local tsgo:test:root is blocked by the shared source install resolving pre-current-main Telegram dependency types; repository policy forbids reconciling dependencies inside this worktree.
  • Exact-head CI is green with no active or failed checks.
  • PR fix(release): preserve original attempts in reused validation #134820 raised the Control UI gzip baseline to 348433 B in 54183c0c; this refreshed head passes build-artifacts. This pull request does not change UI assets, budgets, or thresholds.

Authorship

Peter Steinberger is the commit author. Vincent Koc is the signing committer and co-author.

@vincentkoc vincentkoc self-assigned this Sep 1, 2026
@clawsweeper

clawsweeper Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: XL maintainer Maintainer-authored PR labels Sep 1, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review September 1, 2026 05:07
@steipete

steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

I am leaving #134710 and its branch unchanged while the focused replacements land. The existing native Swift ordering proof and CI/cache evidence remain available in that PR.

The shared UI blocker has moved: untouched current main ebfcccacf67d479af46e87f41d5fc48936ba500d passes the canonical UI build at 348,258 B with pinned WebAwesome 3.12.0, Vite 8.2.2 and Rolldown 1.2.5. This is below the former 348,368-B enforcement as well as the current limit. All 1,537 repository inputs in the emitted source maps match that clean checkpoint. No UI patch or budget edit was made for this proof.

I have refreshed #134734 onto that checkpoint for native acceptance. The separately prepared lazy-translation shrink is parked because current main already passes; it is not a prerequisite for these CI changes.

@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 1, 2026
@clawsweeper

clawsweeper Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 1:19 AM ET / 05:19 UTC.

ClawSweeper review

What this changes

This branch partitions macOS CI tests into three jobs, schedules longer Node test jobs first, and expands the Swift build-cache input inventory with matching tests and documentation.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep open: the branch still supplies CI scheduling and cache-input behavior absent from current main, and source review found no introduced functional defect. Exact-head GitHub Actions execution remains the material merge gate.

Priority: P2
Reviewed head: 2f92cca16e193e00bd723dbb3ff3cb703a7fd70a

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch has coherent owner-boundary coverage, but its exact-head workflow execution still needs confirmation.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored CI-maintenance change has workflow-planning tests and recorded CI evidence; the remaining exact-head workflow check is a merge validation gate, not external contributor behavior proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored CI-maintenance change has workflow-planning tests and recorded CI evidence; the remaining exact-head workflow check is a merge validation gate, not external contributor behavior proof.
Evidence reviewed 8 items Mac partition and fallback: The workflow emits three macOS matrix rows only when all three package scripts are present, otherwise retaining the historic single-row path; the job dispatcher caps macOS concurrency at three.
Scheduling behavior: The introduced matrix construction performs a stable descending sort by predicted duration, so equal or unknown durations retain their prior relative order.
Script and inventory coverage: The aggregate macOS script invokes three explicit parts, and the package-script test verifies that parts are nonempty, present, disjoint, and collectively invoked.
Findings None None.
Security None None.

How this fits together

The CI workflow turns package test scripts and test-plan metadata into runner matrices. Those matrices determine which macOS and Node checks run, in what order, while the Swift metadata determines when native build outputs can be safely reused.

flowchart LR
A[Package test scripts] --> B[CI workflow matrix]
C[Test-plan metadata] --> B
B --> D[Longer jobs admitted first]
B --> E[Three macOS test jobs]
F[Swift source inputs] --> G[Cache validity metadata]
G --> H[Native build reuse]
D --> I[CI results]
E --> I
Loading

Before merge

  • Resolve merge risk (P1) - The branch changes CI matrix admission, partitioning, and cache validity; an exact-head workflow run is still needed to confirm all required rows execute with the intended runner limits.
Agent review details

Security

None.

PR surface

Tests +161, Docs +18, Config +19, Other +21. Total +219 across 20 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 10 1220 1059 +161
Docs 2 24 6 +18
Config 2 24 5 +19
Generated 0 0 0 0
Other 6 52 31 +21
Total 20 1320 1101 +219

Review metrics

Metric Value Why it matters
Production versus test LOC CI/tooling +76/-36; tests/support +1,220/-1,059; docs/skill +24/-6 The modest tooling growth implements matrix, duration, and cache-input ownership, while most test churn is a near-neutral extraction of the macOS artifact registrations.

Stored data model

Persistent data-model change detected: persistent cache schema: scripts/ci-changed-scope.mjs, persistent cache schema: scripts/swift-build-cache-metadata.py, vector/embedding metadata: scripts/ci-changed-scope.mjs, vector/embedding metadata: scripts/lib/ci-changed-node-test-plan.mts, vector/embedding metadata: scripts/lib/vitest-shard-metadata.mts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Complete exact-head CI validation (recommended)
    Verify the merged workflow plan executes all three macOS partitions, the legacy fallback, and required Node config partitions at this head before merging.

Technical review

Best possible solution:

Run and inspect exact-head CI, confirming the three macOS partitions, preserved fallback behavior, and duration-ordered Node matrix before merge.

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

Not applicable: this is CI scheduling and build-cache maintenance rather than a reported end-user defect.

Is this the best way to solve the issue?

Yes: the implementation preserves the prior macOS fallback, verifies partition completeness in tests, and keeps cache invalidation at the metadata owner.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This is a bounded CI performance and scheduling improvement, with no demonstrated application-runtime regression.
  • add merge-risk: 🚨 automation: The introduced workflow matrix ordering, partitioning, and cache validity rules can affect which CI jobs run and when.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored CI-maintenance change has workflow-planning tests and recorded CI evidence; the remaining exact-head workflow check is a merge validation gate, not external contributor behavior proof.

Label justifications:

  • P2: This is a bounded CI performance and scheduling improvement, with no demonstrated application-runtime regression.
  • merge-risk: 🚨 automation: The introduced workflow matrix ordering, partitioning, and cache validity rules can affect which CI jobs run and when.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; 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 member-authored CI-maintenance change has workflow-planning tests and recorded CI evidence; the remaining exact-head workflow check is a merge validation gate, not external contributor behavior proof.

Evidence

What I checked:

  • Mac partition and fallback: The workflow emits three macOS matrix rows only when all three package scripts are present, otherwise retaining the historic single-row path; the job dispatcher caps macOS concurrency at three. (.github/workflows/ci.yml:1504, 2f92cca16e19)
  • Scheduling behavior: The introduced matrix construction performs a stable descending sort by predicted duration, so equal or unknown durations retain their prior relative order. (.github/workflows/ci.yml:1374, 2f92cca16e19)
  • Script and inventory coverage: The aggregate macOS script invokes three explicit parts, and the package-script test verifies that parts are nonempty, present, disjoint, and collectively invoked. (package.json:1955, 2f92cca16e19)
  • Script and inventory coverage: The test checks the partition contract rather than merely asserting script names. (test/package-scripts.test.ts:237, 2f92cca16e19)
  • Swift input ownership: The cache metadata adds local MLX protocol sources, its manifest, and the shared TLS fixture; the macOS package manifest identifies the local package relationship, so no external dependency contract is implicated. (scripts/swift-build-cache-metadata.py:16, 2f92cca16e19)
  • Current-main necessity: Current main at the fetched revision does not contain this branch's macOS partition or duration ordering, so the requested CI behavior is not already implemented there. (.github/workflows/ci.yml:1374, b386a5fb5f75)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Inspect a completed exact-head CI run covering the partitioned macOS and duration-ordered Node matrices.

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.

@vincentkoc
vincentkoc merged commit d22146e into main Sep 1, 2026
339 checks passed
@vincentkoc
vincentkoc deleted the maint/ci-native-admission-replacement branch September 1, 2026 05:23
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation 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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL 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.

2 participants