Skip to content

.NET: Cover Purview file activity serialization - #10564

Merged
Vincent Biret (baywet) merged 3 commits into
mainfrom
test/coverage-round2-microsoft.agents.ai.purview
Dec 3, 2026
Merged

Vincent Biret (baywet) merged 3 commits into
mainfrom
test/coverage-round2-microsoft.agents.ai.purview

Conversation

@baywet

Copy link
Copy Markdown
Member

Motivation & Context

Add regression coverage for Microsoft.Agents.AI.Purview without changing implementation or samples. This follows the merged coverage work in #10543.

Description & Review Guide

  • What are the major changes? .NET: Cover Purview file activity serialization. Test files: PurviewClientTests.cs.
  • What is the impact of these changes? Test-only. From dotnet: dotnet test --project tests\Microsoft.Agents.AI.Purview.UnitTests -f net11.0 -c Release — 107 passed. dotnet format tests\Microsoft.Agents.AI.Purview.UnitTests\Microsoft.Agents.AI.Purview.UnitTests.csproj --no-restore --verify-no-changes --include "tests\Microsoft.Agents.AI.Purview.UnitTests\PurviewClientTests.cs" — passed. These are local results, not aggregate CI coverage.
  • What do you want reviewers to focus on? Check that each new assertion pins observable behavior and that the fixtures are deterministic.

Related Issue

Part of the maintainer-authorized .NET coverage effort. Issue linkage is pending human review of this draft.

AI Assistance

  • No material AI assistance was used.
  • This is an AI-assisted contribution. I reviewed, understood, and verified all submitted content and accept responsibility for it.

AI assistance details: Copilot prepared and locally verified the tests and drafted this description. Human review and attestation are pending.

Contribution Checklist

  • The code builds clean without any errors or warnings
  • All unit tests pass, and I have added new tests where possible
  • The PR follows the Contribution Guidelines
  • This PR links to an agreed issue with no competing open PR, or the Related Issue section documents a trivial-change or repository-automation exception.
  • This is not a breaking change. If it is a breaking change, add the breaking change label (or add "[BREAKING]" to the title prefix, before or after any language prefix) — a workflow keeps the label and title prefix in sync automatically.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings December 3, 2026 12:16
@github-actions github-actions Bot added the .NET Usage: [Issues, PRs], Target: .Net label Dec 3, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the test-only serialization regression coverage.

No open issues 🎉

What changed in this PR

Adds test-only regression coverage for Purview file activity serialization, extending the coverage from #10543 without changing production code or samples.

Changes:

  • Verifies file metadata type, owner, and truncation status.
  • Confirms serialization includes the scope identifier but omits tenant and correlation routing fields.
File Description
dotnet/​tests/​Microsoft.Agents.AI.Purview.UnitTests/​PurviewClientTests.cs Adds a focused serialization test for file metadata and request routing fields.

Review effort: Balanced

@github-code-quality

github-code-quality Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Code coverage overview

Languages: C#

C# / code-coverage/dotnet

main 20222f0 test/coverage-round2... e18fa6c +/-
91% 91% 0%
View coverage of the 2 most impacted files.
File main 20222f0 test/coverage-round2... e18fa6c +/-
/home/runner/wo...SessionStore.cs 100% 38% -62%
/home/runner/wo...FileMetadata.cs 0% 100% +100%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.


Updated December 03, 2026 14:30 UTC

@baywet
Vincent Biret (baywet) added this pull request to the merge queue Dec 3, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 3, 2026
@baywet
Vincent Biret (baywet) added this pull request to the merge queue Dec 3, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 3, 2026
Merged via the queue into main with commit 1b1e143 Dec 3, 2026
36 checks passed
@baywet
Vincent Biret (baywet) deleted the test/coverage-round2-microsoft.agents.ai.purview branch December 3, 2026 14:46

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

.NET Usage: [Issues, PRs], Target: .Net

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants