Skip to content

test(partners): telegram message parsing, chunking and typing contract suite - #1776

Closed
evan188199-tech wants to merge 3 commits into
HKUDS:mainfrom
evan188199-tech:myfork/test/telegram-message-parsing-20261003
Closed

evan188199-tech wants to merge 3 commits into
HKUDS:mainfrom
evan188199-tech:myfork/test/telegram-message-parsing-20261003

Conversation

@evan188199-tech

Copy link
Copy Markdown
Contributor

Summary

  • Branch: myfork/test/telegram-message-parsing-20261003 (from multica agent worktree)
  • Changes: 4 files changed, 838 insertions(+)
  • test(partners): telegram message parsing, chunking and typing contract suite

Test Plan

  • CI passes
  • Manual verification of affected paths

Auto-generated PR from multica agent worktree

XZH added 3 commits October 3, 2026 15:37
…t suite

Red-first coverage for deeptutor/partners/channels/telegram.py (coverage
gap: 418 missing / 30.2%). 28 green tests pin current behavior; 2 red
tests encode real defects for a fix card:

1. media-group straggler arriving while _flush_media_group dispatches is
   buffered but never flushed (message dropped, buffer leaks)
2. typing indicator for an ACL-denied sender runs forever

No product code changed. Evidence in evidence/telegram-tests-20261003/.
…ed media-group stragglers

- start the typing indicator only for senders passing is_allowed: a
  denied sender never receives a reply, so the 4-second send_chat_action
  loop used to run until channel restart
- release the media-group task slot before dispatching the buffered
  album, so a straggler item arriving mid-dispatch schedules its own
  follow-up flush instead of being silently dropped (and leaking its
  buffer); the finally guard only drops the task's own registration
- fix ruff F541 (redundant f-string) and apply ruff format
- reword red-test docstrings: both defects are fixed on this branch
- remove evidence/telegram-tests-20261003/ (internal tracking artifacts,
  kept on the v1 branch) so the tree matches upstream conventions
@evan188199-tech

Copy link
Copy Markdown
Contributor Author

Closing this PR — it was opened by mistake by an automated script and duplicates/supersedes other work. Sorry for the noise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant