Skip to content

fix(ci): route npm release source check per dispatch and serialize its oxlint shards - #192601

Merged
RomneyDa merged 3 commits into
mainfrom
fix/npm-release-source-check-runner
Nov 5, 2026
Merged

RomneyDa merged 3 commits into
mainfrom
fix/npm-release-source-check-runner

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Problem

In 2026.11.5-beta.1, Full Release Artifacts' Check npm release source job lost its Blacksmith runner in 6 of 7 attempts, 19 to 26 minutes into pnpm check on blacksmith-32vcpu-ubuntu-2404. That host actually delivers 8 CPUs and 31 GiB, and oxlint ran its core and extension shards concurrently there. The only way to move the job to GitHub-hosted runners was flipping the repo-wide OPENCLAW_CI_RUNNER_BACKEND variable, which changes routing for every other run in the repository.

Solution

  • New FRV dispatch input, npm_preflight_use_github_hosted_runners (default false). FRV forwards it through Full Release Artifacts to the npm preflight workflow's existing use_github_hosted_runners input. One release can then move its npm preflight jobs to hosted ubuntu-24.04 without touching repo variables.
  • The npm source check sets OPENCLAW_OXLINT_SHARD_CONCURRENCY=1, so oxlint shards run one at a time on that host instead of together.
  • One line in the release CI skill and in docs/ci/runners.md names the new input.

The issue's ripgrep item needs no change: main's npm preflight already installs ripgrep through .github/actions/setup-ripgrep.

Impact

Release operators get a per-release hosted fallback for npm preflight. With the input unset, routing is unchanged. The source check's oxlint step may take somewhat longer because shards no longer run in parallel.

Evidence

  • package-acceptance-workflow.test.ts: FRV forwards the input (true and false), and every forwarded field is declared by Full Release Artifacts, since GitHub rejects undeclared dispatch inputs.
  • openclaw-npm-extended-stable-workflow.test.ts: the source-check env resolves to oxlint shard concurrency 1 on an 8-CPU/31-GiB host.
  • full-release-validation-at-sha.candidate.test.ts: the dispatch input count is updated from 24 to 25.
  • PR CI green on 267ddee. The latest push only trims docs.

Fixes #192562

@clawsweeper

clawsweeper Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: S labels Nov 4, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 4, 2026
@clawsweeper

clawsweeper Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR exposes npm-preflight hosted routing through Full Release Validation and serializes the source check’s oxlint shards.

Example: A release operator dispatches Full Release Validation with npm_preflight_use_github_hosted_runners=true.

  • Before: Moving npm artifact preflight to ubuntu-24.04 requires changing the repository-wide runner backend.
  • After: That dispatch selects ubuntu-24.04 for npm preflight while the source check runs one oxlint shard at a time.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A useful, focused patch with meaningful workflow-contract coverage and no concrete finding; operational effectiveness remains supported mainly by source and harness evidence.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; supplied coverage exercises dispatch shell code with a mocked GitHub command and the real concurrency resolver, without a changed release-workflow execution.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release operators lose qualification progress when npm source-check runners disappear and must otherwise change repository-wide routing to recover.
Reason: The maintainer-authored direction addresses a recorded release incident with a narrowly scoped operator control and preserves default routing.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR provides useful release recovery controls still absent from main, with no definite introduced defect found.

Priority: P2
Reviewed head: 9fc067eb06a8bdcb71cde5bd5ff7eec92ee8e1a6

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: No supplied release run demonstrates the new hosted dispatch and serial source check, and red-on-base execution of the added regressions is not documented.
Agent review details

How this fits together

Full Release Validation dispatches an artifact producer, which calls reusable npm preflight to validate candidate source and produce qualified release artifacts.

flowchart TD
  A[Release operator] --> B[Full Release Validation]
  B --> C[Full Release Artifacts]
  C --> D[Npm preflight]
  D --> E[Selected runner]
  E --> F[Serial oxlint shards]
  D --> G[Qualified artifact evidence]
