Skip to content

Restore setup action before evals post-hook - #51453

Merged
pelikhan merged 2 commits into
mainfrom
copilot/aw-failures-fix-evals-job-post-hook
Aug 8, 2026
Merged

pelikhan merged 2 commits into
mainfrom
copilot/aw-failures-fix-evals-job-post-hook

Conversation

Copilot AI commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor

evals jobs could upload results successfully, then fail when GitHub Actions ran the local setup composite action’s post hook after actions/setup had disappeared from the workspace.

  • Lifecycle fix
    • Append the existing Restore actions folder step to dev-mode evals jobs.
    • Restore only actions/setup, always after eval processing and artifact upload.
- name: Restore actions folder
  if: always()
  uses: actions/checkout@...
  with:
    repository: github/gh-aw
    sparse-checkout: actions/setup
    clean: false
  • Regression coverage

    • Assert evals jobs emit the restore step after result upload.
  • Generated workflows

    • Recompiled the 161 affected lock files so each evals job preserves the composite action path through post-job cleanup.

Copilot AI changed the title [WIP] Fix evals job Setup Scripts post-hook missing action.yml errors Restore setup action before evals post-hook Aug 8, 2026
Copilot AI requested a review from pelikhan August 8, 2026 20:04
@pelikhan
pelikhan marked this pull request as ready for review August 8, 2026 20:06
Copilot AI balanced review requested due to automatic review settings August 8, 2026 20:06
@pelikhan
pelikhan merged commit ad9e865 into main Aug 8, 2026
1 check passed
@pelikhan
pelikhan deleted the copilot/aw-failures-fix-evals-job-post-hook branch August 8, 2026 20:08

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.

Pull request overview

Fixes #51448 by restoring the local setup action before eval-job post hooks execute.

Changes:

  • Appends an always-run restore checkout after eval artifact upload.
  • Adds regression coverage for restore ordering.
  • Recompiles 161 affected workflows.
Show a summary per file
File Description
pkg/workflow/evals_job.go Adds the evals restore step.
pkg/workflow/evals_job_test.go Tests restore generation and ordering.
.github/workflows/docs-noob-tester.lock.yml Adds generated restore step.
.github/workflows/ci-coach.lock.yml Adds generated restore step.
.github/workflows/commit-changes-analyzer.lock.yml Adds generated restore step.
.github/workflows/ab-testing-advisor.lock.yml Adds generated restore step.
.github/workflows/release.lock.yml Adds generated restore step.
.github/workflows/plan.lock.yml Adds generated restore step.
.github/workflows/weekly-blog-post-writer.lock.yml Adds generated restore step.
.github/workflows/pr-triage-agent.lock.yml Adds generated restore step.
.github/workflows/agentic-token-trend-audit.lock.yml Adds generated restore step.
.github/workflows/copilot-session-insights.lock.yml Adds generated restore step.
.github/workflows/changeset.lock.yml Adds generated restore step.
.github/workflows/dev.lock.yml Adds generated restore step.
.github/workflows/daily-spending-forecast.lock.yml Adds generated restore step.
.github/workflows/dev-hawk.lock.yml Adds generated restore step.
.github/workflows/daily-secrets-analysis.lock.yml Adds generated restore step.
.github/workflows/refiner.lock.yml Adds generated restore step.
.github/workflows/breaking-change-checker.lock.yml Adds generated restore step.
.github/workflows/copilot-pr-merged-report.lock.yml Adds generated restore step.
.github/workflows/daily-elixir-credo-snippet-audit.lock.yml Adds generated restore step.
.github/workflows/daily-vulnhunter-scan.lock.yml Adds generated restore step.
.github/workflows/daily-agentrx-trace-optimizer.lock.yml Adds generated restore step.
.github/workflows/deep-report.lock.yml Adds generated restore step.
.github/workflows/cloclo.lock.yml Adds generated restore step.
.github/workflows/eslint-miner.lock.yml Adds generated restore step.
.github/workflows/blog-auditor.lock.yml Adds generated restore step.
.github/workflows/copilot-pr-prompt-analysis.lock.yml Adds generated restore step.
.github/workflows/repo-audit-analyzer.lock.yml Adds generated restore step.
.github/workflows/daily-assign-issue-to-user.lock.yml Adds generated restore step.
.github/workflows/daily-cli-tools-tester.lock.yml Adds generated restore step.
.github/workflows/stale-repo-identifier.lock.yml Adds generated restore step.
.github/workflows/issue-monster.lock.yml Adds generated restore step.
.github/workflows/duplicate-code-detector.lock.yml Adds generated restore step.
.github/workflows/draft-pr-cleanup.lock.yml Adds generated restore step.
.github/workflows/stale-pr-cleanup.lock.yml Adds generated restore step.
.github/workflows/daily-astrostylelite-markdown-spellcheck.lock.yml Adds generated restore step.
.github/workflows/daily-multi-device-docs-tester.lock.yml Adds generated restore step.
.github/workflows/copilot-centralization-optimizer.lock.yml Adds generated restore step.
.github/workflows/daily-code-metrics.lock.yml Adds generated restore step.
.github/workflows/daily-file-diet.lock.yml Adds generated restore step.
.github/workflows/technical-doc-writer.lock.yml Adds generated restore step.
.github/workflows/test-quality-sentinel.lock.yml Adds generated restore step.
.github/workflows/hourly-ci-cleaner.lock.yml Adds generated restore step.
.github/workflows/dependabot-burner.lock.yml Adds generated restore step.
.github/workflows/daily-malicious-code-scan.lock.yml Adds generated restore step.
.github/workflows/daily-evals-report.lock.yml Adds generated restore step.
.github/workflows/eslint-refiner.lock.yml Adds generated restore step.
.github/workflows/gpclean.lock.yml Adds generated restore step.
.github/workflows/developer-docs-consolidator.lock.yml Adds generated restore step.
.github/workflows/spec-enforcer.lock.yml Adds generated restore step.
.github/workflows/daily-syntax-error-quality.lock.yml Adds generated restore step.
.github/workflows/pr-code-quality-reviewer.lock.yml Adds generated restore step.
.github/workflows/agentic-token-optimizer.lock.yml Adds generated restore step.
.github/workflows/smoke-temporary-id.lock.yml Adds generated restore step.
.github/workflows/daily-hippo-learn.lock.yml Adds generated restore step.
.github/workflows/functional-pragmatist.lock.yml Adds generated restore step.
.github/workflows/go-logger.lock.yml Adds generated restore step.
.github/workflows/delight.lock.yml Adds generated restore step.
.github/workflows/pr-sous-chef.lock.yml Adds generated restore step.
.github/workflows/daily-security-red-team.lock.yml Adds generated restore step.
.github/workflows/daily-model-inventory.lock.yml Adds generated restore step.
.github/workflows/glossary-maintainer.lock.yml Adds generated restore step.
.github/workflows/daily-function-namer.lock.yml Adds generated restore step.
.github/workflows/agent-performance-analyzer.lock.yml Adds generated restore step.
.github/workflows/daily-doc-healer.lock.yml Adds generated restore step.
.github/workflows/smoke-gemini.lock.yml Adds generated restore step.
.github/workflows/api-consumption-report.lock.yml Adds generated restore step.
.github/workflows/avenger.lock.yml Adds generated restore step.
.github/workflows/daily-cli-performance.lock.yml Adds generated restore step.
.github/workflows/daily-regulatory.lock.yml Adds generated restore step.
.github/workflows/copilot-centralization-drilldown.lock.yml Adds generated restore step.
.github/workflows/evoskill-evolver.lock.yml Adds generated restore step.
.github/workflows/craft.lock.yml Adds generated restore step.
.github/workflows/daily-news.lock.yml Adds generated restore step.
.github/workflows/smoke-copilot.lock.yml Adds generated restore step.
.github/workflows/daily-performance-summary.lock.yml Adds generated restore step.
.github/workflows/dataflow-pr-discussion-dataset.lock.yml Adds generated restore step.
.github/workflows/daily-safe-output-optimizer.lock.yml Adds generated restore step.
.github/workflows/daily-reliability-review.lock.yml Adds generated restore step.
.github/workflows/daily-graft-intelligence.lock.yml Adds generated restore step.
.github/workflows/daily-mcp-concurrency-analysis.lock.yml Adds generated restore step.
.github/workflows/daily-token-consumption-report.lock.yml Adds generated restore step.
.github/workflows/smoke-copilot-sub-agents.lock.yml Adds generated restore step.
.github/workflows/daily-skill-optimizer.lock.yml Adds generated restore step.
.github/workflows/constraint-solving-potd.lock.yml Adds generated restore step.
.github/workflows/daily-experiment-report.lock.yml Adds generated restore step.
.github/workflows/smoke-project.lock.yml Adds generated restore step.
.github/workflows/daily-semgrep-scan.lock.yml Adds generated restore step.
.github/workflows/necromancer.lock.yml Adds generated restore step.
.github/workflows/unbloat-docs.lock.yml Adds generated restore step.
.github/workflows/issue-triage-agent.lock.yml Adds generated restore step.
.github/workflows/cli-version-checker.lock.yml Adds generated restore step.
.github/workflows/daily-sentrux-report.lock.yml Adds generated restore step.
.github/workflows/smoke-copilot-aoai-apikey.lock.yml Adds generated restore step.
.github/workflows/ci-doctor.lock.yml Adds generated restore step.
.github/workflows/agentic-token-audit.lock.yml Adds generated restore step.
.github/workflows/daily-doc-updater.lock.yml Adds generated restore step.
.github/workflows/audit-workflows.lock.yml Adds generated restore step.
.github/workflows/security-review.lock.yml Adds generated restore step.
.github/workflows/design-decision-gate.lock.yml Adds generated restore step.
.github/workflows/dictation-prompt.lock.yml Adds generated restore step.
.github/workflows/copilot-opt.lock.yml Adds generated restore step.
.github/workflows/daily-spdd-spec-planner.lock.yml Adds generated restore step.
.github/workflows/sub-issue-closer.lock.yml Adds generated restore step.
.github/workflows/daily-windows-terminal-integration-builder.lock.yml Adds generated restore step.
.github/workflows/daily-observability-report.lock.yml Adds generated restore step.
.github/workflows/copilot-pr-nlp-analysis.lock.yml Adds generated restore step.
.github/workflows/deepsec-security-scan.lock.yml Adds generated restore step.
.github/workflows/bot-detection.lock.yml Adds generated restore step.
.github/workflows/daily-security-observability.lock.yml Adds generated restore step.
.github/workflows/contribution-check.lock.yml Adds generated restore step.
.github/workflows/aw-failure-investigator.lock.yml Adds generated restore step.
.github/workflows/daily-compiler-quality.lock.yml Adds generated restore step.
.github/workflows/daily-workflow-updater.lock.yml Adds generated restore step.
.github/workflows/daily-safe-outputs-conformance.lock.yml Adds generated restore step.
.github/workflows/archivx-agentic-workflows-analyzer.lock.yml Adds generated restore step.
.github/workflows/deployment-incident-monitor.lock.yml Adds generated restore step.
.github/workflows/daily-agent-of-the-day-blog-writer.lock.yml Adds generated restore step.
.github/workflows/daily-safeoutputs-git-simulator.lock.yml Adds generated restore step.
.github/workflows/ace-editor.lock.yml Adds generated restore step.
.github/workflows/typist.lock.yml Adds generated restore step.
.github/workflows/daily-cache-strategy-analyzer.lock.yml Adds generated restore step.
.github/workflows/ai-moderator.lock.yml Adds generated restore step.
.github/workflows/daily-ambient-context-optimizer.lock.yml Adds generated restore step.
.github/workflows/code-scanning-fixer.lock.yml Adds generated restore step.
.github/workflows/daily-compiler-threat-spec-optimizer.lock.yml Adds generated restore step.
.github/workflows/poem-bot.lock.yml Adds generated restore step.
.github/workflows/daily-architecture-diagram.lock.yml Adds generated restore step.
.github/workflows/code-simplifier.lock.yml Adds generated restore step.
.github/workflows/copilot-cli-deep-research.lock.yml Adds generated restore step.
.github/workflows/copilot-agent-analysis.lock.yml Adds generated restore step.
.github/workflows/approach-validator.lock.yml Adds generated restore step.
.github/workflows/daily-yamllint-fixer.lock.yml Adds generated restore step.
.github/workflows/research.lock.yml Adds generated restore step.
.github/workflows/daily-caveman-optimizer.lock.yml Adds generated restore step.
.github/workflows/daily-fact.lock.yml Adds generated restore step.
.github/workflows/eslint-monster.lock.yml Adds generated restore step.
.github/workflows/daily-awf-spec-compiler-surfacing.lock.yml Adds generated restore step.
.github/workflows/daily-safe-output-integrator.lock.yml Adds generated restore step.
.github/workflows/smoke-copilot-aoai-entra.lock.yml Adds generated restore step.
.github/workflows/cli-consistency-checker.lock.yml Adds generated restore step.
.github/workflows/daily-firewall-report.lock.yml Adds generated restore step.
.github/workflows/artifacts-summary.lock.yml Adds generated restore step.
.github/workflows/detection-analysis-report.lock.yml Adds generated restore step.
.github/workflows/daily-action-setup-security-audit.lock.yml Adds generated restore step.
.github/workflows/daily-issues-report.lock.yml Adds generated restore step.
.github/workflows/daily-geo-optimizer.lock.yml Adds generated restore step.
.github/workflows/daily-go-test-parallelizer.lock.yml Adds generated restore step.
.github/workflows/agent-persona-explorer.lock.yml Adds generated restore step.
.github/workflows/daily-squid-image-scan.lock.yml Adds generated restore step.
.github/workflows/daily-github-docs-seo-optimizer.lock.yml Adds generated restore step.
.github/workflows/tidy.lock.yml Adds generated restore step.
.github/workflows/purelock.lock.yml Adds generated restore step.
.github/workflows/archie.lock.yml Adds generated restore step.
.github/workflows/issue-arborist.lock.yml Adds generated restore step.
.github/workflows/architecture-guardian.lock.yml Adds generated restore step.
.github/workflows/daily-community-attribution.lock.yml Adds generated restore step.
.github/workflows/daily-aw-cross-repo-compile-check.lock.yml Adds generated restore step.
.github/workflows/daily-repo-chronicle.lock.yml Adds generated restore step.
.github/workflows/dependabot-go-checker.lock.yml Adds generated restore step.
.github/workflows/claude-code-user-docs-review.lock.yml Adds generated restore step.
.github/workflows/auto-triage-issues.lock.yml Adds generated restore step.

Review details

  • Files reviewed: 163/163 changed files
  • Comments generated: 3
  • Review effort level: Balanced

}

func TestBuildEvalsJobRestoresSetupActionInDevMode(t *testing.T) {
compiler := NewCompiler()
Comment thread pkg/workflow/evals_job.go
Comment on lines +55 to +57
if c.actionMode.IsDev() {
steps = append(steps, c.generateRestoreActionsSetupStep())
}
Comment on lines +91 to +92
assert.NotEqual(t, -1, restoreIndex)
assert.Greater(t, restoreIndex, uploadIndex)
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.86.2

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.

[aw-failures] evals job "Setup Scripts" post-hook fails with missing action.yml — false failures across ~161 workflows

3 participants