Skip to content

Move notebook tests to Azure DevOps with Entra ID auth - #2645

Merged
Dayenne Souza (dayesouza) merged 1 commit into
mainfrom
ado-notebook-tests
Nov 30, 2026
Merged

Dayenne Souza (dayesouza) merged 1 commit into
mainfrom
ado-notebook-tests

Conversation

@dayesouza

Copy link
Copy Markdown
Contributor

Description

Move the Azure OpenAI-backed notebook tests from GitHub Actions to Azure DevOps, where they authenticate with Entra ID instead of an API key.

The Azure OpenAI resource used by CI no longer accepts key auth. 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

Split out of #2641, which also moves the smoke tests. This PR contains only the notebook tests so they can land independently.

Proposed Changes

  • Add .azure-pipelines/python-notebook-tests.yml. It keeps the GitHub workflow's rules: pushes to main, PRs targeting main, draft PRs skipped, only the latest commit runs, markdown and .semversioner changes ignored, Ubuntu and Windows.
  • Remove .github/workflows/python-notebook-tests.yml.

No notebook changes are needed: the packages/graphrag-llm/notebooks notebooks already use AuthMethod.AzureManagedIdentity when GRAPHRAG_API_KEY is not set.

Checklist

  • I have tested these changes locally.
  • I have reviewed the code changes.
  • I have updated the documentation (if necessary).
  • I have added appropriate unit tests (if applicable).

Additional Notes

The same pipeline file has run on #2641: 12 notebooks passed on both Ubuntu and Windows.

Known gaps:

  • The smoke tests are not touched here. The GitHub smoke workflow still uses key auth and keeps failing until Move smoke tests to Azure DevOps with Entra ID auth #2641 lands.
  • The "only when Python files changed" step filter is not replicated; the tests run on any non-doc change.
  • Fork PRs build without the service connection, so this check fails for them (the GitHub workflow could not read the secrets for forks either).
  • Logs are in a private Azure DevOps project, so external contributors see pass/fail but cannot open them.

🤖 Generated with Claude Code

Add an Azure DevOps pipeline that runs the notebook tests against Azure
OpenAI with Entra ID auth, and remove the GitHub Actions workflow it
replaces. The Azure OpenAI resource used by CI no longer accepts key auth.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@dayesouza
Dayenne Souza (dayesouza) requested a review from a team as a code owner November 27, 2026 13:36
Dayenne Souza (dayesouza) added a commit that referenced this pull request Nov 27, 2026
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]>
@dayesouza
Dayenne Souza (dayesouza) merged commit b4f915f into main Nov 30, 2026
18 of 20 checks passed
@dayesouza
Dayenne Souza (dayesouza) deleted the ado-notebook-tests branch November 30, 2026 17:37
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.

2 participants