Conversation
Closed
7 tasks
#2122) Adds a Telethon/Python E2E test suite that connects to Telegram Test DC as a user account, starts Zeph with a Test DC bot token, and runs 8 scenarios: /start welcome, math (347×89=30883), /reset, /skills (MarkdownV2 escaping), empty document (no reply), long output (>=2 split messages), streaming (first chunk latency <30s), and unauthorized-user silence. - scripts/telegram-e2e/telegram_e2e.py — async scenario runner (Telethon) - scripts/telegram-e2e/setup_tg_test_account.py — one-time Test DC session setup - scripts/telegram-e2e/requirements.txt — telethon>=1.36 - config/telegram-test.toml — bot config template for Test DC - .github/workflows/telegram-e2e.yml — CI job gated by repository secrets, runs on push to main only; skips automatically when secrets are absent - .gitignore: add *.session to exclude Telethon session files
6ebbbd6 to
c6118f1
Compare
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.
Summary
scripts/telegram-e2e/telegram_e2e.py: async Telethon test runner with 8 scenarios —/startwelcome, math (347×89=30883),/reset,/skillsMarkdownV2 escaping, empty document (no reply), long output (≥2 split messages), streaming first-chunk latency (<30s), unauthorized-user silencescripts/telegram-e2e/setup_tg_test_account.py: one-time interactive setup that registers a Test DC user account and saves the Telethon session file; Test DC phone format+99966XXXXX, no real SIM requiredconfig/telegram-test.toml: bot config template for Test DC (vault token,allowed_usersplaceholder).github/workflows/telegram-e2e.yml: CI job running on push tomain, gated byZEPH_TELEGRAM_TEST_TOKEN/TELEGRAM_TEST_SESSION/TELEGRAM_TEST_API_ID/TELEGRAM_TEST_API_HASH/TELEGRAM_TEST_BOT_USERNAMEsecrets; skips automatically when any secret is absent.gitignore: adds*.sessionto exclude Telethon session files from the repositoryTest plan
cargo +nightly fmt --check— passcargo clippy --workspace --features full -- -D warnings— passcargo nextest run --config-file .github/nextest.toml --workspace --features full --lib --bins— 6388 passedpython3 scripts/telegram-e2e/telegram_e2e.py --help— usage shown