Repository navigation
fix(telegram): check the correct preload in the polling worker startup test - #208936
Conversation
…p test Check the full Node worker argument list against the registered loader URL. Keep the source entry, Bun arguments, and message lifecycle assertions intact. Co-authored-by: daniel-lxs <[email protected]>
…p test Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 2f639dcc-5e83-44d0-beff-3daf24f2bd83
|
🦞👀 |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: passed. What this changesUpdates the Telegram worker startup test to expect the registered OpenClaw preload URL instead of a URL containing tsx. Example: Run the Telegram ingress worker startup test under Node with prepared workers.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR repairs a stale assertion still present on main, preserves the intended runtime behavior, and introduces no actionable defects. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherTelegram's worker factory obtains its entry and preload arguments from the shared runtime owner; this test captures the Worker constructor arguments and checks startup and lifecycle contracts. flowchart TD
A[Telegram worker factory] --> B[Shared runtime launch owner]
B --> C[Worker entry and preload URL]
C --> D[Worker constructor]
D --> E[Telegram polling worker]
F[Startup regression test] --> D
Technical reviewBest possible solution: Retain the existing startup regression and compare its Node arguments with the registered preload URL. Do we have a high-confidence way to reproduce the issue? Main supplies an OpenClaw runtime-worker-loader URL to an assertion requiring tsx in that URL, establishing the mismatch directly from source; no target code was executed during this review. Is this the best way to solve the issue? This is the smallest complete repair: it updates the existing consumer test without changing production loading or weakening runtime-specific argument checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 674ae3e14b9d. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +3. Total +3 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall readiness starts with the lower of the proof and patch scores. It is capped at 3/6 if the fix is partial, the change offers little benefit, a product decision is still open, or the PR reverses an earlier decision without saying why. ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 30, 2026, 2:11 AM ET / 07:11 UTC. |
…ogic * commit 'f7ccd914102ab408606c45c0aa3adbd8427051eb': (1290 commits) refactor(ios): remove unreachable settings and automation controls (#208958) fix: verify deferred activation in package recovery acceptance (#208901) improve(ci): avoid unused adaptive scoring work (#208926) chore(ui): refresh control ui locales (#208959) test(agents): verify user recall and file state across OpenAI compactions (#208909) fix(ui): update the sidebar on startup and recovery screens (#207967) fix(whatsapp): quote the first queued swipe-reply answer (#208791) test(memory-wiki): generate metadata replacement transitions (#208932) fix(ui): hide Claude injected context from chat (#207234) fix(ui): count people instead of emoji in reaction badges (#207235) fix: keep Daybreak when another provider's model list fails (#208883) test(telegram): check the registered preload at polling worker startup (#208936) fix(qa): test Slack verbosity with one direct shell call (#208023) fix(qa): wait for Telegram messages before checking their formatting (#208024) feat(ios): show build details at the bottom of Settings (#208944) chore(ui): refresh control ui locales (#208937) fix: goals stop after native child-result handoffs (#193024) fix(ui): show current tool actions in collapsed chat activity (#208925) improve(ios): put About last in Settings (#208928) test(memory-wiki): generate human-note preservation regressions (#208921) ...
Related: #208789 and #154180. Failing hourly Telegram shard
What Problem This Solves
The hourly extension suite reports a Telegram polling startup failure even when the real source worker completes
getUpdates. The test expectstsxin the Node launch arguments; the caller now passes OpenClaw’s loader URL instead.User Impact
No change to Telegram polling. The test stops reporting a false failure while still rejecting a missing or incorrect preload, extra arguments, or a missing worker entry. No user action is needed.
Why This Change Was Made
I checked the original source-startup bug (#154180), its fix (#154286), and the loader change in #208789 (
93f5177b9233d). The latter deliberately movedtsxresolution off the calling thread to avoid synchronous filesystem work and keep launches independent of the working directory. A worker thread loadstsx/esmthrough the registered preload. Restoring a directtsximport would undo that decision.The Telegram test now compares the complete Node argument list with
--importand the exact URL ofworkerThreadLoaderfor the active generation. The existing worker-entry, Bun--no-install, message forwarding, and shutdown assertions are unchanged. One test file, +4/-1 lines; no production changes.Evidence
I ran the comparison detached on the same AWS Crabbox with Node 24.22.1.
25bac1ab758150ad93dpnpm test extensions/telegram/src/telegram-ingress-worker.test.ts --maxWorkers=1tsx, gotdist/infra/runtime-worker-loader.jsgetUpdates, acknowledged update 42, exited cleanlyThe scoped typecheck passed. The combined run stopped at the CI lint tool’s pinned Bun download; the separate exact-head run passed type-aware oxlint (0 warnings, 0 errors), formatting, and the complete affected file. I released the AWS lease and removed the temporary checkout and proof files. Not verified: Bun parity, live Telegram, the full hourly shard, or an automated local reviewer verdict.
Co-authored with @daniel-lxs.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by