Skip to content

[Fusion] Add a planning fingerprint to gateway archives and expose it to the planner - #10421

Merged
tobias-tengler merged 4 commits into
mainfrom
tte/gateway-configuration-id
Sep 23, 2026
Merged

tobias-tengler merged 4 commits into
mainfrom
tte/gateway-configuration-id

Conversation

@tobias-tengler

Copy link
Copy Markdown
Member

No description provided.

The archive now writes a `configuration-id` file next to the gateway
schema, derived from the SHA-256 of the gateway SDL. Reading the archive
validates the ID against the schema and exposes it on
`GatewayConfiguration`, `FusionConfiguration` and `OperationPlannerFeature`.
@github-actions

github-actions Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Patch coverage

77.8% of changed lines covered (35/45)

File Covered Changed Patch %
…/Configuration/FileSystemFusionConfigurationProvider.cs 0 10 0.0% 🔴
…/src/Fusion.Execution/Configuration/FusionConfiguration.cs 1 1 100.0% 🟢
…/Fusion.Execution/Execution/FusionRequestExecutorManager.cs 10 10 100.0% 🟢
…/src/Fusion.Execution/Planning/OperationPlannerFeature.cs 1 1 100.0% 🟢
src/HotChocolate/Fusion/src/Fusion.Packaging/FileNames.cs 1 1 100.0% 🟢
…/HotChocolate/Fusion/src/Fusion.Packaging/FusionArchive.cs 18 18 100.0% 🟢
…/Fusion/src/Fusion.Packaging/GatewayConfiguration.cs 4 4 100.0% 🟢
Uncovered changed lines (JSON)
{
  "sha": "7c7aec0b110f20d6c3e910e54aea803dee3b5386",
  "files": [
    { "path": "src/HotChocolate/Fusion/src/Fusion.Execution/Configuration/FileSystemFusionConfigurationProvider.cs", "ranges": [[141, 141], [175, 175], [184, 186], [194, 198]] }
  ]
}

Project coverage: 58.4% (294720/504498 lines)

@tobias-tengler tobias-tengler changed the title [Fusion] Store a configuration ID in the gateway archive [Fusion] Add a planning fingerprint to gateway archives and expose it to the planner Sep 23, 2026
@tobias-tengler
tobias-tengler marked this pull request as ready for review September 23, 2026 13:29
Copilot AI lite review requested due to automatic review settings September 23, 2026 13:29

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.

Copilot review overview

🟡 Changes recommended

One or more issues must be addressed before approval.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 2 Medium severity

Open (2)
What changed in this PR

Adds a versioned planning fingerprint to Fusion gateway archives and propagates it through configuration into planner metadata.

Changes:

  • Computes, persists, and reads gateway planning fingerprints.
  • Exposes fingerprints on gateway and Fusion configurations.
  • Passes fingerprints into OperationPlannerFeature.
File Description
src/​HotChocolate/​Fusion/​test/​Fusion.Packaging.Tests/​FusionArchiveTests.cs Updated as part of this pull request.
src/​HotChocolate/​Fusion/​src/​Fusion.Packaging/​GatewayConfiguration.cs Updated as part of this pull request.
src/​HotChocolate/​Fusion/​src/​Fusion.Packaging/​FusionArchive.cs Updated as part of this pull request.
src/​HotChocolate/​Fusion/​src/​Fusion.Packaging/​FileNames.cs Updated as part of this pull request.
src/​HotChocolate/​Fusion/​src/​Fusion.Execution/​Planning/​OperationPlannerFeature.cs Updated as part of this pull request.
src/​HotChocolate/​Fusion/​src/​Fusion.Execution/​Execution/​FusionRequestExecutorManager.cs Updated as part of this pull request.
src/​HotChocolate/​Fusion/​src/​Fusion.Execution/​Configuration/​FusionConfiguration.cs Updated as part of this pull request.
src/​HotChocolate/​Fusion/​src/​Fusion.Execution/​Configuration/​FileSystemFusionConfigurationProvider.cs Updated as part of this pull request.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@tobias-tengler
tobias-tengler merged commit 470540c into main Sep 23, 2026
150 checks passed
@tobias-tengler
tobias-tengler deleted the tte/gateway-configuration-id branch September 23, 2026 13:51
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