Skip to content

[8.0.0 Cherry-pick] Return retry task from async XML enclave execution - #5136

Merged
benrr101 merged 1 commit into
release/8.0from
dev/automation/pr-5117-to-8.0.0
Nov 24, 2026
Merged

benrr101 merged 1 commit into
release/8.0from
dev/automation/pr-5117-to-8.0.0

Conversation

@github-actions

Copy link
Copy Markdown

Cherry-pick of #5117 (329df05) into release/8.0.

* Return retry task from async XML enclave execution

BeginExecuteXmlReader returned localCompletion, so the user's End ran
on the first attempt while the internal End and enclave retry were
still using the same state object. That desynced the TDS stream
(Internal connection fatal error, state 15). Return globalCompletion,
like Reader and NonQuery.

Co-authored-by: Copilot App <[email protected]>

* Test internal-End enclave retry for BeginExecuteXmlReader

Use a server 33195 response to trigger the internal End retry path and gate
the retry so the test fails if the result completes before the retry.

Co-authored-by: Copilot App <[email protected]>

* Await XML retry task before checking End error

The retry skips the internal End, so its task completes successfully and End reports the error.

Co-authored-by: Copilot App <[email protected]>

* Handle describe RPC in simulated enclave XML retry test

The CE enclave command sends sp_describe_parameter_encryption as an RPC,
which the TDS test server could not parse. Add minimal RPC routing and
answer it with an empty response in the retry test engine.

Co-authored-by: Copilot App <[email protected]>

* Release original async reservation after successful internal retry

Co-authored-by: Copilot App <[email protected]>

---------

Co-authored-by: Copilot App <[email protected]>
@github-actions
github-actions Bot requested a review from a team as a code owner November 23, 2026 23:30
@github-actions github-actions Bot added this to the 8.0.0 milestone Nov 23, 2026
@github-project-automation github-project-automation Bot moved this to To triage in SqlClient Board Nov 23, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@saurabh500
saurabh500 enabled auto-merge (squash) November 24, 2026 00:51
@benrr101

Copy link
Copy Markdown
Contributor

/azp run

@benrr101 benrr101 moved this from To triage to In review in SqlClient Board Nov 24, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
2 pipeline(s) were filtered out due to trigger conditions.

@saurabh500
saurabh500 disabled auto-merge November 24, 2026 01:45
@codecov

codecov Bot commented Nov 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.96%. Comparing base (3702b3f) to head (37b57cd).
⚠️ Report is 3 commits behind head on release/8.0.

Additional details and impacted files
@@               Coverage Diff               @@
##           release/8.0    #5136      +/-   ##
===============================================
- Coverage        74.60%   69.96%   -4.64%     
===============================================
  Files              313      313              
  Lines            45804    69738   +23934     
===============================================
+ Hits             34170    48793   +14623     
- Misses           11634    20945    +9311     
Flag Coverage Δ
CI-SqlClient ?
sqlclient-pr 69.96% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@benrr101
benrr101 merged commit 5db9890 into release/8.0 Nov 24, 2026
38 checks passed
@benrr101
benrr101 deleted the dev/automation/pr-5117-to-8.0.0 branch November 24, 2026 01:55
@github-project-automation github-project-automation Bot moved this from In review to Done in SqlClient Board Nov 24, 2026
@mdaigle mdaigle mentioned this pull request Nov 24, 2026
3 of 4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants