AI Agents SDE Task Viewer
      • Pr description
  1. Home
  2. AgentSDE
  3. agent-core
  4. gh-499
  5. changes
  6. pr_description.md
pr_description.md(1.1 KB)· Apr 14, 2026· 1 min read
  • Title
  • Problem
  • Task / Link
  • Changes
  • Notes
  • Testing

Title#

feat: make E2E targeted workflow wait for dispatched run result

Problem#

The dispatch-e2e job fired-and-forgot after dispatching to agent-core-e2e, making the PR check cosmetic — it always went green regardless of whether E2E tests actually passed.

Task / Link#

Closes #499

Changes#

  • Added statuses: write permission to the workflow
  • Added timeout-minutes: 30 to the dispatch-e2e job
  • Record dispatch timestamp and capture the dispatched run ID via retry loop (up to 60s)
  • Poll the run to completion with gh run watch --exit-status — job now fails if E2E fails
  • Post a commit status to the PR head SHA with the E2E conclusion and a direct link to the run

Notes#

  • Run identification filters by --created ">=$DISPATCH_TIME" to avoid picking up a concurrent dispatch's run; the 5s×12 retry loop handles the typical 5–15s delay between dispatch and run creation
  • Post commit status step uses if: always() so the status is reported even on failure or cancellation

Testing#

  • Verified workflow YAML is syntactically valid
  • Logic verified by code review against plan acceptance criteria
PrdAi-done