Skip to content

missing abi error reproduction#186

Draft
ryley-o wants to merge 1 commit intomainfrom
abi-error-reproduction
Draft

missing abi error reproduction#186
ryley-o wants to merge 1 commit intomainfrom
abi-error-reproduction

Conversation

@ryley-o
Copy link
Contributor

@ryley-o ryley-o commented Jan 31, 2023

Description of the change

Remove ABIs from a portion of our subgraph template to induce missing ABI failure that only occurs during sync.

The following steps were performed to deploy this subgraph:

rm -r generated
# generate the generic generated files (without address-specific directories), which are imported in the handlers
yarn prepare:generic
yarn codegen
# deploy to hosted subgraph, which performs the following two commands:
# 1. update the subgraph yaml to include relevant contracts (we use mustache templating)
yarn prepare:goerli-dev
# 2. deploy to hosted service
graph deploy --product hosted-service --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ artblocks/art-blocks-dev-goerli"

The subgraph syncs until the EngineRegistry handler attempts to find the Ownable ABI, and the subgraph logs the following error:

Subgraph failed with non-deterministic error: failed to process trigger: block #8407460 (0x214c…916c), transaction 8b4acef7dc1487f56989470e45c40ac6f1d3e1c57d0098e9925a5451d71835cd: Could not find ABI for contract "Ownable", try adding it to the 'abis' section of the subgraph manifest wasm backtrace: 0: 0x2ed5 - <unknown>!~lib/@graphprotocol/graph-ts/chain/ethereum/ethereum.SmartContract#call 1: 0x3d7a - <unknown>!src/engine-registry/handleContractRegistered , retry_delay_s: 120, attempt: 0

The hosted subgraph is available here: https://thegraph.com/hosted-service/subgraph/artblocks/art-blocks-dev-goerli?version=pending&selected=logs

@ryley-o ryley-o changed the title remove some abis from subgraph yaml to induce failure only during sync missing abi error reproduction Jan 31, 2023
Base automatically changed from update-dev-and-staging-configs to main February 1, 2023 00:00
@ryley-o ryley-o added invalid This doesn't seem right wontfix This will not be worked on do not merge labels Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not merge invalid This doesn't seem right wontfix This will not be worked on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments