Repository navigation
Fix Go parallelizer validation fixtures and failure diagnostics - #78166
Conversation
Preserve trusted runtime metadata, isolate installer and color fixtures, and surface actionlint tooling failures. Retain JSON validation output and actual failing-test details without weakening validation or rollback. Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: Copilot <[email protected]>
Preserve isolated collector fixtures and trusted runtime metadata precedence while retaining main's agent-only metadata regression. Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Validation can fail despite a successful Go run because provisioning does not create the parallelizer-validation directory before tee writes to it.
1 open issue
What changed in this PR
Improves validation reliability and failure diagnostics for gh-aw’s Go test parallelizer, alongside fixture isolation and runtime metadata attribution fixes.
Changes:
- Isolate installer, terminal-color, and artifact-collector fixtures from ambient state.
- Preserve trusted runtime metadata and distinguish actionlint tooling failures from lint findings.
- Require saved JSON validation output and specific failing-test diagnostics before rollback.
| File | Description |
|---|---|
pkg/cli/install_copilot_cli_test.go |
Give installer fixtures disposable runner paths. |
pkg/cli/compile_schedule_calendar_test.go |
Make the ANSI fixture’s color environment explicit. |
pkg/cli/actionlint.go |
Surface stderr and classify exits without findings as tooling failures. |
pkg/cli/actionlint_local_test.go |
Cover stderr reporting and empty-findings failures. |
actions/setup/sh/collect_usage_artifact_files.sh |
Prevent agent metadata from overriding runtime attribution. |
actions/setup/sh/collect_usage_artifact_files_test.sh |
Isolate fixtures and verify metadata precedence. |
.github/workflows/daily-go-test-parallelizer.md |
Require retained JSON logs and detailed failure reporting. |
.github/workflows/daily-go-test-parallelizer.lock.yml |
Refresh generated workflow and admission hashes. |
Review effort: Max (dynamic)
| Stop after the first policy denial or unrecoverable tool failure; do not retry or probe around it. At turn 30 of 40 or 25 minutes of the 30-minute timeout, whichever comes first, checkpoint. Continue only if all remaining analysis and validation can finish with at least two turns and two minutes reserved for diff review and the terminal safe output. Otherwise restore candidate edits and report incomplete. | ||
|
|
||
| After edits, run `go test -race` once per unique modified package, then run `go test ./...` once. Inspect the diff; it must contain only safe `t.Parallel()` additions in selected files. If validation fails or is blocked, or the diff is out of scope, restore your edits only (never pre-existing work) and report incomplete. Do not execute prohibited operations, grant exceptions, omit tests, or substitute static analysis. A possible policy incompatibility is not proof of a block or of no safe candidate. | ||
| Print the candidate-only diff before validation; require only safe `t.Parallel()` additions in selected files. Run `go test -race -json` once per modified package, then `go test -json ./...` once. Use `set -o pipefail` and `tee` to save each complete output under `/tmp/gh-aw/agent/parallelizer-validation/` while retaining it in the agent transcript; preserve Go's exit status. Read saved JSON failure events and nearby output, not a truncated tool excerpt. Report failing test names and errors; a package-level FAIL alone is insufficient when test evidence exists. |
There was a problem hiding this comment.
Provisioning now creates /tmp/gh-aw/agent/parallelizer-validation before validation logs are written; the workflow and generated lock were recompiled in 06d9309.
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "55e1f2a73021e339a7ca1b6d36ab9ba4d39ccd99",
"kind": "requested",
"schema_version": "1",
"state": "d77b89ac49b5b6cbedd7b1ead083cc0c4494dd9e78e581dca87ce60204cbf7ee",
"work": [
"42e5d572d9d75b7168fe7d0aeda0717cc07e65ed240f6d299e6fec661214f1ac",
"444fabd8b61e4efe6cbfab59d130be99b25c65c6be06e89116077a6243e8461e"
],
"workflow": "pr-sous-chef"
}
|
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
| Stop after the first policy denial or unrecoverable tool failure; do not retry or probe around it. At turn 30 of 40 or 25 minutes of the 30-minute timeout, whichever comes first, checkpoint. Continue only if all remaining analysis and validation can finish with at least two turns and two minutes reserved for diff review and the terminal safe output. Otherwise restore candidate edits and report incomplete. | ||
|
|
||
| After edits, run `go test -race` once per unique modified package, then run `go test ./...` once. Inspect the diff; it must contain only safe `t.Parallel()` additions in selected files. If validation fails or is blocked, or the diff is out of scope, restore your edits only (never pre-existing work) and report incomplete. Do not execute prohibited operations, grant exceptions, omit tests, or substitute static analysis. A possible policy incompatibility is not proof of a block or of no safe candidate. | ||
| Print the candidate-only diff before validation; require only safe `t.Parallel()` additions in selected files. Run `go test -race -json` once per modified package, then `go test -json ./...` once. Use `set -o pipefail` and `tee` to save each complete output under `/tmp/gh-aw/agent/parallelizer-validation/` while retaining it in the agent transcript; preserve Go's exit status. Read saved JSON failure events and nearby output, not a truncated tool excerpt. Report failing test names and errors; a package-level FAIL alone is insufficient when test evidence exists. |
Align assertions with intentional workflow changes from #78084 (terminal safe-output wording) and #78166 (extra validation log directory in the cache provisioning step) without weakening their intent. Co-authored-by: Copilot App <[email protected]>
|
🎉 This pull request is included in a new release. Release: |

Why
Parallelizer run 43746913472 failed package-wide validation after selecting candidates. Retained session output revealed failing fixtures and a metadata attribution defect outside the candidate files, with no reported race-detector warning.
Changes
Validation
Passed focused Go race regressions under hostile ambient temp/color settings (82 test/subtest events), isolated collector tests,
make fmt,make recompile(368 workflows),make check-workflow-drift, andmake check-instruction-prefixes. Source/lock security review passed. Diagnostic compilation passed AST/model/shellcheck checks; the production lock remains a normal compiled lock.Existing blockers remain:
make agent-report-progressfailed on 10 custom-linter diagnostics on unchanged baseline lines; its standard Go lint and impacted unit tests passed. The broadergo test -race ./pkg/cli -count=1 -timeout=10mencountered unrelated host signing-policy fixture failures and timed out in unchanged MCP debug tests. These unrelated issues were not modified.No workflow was dispatched or rerun.