Skip to content

fix: align task-owner tests with installed service environment - #187967

Merged
shakkernerd merged 1 commit into
mainfrom
guest-task-owner-fixture
Oct 30, 2026
Merged

shakkernerd merged 1 commit into
mainfrom
guest-task-owner-fixture

Conversation

@shakkernerd

@shakkernerd shakkernerd commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The scheduled-task stop suite fails its two validated-owner cases after #187901: when an owner becomes unknown or loses its lease, the test still expects PID start-time probes to receive the inspecting CLI’s profile. The installed launcher in this fixture declares only the Gateway port, so the service environment correctly omits that caller-only selector.

User Impact

This is a test-only correction with no change to Windows task operations. It restores the existing checks for completing termination of the captured process while retaining the exact PID, five-second probe bound, graceful-before-forced ordering, foreign-process exclusion, and prohibition on a kill-tree fallback.

Why This Change Was Made

The assertion now names the fixture’s expected service environment directly: its user directory, application-data directory, and installed port. It remains an exact environment comparison and does not derive its answer from the production merge helper. The shared launcher and production environment-isolation contract remain unchanged.

The explicit assertion needs five additional test lines, covered by one matching allocation record. No test case or helper is added.

Evidence

The clean baseline at 9559c51 ran all 30 stop-suite cases: 28 passed and these two failed solely because the expected environment contained OPENCLAW_PROFILE=default. The fixture, environment merge, process owner and determining test inputs are unchanged at this branch’s fe8a0ce base.

On the candidate, remote formatting, lint, and selected production/test type checks passed. All 131 cases across the seven selected files passed: the full scheduled-task stop suite, its shared-fixture consumers, and the environment-merge owner. The six-file daemon cohort took 36.63 seconds; the complete selected test batch took 39.49 seconds. Hosted CI passed on this exact head. These are Linux-hosted tests with mocked Windows process boundaries; they do not claim a real Windows Task Scheduler run.

@clawsweeper

clawsweeper Bot commented Oct 30, 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 gateway Gateway runtime size: XS labels Oct 30, 2026
@shakkernerd shakkernerd self-assigned this Oct 30, 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. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 30, 2026
@shakkernerd
shakkernerd merged commit 0078d6a into main Oct 30, 2026
126 checks passed
@shakkernerd
shakkernerd deleted the guest-task-owner-fixture branch October 30, 2026 00:26
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Fixed: scheduled-task owner termination tests now expect the installed service environment.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 30, 2026
…law#187967)

Restore the scheduled-task stop fixture’s exact installed-service environment assertion while preserving its process identity and termination controls.

Refs openclaw#187901.
RomneyDa added a commit that referenced this pull request Oct 30, 2026
Restore the scheduled-task stop fixture’s exact installed-service environment assertion while preserving its process identity and termination controls.

Refs #187901.

(cherry picked from commit 0078d6a)
Co-authored-by: RomneyDa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. gateway Gateway runtime size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant