Skip to content

Exercise the installed Postmark skill in live agent email E2E#1337

Open
bingran-you wants to merge 2 commits intodevfrom
githuber/end-to-end-test-agent-send-emails-with-884f452e
Open

Exercise the installed Postmark skill in live agent email E2E#1337
bingran-you wants to merge 2 commits intodevfrom
githuber/end-to-end-test-agent-send-emails-with-884f452e

Conversation

@bingran-you
Copy link
Copy Markdown
Contributor

@bingran-you bingran-you commented Apr 14, 2026

Summary

Adds live end-to-end tests that exercise the installed postmark-send-email skill via the Codex agent.

Changes

  • New test file (agent_postmark_skill_e2e.rs): Two test scenarios covering agent-driven Postmark email delivery:

    • agent_sends_email_via_postmark_skill - Simple email send
    • agent_sends_email_with_attachment_via_postmark_skill - Email with attachment
  • Test plan update: Added LIVE-MAIL-02 entry to DoWhiz_service_tests.md

Test Requirements

POSTMARK_LIVE_TEST=1 RUN_CODEX_E2E=1 cargo test -p scheduler_module --test agent_postmark_skill_e2e -- --nocapture

Required env vars: POSTMARK_SERVER_TOKEN, AZURE_OPENAI_API_KEY_BACKUP, AZURE_OPENAI_ENDPOINT_BACKUP

What these tests verify

  1. Agent correctly invokes the installed skill at .agents/skills/postmark-send-email/SKILL.md
  2. Email is sent through Postmark's transactional stream
  3. Agent writes postmark_result.json with status and message ID
  4. Postmark delivery confirmation via API polling

The earlier draft test shape described a Postmark skill flow but built a temp workspace without the repo skill and relied on direct API instructions. This change copies the real postmark-send-email skill into the workspace, explicitly invokes , enables networked agent execution, and verifies both basic delivery and attachment delivery through Postmark.

Constraint: Live execution requires Postmark credentials plus Codex/Azure backup model env

Rejected: Keep a direct API-only workspace | does not validate installed skill availability or invocation

Confidence: medium

Scope-risk: narrow

Reversibility: clean

Directive: Keep this test anchored to the real .agents/skills/postmark-send-email path instead of replacing it with raw API-only instructions

Tested: POSTMARK_LIVE_TEST=0 RUN_CODEX_E2E=0 cargo test -p scheduler_module --test agent_postmark_skill_e2e -- --nocapture

Not-tested: Live Postmark/Codex run with real credentials

Related: #706
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dowhiz Ready Ready Preview, Comment Apr 14, 2026 8:57pm

@bingran-you
Copy link
Copy Markdown
Contributor Author

PR description added. This draft PR looks ready for review once tests pass. Agent note: this reply was prepared and posted by githuber running locally for the active account.

Co-authored-by: bingran-you <bingran-you@users.noreply.github.com>
@Oliver-DoWhiz Oliver-DoWhiz marked this pull request as ready for review April 14, 2026 20:38
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.

2 participants