-
Notifications
You must be signed in to change notification settings - Fork 338
feat: add azd CLI evaluation and testing framework #7202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
2b8bdfa
feat: add azd CLI evaluation and testing framework
spboyer 785518b
docs: add authentication and secrets section to eval README
spboyer dff871d
docs: add comprehensive how-to guides for creating evals, graders, an…
spboyer 4ae4e6a
fix: resolve CI failures in eval unit tests and cspell
spboyer f11a00c
fix: stop command-sequencing tests from overriding AZD_CONFIG_DIR
spboyer faae65f
docs: expand auth section with subscription config and no-popup guara…
spboyer ef1ae86
refactor: address review feedback from @jongio and Copilot
spboyer 7d8b1f8
fix: address round 2 review feedback from @jongio
spboyer a3a8cfb
Fix review: mock targets, env remove, CI grader tests, HTTPError hand…
spboyer 3427eab
fix: skip waza validation when CLI not installed
spboyer df8d4d0
Update cli/azd/test/eval/tasks/environment/switch-env.yaml
spboyer aaf81d1
Update cli/azd/test/eval/README.md
spboyer 4d4c431
fix: address remaining PR review feedback
spboyer f8a1a72
chore: add 40-minute timeout to eval-e2e lifecycle step
spboyer d9c280b
Address review feedback on eval framework
spboyer 4f2e95e
Remove continue-on-error masking in eval-waza.yml
spboyer 9e62163
Fix error handling in graders and cleanup step
spboyer bfd80fd
Address review feedback on eval framework
spboyer 1b8d34e
Address review feedback on eval framework (round 2)
spboyer f7508d6
Re-trigger CI (flaky TestInitializer_PromptIfNonEmpty)
spboyer 2ba6edf
Use tag-for-deletion pattern in eval cleanup step
spboyer a563585
Address review feedback: timeout, imports, pipeline command
spboyer 5b1ed09
fix: remove always-skipped waza step from CI workflow
spboyer c0730ae
chore: apply go fix modernization (strings.SplitSeq)
spboyer 27f4b28
Migrate eval CI from GitHub Actions to ADO pipelines
spboyer 6a70702
fix: remove continueOnError from eval step in eval-e2e pipeline
spboyer c817f90
fix: address review feedback on eval framework PR
spboyer 19b1688
fix: scope resource group cleanup to current build ID
spboyer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| name: "Eval: Unit Tests" | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - "cli/azd/test/eval/**" | ||
| - "cli/azd/internal/mcp/**" | ||
| - "cli/azd/cmd/mcp.go" | ||
| - "cli/azd/cmd/root.go" | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| unit-tests: | ||
| runs-on: ubuntu-latest | ||
|
spboyer marked this conversation as resolved.
|
||
| timeout-minutes: 30 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: actions/setup-go@v5 | ||
| with: | ||
| go-version-file: "cli/azd/go.mod" | ||
|
|
||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "22" | ||
|
|
||
| - name: Build azd | ||
| working-directory: cli/azd | ||
| run: go build -o ./azd . | ||
|
|
||
| - name: Install eval dependencies | ||
| working-directory: cli/azd/test/eval | ||
| run: npm ci | ||
|
|
||
| - name: Run unit tests | ||
| working-directory: cli/azd/test/eval | ||
| run: npm run test:unit -- --ci | ||
|
|
||
|
spboyer marked this conversation as resolved.
|
||
| # Waza YAML validation is local-only (run `npm run waza:validate` locally). | ||
| # waza CLI is not available in CI. | ||
|
|
||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.12" | ||
|
|
||
| - name: Install grader test dependencies | ||
| run: pip install pytest | ||
|
|
||
| - name: Run grader tests | ||
| working-directory: cli/azd/test/eval/graders | ||
| run: python -m pytest test_graders.py -v | ||
|
|
||
| - name: Upload test results | ||
| if: always() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: eval-unit-results | ||
| path: cli/azd/test/eval/reports/ | ||
| retention-days: 30 | ||
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| node_modules/ | ||
| dist/ | ||
| reports/*.json | ||
| reports/*.md | ||
| reports/junit.xml | ||
| !reports/.gitkeep |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.