From ffa2079bf6afef496e8e2e9513c3e401494d4c5b Mon Sep 17 00:00:00 2001 From: mattromano Date: Mon, 12 Jan 2026 13:09:33 -0800 Subject: [PATCH] fix tests again --- .../test_gold__ez_balances_native_full.yml | 6 ++++-- .../test_gold__fact_event_logs_full.yml | 8 +++++--- .../test_gold__fact_event_logs_recent.yml | 5 +++-- .../tests/traces/test_gold__fact_traces_full.yml | 15 ++++++++++----- .../traces/test_gold__fact_traces_recent.yml | 15 ++++++++++----- .../test_gold__fact_transactions_full.yml | 6 ++++-- .../test_gold__fact_transactions_recent.yml | 3 ++- 7 files changed, 38 insertions(+), 20 deletions(-) diff --git a/models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_full.yml b/models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_full.yml index 5176c020..7332ebc7 100644 --- a/models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_full.yml +++ b/models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_full.yml @@ -11,11 +11,13 @@ models: - ADDRESS - fsc_evm.balances_sequence_gaps: column_name: TX_POSITION - where: BLOCK_TIMESTAMP < CURRENT_DATE - 1 partition_by: - BLOCK_NUMBER + config: + where: BLOCK_TIMESTAMP < CURRENT_DATE - 1 - fsc_evm.balances_diffs_native: - where: BLOCK_TIMESTAMP < CURRENT_DATE - 1 + config: + where: BLOCK_TIMESTAMP < CURRENT_DATE - 1 arguments: test_model: test_gold__fact_traces_full columns: diff --git a/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml b/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml index 9099e89c..3be012f4 100644 --- a/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml +++ b/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml @@ -10,9 +10,10 @@ models: - EVENT_INDEX - fsc_evm.sequence_gaps: column_name: EVENT_INDEX - where: BLOCK_TIMESTAMP < CURRENT_DATE - 1 partition_by: - BLOCK_NUMBER + config: + where: BLOCK_TIMESTAMP < CURRENT_DATE - 1 - events_match_txs: arguments: transactions_model: ref('test_gold__fact_transactions_full') @@ -43,8 +44,9 @@ models: arguments: regex: 0[xX][0-9a-fA-F]+ - fsc_utils.tx_block_count: - severity: error - error_if: "!=0" + config: + severity: error + error_if: "!=0" - name: TX_POSITION tests: - not_null diff --git a/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml b/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml index 2ae36ffa..fd4e9461 100644 --- a/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml +++ b/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml @@ -42,8 +42,9 @@ models: arguments: regex: 0[xX][0-9a-fA-F]+ - fsc_utils.tx_block_count: - severity: error - error_if: "!=0" + config: + severity: error + error_if: "!=0" - name: TX_POSITION tests: - not_null diff --git a/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml b/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml index 6313183c..af5541cc 100644 --- a/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml +++ b/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml @@ -10,9 +10,10 @@ models: - TRACE_INDEX - fsc_evm.sequence_gaps: column_name: TRACE_INDEX - where: BLOCK_TIMESTAMP < CURRENT_DATE - 1 AND TX_HASH IS NOT NULL partition_by: - TX_HASH + config: + where: BLOCK_TIMESTAMP < CURRENT_DATE - 1 AND TX_HASH IS NOT NULL - txs_have_traces: arguments: transactions_model: ref('test_gold__fact_transactions_full') @@ -62,21 +63,25 @@ models: - name: FROM_ADDRESS tests: - not_null: - where: TYPE <> 'SELFDESTRUCT' + config: + where: TYPE <> 'SELFDESTRUCT' - dbt_expectations.expect_column_values_to_match_regex: - where: FROM_ADDRESS IS NOT NULL AND TRACE_ADDRESS <> 'ORIGIN' + config: + where: FROM_ADDRESS IS NOT NULL AND TRACE_ADDRESS <> 'ORIGIN' arguments: regex: 0[xX][0-9a-fA-F]+ - name: TO_ADDRESS tests: - dbt_expectations.expect_column_values_to_match_regex: - where: TO_ADDRESS IS NOT NULL + config: + where: TO_ADDRESS IS NOT NULL arguments: regex: 0[xX][0-9a-fA-F]+ - name: INPUT tests: - not_null: - where: TYPE <> 'SELFDESTRUCT' + config: + where: TYPE <> 'SELFDESTRUCT' - name: TYPE tests: - not_null diff --git a/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml b/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml index 3a8a1d10..7e062d48 100644 --- a/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml +++ b/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml @@ -10,9 +10,10 @@ models: - TRACE_INDEX - fsc_evm.sequence_gaps: column_name: TRACE_INDEX - where: TX_HASH IS NOT NULL partition_by: - TX_HASH + config: + where: TX_HASH IS NOT NULL - txs_have_traces: arguments: transactions_model: ref('test_gold__fact_transactions_recent') @@ -62,21 +63,25 @@ models: - name: FROM_ADDRESS tests: - not_null: - where: TYPE <> 'SELFDESTRUCT' + config: + where: TYPE <> 'SELFDESTRUCT' - dbt_expectations.expect_column_values_to_match_regex: - where: FROM_ADDRESS IS NOT NULL AND TRACE_ADDRESS <> 'ORIGIN' + config: + where: FROM_ADDRESS IS NOT NULL AND TRACE_ADDRESS <> 'ORIGIN' arguments: regex: 0[xX][0-9a-fA-F]+ - name: TO_ADDRESS tests: - dbt_expectations.expect_column_values_to_match_regex: - where: TO_ADDRESS IS NOT NULL + config: + where: TO_ADDRESS IS NOT NULL arguments: regex: 0[xX][0-9a-fA-F]+ - name: INPUT tests: - not_null: - where: TYPE <> 'SELFDESTRUCT' + config: + where: TYPE <> 'SELFDESTRUCT' - name: TYPE tests: - not_null diff --git a/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml b/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml index fcdc1049..80b3dc95 100644 --- a/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml +++ b/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml @@ -9,9 +9,10 @@ models: - TX_HASH - fsc_evm.sequence_gaps: column_name: TX_POSITION - where: BLOCK_TIMESTAMP < CURRENT_DATE - 1 partition_by: - BLOCK_NUMBER + config: + where: BLOCK_TIMESTAMP < CURRENT_DATE - 1 - txs_match_blocks: arguments: blocks_model: ref('test_gold__fact_blocks_full') @@ -51,7 +52,8 @@ models: - name: TO_ADDRESS tests: - dbt_expectations.expect_column_values_to_match_regex: - where: TO_ADDRESS IS NOT NULL + config: + where: TO_ADDRESS IS NOT NULL arguments: regex: 0[xX][0-9a-fA-F]+ - name: ORIGIN_FUNCTION_SIGNATURE diff --git a/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml b/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml index e4d1686a..508c77cb 100644 --- a/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml +++ b/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml @@ -50,7 +50,8 @@ models: - name: TO_ADDRESS tests: - dbt_expectations.expect_column_values_to_match_regex: - where: TO_ADDRESS IS NOT NULL + config: + where: TO_ADDRESS IS NOT NULL arguments: regex: 0[xX][0-9a-fA-F]+ - name: ORIGIN_FUNCTION_SIGNATURE