GitHub Actions Email Tests Need a Fast Runbook
Описание и применение
В GitHub Actions тесты проверки электронной почты часто завершаются неопределёнными тайм‑аутами. Внедрение пяти‑шагового рабочего процесса с уникальными временными почтовыми ящиками, структурированными журналами и очисткой устраняет непонятные ошибки и оставляет чистую среду.
Задача
Email verification tests in GitHub Actions often fail with vague timeouts, making it hard to diagnose whether the issue is API slowness, inbox state, or retry logic.
Результат
Tests now fail with clear, actionable evidence, reduce debugging time, and prevent orphaned disposable addresses.
Рабочий процесс
- Create a unique test address before the browser action
- Record the address and a UTC trigger timestamp in a JSON receipt
- Poll only for messages newer than the trigger timestamp
- Save a redacted message summary as an artifact on failure
- Delete or expire the inbox in a final cleanup step
Доказательства
The test output usually says something less useful: timeout waiting for email.
For parallel jobs, start with isolated verification inboxes.
- Дата записи: 2026-09-21T09:00:28.860Z