Repository navigation
.NET: Cover Foundry hosting lifecycle and session keys - #10530
Merged
Vincent Biret (baywet) merged 4 commits intoDec 3, 2026
Merged
Vincent Biret (baywet) merged 4 commits into
Vincent Biret (baywet) merged 4 commits into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Vincent Biret (baywet)
temporarily deployed
to
integration
December 3, 2026 07:58 — with
GitHub Actions
Inactive
Vincent Biret (baywet)
temporarily deployed
to
integration
December 3, 2026 07:58 — with
GitHub Actions
Inactive
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified in this test-only change covering hosting lifecycle behavior and session-key encoding.
No open issues 🎉
What changed in this PR
Adds regression tests for .NET Foundry hosting lifecycle behavior and session-key encoding, without changing production code.
Changes:
- Covers singleton and transient disposal, root-provider usage, and retry after a factory returns null.
- Verifies persisted Unicode session-key formatting and rejection of incomplete Unicode characters.
| File | Description |
|---|---|
| dotnet/tests/Microsoft.Agents.AI.Foundry.Hosting.UnitTests/FoundryHostedAgentRegistrationTests.cs | Adds agent lifecycle, factory retry, and provider-selection tests. |
| dotnet/tests/Microsoft.Agents.AI.Foundry.Hosting.UnitTests/FoundryAgentSessionStoreTests.cs | Adds Unicode session-key compatibility and validation tests. |
Review effort: Balanced
Contributor
Code coverage overviewLanguages: C# C# / code-coverage/dotnet
View coverage of the 10 most impacted files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. Updated |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Vincent Biret (baywet)
marked this pull request as ready for review
December 3, 2026 12:07
Vincent Biret (baywet)
enabled auto-merge
December 3, 2026 12:07
Vincent Biret (baywet)
temporarily deployed
to
integration
December 3, 2026 12:09 — with
GitHub Actions
Inactive
Vincent Biret (baywet)
temporarily deployed
to
integration
December 3, 2026 12:09 — with
GitHub Actions
Inactive
westey (westey-m)
approved these changes
Dec 3, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Dec 3, 2026
Vincent Biret (baywet)
enabled auto-merge
December 3, 2026 12:56
Vincent Biret (baywet)
had a problem deploying
to
integration
December 3, 2026 12:56 — with
GitHub Actions
Failure
Vincent Biret (baywet)
temporarily deployed
to
integration
December 3, 2026 12:56 — with
GitHub Actions
Inactive
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Vincent Biret (baywet)
temporarily deployed
to
integration
December 3, 2026 13:20 — with
GitHub Actions
Inactive
Vincent Biret (baywet)
temporarily deployed
to
integration
December 3, 2026 13:20 — with
GitHub Actions
Inactive
westey (westey-m)
approved these changes
Dec 3, 2026
Vincent Biret (baywet)
deleted the
test/coverage-microsoft.agents.ai.foundry.hosting
branch
December 3, 2026 15:06
This branch was previously 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.
Motivation & Context
Improve regression coverage for
Microsoft.Agents.AI.Foundry.Hostingwithout changing production code.Description & Review Guide
FoundryAgentSessionStoreTests.cs,FoundryHostedAgentRegistrationTests.cs.Related Issue
Part of the maintainer-authorized .NET coverage effort. Issue linkage is pending human review of this draft.
AI Assistance
AI assistance details: Copilot prepared and locally verified the tests and drafted the description. Human review and attestation are pending.
Contribution Checklist
breaking changelabel (or add "[BREAKING]" to the title prefix, before or after any language prefix) — a workflow keeps the label and title prefix in sync automatically.