Repository navigation
[safe-output-integrator] test: cover all safe output config types - #78437
Merged
pelikhan merged 1 commit intoNov 16, 2026
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
A critical workflow permission grants the agent direct issue-write access, and the added tests do not verify parsing or generated safe-output job configuration, leaving security and regression coverage gaps.
2 open issues
What changed in this PR
Adds Copilot workflow fixtures and compiler-test coverage for six previously uncovered safe-output configuration keys.
Changes:
- Adds fixtures for claim adapters, agent-success requirements, runner selection, messages, custom steps, and environments.
- Extends
TestAddHandlerManagerConfigEnvVarwith cases for the new configuration fields.
| File | Description |
|---|---|
| pkg/workflow/compiler_safe_outputs_config_test.go | Adds table-driven test cases and assertions for six safe-output configuration fields. |
| pkg/cli/workflows/test-copilot-steps.md | Adds a Copilot fixture for custom safe-output steps. |
| pkg/cli/workflows/test-copilot-runs-on.md | Adds a Copilot fixture for safe-output runner selection. |
| pkg/cli/workflows/test-copilot-require-agent-success.md | Adds a Copilot fixture for requiring successful agent completion. |
| pkg/cli/workflows/test-copilot-messages.md | Adds a Copilot fixture for custom safe-output messages. |
| pkg/cli/workflows/test-copilot-environment.md | Adds a Copilot fixture for safe-output environment configuration. |
| pkg/cli/workflows/test-copilot-claim-adapters.md | Adds a work-queue fixture for configured claim adapters. |
Review effort: Lite (adaptive)
Comment on lines
+5
to
+6
| contents: read | ||
| issues: write |
Comment on lines
+1160
to
+1164
| if tt.checkRequireAgentSuccess { | ||
| assert.True(t, workflowData.SafeOutputs.RequireAgentSuccess) | ||
| } | ||
| if tt.expectedRunsOn != "" { | ||
| assert.Equal(t, tt.expectedRunsOn, workflowData.SafeOutputs.RunsOn) |
pelikhan
deleted the
chore/safe-output-fixture-coverage-e9c3b2a1366a53a3
branch
November 16, 2026 19:15
Contributor
Author
|
🎉 This pull request is included in a new release. Release: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Overview
Add workflow fixtures and compiler-test coverage for every previously uncovered safe-output configuration key.
Key metrics
claim-adapters,require-agent-success,runs-on,messages,steps, andenvironment.Missing: 0from the coverage checker.Details
Validation and implementation details
TestAddHandlerManagerConfigEnvVarwith cases for all six keys.make fmt, frontmatter validation, andgit diff --checkpassed.make agent-report-progresscould not run because the environment attempted to download Go 1.27.4 and failed TLS certificate validation; the installed Go 1.26.11 is below the module requirement..github/skills/reporting/SKILL.mdwas left unstaged.Next actions
Review and merge the fixture and compiler coverage additions.