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: writepermission to the workflow - Added
timeout-minutes: 30to thedispatch-e2ejob - 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 statusstep usesif: 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