Repository navigation
fix(cron): complete timeout test observation phase - #140076
Conversation
Advance both existing cleanup phases before awaiting the real command result, matching the execution sibling. Preserve readiness, timeout and descendant-exit assertions without changing runtime code or deadlines. Secretless hosted proof reproduces the original frozen observation poll and confirms candidate completion; 79 owner and sibling tests plus changed checks pass. Related: #139957, #138411.
|
🦞👀 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 September 6, 2026, 7:51 AM ET / 11:51 UTC. ClawSweeper reviewWhat this changesAdvance the cron timeout test’s simulated clock through exit observation so it can finish checking command timeout and descendant cleanup. Merge readiness✅ Ready for maintainer review Keep open: current main still needs this focused test repair. The added clock advance matches the cleanup lifecycle and preserves the existing assertions; no actionable defect was found. Priority: P3 Review scores
Verification
How this fits togetherCron command jobs pass scheduled commands to OpenClaw’s process runner. When a command times out, the runner terminates its process group and observes cleanup before returning the result. flowchart TD
A[Scheduled command] --> B[Cron command runner]
B --> C[Process runner]
C --> D[Timeout and graceful termination]
D --> E[Force termination and exit observation]
E --> F[Timeout result]
G[Test clock] --> D
G --> E
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +2. Total +2 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the existing cleanup lifecycle and let the test clock cover both bounded phases while retaining timeout and descendant-exit checks. Do we have a high-confidence way to reproduce the issue? Yes, from source: when process-group observation continues past the first grace interval, current main awaits a promise whose remaining timer is frozen. The reported controlled probe exercises that condition; this review did not execute it. Is this the best way to solve the issue? Yes. Advancing the existing observation interval matches the sibling test without increasing deadlines, weakening assertions, or altering production behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 46c39bcfa5a7. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Include the independently verified cron fixture repair from openclaw#140076 for fresh CI. Keep the reviewed file-fetch and media filename files byte-identical to the completed Unicode proof and preserve contributor ancestry.
* commit '3ed964c8ca6206d26ecc0b6567ccd1389d9948fc': (36 commits) refactor(plugins): unify install config snapshot preparation (openclaw#140081) fix: cloud provisioning stays failed after temporary storage recovers (openclaw#140021) fix(ci): preflight job outputs exceed 1 MiB on full-plan pull requests (openclaw#140018) refactor: consolidate command and provider helpers (openclaw#140072) fix(doctor): replace unavailable TUI cleanup advice (openclaw#140074) fix(plugins): avoid scoped pack failures and missing runtime entries (openclaw#140016) fix: clarify background command timeouts (openclaw#140022) fix(workboard): refresh board navigation while retaining drafts (openclaw#139952) fix: preserve newer chat drafts when rewind completes (openclaw#140066) feat(transcripts): browse and export saved meeting archives (openclaw#139875) fix(cron): complete timeout test observation phase (openclaw#140076) fix(macos): show the full automation count (openclaw#139692) fix: native worker turns fail to load WebSocket transport (openclaw#140071) fix(cli): complete quoted Bash option values (openclaw#140034) fix(chat): show command instructions while pending (openclaw#140041) refactor(cli): use canonical resume result schema (openclaw#140056) fix: restore package acceptance across install runtimes (openclaw#140062) refactor(auto-reply): keep model-selection fixtures in tests (openclaw#140069) fix(plugins): remove owned aliases before uninstalling files (openclaw#140065) fix: completed replies hang when context-engine cleanup stalls (openclaw#140023) ...
Advance both existing cleanup phases before awaiting the real command result, matching the execution sibling. Preserve readiness, timeout and descendant-exit assertions without changing runtime code or deadlines. Secretless hosted proof reproduces the original frozen observation poll and confirms candidate completion; 79 owner and sibling tests plus changed checks pass. Related: openclaw#139957, openclaw#138411.
Related: #139957, #138411
What Problem This Solves
Resolves a problem where the cron process-group timeout test hangs after process cleanup gains a separate exit-observation phase. This caused a 120-second CI failure on an otherwise unrelated PR.
Why This Change Was Made
Advance the fixture clock through both existing cleanup phases, matching the sibling execution test. The test still waits for a real descendant before firing the same command deadline, then checks the timeout result and descendant exit. Production code, timeout values, and existing assertions are unchanged.
User Impact
No runtime behavior change. The cron test now completes the existing cleanup lifecycle instead of waiting on a frozen observation timer.
Evidence
Secretless Linux proof used the same source base, Node 24.20.0 and pnpm 12.3.4 for both runs. The controlled probe keeps the real shell and descendant and holds only the owned process group's visibility through the first grace phase; actual termination signals are forwarded.
Production delta: 0. Test delta: +2 lines.