Skip to content

fix(ci): validate admitted cron command lifetime - #201724

Merged
vincentkoc merged 1 commit into
mainfrom
fix/cron-command-admission-test-20261119
Nov 19, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/cron-command-admission-test-20261119

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The cron command source test expects removing an OCID device to terminate a command that was already admitted. The captured-admission policy in #201377 intentionally lets that work finish and rechecks policy for fresh execution. The old test waits for the command timeout under both Node and Bun.

User Impact

No production behavior changes. The test now checks successful completion of admitted work and rejection of a later run after device removal.

Why This Change Was Made

Replace the infinite child timer with a real child that waits on a file event. It installs its watcher before publishing the started marker. The parent removes the device, releases the child, and requires successful completion plus its output. The existing fresh-run refusal must preserve that output unchanged.

Production +0/-0; tests +12/-7. No new polling, timeout relaxation, mocks, or runtime policy owner.

Related: #199959

Evidence

  • Full pin validation reproduces the stale expectation under Node and Bun: the admitted child reaches its configured 60-second timeout.
  • Independent source review passed for the real-child completion, fresh admission, and cleanup paths. Local ClawSweeper completed 89e63e0cdf96313f2b08af67bf85c1ac29647851..47e3d30d199d80c540832081d6a882bdc66fff7e with no correctness or security findings.
  • Native commit formatting and line-cap hooks and git diff --check passed.
  • Exact-head CI passes the repaired real-command case under Bun (reported case time 2.115 seconds). Other checks are finishing. Repaired-head Node coverage remains pending for full pin qualification; local dependencies are unqualified and file-only wall time is unmeasured.

@vincentkoc vincentkoc self-assigned this Nov 19, 2026
@clawsweeper

clawsweeper Bot commented Nov 19, 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 Nov 19, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 19, 2026 08:42
@vincentkoc
vincentkoc enabled auto-merge (squash) November 19, 2026 08:45
@vincentkoc
vincentkoc merged commit b8a2e78 into main Nov 19, 2026
244 checks passed
@vincentkoc
vincentkoc deleted the fix/cron-command-admission-test-20261119 branch November 19, 2026 08:52
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant