fix: drop deprecated goerli models causing prod failures#9712
Conversation
PR SummaryLow Risk Overview Deleted: chain-specific models and tests for Safe ( Wired through: Out of scope (same PR diff): Root-level Goerli source YAML and Goerli models in other subprojects are unchanged. Reviewed by Cursor Bugbot for commit 170a8fe. Configure here. |
Goerli testnet was sunset and the underlying source schemas/tables
(gnosis_safe_goerli, zora_goerli, erc721_goerli, erc1155_goerli,
tokens_goerli, goerli) no longer exist in DuneSQL, causing the prod
hourly run to fail with SCHEMA_NOT_FOUND / TABLE_NOT_FOUND.
Removes the goerli models from hourly_spellbook entirely:
- safe_goerli_{singletons,safes,transactions,eth_transfers} + tests
- addresses_events_goerli_{first_activity,first_funded_by,first_token_received}
- nft_goerli_{transfers,approvals}
- zora_goerli_mints
Strips goerli refs from the umbrella aggregators (safe_*_all,
nft_transfers, nft_approvals, zora_mints) and schema/tag metadata.
Same goerli sunset as the hourly_spellbook fix: this model reads
source('erc20_goerli', 'evt_Transfer') and source('nft_goerli', 'transfers'),
both decoded schemas that no longer exist in DuneSQL. Output table
labels.token_standards_goerli had 0 query executions in 180 days
per Amplitude, so removal is safe.
Strips the ref from the labels_token_standards umbrella and the
goerli entries from the surrounding schema/tag metadata.
6d00d4e to
b02e2dd
Compare
Summary
Prod hourly dbt run is failing because the deprecated decoded goerli schemas (
gnosis_safe_goerli,zora_goerli,erc721_goerli,erc1155_goerli,tokens_goerli,nft_goerli) no longer exist in DuneSQL — goerli testnet was sunset. Visible errors:SCHEMA_NOT_FOUNDongnosis_safe_goerli,TABLE_NOT_FOUNDondelta_prod.zora_goerli.erc721drop_evt_sale(full run:ERROR=4 SKIP=12).The raw
goerlichain schema (transactions/traces) is still active per Amplitude (~15–30 query executions/day) and is left untouched. All decoded goerli schemas have 0 queries in the last 180 days per Amplitude, and the spell outputs we're removing have 0–1 queries in that same window — safe to delete.Changes by subproject
hourly_spellbook— primary fixRemoves the 10 goerli models + their tests, the
safe_goerlischema entry indbt_project.yml, and strips goerli refs from the umbrella aggregators (safe_*_all,nft_transfers,nft_approvals,zora_mints) plus blockchain/tag lists.safe_goerli_{singletons,safes,transactions,eth_transfers},zora_goerli_mints.addresses_events_goerli_{first_activity,first_funded_by,first_token_received},nft_goerli_{transfers,approvals}.daily_spellbook— same root cause, separate breakagelabels_token_standards_goerli(readserc20_goerli,nft_goerli— both gone, so this is failing on every daily run).labels_token_standardsumbrella and the schema/tag metadata.labels_contract_deployers_goerlialone (it reads rawgoerli.creation_traces, still works).Out of scope
tokenssubproject has 10tokens_goerli_*models but all are taggedstatic(per repo convention: "only run when modified") — they're dormant in prod, not actively breaking. Separate cleanup if anyone wants to remove them.goerlichain schema itself are untouched.Failing run for reference: https://nd058.us1.dbt.com/deploy/58579/projects/259299/runs/70471882012070/
Test plan
uv run dbt compilepasses inhourly_spellbook(2187 models).uv run dbt compilepasses indaily_spellbook(2807 models).dbt slim cigreen on this branch.