Repository navigation
[DO NOT MERGE] Migrate Storage private protocols to TypeSpec - #7495
Draft
JinmingHu (Jinming-Hu) wants to merge 6 commits into
Draft
JinmingHu (Jinming-Hu) wants to merge 6 commits into
JinmingHu (Jinming-Hu) wants to merge 6 commits into
Conversation
Generate Queues, Data Lake, File Shares, and Blob protocol clients from pinned TypeSpec inputs with C++-specific overlays. Preserve public headers, existing Storage pipelines, model compatibility, and handwritten Blob batch behavior through private adapters. Include reproducible generation scripts, offline protocol regression coverage, changelogs, and generation documentation. Preserve fixed-width ACL timestamps and whole-second Queue delegation-key request timestamps. Requires Azure/typespec-cpp commit f81e14cd6e09f00d89ae910c8bcfaab7c3bd347f, using committed emitter sources rather than unrelated local experiments. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Opt Storage into typed response header models and regenerate private ETag options/models with intrinsic ETag optionality. Preserve public adapters and document generation requirements. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Reference Azure/typespec-cpp#585 at 33d83878c16f09fc0377bd326845b9c40c2a5f24, including response-header compatibility defaults and intrinsic ETag optionality. Clean PR sources reproduce all 20 checked-in protocol files. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
3 tasks done
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Generate all four private protocols directly from the pinned Storage specs PR instead of maintaining SDK-local TypeSpec overlays. Stage the upstream Blob C++ projection and Queue decorator helper, align the response-header option, and pin the cleaned emitter history. Regeneration changes only private documentation; public include files and runtime code remain unchanged. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
3 tasks done
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
13 of 14 tasks
This branch has not been deployed
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.
Pull Request Checklist
Please leverage this checklist as a reminder to address commonly occurring feedback when submitting a pull request to make sure your PR can be reviewed quickly:
See the detailed list in the contributing guide.
Summary
Draft, not ready to merge. Move the private Storage protocols for Blobs, Queues, File Shares, and Data Lake from AutoRest to TypeSpec. Handwritten adapters preserve the existing public clients, models, options, headers, streaming behavior, and Storage error handling. No new public API is introduced by the migration, and no related issue has been filed.
The large diff is mostly generated private code replacing the old implementations. Blob batch handling and the XML/Arrow listing readers remain handwritten. Blob and File Shares range requests intentionally use the standard
Rangeheader instead ofx-ms-range; source-range and checksum headers remain unchanged.Generation inputs
Both upstream dependencies are merged:
810b64ca434127b81547fbbabec039fe2d9dc4f2.ba3eef39e5be55cd5ed1a2e5c6c9bb1a17c36b9a.All four packages now pin the merged specification and consume its C++-scoped customizations directly. Package-local TypeSpec overlays and the Queue JavaScript helper are removed. Regeneration documentation points to the merged emitter, and the protocols include its optional-body Content-Type fixes. Storage explicitly opts into typed response headers with
includeHeadersInResponse: true.Azure/azure-rest-api-specs#47445 is a separate App Configuration customization, not a Storage generation dependency.
Validation
For the refreshed draft at
f0331bf:6c25375bc97afcef5bf33947512887a942aa4c1f. This is not a comparison against newermain.Full PLAYBACK and LIVE suites were not rerun for this refresh. Earlier full PLAYBACK runs had recording mismatches from the intentional
Rangechange; they are not a current-head pass. No recordings or Azure resources were changed. Linux/macOS, curl, shared-library ABI, and the full packaging matrix remain outstanding.Remaining work
mainwithout losing newer Storage behavior. The branch still has merge conflicts. Newer SDK features, including Blob layout retrieval and File Shares hard-link listing/change feed, are absent from these pinned TypeSpec inputs. Resolving them needs additional protocol/specification work, not just a mechanical merge. This integration is intentionally deferred; no upstream feature has been discarded.Rangerequests and pass full PLAYBACK without weakening matching.