Skip to content

Fix Go parallelizer validation fixtures and failure diagnostics - #78166

Merged
pelikhan merged 3 commits into
mainfrom
pelikhan/refactored-bassoon
Nov 16, 2026
Merged

pelikhan merged 3 commits into
mainfrom
pelikhan/refactored-bassoon

Conversation

@pelikhan

Copy link
Copy Markdown
Collaborator

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

  • Preserve trusted runtime metadata instead of overwriting it with agent-controlled metadata; isolate collector regression fixtures.
  • Give installer fixtures disposable runner paths and make the ANSI fixture's environment explicit.
  • Surface actionlint stderr and classify nonzero exits without lint findings as tooling failures.
  • Capture JSON race/full-repository validation output and report actual failing tests before candidate-only rollback. No new parallelism, permissions, or validation exceptions.

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, and make 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-progress failed on 10 custom-linter diagnostics on unchanged baseline lines; its standard Go lint and impacted unit tests passed. The broader go test -race ./pkg/cli -count=1 -timeout=10m encountered 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.

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]>
@pelikhan
pelikhan marked this pull request as ready for review November 15, 2026 22:35
Copilot AI adaptive review requested due to automatic review settings November 15, 2026 22:35
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]>

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

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.

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.

Provisioning now creates /tmp/gh-aw/agent/parallelizer-validation before validation logs are written; the workflow and generated lock were recompiled in 06d9309.

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Review (.github/workflows/daily-go-test-parallelizer.md:108): address unresolved feedback - Review comment
  3. Fix failing check impacted-go-tests (FAILURE): Check run.

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"
}

Generated by 👨🍳 PR Sous Chef · pi · routed: haiku55 xhigh · ~2 AIC · ⌖ ~2 AIC · ⊞ 7K · ◷
Comment /souschef to run again

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.
Copilot AI requested a review from gh-aw-bot November 15, 2026 23:55
@pelikhan
pelikhan merged commit 6bf1ceb into main Nov 16, 2026
68 checks passed
@pelikhan
pelikhan deleted the pelikhan/refactored-bassoon branch November 16, 2026 00:06
pelikhan added a commit that referenced this pull request Nov 16, 2026
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]>
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.3.0

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants