Skip to content

fix(provisions): propagate network subgraph query failures - #1260

Merged
tmigone merged 2 commits into
graphprotocol:mainfrom
chriswessels:chris/provisions-query-error
Oct 20, 2026
Merged

tmigone merged 2 commits into
graphprotocol:mainfrom
chriswessels:chris/provisions-query-error

Conversation

@chriswessels

@chriswessels chriswessels commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

When the Network Subgraph provisions query returns a GraphQL error, the resolver logs it and then reads result.data.provisions. Missing data replaces the useful upstream error with a TypeError; partial data can return incomplete provision evidence. Propagate the original query error before consuming its data.

The existing test configuration also treated an empty RPC environment variable as a configured endpoint, bypassing its public Arbitrum Sepolia fallback. Fork CI supplies unavailable secrets as empty strings, causing seven existing suites to fail during configuration parsing. Treat an empty override like an unset override while preserving explicit endpoints.

Validation: the missing/partial provisions regressions and empty-RPC configuration case fail before their fixes and pass afterward. Six focused tests across the resolver and test-configuration files pass, with scoped ESLint and Prettier. These focused tests require no database or RPC service. Full repository tests, including existing live integration coverage, remain in CI; no assertions or credential boundaries were weakened.

@github-project-automation github-project-automation Bot moved this to 🗃️ Inbox in Indexer Oct 19, 2026
@github-project-automation github-project-automation Bot moved this from 🗃️ Inbox to ✅ Approved in Indexer Oct 20, 2026
@tmigone
tmigone merged commit 9ba4589 into graphprotocol:main Oct 20, 2026
11 checks passed
@github-project-automation github-project-automation Bot moved this from ✅ Approved to 🚗 Merged in Indexer Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🚗 Merged

Development

Successfully merging this pull request may close these issues.

2 participants