Repository navigation
Move smoke tests to Azure DevOps with Entra ID auth - #2641
Dayenne Souza (dayesouza) wants to merge 6 commits into
Conversation
Switch the min-csv and text fixtures from api_key to auth_method: azure_managed_identity. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Run the Azure OpenAI-backed tests in Azure DevOps with Entra ID auth through a workload-identity service connection, with the same branch, draft, and path rules as the GitHub workflows. Co-Authored-By: Claude Fable 5.2 <[email protected]>
These tests now run in Azure DevOps (.azure-pipelines/), where Entra ID auth for Azure OpenAI is available. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Drop the search api_key from the text fixture so the vector store uses DefaultAzureCredential, stop the smoke harness from requiring the search env vars for every fixture, and run all fixtures in the Azure DevOps smoke pipeline. Co-Authored-By: Claude Fable 5.2 <[email protected]>
The notebook tests move to Azure DevOps separately in #2645, so restore the GitHub notebook workflow and drop the notebook pipeline from this branch. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Bicheng (BichengWang)
left a comment
There was a problem hiding this comment.
Reviewed 52904e3933266dae02bea55dfcf6ae57c3dea0b3 against current main.
The key removal is consistent across both smoke fixtures and the credential consumers. With only dummy endpoint variables and no API keys, both fixtures parse successfully; mocked sync/async completion and embedding calls receive the Azure token provider and no API key, and both Azure Search clients select DefaultAzureCredential.
With both AZURE_AI_SEARCH_* variables unset, invoking the decorated smoke test on main raises TypeError: str expected, not NoneType; this head reaches a stubbed indexer instead. No indexer or model call was executed. Both versions collect the smoke tests successfully. The existing configuration tests pass (10 tests), and local YAML assertions confirm both OS jobs invoke the smoke command inside AzureCLI@2 with both endpoint variables forwarded.
These are offline configuration and mocked wiring checks, not live Azure runs. I could not validate the service connection, tenant policy, RBAC, or private pipeline logs, and the failing hosted smoke checks still need resolution before merge. I found no additional code-level blocker in the changed files.
Description
Move the Azure OpenAI-backed smoke tests from GitHub Actions to Azure DevOps, and switch them from API-key auth to Entra ID auth.
The Azure OpenAI resource used by CI no longer accepts key auth, which is why the smoke tests currently fail on
main. Entra ID login from GitHub-hosted Actions runners is blocked by the tenant's Conditional Access policy (see #2640), but it works from Azure DevOps through a workload-identity service connection.Related Issues
Replaces #2640. The notebook tests move separately in #2645.
Proposed Changes
min-csv,text): replaceapi_keywithauth_method: azure_managed_identity.textfixture: drop the Azure AI Searchapi_key, so the vector store usesDefaultAzureCredential. The smoke test harness no longer requires theAZURE_AI_SEARCH_*variables for every fixture..azure-pipelines/python-smoke-tests.yml. It keeps the GitHub workflow's rules: pushes tomain, PRs targetingmain, draft PRs skipped, only the latest commit runs, markdown and.semversionerchanges ignored, Ubuntu and Windows..github/workflows/python-smoke-tests.yml.Checklist
Additional Notes
Results from the latest full run of the smoke pipeline on this PR:
min-csvtextEarlier runs failed a timing assertion on
generate_text_embeddings(400s limit) because thetext-embedding-3-largedeployment was limited to 20K tokens per minute. Its capacity has been raised to 300K tokens per minute; no test change was needed.Known gaps:
🤖 Generated with Claude Code