Loading

Technical review

Best possible solution:

Retain the existing runner owner and Blacksmith default while exposing dispatch-scoped recovery and using its existing shard-concurrency control.

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

Source confirms the missing dispatch override and existing concurrent-shard behavior; reported runner losses do not establish memory exhaustion as their cause.

Is this the best way to solve the issue?

The patch is a small, coherent use of existing owners, although serializing oxlint should be treated as a conservative mitigation rather than a proven runner-loss cure.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against f21943152ad4.

Provenance checked

  • Npm artifact runner selection keeps the original intent (ff002f0: Restore default Blacksmith routing after matched hosted shutdowns and a successful Blacksmith source check.)
  • Artifact workflow dispatch chain keeps the original intent (06f897f: Give preparation independent producers while preserving exact dispatch identity and immutable artifact evidence.)
  • Source-check execution changes intended behavior with a stated reason (a162944: Validate source before sealing prepared publication artifacts; the PR retains every check and changes only shard overlap.)
  • Candidate dispatch input-count assertion keeps the original intent (2a12851: Keep candidate dispatch payloads constrained by trusted release tooling; the updated count accounts for the new declared boolean.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Dallin Romney: Raw commit d76b29e adds .github/workflows/openclaw-npm-preflight.yml:69 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d76b29e1529d; files: .github/workflows/openclaw-npm-preflight.yml)
  • Peter Steinberger: Raw commit 06f897f adds .github/workflows/full-release-artifacts.yml:83 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 06f897f562d7; files: .github/workflows/full-release-artifacts.yml)
  • Vincent Koc: Raw commit 0bb4384 adds .github/workflows/openclaw-npm-preflight.yml:208 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 0bb438485084; files: .github/workflows/openclaw-npm-preflight.yml)

PR surface

Tests +42, Docs +4, Config +14, Other +2. Total +62 across 9 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 43 1 +42
Docs 2 5 1 +4
Config 3 14 0 +14
Generated 0 0 0 0
Other 1 2 0 +2
Total 9 64 2 +62

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Operator control 1 new boolean dispatch option; default false The same option is forwarded across two workflows without changing default runner selection.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.

Label justifications:

  • P2: Repeated release-qualification runner losses warrant a focused operational improvement without establishing a current product outage.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

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

  • Capture a release-workflow run showing the hosted override reaching npm preflight and the source check reporting shard concurrency 1.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-04T06:55:33.229Z sha 267ddee :: needs maintainer review before merge. :: none

Reviewed November 5, 2026, 12:17 AM ET / 05:17 UTC (Revision 2).

@RomneyDa

RomneyDa commented Nov 5, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 5, 2026
@RomneyDa
RomneyDa force-pushed the fix/npm-release-source-check-runner branch from 9fc067e to ca01908 Compare November 5, 2026 07:18
@RomneyDa
RomneyDa force-pushed the fix/npm-release-source-check-runner branch from ca01908 to f68f760 Compare November 5, 2026 19:41
@RomneyDa
RomneyDa merged commit dddde4f into main Nov 5, 2026
95 checks passed
@RomneyDa
RomneyDa deleted the fix/npm-release-source-check-runner branch November 5, 2026 20:24
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 6, 2026
…s oxlint shards (openclaw#192601)

* fix(ci): route npm release source check per dispatch and serialize its oxlint shards

* test: allocate npm preflight routing regression lines

* docs(ci): trim npm preflight hosted routing notes
wangmiao0668000666 pushed a commit to wangmiao0668000666/openclaw that referenced this pull request Nov 6, 2026
…s oxlint shards (openclaw#192601)

* fix(ci): route npm release source check per dispatch and serialize its oxlint shards

* test: allocate npm preflight routing regression lines

* docs(ci): trim npm preflight hosted routing notes
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 P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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.

ci: npm release source check loses Blacksmith runners; hosted fallback lacks ripgrep

1 participant