Skip to content

[safe-output-integrator] test: cover all safe output config types - #78437

Merged
pelikhan merged 1 commit into
mainfrom
chore/safe-output-fixture-coverage-e9c3b2a1366a53a3
Nov 16, 2026
Merged

pelikhan merged 1 commit into
mainfrom
chore/safe-output-fixture-coverage-e9c3b2a1366a53a3

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Overview

Add workflow fixtures and compiler-test coverage for every previously uncovered safe-output configuration key.

Key metrics

  • 76 authoritative safe-output keys covered.
  • 6 new Copilot fixtures added: claim-adapters, require-agent-success, runs-on, messages, steps, and environment.
  • Missing: 0 from the coverage checker.

Details

Validation and implementation details
  • Extended TestAddHandlerManagerConfigEnvVar with cases for all six keys.
  • make fmt, frontmatter validation, and git diff --check passed.
  • The focused Go test and make agent-report-progress could 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.
  • An unrelated pre-existing modification to .github/skills/reporting/SKILL.md was left unstaged.

Next actions

Review and merge the fixture and compiler coverage additions.

Generated by 🔧 Daily Safe Output Integrator · copilot · routed: gpt56 xhigh · ~14 AIC · ⌖ ~2 AIC · ⊞ 3.6K · ◷

  • expires on Nov 19, 2026, 10:51 AM UTC-08:00

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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 TestAddHandlerManagerConfigEnvVar with 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
pelikhan merged commit b9e8f4e into main Nov 16, 2026
10 checks passed
@pelikhan
pelikhan deleted the chore/safe-output-fixture-coverage-e9c3b2a1366a53a3 branch November 16, 2026 19:15
@github-actions

Copy link
Copy Markdown
Contributor Author

🎉 This pull request is included in a new release.

Release: v1.3.1

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants