Skip to content

fix(linux): restore native onboarding CI coverage - #164640

Merged
steipete merged 2 commits into
mainfrom
fix/w126-linux-onboarding
Oct 4, 2026
Merged

steipete merged 2 commits into
mainfrom
fix/w126-linux-onboarding

Conversation

@steipete

@steipete steipete commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes the Linux App CI onboarding check timing out at “OpenClaw needs attention” after #164401 added the verified bundled runtime. The failure in run https://github.com/openclaw/openclaw/actions/runs/37160942639 also reproduces on clean main before any Bun execution.

User Impact

No production behavior changes. Affected pull requests regain native onboarding coverage; the existing navigation, window-control, and Gateway authority assertions remain intact.

Why This Change Was Made

Plain Cargo intentionally embeds an empty runtime sentinel unless the shared stager runs first. CI omitted that staging, and the relocated fixture omitted runtime resources. The fixture also still expected the old installer/Doctor sequence instead of Linux's current explicit runtime activation.

Stage before the native build, carry the packaged resources into the private fixture, and exercise the real verified Bun with a canonical launcher and synthetic CLI/service. The fixture now checks the exact runtime path, revision, absent runtime pin, and single fresh installation. Production LOC is unchanged. This workflow is path-filtered PR/manual coverage, not a main push or hourly CI job.

Evidence

Linux Testbox: https://github.com/openclaw/openclaw/actions/runs/37165314265 (Ubuntu 24.04; the hosted job uses Ubuntu 22.04).

  • Exact two-command failing step: Gateway switching passed in 59.537s; first_run.py --gateway-onboarding passed in 10.116s. The staged and compiled manifests matched; source hashes matched the reviewed patch.
  • Python fixtures: 30 passed in 0.732s. The changed test_first_run.py passed 8 tests locally in 0.662s; both new resource/launcher regressions reject the original fixture.
  • Node dashboard/runtime/stager checks: 13 passed in 0.053s.
  • cargo +stable test --locked --all-targets: 346 passed, 9 existing ignored; 65.752s including compilation. Native build passed in 8.406s after 1.577s runtime staging.
  • Hosted Linux App run https://github.com/openclaw/openclaw/actions/runs/37165665870 passed all three jobs on the initial head, including the exact Ubuntu 22.04 onboarding step.
  • Initial CI run 37165699945 failed because Knip could not infer the fixture launch from Python. Registering that exact executable root fixes the failure; pnpm deadcode:full now passes locally. The fixture and native proof inputs are unchanged.
  • node scripts/check-changed.mjs, pnpm check:workflows, git diff --check, and P2 Codex autoreview passed; autoreview was scoped-clean.

The synthetic CLI does not install a host service; the real native runtime admission, seeding, launcher binding, and graphical onboarding paths execute. No timeout increases, skipped checks, or production changes.

Stage the verified bundled runtime before compiling the CI app and carry its resources into the relocated onboarding fixture. Update the synthetic installer and CLI to exercise canonical launcher binding and fresh runtime activation, preserving native navigation and authority assertions.

Proof: exact Gateway switching and onboarding commands pass on Linux Testbox; 30 Python, 13 Node, and 346 Rust tests pass (9 existing ignored). P2 scoped-clean review. Production code is unchanged.
@clawsweeper

clawsweeper Bot commented Oct 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.

@steipete
steipete marked this pull request as ready for review October 4, 2026 00:41
@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 Oct 4, 2026
@clawsweeper

clawsweeper Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 3, 2026, 8:55 PM ET / October 4, 2026, 00:55 UTC (Revision 2).

ClawSweeper review

What this changes

The PR stages the verified Linux runtime before native CI builds and updates onboarding fixtures and dead-code configuration to exercise the real Bun launcher.

Merge readiness

✅ Ready for maintainer review

This remains a useful, focused CI repair: current main lacks the required staging and fixture updates. The latest Knip registration matches the Python-launched executable, preserves the earlier native proof inputs, and introduces no actionable finding.

Priority: P2
Reviewed head: b6422d81309750ac6ce08a742eee9c298cc203e5

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with relevant native boundary proof, preserved security assertions, and no actionable findings.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (linked_artifact): The captured Testbox report and verified Ubuntu 22.04 hosted step exercise real native onboarding, verified Bun admission, and launcher binding with a synthetic CLI/service. The latest head changes only Knip registration, preserving those proof inputs. Raw artifact logs were inaccessible to this reviewer; no stored product data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The captured Testbox report and verified Ubuntu 22.04 hosted step exercise real native onboarding, verified Bun admission, and launcher binding with a synthetic CLI/service. The latest head changes only Knip registration, preserving those proof inputs. Raw artifact logs were inaccessible to this reviewer; no stored product data contract changes.
Evidence reviewed 7 items Pinned change ownership: Read the complete introduced diff from the pinned merge base to the exact PR head. The follow-up from the previously reviewed head changes only the Knip executable-root registration; native fixture and workflow proof inputs remain unchanged.
Repair remains necessary on main: Fetched main still builds with plain Cargo and retains the old fixture that omits desktop-runtime resources and expects Doctor. The inspected build owner deliberately emits an empty runtime sentinel without staging, while current onboarding uses explicit bundled-runtime activation.
Fixture exercises the intended boundary: The onboarding driver copies packaged runtime resources, supplies the canonical launcher, and checks the runtime path, revision, absent pin, and single fresh installation. The native scenario retains canonical-base navigation, reload, window controls, and sibling-path denial. CLI/service installation is synthetic; runtime admission and launcher binding execute in the real app.
Findings None None.
Security None None.

How this fits together

Linux companion CI builds the native desktop app and drives onboarding in an isolated graphical session. Its fixtures supply a synthetic CLI and service while the app performs real runtime admission, launcher binding, navigation, and native actions.

flowchart TD
  A[Linux CI checkout] --> B[Verified runtime staging]
  B --> C[Native app build]
  C --> D[Private onboarding environment]
  E[Synthetic CLI and service] --> D
  D --> F[Real Bun and native onboarding]
  F --> G[Navigation and authority assertions]
  G --> H[CI result]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +107, Docs +4, Config +2, Other +2. Total +115 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 119 12 +107
Docs 1 4 0 +4
Config 1 3 1 +2
Generated 0 0 0 0
Other 1 2 0 +2
Total 6 128 13 +115

Review metrics

None.

Technical review

Best possible solution:

Keep runtime staging with the existing build owner and preserve native onboarding coverage through an isolated CLI/service fixture.

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

Yes, from source: unstaged Cargo builds embed an empty runtime sentinel, and the old relocated fixture omits resources required by current onboarding. The cited hosted failure corroborates this path; no local execution was performed.

Is this the best way to solve the issue?

Yes. Reusing the verified stager and correcting the isolated fixture repairs the CI boundary while preserving production behavior and existing authority assertions.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The captured Testbox report and verified Ubuntu 22.04 hosted step exercise real native onboarding, verified Bun admission, and launcher binding with a synthetic CLI/service. The latest head changes only Knip registration, preserving those proof inputs. Raw artifact logs were inaccessible to this reviewer; no stored product data contract changes.

Label justifications:

  • P2: This restores a bounded native CI coverage path without changing production behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The captured Testbox report and verified Ubuntu 22.04 hosted step exercise real native onboarding, verified Bun admission, and launcher binding with a synthetic CLI/service. The latest head changes only Knip registration, preserving those proof inputs. Raw artifact logs were inaccessible to this reviewer; no stored product data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The captured Testbox report and verified Ubuntu 22.04 hosted step exercise real native onboarding, verified Bun admission, and launcher binding with a synthetic CLI/service. The latest head changes only Knip registration, preserving those proof inputs. Raw artifact logs were inaccessible to this reviewer; no stored product data contract changes.

Evidence

