Repository navigation
[8.0.0 Cherry-pick] Await enclave attestation in asynchronous command execution - #5066
Merged
Merged
Conversation
* Await enclave attestation during asynchronous command execution Integrate asynchronous enclave session preparation, creation, and invalidation with command cancellation and retry cleanup. Preserve synchronous behavior and shared metadata parsing; add deterministic and SQL-backed regression coverage. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 47a925b3-e0e6-43ed-9fb7-519060a206c2 * Retain describe connection ownership through reader registration Give asynchronous describe processing sole ownership of its captured connection reservation. Preserve original write faults and cancellation after connection closure, retain describe mode through reconnect, and test delayed reader registration and setup failures. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 47a925b3-e0e6-43ed-9fb7-519060a206c2 * Keep non-enclave command preparation inline and isolate test options Preserve null-task completion for parameterless Always Encrypted commands without an enclave workflow. Isolate simulated enclave fixtures by application name so cached attestation options cannot leak across reused server endpoints. Add deterministic regressions for both paths. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 47a925b3-e0e6-43ed-9fb7-519060a206c2 * Keep completed enclave batch preparation inline Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 47a925b3-e0e6-43ed-9fb7-519060a206c2 * Revalidate connection after asynchronous enclave preparation Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 47a925b3-e0e6-43ed-9fb7-519060a206c2 * Release retained connection reservation when enclave retry aborts Fix Parser namespace imports after the stack rebase and cover provider faults and cancellation after successful session invalidation. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 47a925b3-e0e6-43ed-9fb7-519060a206c2 * Test inline asynchronous enclave retry cleanup Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 47a925b3-e0e6-43ed-9fb7-519060a206c2 * Stabilize async command reservation fixture under coverage Gate the simulated response until overlap assertions finish and return metadata-free DONE for the fixture's negotiated encryption capabilities. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 47a925b3-e0e6-43ed-9fb7-519060a206c2 --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 47a925b3-e0e6-43ed-9fb7-519060a206c2
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Member
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
cheenamalhotra
approved these changes
Nov 13, 2026
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## release/8.0 #5066 +/- ##
===============================================
+ Coverage 68.97% 72.50% +3.52%
===============================================
Files 314 314
Lines 45857 71133 +25276
===============================================
+ Hits 31629 51573 +19944
- Misses 14228 19560 +5332
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This was referenced Nov 26, 2026
carndog
pushed a commit
to carndog/TradingEngine
that referenced
this pull request
Nov 26, 2026
Updated [Microsoft.Data.SqlClient](https://github.com/dotnet/sqlclient) from 7.1.2 to 8.0.0. <details> <summary>Release notes</summary> _Sourced from [Microsoft.Data.SqlClient's releases](https://github.com/dotnet/sqlclient/releases)._ ## 8.0.0 The driver and its four companion packages are version-aligned at `8.0.0`. Use matching versions of all installed family packages. The family `AssemblyVersion` is `8.0.0.0`; .NET Framework applications upgrading from 7.x should review strong-name binding redirects. Native SNI and `Microsoft.SqlServer.Server` remain independently versioned. ### Companion package release notes - [Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider 8.0.0](https://github.com/dotnet/SqlClient/blob/main/release-notes/add-ons/AzureKeyVaultProvider/8.0/8.0.0.md) - [Microsoft.Data.SqlClient.Extensions.Azure 8.0.0](https://github.com/dotnet/SqlClient/blob/main/release-notes/Extensions/Azure/8.0/8.0.0.md) - [Microsoft.Data.SqlClient.Extensions.Abstractions 8.0.0](https://github.com/dotnet/SqlClient/blob/main/release-notes/Extensions/Abstractions/8.0/8.0.0.md) - [Microsoft.Data.SqlClient.Internal.Logging 8.0.0](https://github.com/dotnet/SqlClient/blob/main/release-notes/Internal/Logging/8.0/8.0.0.md) ## Changes Since [8.0.0-preview1](https://github.com/dotnet/SqlClient/blob/main/release-notes/8.0/8.0.0-preview1.md) ### Changed #### Breaking default change: pool waits share the connection timeout budget *What Changed:* - `Switch.Microsoft.Data.SqlClient.UseOverallConnectTimeoutForPoolWait` now defaults to `true`. `SqlConnection.Open` and `OpenAsync` carry the remaining `Connect Timeout` budget through pool acquisition and login with either pool implementation. ([#4642](dotnet/SqlClient#4642), [#5030](dotnet/SqlClient#5030), [#5046](dotnet/SqlClient#5046)) *Who Benefits:* - Applications under pool contention no longer grant login a fresh full timeout after waiting. *Impact:* - Opens may time out sooner. Set the switch to `false` before using SqlClient to restore the prior separate budgets; the switch is cached on first use. `Connect Timeout=0` stays infinite. This does not claim that every remaining in-open round trip has been converted. See [networking migration guidance](https://github.com/dotnet/SqlClient/blob/main/doc/networking-defaults.md). #### Lower destination-metadata cost for name-mapped bulk copies *What Changed:* - `SqlBulkCopy` restores fast `SET FMTONLY ON; SELECT *` discovery for destination-name mappings, with one catalog fallback if a name is missing. Destination-ordinal mappings, implicit/default mappings, and SQL Graph aliases use catalog discovery directly. ([#4985](dotnet/SqlClient#4985), [#4988](dotnet/SqlClient#4988), [#5036](dotnet/SqlClient#5036)) *Who Benefits:* - Repeated name-mapped bulk loads avoid unnecessary catalog-query work on the server. *Impact:* - Automatic mode preserves hidden-column positions and graph-alias support. Fallback happens before rows are sent; it does not retry the write. - `Switch.Microsoft.Data.SqlClient.UseBulkCopyCatalogMetadataDiscovery=true` always uses catalog discovery and avoids fallback for hidden-name workloads. Explicit `false` never uses catalogs and uses visible-column positions, without hidden-column or graph-alias discovery. Leaving the switch unset selects automatic mode. #### Asynchronous command execution awaits enclave attestation *What Changed:* - Asynchronous command execution now awaits enclave-session lookup, attestation preparation, session creation, and retry-time invalidation, including the shared reader, nonquery, scalar, XML, APM, and batch paths. Caller cancellation reaches enclave-provider operations. ([#3672](dotnet/SqlClient#3672), [#4887](dotnet/SqlClient#4887), [#5066](dotnet/SqlClient#5066)) *Who Benefits:* ... (truncated) ## 8.0.0-preview1 This first 8.0 preview includes changes since the `release/7.1` branch point, [`92f220956b07328054701a869f452cade51830c1`](dotnet/SqlClient@92f2209) (2026-09-15), through [`b87ca6e7643611ddc3273324de346d09e8ff2c43`](dotnet/SqlClient@b87ca6e). Changes already shipped in 7.1.1 are identified below because the branch-cut baseline predates that release. The driver and its four companion packages use package version `8.0.0-preview1`. The family `AssemblyVersion` changes from `7.0.0.0` to `8.0.0.0`; .NET Framework applications should review strong-name binding redirects when upgrading. Native SNI and `Microsoft.SqlServer.Server` remain independently versioned. ### Companion package release notes - [Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider 8.0.0-preview1](https://github.com/dotnet/SqlClient/blob/main/release-notes/add-ons/AzureKeyVaultProvider/8.0/8.0.0-preview1.md) - [Microsoft.Data.SqlClient.Extensions.Azure 8.0.0-preview1](https://github.com/dotnet/SqlClient/blob/main/release-notes/Extensions/Azure/8.0/8.0.0-preview1.md) - [Microsoft.Data.SqlClient.Extensions.Abstractions 8.0.0-preview1](https://github.com/dotnet/SqlClient/blob/main/release-notes/Extensions/Abstractions/8.0/8.0.0-preview1.md) - [Microsoft.Data.SqlClient.Internal.Logging 8.0.0-preview1](https://github.com/dotnet/SqlClient/blob/main/release-notes/Internal/Logging/8.0/8.0.0-preview1.md) ### Added #### Vector float16 support and per-connection version negotiation *What Changed:* - Added support for SQL Server `vector(N, float16)`, including reader values, parameters, output parameters, column schema, and bulk copy. On modern .NET, use `SqlVector<Half>`; the existing `SqlVector<float>` API remains supported. ([#4501](dotnet/SqlClient#4501)) - Added the `Vector Type Support` connection-string keyword and `SqlConnectionStringBuilder.VectorTypeSupport`, of type `SqlVectorTypeSupport`. Values are `Off`, `V1`, and `V2`; the default is `V2`. *Who Benefits:* - Applications storing embeddings can use float16 vectors with smaller element payloads, while choosing the result-type contract independently for each connection. *Impact:* - **Result-type change:** when the server negotiates V2, modern .NET returns native `SqlVector<Half>` values for float16 columns instead of JSON strings. Set `Vector Type Support=v1` to preserve float16 JSON-string results, or `off` to receive all vector columns as text. Different settings use separate connection pools. - .NET Framework has no `System.Half`. Float16 columns remain available as JSON strings or through `GetSqlVector<float>`, which widens their elements exactly. Prefer the latter when reading many values, to avoid the additional JSON serialization. - `GetColumnSchema()` exposes `VectorBaseType` and `VectorDimensions` through the column indexer when native vector metadata is negotiated. - SQL Server performs cross-base conversion for native vector parameters and bulk-copy inputs. Typed vectors are not automatically serialized for text destinations; supply JSON strings or an explicit SQL cast instead. Vector TVPs are not added by this change. - Float16 requires a server that supports it; enable `PREVIEW_FEATURES` while the server feature is in preview. See the [float16 sample](https://github.com/dotnet/SqlClient/blob/main/doc/samples/SqlVectorFloat16Example.cs). ```csharp var builder = new SqlConnectionStringBuilder(connectionString) { VectorTypeSupport = SqlVectorTypeSupport.V1 }; ``` #### Opt-in reset of pooled transaction isolation levels *What Changed:* - Added `Switch.Microsoft.Data.SqlClient.EnableTransactionIsolationLevelReset`, default `false`. When enabled, a SqlClient-tracked isolation-level change is reset to `READ COMMITTED` before pooled reuse when no existing enlistment or active delegated transaction root remains. ([#96](dotnet/SqlClient#96), [#4330](dotnet/SqlClient#4330)) *Who Benefits:* - Applications that otherwise inherit an isolation level left by a previous user of a pooled connection. *Impact:* ... (truncated) Commits viewable in [compare view](dotnet/SqlClient@v7.1.2...v8.0.0). </details> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This was referenced Nov 27, 2026
This was referenced Nov 27, 2026
Open
Open
Open
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.
Cherry-pick of #4887 (5f74e8f) into
release/8.0.