Skip to content

[python] enable typespec-azure integration testing for http-client-python changes#10432

Merged
iscai-msft merged 1 commit into
microsoft:mainfrom
iscai-msft:python/integrationTest
Apr 20, 2026
Merged

[python] enable typespec-azure integration testing for http-client-python changes#10432
iscai-msft merged 1 commit into
microsoft:mainfrom
iscai-msft:python/integrationTest

Conversation

@iscai-msft
Copy link
Copy Markdown
Member

Summary

Remove packages/http-client-python/** from paths-ignore in the external integration workflow (external-integration.yml).

Motivation

@azure-tools/typespec-python (branded emitter) in the typespec-azure repo has a direct dependency on @typespec/http-client-python (unbranded emitter). Previously, changes to http-client-python were excluded from triggering the typespec-azure integration check, meaning branded emitter breakages could go undetected until after merge.

What this does

When a PR touches files in packages/http-client-python/, the integration workflow will now:

  1. Check out Azure/typespec-azure
  2. Update the core submodule to the PR commit
  3. Build typespec-azure (including typespec-python which depends on http-client-python)
  4. Run TypeScript tests and E2E tests

This ensures that unbranded emitter changes don't break the branded emitter build.

@github-actions
Copy link
Copy Markdown
Contributor

No changes needing a change description found.

@azure-sdk
Copy link
Copy Markdown
Collaborator

azure-sdk commented Apr 20, 2026

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@iscai-msft iscai-msft force-pushed the python/integrationTest branch from ac8812c to e93a764 Compare April 20, 2026 16:06
@iscai-msft iscai-msft force-pushed the python/integrationTest branch 5 times, most recently from e9298df to 62beffe Compare April 20, 2026 17:45
@iscai-msft iscai-msft enabled auto-merge April 20, 2026 18:05
Create python-integration.yml that triggers on http-client-python changes
and runs the full typespec-azure branded Python e2e test suite:
- Build & Regenerate
- Mock API Tests
- Type Checking (mypy, pyright)
- Lint & Format (pylint, lint:extra, format:extra:check)
- Docs Validation (apiview, sphinx)

The workflow checks out Azure/typespec-azure, patches the core submodule
to the PR commit, builds and packs http-client-python locally, then
overrides typespec-python's dependency to use the PR version instead of
the published npm version. This ensures tests validate the actual PR
changes, not the last release.

Reuses typespec-azure's composite actions for environment consistency.
external-integration.yml is unchanged — http-client-python stays in
paths-ignore since this dedicated workflow provides full Python coverage.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@iscai-msft iscai-msft force-pushed the python/integrationTest branch from 62beffe to 0211dd3 Compare April 20, 2026 18:07
@iscai-msft iscai-msft added this pull request to the merge queue Apr 20, 2026
Merged via the queue into microsoft:main with commit f9fc3d0 Apr 20, 2026
34 of 35 checks passed
@iscai-msft iscai-msft deleted the python/integrationTest branch April 20, 2026 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants