Skip to content

all: Remove Amp-powered subgraphs - #6822

Open
mangas wants to merge 2 commits into
masterfrom
mangas/remove-amp
Open

mangas wants to merge 2 commits into
masterfrom
mangas/remove-amp

Conversation

@mangas

@mangas mangas commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

What it does

  • Removes Amp-powered subgraphs (Amp-powered subgraphs #6218): graph/src/amp/, core/src/amp_subgraph/, the Amp instance manager in SubgraphProvider, the GRAPH_AMP_* env vars, --amp-flight-service-address, the amp chain config setting and docs/amp-powered-subgraphs.md.
  • Drops the crates only Amp used: arrow-flight, lazy-regex, sqlparser 0.57 (sqlparser-latest), plus Amp-only entries for ahash, half, arrow, tokio-util, chrono, futures, indoc, prometheus in graph/core. arrow/parquet stay (used by graph-store-postgres). Also drops tokio-util from core/gnd/node/tests and strum from core. Cargo.lock changed only by removal, no version bumps.
  • Collapses SubgraphProvider to a single instance manager (SubgraphProcessingKind had only Trigger left; its CancellationToken was never cancelled). Data sources and templates resolve concurrently again, as before Amp-powered subgraphs #6218. Removes the now-unused MetricsRegistry::new_int_counter; gnd's Manifest.schema becomes a String.
  • Removes gnd's SIGINT/SIGTERM handler, which only fed the Amp manager's cancellation token; Ctrl+C now terminates gnd by default again, as Remove the custom SIGINT and SIGTERM handlers #6294 did for graph-node.

Existing Amp deployments

  • Spec version 1.5.0 is kept, so stored manifests still parse up to the data source.
  • A data source with kind: amp is refused with Amp-powered subgraphs are no longer supported (graph/src/data_source/mod.rs, AMP_KIND). On start this is a normal SubgraphStartFailure: the node and other subgraphs keep running, and the deployment's data stays queryable. Deploying a new Amp subgraph fails with the same error.
  • BlockchainKind::from_str maps amp to Ethereum only so the manifest reaches that refusal instead of failing earlier with "unknown blockchain kind".
  • A leftover amp = "…" chain config entry is ignored.

Tests: graph::data_source::tests::amp_manifest_is_refused. cargo check --workspace --all-targets and just lint are clean locally; unit/runner/integration tests are left to CI.

Delete the Amp data source, its Flight client, codec, SQL handling and runner, the GRAPH_AMP_* settings, the --amp-flight-service-address option and the amp chain config setting. A manifest with an 'amp' data source is still recognised and refused with 'Amp-powered subgraphs are no longer supported'.
@mangas
mangas marked this pull request as ready for review November 27, 2026 18:23
- core: Collapse SubgraphProvider to a single instance manager; drop
  SubgraphProcessingKind and the never-cancelled CancellationToken
- graph: Resolve data sources and templates concurrently again; remove
  unused MetricsRegistry::new_int_counter
- gnd: Manifest.schema is always set, make it a String
- Drop tokio-util from core, gnd, node, tests and strum from core

This branch has not been deployed

No deployments
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