Skip to content

test(telegram): release held ingress turns when cases time out - #170943

Merged
steipete merged 1 commit into
mainfrom
dbasync/cihang
Oct 13, 2026
Merged

steipete merged 1 commit into
mainfrom
dbasync/cihang

Conversation

@steipete

@steipete steipete commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

A timed-out Telegram ingress test can leave its deliberately held downstream turn unresolved, causing subsequent cleanup hooks to consume the rest of a 60-minute CI job.

User Impact

CI reports the original test failure without leaving a held fixture turn to stall later cases. This changes test infrastructure only.

Why This Change Was Made

Vitest aborts the test context when a case times out, but a pending promise does not unwind the test body's finally block. The two coalescing cases that hold downstream work now use the existing withinTest helper so cancellation reaches their gate-release cleanup. The shared releaseIngressCase continues to join actual active turns. Redundant fixture completion promises and duplicate joins are removed; the lane's real ordering promise remains.

No assertions, retries, timeout budgets, runtime ownership, or production validation checks change. The earlier missing-runtime-config trigger was repaired separately in 989e66a; this change prevents future failures from cascading through cleanup.

Evidence

The observed 60.45-minute job passed its first coalescing case, then timed out the held-album case at 120 seconds. The following held-forward case timed out, and subsequent cleanup hooks repeatedly consumed 180 seconds. The 24-hour census found this family in 26 jobs totaling 1,493.73 elapsed runner-minutes. Elapsed job time includes useful work; observed timed-out cases in the longest serial file per job account for 1,315.34 minutes.

  • Changed-file oxfmt, oxlint, and git diff --check: passed.
  • Codex autoreview: scoped-clean (one round). The additional synthetic timeout probe was refused before tests by the isolated-runtime preparation safety check; it produced no failure-path result and was not retried. No proof run remains queued.
  • PR CI run 38383040449: required gate and static checks passed. The full changed Telegram test file passed all 20 cases (64.04s Vitest; 65.77s wrapper), including held-album 1.288s and held-forward 0.402s. No retries.
Measure Before After
Gateway main-thread SQLite calls in changed code 0 0
Warmed statements / requests Not measured: test-only change Production SQL paths unchanged
Production LOC 0 0

Test/support diff: +43 / -30 lines. No schema, update, plugin-loading, or service-lifecycle change; an update cell is not applicable.

@clawsweeper

clawsweeper Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T10:26:47.692032Z f59bfbf PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added channel: telegram Channel integration: telegram size: S labels Oct 13, 2026
@steipete
steipete merged commit 55a3be4 into main Oct 13, 2026
111 checks passed
@steipete
steipete deleted the dbasync/cihang branch October 13, 2026 16:13
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 14, 2026
…law#170943)

Propagate test cancellation through held ingress waits so finally releases fixture gates. Remove redundant completion promises and duplicate joins. Full changed-file CI passes all 20 cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: telegram Channel integration: telegram size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant