Skip to content

Suggested test: copilot/dispatch-workflow-single-target-inference #9782

Description

@github-actions

Motivation

Link to the gh-aw PR: github/gh-aw#48317 — Restore backward compatibility for single-target dispatch_workflow safe outputs

When a workflow configures exactly one dispatch_workflow.workflows entry, an agent can omit workflow_name from the safe-output item and gh-aw should infer it automatically. PR #48317 fixed a regression where this previously-valid omission was rejected. No regression test exists.

Proposed test

  • Workflow file: test-copilot-dispatch-workflow-single-target.md
  • Trigger: workflow_dispatch
  • Engine: copilot
  • Safe output: dispatch_workflow with a single workflow configured and no explicit workflow_name in the agent's output
  • Variant: standard

Minimal test prompt sketch

Configure one target workflow in safe-outputs.dispatch-workflow.workflows. Instruct the agent to emit a dispatch_workflow safe-output item without specifying workflow_name. The harness asserts that the dispatch was accepted and the correct workflow was triggered.

New fixtures or secrets needed

Requires a dispatchable target workflow in githubnext/gh-aw-test. The existing test-copilot-dispatch-workflow.md or a lightweight stub could serve as the target. No new secrets needed.

Notes

The existing test-copilot-dispatch-workflow test covers multi-target dispatch. This test specifically covers the single-target name-inference path to prevent regression of the #48317 fix.

Generated by 🔍 Suggest New E2E Tests · sonnet46 · 24.7 AIC · ⌖ 5.9 AIC · ⊞ 6.1K ·

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions