[Search 2026-08-01-preview] python SDK codegen - #48349
Draft
efrainretana with Copilot wants to merge 2 commits into
Draft
[Search 2026-08-01-preview] python SDK codegen#48349efrainretana with Copilot wants to merge 2 commits into
efrainretana with Copilot wants to merge 2 commits into
Conversation
|
Azure Pipelines: 10 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
…nt codegen blocker Co-authored-by: efrainretana <141282336+efrainretana@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Generate Azure Search SDK for Python API version 2026-08-01-preview
[Search 2026-08-01-preview] python SDK codegen
Jul 29, 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.
Regenerate
azure-search-documentsfor Azure Search API2026-08-01-previewfrom spec commitc19e358860e3cb89a8c7021e8c5a181ab6ef7f62.Blocker: generator emits non-importable code (spec defect)
Running the documented generator (
tsp-client update, emitter@azure-tools/typespec-python@0.63.3) against this commit yields a package that fails to import:2026-08-01-previewrequest/response bodies are emitter-synthesized models (EntraAppAuthentication,FileUploadMetadata,KnowledgeBaseRetrieveDefaults,UploadKnowledgeSourceFileMultipartRequest, …) that resolve to the rootSearchTypeSpec namespace.@@clientNamespace("Azure.Search.Documents")inclient.tsp, so the emitter writes them to a top-levelsearch/package (sibling ofazure/) and references them viafrom ......search import models→ImportError: attempted relative import beyond top-level package. Thenamespace=azure.search.documentsemitter option makes it worse (azure.azuredouble-prefix).The fix lives in the spec's
client.tsp(Azure/azure-rest-api-specs), outside the allowed pathsdk/search/azure-search-documents/**. Per "report blockers instead of hand-editing generated code to mask spec issues," the broken generated surface is not committed.Changes (importable subset)
_patch.py— addApiVersion.V2026_08_01_PREVIEW, making the new version selectable on every client via theapi_versionkeyword._configuration.py(a generated file, not hand-edited); bumping only the_patch.pyDEFAULT_VERSIONwould desyncSearchClient/SearchIndexingBufferedSenderfrom the index/indexer/knowledgebase clients, so it's left atV2026_05_01_PREVIEW.tsp-location.yaml/_metadata.json— retarget spec commitc19e358/2026-08-01-preview.Not included (needs spec fix first)
c19e358(blocked by theclient.tsp@@clientNamespacedefect).2026-08-01-previewfeatures (SSE streaming retrieval,autoreasoning tier, multipart upload, WorkIQ auth, listing pagination).