Repository navigation
Migrate build and E2E tests to Azure Pipelines - #656
Merged
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 019ed4af-f34c-4cc8-8465-a038be55d9f6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 019ed4af-f34c-4cc8-8465-a038be55d9f6
Contributor
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 019ed4af-f34c-4cc8-8465-a038be55d9f6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4ce38852-3d06-4124-b043-c7591a9f49f7
Provision matrix interpreters with uv, preserve sequential E2E jobs, and validate variable-group inputs. Document pipeline setup requirements. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Seed tagged data before conditional ingestion and observe the row count for delayed duplicates. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Correct optional and response annotations, narrow synchronous client types, and fix pandas test typing. Leave warning-only diagnostics and the type-check baseline unchanged. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The credential-free build step can fail during test collection when fork builds lack ENGINE_CONNECTION_STRING, because --no-e2e does not prevent import-time access to the missing setting.
1 open issue
What changed in this PR
Migrates build and E2E validation from GitHub Actions to Azure Pipelines, with contributor setup guidance and typing corrections.
Changes:
- Adds a sequential Python 3.9–3.13 matrix, uv caching, validation checks, and test/documentation artifacts.
- Documents Azure authentication and variable-group requirements; removes the GitHub Actions workflow and Pages deployment.
- Fixes ingestion-by-tag test setup and duplicate detection, and updates typing without intended SDK behavior changes.
| File | Description |
|---|---|
pyproject.toml |
Restricts type-check reporting to errors. |
CONTRIBUTING.md |
Documents Azure CI setup and type-check policy. |
azure-kusto-ingest/tests/test_e2e_ingest.py |
Seeds tagged data, observes duplicate suppression, and adjusts typing. |
azure-kusto-data/tests/test_helpers.py |
Uses a type-compatible null-value assertion. |
azure-kusto-data/tests/test_e2e_data.py |
Narrows the response type before checking status. |
azure-kusto-data/azure/kusto/data/exceptions.py |
Updates type-only imports and error-dictionary typing. |
azure-kusto-data/azure/kusto/data/env_utils.py |
Adds overloads for environment lookup return types. |
azure-kusto-data/azure/kusto/data/client.py |
Narrows the HTTP session type. |
azure-kusto-data/azure/kusto/data/client_base.py |
Narrows the cluster URL type for endpoint validation. |
azure-kusto-data/azure/kusto/data/_cloud_settings.py |
Marks the session parameter as optional. |
.github/workflows/build.yml |
Removes the previous validation and Pages workflow. |
.azuredevops/build.yml |
Implements the Azure validation matrix and artifact publishing. |
Review effort: Balanced
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Credentialed PR execution depends on Azure DevOps fork restrictions, same-repository PR approvals, and service-connection approvals outside this checkout that a maintainer should verify for the migrated pipeline.
No open issues 🎉
1 resolved since last review
Review effort: Balanced
Tanmaya Panda (tanmaya-panda1)
approved these changes
Nov 11, 2026
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.

Added
azure-kusto-python-e2evariable group, workload identity, required settings, and optional blob/Application Insights coverage.Changed
kusto-connectors-arm-scservice connection. The fork-build path runs tests without Azure credentials.poe typeswithbasedpyright --level error, making warnings non-blocking. The Azure type-check step remains optional, so actual type errors also do not fail the overall job.Fixed
Validation
Validated on commit
5e28d05de3b8871d54c0ec2f1f2c4e3452d666d5by Azure Pipelines run 20261110.6: Succeeded (not partially succeeded), covering the complete Python 3.9–3.13 matrix.poe test --ci(pytest -n8 --junit-xml pytest.xml) — passed across all five Python versions, including blob ingestion.poe check-formatandpoe lint— passed across the matrix.poe types(uv run basedpyright --level error) — passed across all five versions with no reported errors. Warnings are filtered by the error-only policy, not resolved in source.datetime.utcnow()on Python 3.12+, missing local.env, the hosted-image migration notice, and a cache-key change between restore/save as the lockfile hash changes during the job.ENGINE_CONNECTION_STRING=https://dummy.kusto.windows.netand authentication environment variables cleared,uv run --no-sync pytest --collect-only -n0 -q --ignore=azure-kusto-data\tests\test_e2e_data.py --ignore=azure-kusto-ingest\tests\test_e2e_ingest.py— passed locally, 289 tests collected (exit code 0). The Azure run was a trusted-branch run and did not execute the fork-only step.masterand was not exercised by this branch run. GitHub Pages deployment is no longer provided by this PR.