Skip to content

Conversation

@msyyc
Copy link
Contributor

@msyyc msyyc commented Feb 6, 2026

PR summary:

Before complete design for Http.File, we skip those test cases for now

  • Add some test cases

@microsoft-github-policy-service microsoft-github-policy-service bot added the emitter:client:python Issue for the Python client emitter: @typespec/http-client-python label Feb 6, 2026
@msyyc msyyc changed the title fix http.file case [python] Fall back Http.File to bytes to fix nightly build Feb 6, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2026

All changed packages have been documented.

  • @typespec/http-client-python
Show changes

@typespec/http-client-python - internal ✏️

Add test case

@azure-sdk
Copy link
Collaborator

azure-sdk commented Feb 6, 2026

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 6, 2026

Open in StackBlitz

npm i https://pkg.pr.new/microsoft/typespec/@typespec/http@9604
npm i https://pkg.pr.new/microsoft/typespec/@typespec/http-client@9604

commit: 2e5ec73

Copy link
Member

@tadelesh tadelesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to skip these tests first. I think we need a formal discussion about how to support File type.

@msyyc msyyc changed the title [python] Fall back Http.File to bytes to fix nightly build [python] Fix nightly build Feb 9, 2026
@msyyc
Copy link
Contributor Author

msyyc commented Feb 9, 2026

After offline discussion, we will skip the test case of Http.File until we have a complete design.

msyyc added a commit to Azure/autorest.python that referenced this pull request Feb 9, 2026
@msyyc msyyc enabled auto-merge February 9, 2026 06:34
@msyyc msyyc added this pull request to the merge queue Feb 9, 2026
Merged via the queue into main with commit 8a53c37 Feb 9, 2026
31 checks passed
@msyyc msyyc deleted the python-nightly-fix branch February 9, 2026 07:44
msyyc added a commit to Azure/autorest.python that referenced this pull request Feb 9, 2026
* Add emitter options for type/file spec

* Update client-initialization emitter options to support default, individually, and individuallyParent sub-specs

* Update dependencies

* Add changelog

* Update dependencies (2026-02-09 03:18:57)

* Regenerate for typespec-python (2026-02-09 03:24:15)

* Sync hand-written test cases from TypeSpec PR #9604

- Update client-initialization tests to use .default sub-package imports
- Add multipart file upload tests (azure + unbranded, sync + async)
- Add new type/file test files (generic_mock_api_tests)
- Update requirements.txt with new generated package entries

* Update dependencies

* Update dependencies (2026-02-09 04:47:12)

* Regenerate for autorest.python (2026-02-09 05:07:00)

* Delete .chronus/changes/python-nightly-fix-2026-1-6-9-19-9.md

* update

* Sync test changes from microsoft/typespec#9604

* Update dependencies

* Update dependencies (2026-02-09 06:07:55)

* Regenerate for autorest.python (2026-02-09 06:27:31)

* update

---------

Co-authored-by: AutoPrFromHttpClientPython <AutoPrFromHttpClientPython>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:client:python Issue for the Python client emitter: @typespec/http-client-python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants