test(azure): cover queue JSON validation - #10876
Merged
ReubenBond merged 2 commits intoAug 28, 2026
Merged
Conversation
11 tasks
Contributor
There was a problem hiding this comment.
Copilot review overview
Review tier: Lite
Findings: 1
New issues introduced by this change (1)
| Severity | Finding |
|---|---|
test/Extensions/Orleans.Azure.Tests/Streaming/AzureQueueJsonDataAdapterTests.cs — This test class now has Suite/Provider/Area traits but no longer has the legacy Category traits… |
What changed in this PR
Updates Azure Queue JSON adapter tests so they are correctly picked up by Azure provider coverage lanes and expands negative-path validation coverage for compact JSON envelopes.
Changes:
- Replaces legacy class-level
TestCategory("AzureStorage")/TestCategory("Streaming")traits with first-classTestSuite/TestProvider/TestAreatraits. - Adds new BVT test cases covering unsupported compact envelope versions, malformed required fields/types, and invalid JSON parsing.
| File | Description |
|---|---|
| test/Extensions/Orleans.Azure.Tests/Streaming/AzureQueueJsonDataAdapterTests.cs | Adds provider/suite/area traits and expands negative-path JSON envelope validation tests |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
ReubenBond
force-pushed
the
rb-10861-cloud-provider-coverage
branch
from
August 28, 2026 01:02
bac0867 to
e671508
Compare
Contributor
There was a problem hiding this comment.
Copilot review overview
Review tier: Lite
Findings: 1
New issues introduced by this change (1)
| Severity | Finding |
|---|---|
test/Extensions/Orleans.Azure.Tests/Streaming/AzureQueueJsonDataAdapterTests.cs — Asserting the full exception message makes the test brittle and currently this is the only… |
Pre-existing issues (1)
| Severity | Finding |
|---|---|
test/Extensions/Orleans.Azure.Tests/Streaming/AzureQueueJsonDataAdapterTests.cs — This test class now has Suite/Provider/Area traits but no longer has the legacy Category traits… View comment |
Suppressed comments (2)
test/Extensions/Orleans.Azure.Tests/Streaming/AzureQueueJsonDataAdapterTests.cs:24
- This file now uses the new suite/provider/area traits, but it removed the legacy AzureStorage/Streaming TestCategory tags which are still used across Orleans.Azure.Tests for filtering (e.g., test/Extensions/Orleans.Azure.Tests/AzureClientOptionsTests.cs:6 and Streaming/AzureQueueAdapterTests.cs:17). Keeping those categories in addition to TestSuite/TestProvider/TestArea preserves existing workflows and aligns with the project’s established test-tagging pattern.
[Collection(TestEnvironmentFixture.DefaultCollection)]
[TestSuite("BVT")]
[TestProvider("AzureStorage")]
[TestArea("Streaming")]
test/Extensions/Orleans.Azure.Tests/Streaming/AzureQueueJsonDataAdapterTests.cs:225
- Same here: asserting the full exception message (including exact enum casing/article) makes these validation tests more fragile than necessary. Using Assert.Contains provides coverage of the intended branch while allowing the error text to be clarified later.
var exception = Assert.Throws<InvalidDataException>(
() => jsonAdapter.FromQueueMessage(message, sequenceId: 0));
Assert.Equal(expectedMessage, exception.Message);
}
Contributor
There was a problem hiding this comment.
Copilot review overview
Review tier: Lite
Findings: None
Issues resolved since last review (2)
| Severity | Finding |
|---|---|
test/Extensions/Orleans.Azure.Tests/Streaming/AzureQueueJsonDataAdapterTests.cs — Asserting the full exception message makes the test brittle and currently this is the only… View resolved comment |
|
test/Extensions/Orleans.Azure.Tests/Streaming/AzureQueueJsonDataAdapterTests.cs — This test class now has Suite/Provider/Area traits but no longer has the legacy Category traits… View resolved comment |
Contributor
Code coverage78.67% line coverage - 99,603 / 126,605 lines Coverage details
|
This was referenced Aug 29, 2026
Merged
This was referenced Sep 9, 2026
Closed
Closed
This was referenced Sep 16, 2026
Open
Merged
Merged
This was referenced Sep 23, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.


Part of #10861.
The Azure Queue JSON adapter tests used legacy category traits, so the Azure Storage coverage partition selected none of them. This change adds first-class suite, provider, and area traits so the existing credential-free tests contribute to provider coverage, then covers unsupported envelope versions, malformed required fields and types, and invalid JSON.
Targeted coverage impact for
AzureQueueJsonDataAdapter:TryDeserializeCompactJsonline coverageTryDeserializeCompactJsonbranch coverageGetRequiredPropertyline coverageGetRequiredPropertybranch coverageThe canonical Azure Storage CI query now selects all 29 adapter test cases instead of zero. These tests run without credentials or Azurite.
Remaining #10861 scope includes DynamoDB mutation/configuration and reminder parsing, Azure table/blob/queue error paths, and focused Google, Redis, and Cassandra gaps.
Microsoft Reviewers: Open in CodeFlow