Repository navigation
test(cron): model a completed delivery in the once stream composition test - #208309
Merged
Merged
Conversation
… test #208193 disarms once triggers only on a succeeded completion; the mocked run reported no delivery outcome for its default announce delivery.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Collaborator
Author
|
Landed. #208193 made a once trigger disarm only after a succeeded completion. This test's mocked run reported no delivery outcome for its default announce delivery, so the watcher correctly stayed armed. The mock now reports |
tideclaw-bot
pushed a commit
that referenced
this pull request
Nov 29, 2026
Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 83b977a2-cda5-47cf-a092-b7b9110d7b84 (cherry picked from commit 39d230c) Release adaptation: Apply the upstream #208309 test-only companion: a successful default announce in the once-stream composition must report delivered=true. Companions: Included fixture fix-up from 4bd7eaf (#208309); broad UI/Doctor PR-number matches are unrelated. Co-authored-by: RomneyDa <[email protected]>
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 30, 2026
… test (openclaw#208309) ## What Problem This Solves Scheduled CI run 46257208997 fails `src/cron/service.stream-validation.test.ts` › "composes a final batch and rotates source identity when a once trigger disables the stream": `expected true to be false` at the `enabled` check. openclaw#208193 made a once trigger disarm only when the whole run completes successfully (`completionStatus === "succeeded"`), so a failed required delivery keeps the watcher armed. This test's job uses the default `announce` delivery, but its mocked agent run returns `{ status: "ok" }` with no delivery outcome. The run's delivery status is therefore `unknown`, completion is not `succeeded`, and the watcher correctly stays armed. ## Fix Test-only. The mocked run now reports `delivered: true`, which models the completed run the test means. The subject (final batch composition, disable and source-identity rotation) is unchanged. No product code changes. ## Why main went red openclaw#208193's PR CI selected changed-file tests only. Its node lanes ran `service.trigger-eval.test.ts` and other cron tests, but never this file, which reaches `timer-trigger.ts` only through `CronService`. The scheduled full run was the first to execute it. ## Evidence - origin/main: this test fails (1 failed, 11 passed). - With the fix: 12/12 pass. - Parent of openclaw#208193: the original test passes (12/12), and the updated test also passes there. Co-authored-by: Ayaan Zaidi <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Scheduled CI run 46257208997 fails
src/cron/service.stream-validation.test.ts› "composes a final batch and rotates source identity when a once trigger disables the stream":expected true to be falseat theenabledcheck.#208193 made a once trigger disarm only when the whole run completes successfully (
completionStatus === "succeeded"), so a failed required delivery keeps the watcher armed. This test's job uses the defaultannouncedelivery, but its mocked agent run returns{ status: "ok" }with no delivery outcome. The run's delivery status is thereforeunknown, completion is notsucceeded, and the watcher correctly stays armed.Fix
Test-only. The mocked run now reports
delivered: true, which models the completed run the test means. The subject (final batch composition, disable and source-identity rotation) is unchanged. No product code changes.Why main went red
#208193's PR CI selected changed-file tests only. Its node lanes ran
service.trigger-eval.test.tsand other cron tests, but never this file, which reachestimer-trigger.tsonly throughCronService. The scheduled full run was the first to execute it.Evidence