What I checked:

  • Pinned change ownership: Read the complete introduced diff from the pinned merge base to the exact PR head. The follow-up from the previously reviewed head changes only the Knip executable-root registration; native fixture and workflow proof inputs remain unchanged. (config/knip.config.ts:25, b6422d813097)
  • Repair remains necessary on main: Fetched main still builds with plain Cargo and retains the old fixture that omits desktop-runtime resources and expects Doctor. The inspected build owner deliberately emits an empty runtime sentinel without staging, while current onboarding uses explicit bundled-runtime activation. (.github/workflows/linux-app.yml:137, c5639b503bf5)
  • Fixture exercises the intended boundary: The onboarding driver copies packaged runtime resources, supplies the canonical launcher, and checks the runtime path, revision, absent pin, and single fresh installation. The native scenario retains canonical-base navigation, reload, window controls, and sibling-path denial. CLI/service installation is synthetic; runtime admission and launcher binding execute in the real app. (apps/linux/tests/gateway_switch.py:519, b6422d813097)
  • Native after-fix proof: The captured PR body reports the exact Gateway-switching and onboarding commands passing on Ubuntu 24.04 Testbox, including runtime identity checks. Independently verified hosted run https://github.com/openclaw/openclaw/actions/runs/37165665870 completed successfully at the prior reviewed head, with the combined Gateway-switching/onboarding step and all three jobs successful on the unchanged proof inputs. Raw job-log retrieval was blocked by the artifact-host allowlist; this reviewer limitation does not invalidate the detailed report and verified scenario results. (.github/workflows/linux-app.yml:163, 7217509dfbab)
  • Existing failure and focused regressions: Verified that the cited earlier run failed at Test native Gateway switching. The PR reports both new resource/launcher regressions rejecting the original fixture, eight focused Python tests passing in 0.662 seconds, and the full dead-code check passing after the executable-root registration. (apps/linux/tests/test_first_run.py:13, b6422d813097)
  • Feature-history routing: Current-main history connects Peter Steinberger to the bundled runtime owner and earlier standalone installer work. The merged feature at feat: use bundled Bun in the Linux companion #164401 provides the production behavior that this fixture repair now validates; it does not supersede this CI repair. Some deeper historical blobs were unavailable, so no source-line introduction attribution is claimed. (apps/linux/src-tauri/build.rs:49, d9ccc498f15c)

Likely related people:

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

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 (1 earlier review cycle)
  • reviewed 2026-10-04T00:46:56.083Z sha 7217509 :: needs maintainer review before merge. :: none

Knip cannot infer the Python driver copying this CLI into its private install prefix. Register the executable entry alongside the other Linux proof drivers. The full dead-code check and P2 review pass; native fixture bytes and Linux proof remain unchanged.
@steipete

steipete commented Oct 4, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The onboarding proof passes on Linux Testbox and hosted Ubuntu 22.04. The follow-up registers the Python-launched fixture as a Knip executable root; pnpm deadcode:full, changed-file checks, and fresh P2 review pass. Please review the latest head.

@clawsweeper

clawsweeper Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Oct 4, 2026
@steipete
steipete merged commit 7a7bcb8 into main Oct 4, 2026
104 of 106 checks passed
@steipete
steipete deleted the fix/w126-linux-onboarding branch October 4, 2026 01:01
@steipete

steipete commented Oct 4, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 4, 2026
Linux App CI compiled an empty runtime manifest after openclaw#164401, and its relocated onboarding fixture still expected the former installer/Doctor contract.

Stage the verified runtime before compilation, preserve its resources in the private fixture, and exercise canonical launcher binding and explicit runtime activation with real bundled Bun. Register the Python-launched CLI fixture with Knip. Production code and native navigation/authority assertions remain unchanged.

Validation: exact Linux Gateway switching and onboarding commands, 30 Python tests, 13 Node checks, and 346 Rust tests passed (9 pre-existing ignored). Hosted Linux App and exact-head required CI passed; P2 review and ClawSweeper found no actionable issues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: linux P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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