Repository navigation
fix(linux): restore native onboarding CI coverage - #164640
Conversation
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.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed October 3, 2026, 8:55 PM ET / October 4, 2026, 00:55 UTC (Revision 2). ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherLinux 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +107, Docs +4, Config +2, Other +2. Total +115 across 6 files. View PR surface stats
Review metricsNone. Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
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.
|
@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; |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
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.
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).
first_run.py --gateway-onboardingpassed in 10.116s. The staged and compiled manifests matched; source hashes matched the reviewed patch.test_first_run.pypassed 8 tests locally in 0.662s; both new resource/launcher regressions reject the original fixture.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.pnpm deadcode:fullnow 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.