Skip to content

Publish stable Goldsky subgraph tags (mainnet/calibration) so consumers don't break on redeploy #106

Description

@SgtPooki

Problem

Consumers (e.g. dealbot) point at version-suffixed Goldsky subgraph slugs like pdp-explorer/mainnet311c / pdp-explorer/calibration311c. When the subgraph is redeployed, the deploy flow creates a new slug (...311d) and deletes the old one, so every consumer hardcoding the previous slug starts getting 404 Subgraph not found.

This just caused a ~6 day outage of dealbot's data-retention checks across mainnet and calibration:

  • On 2026-05-28 the subgraph was redeployed 311c311d (alongside fix: missing listener address in data set #105 "missing listener address").
  • The old mainnet311c / calibration311c endpoints were deleted → 404.
  • Dealbot's DataRetentionService.pollDataRetention() calls the subgraph first, so it aborted before emitting any metrics. SP approval stalled on "not enough samples" until the endpoints were repointed to 311d.

Request

Publish and maintain a stable, non-version-suffixed tag per network that always points at the current deployment, e.g.:

  • pdp-explorer-mainnet/prod/gn
  • pdp-explorer-calibration/prod/gn

Per the repo's own deploy doc (docs/subgraph/deployment.md), goldsky subgraph tag create/delete supports exactly this. The redeploy flow should:

  1. Deploy the new versioned subgraph (...311d).
  2. Wait for it to sync.
  3. Move the stable tag (mainnet/calibration) to the new version (delete + recreate tag), rather than expecting consumers to chase the versioned slug.

Then consumers configure the stable tag once and survive redeploys.

Definition of done

  • Stable mainnet and calibration tags exist on Goldsky and resolve ({ _meta { block { number } } } returns 200).
  • Deploy doc / runbook updated so redeploys repoint the stable tag as a required step.
  • (Coordination) dealbot PDP_SUBGRAPH_ENDPOINT switched to the stable tag once available.

Context / refs

  • Old (deleted): .../subgraphs/pdp-explorer/mainnet311c/gn, .../calibration311c/gn → 404
  • Current (live): .../subgraphs/pdp-explorer/mainnet311d/gn, .../calibration311d/gn
  • Likely trigger redeploy: fix: missing listener address in data set #105

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    🐱 Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions