Skip to content

fix(ci): Linux service ownership tests fail before inspection - #147398

Merged
vincentkoc merged 1 commit into
mainfrom
fix/ci-linux-service-fixtures-20260913
Sep 13, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/ci-linux-service-fixtures-20260913

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 13, 2026 •

Copy link
Copy Markdown
Member

Related: #137374

What Problem This Solves

Fixes Linux CLI service-ownership tests that fail before reaching their intended inspection assertions.

User Impact

No runtime behavior changes. This restores existing CI coverage needed to validate the Windows launcher repair.

Why This Change Was Made

The two CLI fixtures now model the existing nonactivating systemd manager-version probe using its strict shared test fixture and a synthetic bus address. The install suite also clears queued capability responses between cases. Existing ownership assertions are unchanged; no production code or workflows are modified.

Evidence

  • The original failure is retained in CI job 103783696479: 22 failures in these two files, independently attributed to missing transport fixtures and leaked one-shot responses. Both original test blobs are unchanged at this branch's main base.
  • Independent scoped review found no actionable P0-P2 issues. Targeted formatting and lint pass.
  • Local execution stopped before tests because the borrowed dependency installation lacks exports required by current main. The shared installation was not changed.
  • Clean-machine execution at aafc527573cd75e0f23f15740b00d513b1ed4f54: both full files in original order, 103 passed, 0 failed, 0 skipped. Structured output confirms all 18 transport-regression cases passed.
  • Selected check:changed gates passed, including the config-cli and services type graphs, formatting, lint, guards, and dead-export scans.
  • Exact-head CI passed, including the required openclaw/ci-gate. Final maintainer and automated review found no actionable patch defects.

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

clawsweeper Bot commented Sep 13, 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 cli CLI command changes size: XS maintainer Maintainer-authored PR labels Sep 13, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review September 13, 2026 20:46
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 4:58 PM ET / 20:58 UTC.

ClawSweeper review

What this changes

Updates Linux service-install and update tests to simulate systemd transport discovery and clear queued capability responses between install cases.

Merge readiness

✅ Ready for maintainer review

Keep open: this is a focused, still-needed fixture repair supporting the linked Windows fix. The ownership assertions remain intact, and no actionable patch defect was found.

Priority: P3
Reviewed head: aafc527573cd75e0f23f15740b00d513b1ed4f54

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused fixture repair with preserved assertions, reported targeted validation, and no actionable correctness or security finding.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored PR changes test fixtures only, so the external-contributor runtime-proof gate does not apply; the reported full-file run exercises the repaired inspection setup without claiming a live service upgrade.
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 PR changes test fixtures only, so the external-contributor runtime-proof gate does not apply; the reported full-file run exercises the repaired inspection setup without claiming a live service upgrade.
Evidence reviewed 7 items Verified introduced scope: The merge-base-to-head diff changes only fixture setup in the two test files; it does not change assertions, production code, dependencies, or workflows.
Production boundary explains the fixture failure: Command inspection resolves the user transport before invoking the existing mocked bus-query boundary. Transport discovery directly calls execFileUtf8 for a nonactivating Manager.Version probe, explaining why the older fixture could fail before its ownership assertions.
Existing strict fixture and history: The shared fixture asserts the exact busctl command and nonactivating version-query arguments. Blame and the patch against the recorded parent identify its existing source history; the PR reuses that fixture.
Findings None None.
Security None None.

How this fits together

OpenClaw inspects the installed Gateway service before installation or update admission. These tests supply simulated systemd responses while checking ownership decisions and whether configuration or state may be changed.

flowchart TD
  A[Install and update test cases] --> B[Synthetic session bus]
  B --> C[Strict manager version fixture]
  C --> D[Real service inspection]
  D --> E[Ownership decision]
  E --> F[Assert allowed operation or unchanged state]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +10. Total +10 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 10 0 +10
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 10 0 +10

Review metrics

None.

Technical review

Best possible solution:

Keep transport simulation at the existing strict fixture boundary so the real inspection path continues to enforce ownership and state-preservation contracts.

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

Yes, from source: the existing Linux inspection path performs transport discovery before the fixtures' mocked bus calls, and the install suite can retain queued one-shot capability responses. Tests were not executed during this read-only review.

Is this the best way to solve the issue?

Yes. Reusing the strict shared probe and resetting the fixture queue repairs setup without bypassing production inspection or weakening assertions.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is a narrow test-fixture correction with no production behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; 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 PR changes test fixtures only, so the external-contributor runtime-proof gate does not apply; the reported full-file run exercises the repaired inspection setup without claiming a live service upgrade.

Label justifications:

  • P3: This is a narrow test-fixture correction with no production behavior change.
  • 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 MEMBER-authored PR changes test fixtures only, so the external-contributor runtime-proof gate does not apply; the reported full-file run exercises the repaired inspection setup without claiming a live service upgrade.

Evidence

What I checked:

  • Verified introduced scope: The merge-base-to-head diff changes only fixture setup in the two test files; it does not change assertions, production code, dependencies, or workflows. (src/cli/daemon-cli/install.integration.test.ts:151, aafc527573cd)
  • Production boundary explains the fixture failure: Command inspection resolves the user transport before invoking the existing mocked bus-query boundary. Transport discovery directly calls execFileUtf8 for a nonactivating Manager.Version probe, explaining why the older fixture could fail before its ownership assertions. (src/daemon/systemd-command-query.ts:30, aafc527573cd)
  • Existing strict fixture and history: The shared fixture asserts the exact busctl command and nonactivating version-query arguments. Blame and the patch against the recorded parent identify its existing source history; the PR reuses that fixture. (src/daemon/systemd-user-bus.test-support.ts:16, ccd3fbb9181e)
  • Ownership coverage and cleanup preserved: The update table retains successful owned-service selection, rejection cases, unchanged-state snapshots, and the assertion that no LoadUnit call occurs. Existing afterEach hooks restore spies and environment stubs; install teardown restores the newly captured bus variable. (src/cli/update-cli/update-command-run.test.ts:638, aafc527573cd)
  • Still necessary on fetched main: Comparing the two test files against fetched main shows the same fixture additions remain absent there. The inspected production owners and shared fixture have no differences between fetched main and this head. No merged replacement is established. (src/cli/daemon-cli/install.integration.test.ts:159, 5469328b6c31)
  • Contribution-policy context: CONTRIBUTING.md permits test-only repairs needed to validate a new fix. The supplied discussion for fix(daemon): restart Windows gateways with redirected launcher output #137374 identifies these unchanged Linux fixtures as a separate validation failure for its Windows launcher repair. (CONTRIBUTING.md:25, aafc527573cd)

Likely related people:

  • Peter Steinberger: Raw commit ccd3fbb adds src/daemon/systemd-user-bus.test-support.ts:16 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ccd3fbb9181e; files: src/daemon/systemd-user-bus.test-support.ts)

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 7471ac6 into main Sep 13, 2026
186 checks passed
@vincentkoc
vincentkoc deleted the fix/ci-linux-service-fixtures-20260913 branch September 13, 2026 21:05
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit to Alix-007/openclaw that referenced this pull request Sep 13, 2026
…1-prep

* commit '912ae8d96e5964dfdcdf419b79613fb941cdf0a8': (350 commits)
  fix: keep workspace preparation responsive during cleanup (openclaw#147358)
  docs: alphabetize donors and sponsors and add Red Hat logo (openclaw#147302)
  fix(plugins): retain update authority through doctor effects (openclaw#144316)
  refactor(qa): share Multipass mount retry lifecycle (openclaw#147084)
  fix(memory): emit one JSON result for command failures (openclaw#147366)
  improve(plugins): speed up cold metadata loading (openclaw#147411)
  fix(sessions): avoid duplicate work after waited child replies (openclaw#147394)
  fix(agents): retain outstanding child results in parent context (openclaw#112623)
  test: preserve native workflow loader selection (openclaw#147403)
  fix: reduce repeated work while polling session pull requests (openclaw#147373)
  test(qa): preserve task cancellation across process replacement (openclaw#147382)
  fix: prevent sidebar refresh storms during session activity (openclaw#147400)
  refactor: simplify skills CLI formatting (openclaw#147368)
  fix: prevent Git checkout certificate failures behind egress proxy (openclaw#147410)
  fix(qa): stop live threads after their process leader exits (openclaw#147386)
  refactor(release): share agent turn retry lifecycle (openclaw#147076)
  fix(ui): keep uploaded images aligned with their prompts (openclaw#147389)
  fix(fs): guard skill reads and bound worker bundle staging (openclaw#147336)
  fix(ci): restore Linux service ownership fixtures (openclaw#147398)
  fix(plugins): preserve manifest permissions when building plugins (openclaw#147393)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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