Skip to content

[aw-failures] dispatch_workflow haiku-printer fails HTTP 422 when dispatching against non-existent PR branch ref #28010

@github-actions

Description

@github-actions

Problem Statement

The safe_outputs job in Smoke Copilot (§24820197105) completed with conclusion failure because the dispatch_workflow safe output attempted to trigger the haiku-printer.yml workflow using refs/heads/copilot/fix-comment-memory-issue — a PR feature branch — which does not exist as a dispatchable branch on the remote at the time safe_outputs runs.

##[error]Failed to dispatch workflow "haiku-printer": No ref found for:
refs/heads/copilot/fix-comment-memory-issue

The agent itself ran successfully (exit 0, all 14 smoke tests PASS). The single dispatch_workflow failure caused the entire safe_outputs job to fail, propagating to a failure conclusion for the run.

Affected Runs

Run Workflow Branch Conclusion
§24820197105 Smoke Copilot copilot/fix-comment-memory-issue (PR #27989) FAILURE (safe_outputs)

Root Cause

dispatch_workflow resolves against the PR head branch ref (refs/heads/<pr-branch>). For PR-triggered workflows, the head branch ref may not be a published, dispatchable remote branch (especially after PR merge/deletion). GitHub's workflow dispatch API returns HTTP 422 when the ref is not found.

Proposed Remediation

  • dispatch_workflow in safe_outputs should default to a stable ref (e.g. main or the repository default branch) unless explicitly configured otherwise
  • Alternatively, validate that the target ref exists before dispatching; fall back to the default branch with a warning rather than hard-failing
  • Success criteria: Smoke Copilot passes safe_outputs even when triggered from a short-lived PR branch

References

Generated by [aw] Failure Investigator (6h) · ● 494.6K ·

  • expires on Apr 30, 2026, 7:27 AM UTC

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions