Repository navigation
fix(ci): unblock vally eval on the reusable PR path - #911
Conversation
…d PAT pool The PR-evaluation path (evaluation.yml -> reusable vally-evaluation.yml) could not start vally. Two independent problems, both fixed here in code: 1. Spurious `prepare` run. The `prepare` job guarded only on `github.event_name == 'workflow_dispatch'`, but that event name propagates into workflow_call, so prepare ran during the reusable call, read empty dispatch inputs, and threw "Invalid plugin ''". Now additionally guarded on `inputs.entries == ''` so prepare runs only for a direct manual dispatch and is skipped whenever the caller supplies `entries`. 2. Empty COPILOT_PAT_0..9 pool. A reusable workflow does not inherit the caller's org/repo secrets, and the `copilot-pat-pool` environment holds no environment secrets, so `secrets.COPILOT_PAT_*` read empty across the workflow_call boundary and the vally jobs failed with "No copilot-pat-pool entries are configured". The caller (a top-level job) CAN read the existing org-level pool -- the same pool the scheduled validate-pat-pool workflow reads -- so evaluation.yml now forwards it via an explicit named `secrets:` mapping of the 10 tokens. This mirrors how skill-validator sources its own token set in-workflow and needs no admin configuration. Deliberately NOT `secrets: inherit`, which would forward every repo/org secret into the reusable workflow and reverse #868's blast-radius reduction; only these 10 named tokens cross the boundary. Validated with actionlint 1.7.7 (exit 0). Co-authored-by: Copilot <[email protected]>
|
/evaluate |
|
Alright, the CI tests against main but here's what proves that this works: |
There was a problem hiding this comment.
Pull request overview
Fixes the PR reusable-workflow execution path for vally evaluation by preventing an unintended prepare run during workflow_call and ensuring the Copilot PAT pool is available inside the reusable workflow.
Changes:
- Gate
prepareinvally-evaluation.ymlso it only runs for direct manual dispatches. - Forward
COPILOT_PAT_0..9explicitly fromevaluation.ymlinto the reusablevally-evaluation.ymlworkflow via named secret mapping.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/vally-evaluation.yml | Adjusts reusable-workflow secret expectations and tightens prepare gating for the PR path. |
| .github/workflows/evaluation.yml | Forwards the PAT pool into the reusable workflow using an explicit secrets: mapping. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 1
|
👋 @AbhitejJohn — this PR has 1 unresolved review thread(s). When you're ready, please address the feedback and push an update; the triage bot will pick up the next state automatically. (Add the |
Skill Validation Results
[1] (Isolated) Quality unchanged but weighted score is -0.5% due to: tool calls (18 → 23)
Model: claude-opus-4.6 | Judge: claude-opus-4.6 🔍 Full Results - additional metrics and failure investigation steps
▶ Sessions Visualisation -- interactive replay of all evaluation sessions |
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
|
✅ Approved by @JanKrivanek. cc @dotnet/skills-merge-approvers — ready to merge. |
Skill Validation Results
[1] (Isolated) Quality improved but weighted score is -2.7% due to: tokens (28631 → 45884), time (19.2s → 35.2s), tool calls (3 → 4) Model: claude-opus-4.6 | Judge: claude-opus-4.6 🔍 Full Results - additional metrics and failure investigation steps
▶ Sessions Visualisation -- interactive replay of all evaluation sessions |
Collapses the parallel skill-validator + Vally eval pipeline into a single Vally-only path while preserving every capability skill-validator provided: PR gate, PR comment, dotnet/skills-data historical push, and the dashboard. The skill-validator `check` linter is retained (skill-check.yml) pending microsoft/vally #463. - evaluation.yml: delete build-validator and the skill-validator `evaluate` job; single `evaluate:` job now uses vally-evaluation.yml. Forward the COPILOT_PAT_0..9 pool onto it (from #911) so the reusable workflow's token gate is satisfied. Rewire comment-on-pr / report-status / publish-* / deploy-dashboard onto `evaluate` and vally-results-* artifacts. - vally-evaluation.yml: pin @microsoft/[email protected]; keep the #911 prepare guard; write the generated per-plugin experiment to $GITHUB_WORKSPACE so relative eval globs resolve. - adapt.mjs: reconcile #887's runCompareWithRetry + conclusive/unmatched hardening with the consolidation helpers (nonActivation, compareByStim, roleToDashboard, etc.). Add consolidate.mjs and gen-experiment.mjs. - build-replay-sessions.ps1: read Vally executor-session-logs/events.jsonl instead of skill-validator session output. - Rename all tests/*/*/eval.vally.yaml to eval.yaml (Vally format is now the only eval format); author Vally evals for the four skills that lacked one. - CONTRIBUTING.md + InvestigatingResults: point contributors at the Vally harness; drop non-public links. Co-authored-by: Copilot <[email protected]>
* Make Vally the sole LLM eval engine, retiring skill-validator evaluate Collapses the parallel skill-validator + Vally eval pipeline into a single Vally-only path while preserving every capability skill-validator provided: PR gate, PR comment, dotnet/skills-data historical push, and the dashboard. The skill-validator `check` linter is retained (skill-check.yml) pending microsoft/vally #463. - evaluation.yml: delete build-validator and the skill-validator `evaluate` job; single `evaluate:` job now uses vally-evaluation.yml. Forward the COPILOT_PAT_0..9 pool onto it (from #911) so the reusable workflow's token gate is satisfied. Rewire comment-on-pr / report-status / publish-* / deploy-dashboard onto `evaluate` and vally-results-* artifacts. - vally-evaluation.yml: pin @microsoft/[email protected]; keep the #911 prepare guard; write the generated per-plugin experiment to $GITHUB_WORKSPACE so relative eval globs resolve. - adapt.mjs: reconcile #887's runCompareWithRetry + conclusive/unmatched hardening with the consolidation helpers (nonActivation, compareByStim, roleToDashboard, etc.). Add consolidate.mjs and gen-experiment.mjs. - build-replay-sessions.ps1: read Vally executor-session-logs/events.jsonl instead of skill-validator session output. - Rename all tests/*/*/eval.vally.yaml to eval.yaml (Vally format is now the only eval format); author Vally evals for the four skills that lacked one. - CONTRIBUTING.md + InvestigatingResults: point contributors at the Vally harness; drop non-public links. Co-authored-by: Copilot <[email protected]> * Fix setup-local-sdk eval for Vally schema The hand-authored setup-local-sdk eval used skill-validator grader/environment schema that Vally rejects at validation (no stimuli executed): - file-contains/file-not-contains graders require 'value:' not 'substring:' (output-contains correctly keeps 'substring:'). - environment.files entries require 'src:'/'dest:' (copy a fixture) rather than inline 'path:'/'content:'. Moved the global.json body into fixtures/global.json. Verified with 'vally lint --eval-spec' (0 errors) across all 97 eval.yaml. Co-authored-by: Copilot <[email protected]> * Fix markdownlint violations in migration docs Co-authored-by: Copilot <[email protected]> * Address PR review feedback on eval migration - Consolidate run-vally-evals.sh into a single neutral entrypoint eng/run-skill-evals.sh (deletes the thin wrapper; adapt.mjs stays in eng/vally-adapter/ since CI invokes it directly) - Rename reusable workflow vally-evaluation.yml -> evaluation-run.yml and update all references/self-trigger regexes - Rename local output dir vally-results -> eval-results - Bake prerequisite preflight (Node 20+, GITHUB_TOKEN/gh) into the runner - Simplify CONTRIBUTING "Running tests locally" prerequisites - Scrub harness name from consumer-facing surfaces Co-authored-by: Copilot <[email protected]> * Reinstate overfitting detection under the Vally harness Overfitting detection previously ran inside skill-validator's `evaluate` command, which the Vally migration replaced, so it silently stopped running. Reinstate it as a standalone step wired into the Vally pipeline: - Add `skill-validator overfitting` command that discovers skills, parses each eval.yaml, runs the existing OverfittingJudge, and emits [{plugin, skill, overfittingResult}] JSON (per-skill failures non-fatal, bounded parallelism). - Add a Vally-format parser bridge (ParseEvalConfigFlexible) so the judge handles the current stimuli/graders eval.yaml format; the legacy scenarios-only parser rejected all 98 evals, so the judge never ran. - adapt.mjs: merge overfitting results onto each verdict via --overfitting <file> (keyed by plugin/skill); output is byte-identical when the flag is absent. - evaluation-run.yml: build skill-validator (shared cache with check), run the judge per leg reading GITHUB_TOKEN, and pass --overfitting to adapt.mjs so the dashboard/skills-data consume it unchanged. Co-authored-by: Copilot <[email protected]> * Reconcile #919 Vally eval configs into the sole eval.yaml convention PR #919 landed on main adding fresh Vally specs for three coverage-gap skills (setup-local-sdk, convert-blazor-server-to-webapp, dotnet-webapi) under the interim eval.vally.yaml filename. This branch collapses to a single Vally spec named eval.yaml, so the merge left each skill with both my migrated eval.yaml and #919's newer eval.vally.yaml (a git-clean but semantic duplicate the pipeline would not discover). Adopt #919's reviewed Vally content as the canonical eval.yaml for all three skills and drop the redundant eval.vally.yaml files, preserving the 'sole eval.yaml, zero eval.vally.yaml' invariant. Content is byte-identical to #919's blobs (b14121c / 47d4382 / 18a9362), which already passed vally-evaluate on main. Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
The PR-evaluation path (
evaluation.yml→ reusablevally-evaluation.yml) couldn't start vally, while the skill-validatorevaluatejobs passed. Two independent problems, both fixed here in code.1. Spurious
preparerunThe
preparejob was gated only ongithub.event_name == 'workflow_dispatch'. That event name propagates intoworkflow_call, soprepareran during the reusable call, read empty dispatch inputs, and threwInvalid plugin ''. Now additionally gated on&& inputs.entries == '', so it runs only for a direct manual dispatch and is skipped whenever the caller suppliesentries.2. Empty
COPILOT_PAT_0..9poolReusable workflows called via
workflow_calldo not inherit the caller's org/repo secrets, and thecopilot-pat-poolenvironment holds no environment secrets — sosecrets.COPILOT_PAT_*read empty across the boundary and the vally jobs failed withNo copilot-pat-pool entries are configured.The caller is a top-level job, so it can read the existing org-level pool (the same pool the scheduled
validate-pat-pool.ymlreads daily).evaluation.ymlnow forwards it via an explicit namedsecrets:mapping of the 10 tokens — mirroring how skill-validator sources its own token set in-workflow. This needs no admin configuration and goes green on merge.Security note (#868)
This deliberately does not use
secrets: inherit, which would forward every repo/org secret into the reusable workflow and reverse the blast-radius reduction established in #868. The named mapping crosses only those 10COPILOT_PAT_*tokens — the minimum the reusable workflow needs — so the exposure surface is the pool and nothing else.environment: copilot-pat-poolis retained, so environment secrets can still override the mapped values later with no code change.Scope
vally-evaluatereusable-call job only; the skill-validatorevaluatejob is unchanged.mainto take effect for all PR evaluations.Validation
actionlint1.7.7 → exit 0 on both workflow files.Co-authored-by: Copilot [email protected]