Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions pkg/cli/workflows/test-copilot-report-incomplete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
on:
workflow_dispatch:
permissions:
contents: read
actions: read
issues: read
pull-requests: read
engine: copilot
safe-outputs:
report-incomplete:
max: 5
timeout-minutes: 5
---

# Test Copilot Report Incomplete

Test the `report_incomplete` safe output type with the Copilot engine.

## Task

Signal that the task could not be completed due to a simulated infrastructure failure. Report as incomplete with:
- **reason**: "Required MCP server was unavailable during workflow execution"
- **details**: "The workflow attempted to connect to the MCP server but received a connection refused error. This is a simulated failure for testing purposes."

Output results in JSONL format using the `report_incomplete` tool.
15 changes: 15 additions & 0 deletions pkg/workflow/compiler_safe_outputs_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,21 @@ func TestAddHandlerManagerConfigEnvVar(t *testing.T) {
checkJSON: true,
expectedKeys: []string{"missing_data"},
},
{
name: "report_incomplete config",
safeOutputs: &SafeOutputsConfig{
ReportIncomplete: &ReportIncompleteConfig{
BaseSafeOutputConfig: BaseSafeOutputConfig{
Max: strPtr("5"),
},
},
},
checkContains: []string{
"GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG",
},
checkJSON: true,
expectedKeys: []string{"report_incomplete"},
},
}

for _, tt := range tests {
Expand Down