Skip to content

[Fusion] Add pre-merge validation rule "SpecifiedByUrlMismatchRule"#9306

Merged
glen-84 merged 3 commits intomainfrom
gai/specified-by-url-mismatch-rule
Mar 5, 2026
Merged

[Fusion] Add pre-merge validation rule "SpecifiedByUrlMismatchRule"#9306
glen-84 merged 3 commits intomainfrom
gai/specified-by-url-mismatch-rule

Conversation

@glen-84
Copy link
Copy Markdown
Member

@glen-84 glen-84 commented Mar 5, 2026

Summary of the changes (Less than 80 chars)

  • [Fusion] Add pre-merge validation rule "SpecifiedByUrlMismatchRule".

Copilot AI review requested due to automatic review settings March 5, 2026 08:02
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 5, 2026

Fusion Gateway Performance Results

Progress: 0/6 benchmarks completed — this report updates as each job finishes.

Simple Composite Query

Req/s Err%
Constant 1 (50 VUs) pending pending
Ramping 1 (0-500-0 VUs) pending pending
Response Times
Min Med Avg P90 P95 Max
Constant 1 pending pending pending pending pending pending
Ramping 1 pending pending pending pending pending pending

Deep Recursion Query

Req/s Err%
Constant 1 (50 VUs) pending pending
Ramping 1 (0-500-0 VUs) pending pending
Response Times
Min Med Avg P90 P95 Max
Constant 1 pending pending pending pending pending pending
Ramping 1 pending pending pending pending pending pending

Variable Batching Throughput

Req/s Err%
Constant 1 (50 VUs) pending pending
Ramping 1 (0-500-0 VUs) pending pending
Response Times
Min Med Avg P90 P95 Max
Constant 1 pending pending pending pending pending pending
Ramping 1 pending pending pending pending pending pending

Runner 1 = benchmarking-1

Run 22708752786 • Commit bab69fe • Thu, 05 Mar 2026 08:18:15 GMT

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new Fusion pre-merge validation rule to detect inconsistent @specifiedBy(url: ...) values for scalar types across source schemas, surfacing the issue as composition warnings.

Changes:

  • Introduce SpecifiedByUrlMismatchRule and wire it into the pre-merge rule pipeline.
  • Publish new ScalarTypeGroupEvent from PreMergeValidator to enable scalar-focused rules.
  • Add a new log entry code + localized message, and add coverage via dedicated rule tests.

Reviewed changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/HotChocolate/Fusion-vnext/test/Fusion.Composition.Tests/PreMergeValidationRules/SpecifiedByUrlMismatchRuleTests.cs Adds tests covering matching vs mismatching scalar specifiedBy URLs (warning snapshots).
src/HotChocolate/Fusion-vnext/src/Fusion.Composition/SchemaComposer.cs Registers the new pre-merge validation rule in the composition pipeline.
src/HotChocolate/Fusion-vnext/src/Fusion.Composition/Properties/CompositionResources.resx Adds localized message template for the new warning.
src/HotChocolate/Fusion-vnext/src/Fusion.Composition/Properties/CompositionResources.Designer.cs Updates strongly-typed resource accessors for the new message.
src/HotChocolate/Fusion-vnext/src/Fusion.Composition/PreMergeValidator.cs Publishes ScalarTypeGroupEvent by grouping scalar types per name across schemas.
src/HotChocolate/Fusion-vnext/src/Fusion.Composition/PreMergeValidationRules/SpecifiedByUrlMismatchRule.cs Implements the new rule that logs warnings when scalar SpecifiedBy differs across schemas.
src/HotChocolate/Fusion-vnext/src/Fusion.Composition/Logging/LogEntryHelper.cs Adds helper to build the SPECIFIED_BY_URL_MISMATCH warning log entry.
src/HotChocolate/Fusion-vnext/src/Fusion.Composition/Logging/LogEntryCodes.cs Adds the SPECIFIED_BY_URL_MISMATCH log entry code constant.
src/HotChocolate/Fusion-vnext/src/Fusion.Composition/Info/ScalarTypeInfo.cs Adds ScalarTypeInfo to carry scalar+schema information through events.
src/HotChocolate/Fusion-vnext/src/Fusion.Composition/Events/GroupEvents.cs Adds ScalarTypeGroupEvent event contract for scalar-type grouping.
Files not reviewed (1)
  • src/HotChocolate/Fusion-vnext/src/Fusion.Composition/Properties/CompositionResources.Designer.cs: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants