Skip to content

[Nitro CLI] Add source metadata and subgraph versions to commands#9181

Merged
tobias-tengler merged 8 commits intomainfrom
tte/nitro-cli-subgraphs-and-source
Mar 10, 2026
Merged

[Nitro CLI] Add source metadata and subgraph versions to commands#9181
tobias-tengler merged 8 commits intomainfrom
tte/nitro-cli-subgraphs-and-source

Conversation

@tobias-tengler
Copy link
Member

No description provided.

@tobias-tengler tobias-tengler force-pushed the tte/nitro-cli-subgraphs-and-source branch from d7ad8d2 to 308d87e Compare February 24, 2026 14:12
@codecov
Copy link

codecov bot commented Feb 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (6a3b7a3) to head (308d87e).
⚠️ Report is 796 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #9181       +/-   ##
==========================================
- Coverage   74.16%       0   -74.17%     
==========================================
  Files        2677       0     -2677     
  Lines      140790       0   -140790     
  Branches    16371       0    -16371     
==========================================
- Hits       104421       0   -104421     
+ Misses      30774       0    -30774     
+ Partials     5595       0     -5595     
Flag Coverage Δ
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tobias-tengler tobias-tengler marked this pull request as ready for review February 24, 2026 14:44
Copilot AI review requested due to automatic review settings February 24, 2026 14:44
Copy link
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

This PR adds source metadata tracking and subgraph version support to the Nitro CLI. It enables CLI commands to capture and pass source control information (GitHub commit details, workflow info, etc.) to the backend, and enhances fusion configuration publishing with support for multiple subgraph versions.

Changes:

  • Added --source-metadata option to upload, validate, and publish commands for schemas, clients, OpenAPI collections, MCP feature collections, and fusion subgraphs
  • Extended GraphQL schema with source metadata types, stage change events, and deployment subgraph connections
  • Deprecated single-subgraph fields in favor of new multi-subgraph support in FusionConfigurationDeployment
  • Refactored validation error fragments for better code reuse

Reviewed changes

Copilot reviewed 23 out of 25 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
schema.graphql Added source metadata types, subgraph versioning, new stage change events, and error types
persisted/operations.json Regenerated persisted operations with updated fragments
fragments.graphql Refactored OpenAPI and MCP validation fragments for better reusability
README.md Updated build commands to use explicit project path
OptionalSourceMetadataOption.cs New CLI option for optional source metadata input
SourceMetadataHelper.cs Helper class to parse JSON source metadata into input types
ConsoleHelpers.cs Simplified error printing with fragment-based interfaces
FusionPublishHelpers.cs Added subgraph version tracking and source metadata support
FusionPublishCommand.cs Integrated source metadata and subgraph versions into publish flow
Various command files Added source metadata option to upload, validate, and publish commands
.config/dotnet-tools.json Removed local tool manifest (now using explicit project path)

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

@github-actions
Copy link
Contributor

Fusion Gateway Performance Results

Simple Composite Query

Req/s Err%
Constant (50 VUs) 6894.57 0.00%
Ramping (0-500-0 VUs) 7452.27 0.00%
Response Times & Query
Min Med Avg P90 P95 Max
Constant 0.56ms 5.97ms 7.11ms 10.92ms 16.08ms 177.56ms
Ramping 0.56ms 24.21ms 29.63ms 62.92ms 75.88ms 178.18ms
query TestQuery {
  topProducts(first: 5) {
    inStock
    name
    price
    shippingEstimate
    upc
    weight
    reviews {
      id
      body
      author {
        id
        username
        name
      }
    }
  }
}

Deep Recursion Query

Req/s Err%
Constant (50 VUs) 1283.94 0.00%
Ramping (0-500-0 VUs) 1337.48 0.00%
Response Times & Query
Min Med Avg P90 P95 Max
Constant 4.08ms 34.15ms 37.80ms 52.03ms 62.03ms 430.38ms
Ramping 1.85ms 134.28ms 158.86ms 346.22ms 394.13ms 705.04ms
query TestQuery {
  users {
    id
    username
    name
    reviews {
      id
      body
      product {
        inStock
        name
        price
        shippingEstimate
        upc
        weight
        reviews {
          id
          body
          author {
            id
            username
            name
            reviews {
              id
              body
              product {
                inStock
                name
                price
                shippingEstimate
                upc
                weight
              }
            }
          }
        }
      }
    }
  }
  topProducts(first: 5) {
    inStock
    name
    price
    shippingEstimate
    upc
    weight
    reviews {
      id
      body
      author {
        id
        username
        name
        reviews {
          id
          body
          product {
            inStock
            name
            price
            shippingEstimate
            upc
            weight
          }
        }
      }
    }
  }
}

Variable Batching Throughput

Req/s Err%
Constant (50 VUs) 23596.27 0.00%
Ramping (0-500-0 VUs) 18337.79 0.00%
Response Times & Query
Min Med Avg P90 P95 Max
Constant 0.08ms 1.72ms 2.07ms 3.97ms 4.80ms 44.81ms
Ramping 0.08ms 9.51ms 11.47ms 23.46ms 28.34ms 101.08ms
query TestQuery($upc: ID!, $price: Long!, $weight: Long!) {
  productByUpc(upc: $upc) {
    inStock
    shippingEstimate(weight: $weight, price: $price)
  }
}

Variables (5 sets batched per request)

[
  { "upc": "1", "price": 899, "weight": 100 },
  { "upc": "2", "price": 1299, "weight": 1000 },
  { "upc": "3", "price": 15, "weight": 20 },
  { "upc": "4", "price": 499, "weight": 100 },
  { "upc": "5", "price": 1299, "weight": 1000 }
]

Run 22355799739 • Commit 5be8ef6 • Tue, 24 Feb 2026 15:08:55 GMT

@tobias-tengler tobias-tengler merged commit bec66ab into main Mar 10, 2026
121 of 123 checks passed
@tobias-tengler tobias-tengler deleted the tte/nitro-cli-subgraphs-and-source branch March 10, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants