Add Vally skill-effectiveness experiments and Python test scenarios#383
Open
LarryOsterman wants to merge 6 commits into
Open
Add Vally skill-effectiveness experiments and Python test scenarios#383LarryOsterman wants to merge 6 commits into
LarryOsterman wants to merge 6 commits into
Conversation
Split from #375: adds the Vally skill-effectiveness experiment framework (run-skill-experiments.ps1, run-all-evals.ps1, generate-skill-experiments.ps1, compare-experiment.mjs), standardized vally eval/experiment yaml and scenarios.yaml for ~40 Python skills, shared Python grader tooling, and harness runner script/dependency updates. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9429ad33-6f31-4ec5-ba00-0f11b5afb82e
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a standardized Vally “skill effectiveness” experiment setup for Python skills under tests/scenarios/, including shared Python grader tooling and updated test-runner dependencies/ignores. This PR is part of the split from #375 and focuses on the Python scenario/eval content (not harness/CI).
Changes:
- Adds shared Node-based graders for Python syntax + basic idiomatic checks under
tests/scenarios/_shared/vally/tools/. - Introduces per-skill Vally
eval.yaml+skill_effectiveness_experiment.yaml(and, for some,skill_effectiveness_eval.yaml) plus updates manyscenarios.yamlmodel defaults. - Updates
tests/package.json(Vally version + package manager metadata) and expandstests/.gitignoreto ignore evaluation output folders.
Reviewed changes
Copilot reviewed 176 out of 178 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/package.json | Bumps @microsoft/vally and adds packageManager metadata for tests tooling. |
| tests/.gitignore | Ignores additional eval output directories under tests/. |
| tests/scenarios/_shared/vally/tools/check-python-syntax.mjs | New shared Python syntax validation grader (supports optional exclude patterns config). |
| tests/scenarios/_shared/vally/tools/check-python-idiomatic.mjs | New shared heuristic Python “idiomatic” checks grader. |
| tests/scenarios/_shared/vally/azure-sdk-python-skill-evaluations.yaml | Aggregates many Python skill evals into a single suite file. |
| tests/scenarios/agent-framework-azure-ai-py/vally/skill_effectiveness_experiment.yaml | Adds skill-vs-baseline experiment definition for this skill. |
| tests/scenarios/agent-framework-azure-ai-py/vally/eval.yaml | Adds Vally eval suite for this skill’s scenarios. |
| tests/scenarios/agent-framework-azure-ai-py/vally/skill_effectiveness_eval.yaml | Adds the skill-effectiveness eval suite definition for this skill. |
| tests/scenarios/agent-framework-azure-ai-py/scenarios.yaml | Sets scenario model config for this skill. |
| tests/scenarios/agent-framework-azure-ai-py/test-output.txt | Adds a captured output artifact for this scenario directory. |
| tests/scenarios/azure-search-documents-py/vally/skill_effectiveness_experiment.yaml | Adds skill-vs-baseline experiment definition for this skill. |
| tests/scenarios/azure-search-documents-py/vally/eval.yaml | Adds Vally eval suite for this skill’s scenarios. |
| tests/scenarios/azure-search-documents-py/scenarios.yaml | Updates scenario model config for this skill. |
| tests/scenarios/azure-eventgrid-py/vally/skill_effectiveness_experiment.yaml | Adds skill-vs-baseline experiment definition for this skill. |
| tests/scenarios/azure-eventgrid-py/vally/eval.yaml | Adds Vally eval suite for this skill’s scenarios. |
| tests/scenarios/azure-eventgrid-py/scenarios.yaml | Updates scenario model config for this skill. |
| tests/scenarios/azure-messaging-webpubsubservice-py/vally/skill_effectiveness_experiment.yaml | Adds skill-vs-baseline experiment definition for this skill. |
| tests/scenarios/azure-messaging-webpubsubservice-py/vally/eval.yaml | Adds Vally eval suite for this skill’s scenarios. |
| tests/scenarios/azure-messaging-webpubsubservice-py/scenarios.yaml | Updates scenario model config for this skill. |
| tests/scenarios/azure-monitor-opentelemetry-py/vally/skill_effectiveness_experiment.yaml | Adds skill-vs-baseline experiment definition for this skill. |
| tests/scenarios/azure-monitor-opentelemetry-py/vally/eval.yaml | Adds Vally eval suite for this skill’s scenarios. |
| tests/scenarios/azure-monitor-opentelemetry-py/scenarios.yaml | Updates scenario model config for this skill. |
| tests/scenarios/pydantic-models-py/vally/syntax-check-config.json | Adds per-scenario syntax-check exclusion config. |
| tests/scenarios/pydantic-models-py/vally/skill_effectiveness_experiment.yaml | Adds skill-vs-baseline experiment definition for this skill. |
| tests/scenarios/pydantic-models-py/scenarios.yaml | Updates scenario model config for this skill. |
| tests/scenarios/fastapi-router-py/vally/syntax-check-config.json | Adds per-scenario syntax-check exclusion config. |
| tests/scenarios/fastapi-router-py/vally/skill_effectiveness_experiment.yaml | Adds skill-vs-baseline experiment definition for this skill. |
| tests/scenarios/azure-storage-queue-py/vally/skill_effectiveness_experiment.yaml | Adds skill-vs-baseline experiment definition for this skill. |
| tests/scenarios/azure-storage-queue-py/vally/eval.yaml | Adds Vally eval suite for this skill’s scenarios. |
| tests/scenarios/azure-storage-queue-py/vally/skill_effectiveness_eval.yaml | Adds the skill-effectiveness eval suite definition for this skill. |
| tests/scenarios/azure-storage-queue-py/scenarios.yaml | Updates scenario model config for this skill. |
| tests/scenarios/m365-agents-py/vally/skill_effectiveness_experiment.yaml | Adds skill-vs-baseline experiment definition for this skill. |
| tests/scenarios/m365-agents-py/vally/eval.yaml | Adds Vally eval suite for this skill’s scenarios. |
| tests/scenarios/m365-agents-py/vally/skill_effectiveness_eval.yaml | Adds the skill-effectiveness eval suite definition for this skill. |
| tests/scenarios/m365-agents-py/scenarios.yaml | Updates scenario model config for this skill. |
| tests/scenarios/azure-ai-language-conversations-py/scenarios.yaml | Adds scenario definitions and mock responses for this skill. |
| tests/scenarios/azure-ai-language-conversations-py/acceptance-criteria.md | Expands/clarifies acceptance criteria with correct/incorrect examples. |
Files not reviewed (1)
- tests/pnpm-lock.yaml: Generated file
This was referenced Jul 15, 2026
Member
Author
| @@ -0,0 +1 @@ | |||
| Error: Experiment config file not found: Q:\src\skills\tests\scenarios\agent-framework-azure-ai-py\skill_effectiveness_experiment.yaml | |||
Comment on lines
+23
to
+26
| - CRITICAL: Include explicit exception handling: | ||
| * Wrap client initialization and send/receive operations in try/except blocks | ||
| * Handle: ServiceBusError, EventHubError, OperationTimeoutError, AzureError | ||
| * Example: try: sender.send_batch(batch) except ServiceBusError as e: print(f'Error: {e}') |
Comment on lines
+23
to
+26
| - CRITICAL: Include explicit exception handling: | ||
| * Wrap client initialization and send/receive operations in try/except blocks | ||
| * Handle: ServiceBusError, EventHubError, OperationTimeoutError, AzureError | ||
| * Example: try: sender.send_batch(batch) except ServiceBusError as e: print(f'Error: {e}') |
Comment on lines
+23
to
+26
| - CRITICAL: Include explicit exception handling: | ||
| * Wrap client initialization and send/receive operations in try/except blocks | ||
| * Handle: ServiceBusError, EventHubError, OperationTimeoutError, AzureError | ||
| * Example: try: sender.send_batch(batch) except ServiceBusError as e: print(f'Error: {e}') |
Comment on lines
+23
to
+26
| - CRITICAL: Include explicit exception handling: | ||
| * Wrap client initialization and send/receive operations in try/except blocks | ||
| * Handle: ServiceBusError, EventHubError, OperationTimeoutError, AzureError | ||
| * Example: try: sender.send_batch(batch) except ServiceBusError as e: print(f'Error: {e}') |
| # Run compare-experiment.mjs for the experiment directory | ||
| $compareScript = Join-Path $PSScriptRoot "compare-experiment.mjs" | ||
| if (Test-Path $compareScript) { | ||
| & node $compareScript $experimentResultsDir |
| @@ -0,0 +1 @@ | |||
| Error: Experiment config file not found: Q:\src\skills\tests\scenarios\agent-framework-azure-ai-py\skill_effectiveness_experiment.yaml | |||
Comment on lines
+24
to
+26
| * Wrap client initialization and send/receive operations in try/except blocks | ||
| * Handle: ServiceBusError, EventHubError, OperationTimeoutError, AzureError | ||
| * Example: try: sender.send_batch(batch) except ServiceBusError as e: print(f'Error: {e}') |
Comment on lines
+24
to
+26
| * Wrap client initialization and send/receive operations in try/except blocks | ||
| * Handle: ServiceBusError, EventHubError, OperationTimeoutError, AzureError | ||
| * Example: try: sender.send_batch(batch) except ServiceBusError as e: print(f'Error: {e}') |
Comment on lines
+252
to
+260
| $jsonlPath = Join-Path $runDir.FullName "results.jsonl" | ||
| if (Test-Path -LiteralPath $jsonlPath) { | ||
| $line = Get-Content -Path $jsonlPath | | ||
| Where-Object { $_ -match '"type"\s*:\s*"run-summary"' } | | ||
| Select-Object -Last 1 | ||
| if ($line) { | ||
| try { $summary = $line | ConvertFrom-Json -Depth 20 } catch {} | ||
| } | ||
| } |
| } | ||
| } | ||
|
|
||
| function matchGlobPattern(filePath, pattern) { |
| ".vally", | ||
| ]); | ||
|
|
||
| function collectPythonFiles(dir, acc) { |
…lude-pattern support
richardpark-msft
approved these changes
Jul 16, 2026
richardpark-msft
left a comment
Member
There was a problem hiding this comment.
Some stuff I think is worth fixing:
- Let's use a real python linter (pylint?). Our skills should produce clean code anyways.
- Can you add in a README.md too? There's some handy little workflows in here, hard to discover without a small roadmap.
Contributor
Fixed in commit f7b82c6. Here's a summary of all changes made:
|
Comment on lines
+1
to
+2
| Running experiment 'azure-monitor-ingestion-py-skill-experiment' | ||
| Output: Q:\src\skills\tests\scenarios\azure-monitor-ingestion-py\vally\vally-experiment-results\2026-06-30T23-35-17-490Z |
Comment on lines
+1
to
+2
| Running experiment 'azure-monitor-ingestion-py-skill-experiment' | ||
| Output: Q:\src\skills\tests\scenarios\azure-monitor-ingestion-py\vally\vally-experiment-results\2026-06-30T23-40-22-287Z |
Comment on lines
+23
to
+26
| - CRITICAL: Include explicit exception handling: | ||
| * Wrap client initialization and send/receive operations in try/except blocks | ||
| * Handle: ServiceBusError, EventHubError, OperationTimeoutError, AzureError | ||
| * Example: try: sender.send_batch(batch) except ServiceBusError as e: print(f'Error: {e}') |
Comment on lines
+23
to
+26
| - CRITICAL: Include explicit exception handling: | ||
| * Wrap client initialization and send/receive operations in try/except blocks | ||
| * Handle: ServiceBusError, EventHubError, OperationTimeoutError, AzureError | ||
| * Example: try: sender.send_batch(batch) except ServiceBusError as e: print(f'Error: {e}') |
Comment on lines
+23
to
+26
| - Return the final answer as Python code only. | ||
| - CRITICAL: Include explicit exception handling: | ||
| * Wrap client initialization and query/ingestion operations in try/except blocks | ||
| * Handle: ServiceError, HttpResponseError, ValidationError, AzureError |
Comment on lines
+23
to
+26
| - Return the final answer as Python code only. | ||
| - CRITICAL: Include explicit exception handling: | ||
| * Wrap client initialization and query/ingestion operations in try/except blocks | ||
| * Handle: ServiceError, HttpResponseError, ValidationError, AzureError |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Split from #375 (5 of 5).
Adds the Vally skill-effectiveness experiment framework and Python test scenarios:
run-skill-experiments.ps1,run-all-evals.ps1,generate-skill-experiments.ps1,compare-experiment.mjsvally/eval + experiment yaml andscenarios.yamlfor ~40 Python skillstests/scenarios/_shared/run-harness-by-language.ps1and test dependency manifests178 files under
tests/(excludestests/harness/and*-rustscenarios, covered by #380 and #381).