Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AN-5278/test-fsc-evm-v2 (do not merge) #965

Open
wants to merge 37 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
db49940
test package
drethereum Oct 10, 2024
a7ac7a7
test package
drethereum Oct 10, 2024
5256fea
updates
drethereum Oct 11, 2024
8804e6a
dbt project typo
drethereum Oct 11, 2024
7d6dcfa
models path
drethereum Oct 11, 2024
f1b5ba4
vars
drethereum Oct 11, 2024
8213ac2
vars clean up
drethereum Oct 11, 2024
f05943e
package
drethereum Oct 15, 2024
6aa8312
enable complete in fsc-evm
drethereum Oct 15, 2024
362d1de
package
drethereum Oct 15, 2024
24ba2a9
removed models that exist in fsc-evm, updated bronze streamline model…
drethereum Oct 16, 2024
9d4b539
beacon chain
drethereum Oct 16, 2024
4937c8a
vars for decoder and history models
drethereum Oct 16, 2024
83f5e2b
traces history
drethereum Oct 16, 2024
c2ecc60
fsc_evm prefix on logging macro
drethereum Oct 16, 2024
09c1502
project vars
drethereum Oct 16, 2024
be8b666
vars and folders
drethereum Oct 17, 2024
02795b7
project vars
drethereum Oct 17, 2024
f6aef6f
updated params
drethereum Oct 17, 2024
b0ef207
beacon vars
drethereum Oct 17, 2024
cef77e0
remove github_actions
drethereum Oct 17, 2024
b608564
dbt project packages
drethereum Oct 17, 2024
e42a0da
column standards
drethereum Oct 17, 2024
a2ae84f
move doc refs to fsc-evm
drethereum Oct 17, 2024
48ef096
add testing limits
drethereum Oct 18, 2024
fb7dcc5
node path
drethereum Oct 18, 2024
37676f9
testing limit vars and comments
drethereum Oct 18, 2024
6d92359
prices vars
drethereum Oct 25, 2024
326e2db
tags in beacon and decoder
drethereum Oct 28, 2024
93b8278
renamed confirm blocks and reads refs
drethereum Oct 28, 2024
810dca5
package
drethereum Oct 28, 2024
8b78667
deprecation notices
drethereum Oct 28, 2024
e3a0313
block hash
drethereum Oct 28, 2024
76f2748
temp vars
drethereum Oct 29, 2024
ed15dfe
updated dbt_project.yml models and workflows for v3.0.0
drethereum Oct 29, 2024
260107d
remove package lock
drethereum Oct 29, 2024
0e42170
remove dupes
drethereum Oct 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/dbt_run_scheduled_curated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ jobs:
dbt deps
- name: Run DBT Jobs
run: |
dbt run -m "ethereum_models,tag:curated"
dbt run -m "ethereum_models,tag:curated" "fsc_evm,tag:curated"
2 changes: 1 addition & 1 deletion .github/workflows/dbt_run_scheduled_non_realtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ jobs:
dbt deps
- name: Run DBT Jobs
run: |
dbt run --vars '{"STREAMLINE_INVOKE_STREAMS":True}' -m "ethereum_models,tag:non_realtime" "ethereum_models,tag:realtime" "ethereum_models,tag:streamline_decoded_logs_realtime" "ethereum_models,tag:streamline_decoded_logs_complete" "ethereum_models,tag:streamline_balances_realtime" "ethereum_models,tag:streamline_balances_complete" "ethereum_models,tag:streamline_decoded_traces_complete" "ethereum_models,tag:streamline_decoded_traces_realtime"
dbt run --vars '{"STREAMLINE_INVOKE_STREAMS":True}' -m "ethereum_models,tag:non_realtime" "ethereum_models,tag:realtime" "fsc_evm,tag:silver_core" "fsc_evm,tag:gold_core" "fsc_evm,tag:streamline_decoded_logs_realtime" "fsc_evm,tag:streamline_decoded_logs_complete" "fsc_evm,tag:streamline_balances_realtime" "fsc_evm,tag:streamline_balances_complete" "fsc_evm,tag:streamline_decoded_traces_complete" "fsc_evm,tag:streamline_decoded_traces_realtime"
2 changes: 1 addition & 1 deletion .github/workflows/dbt_run_streamline_abis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ jobs:
dbt deps
- name: Run DBT Jobs
run: |
dbt run --vars '{"STREAMLINE_INVOKE_STREAMS":True}' -m "ethereum_models,tag:streamline_abis_realtime" "ethereum_models,tag:streamline_abis_complete"
dbt run --vars '{"STREAMLINE_INVOKE_STREAMS":True}' -m "fsc_evm,tag:streamline_abis_realtime" "fsc_evm,tag:streamline_abis_complete"
2 changes: 1 addition & 1 deletion .github/workflows/dbt_run_streamline_chainhead.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ jobs:
dbt deps
- name: Run DBT Jobs
run: |
dbt run --vars '{"STREAMLINE_INVOKE_STREAMS":True}' -m "ethereum_models,tag:streamline_core_realtime" "ethereum_models,tag:streamline_core_complete"
dbt run --vars '{"STREAMLINE_INVOKE_STREAMS":True}' -m "fsc_evm,tag:streamline_core_realtime" "fsc_evm,tag:streamline_core_realtime_receipts" "fsc_evm,tag:streamline_core_realtime_confirm_blocks" "fsc_evm,tag:streamline_core_complete" "fsc_evm,tag:streamline_core_complete_receipts" "fsc_evm,tag:streamline_core_complete_confirm_blocks"
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ jobs:
dbt deps
- name: Run DBT Jobs
run: |
dbt run --threads 8 --vars '{"STREAMLINE_INVOKE_STREAMS":True,"WAIT":120,"row_limit":2000000}' -m "ethereum_models,tag:streamline_decoded_logs_history_range_0" "ethereum_models,tag:streamline_decoded_logs_complete"
dbt run --threads 8 --vars '{"STREAMLINE_INVOKE_STREAMS":True,"WAIT":120,"row_limit":2000000}' -m "ethereum_models,tag:streamline_decoded_logs_history_range_0" "fsc_evm,tag:streamline_decoded_logs_complete"
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ jobs:
dbt deps
- name: Run DBT Jobs
run: |
dbt run --threads 8 --vars '{"STREAMLINE_INVOKE_STREAMS":True,"WAIT":120,"row_limit":2000000}' -m "ethereum_models,tag:streamline_decoded_logs_history_range_1" "ethereum_models,tag:streamline_decoded_logs_complete"
dbt run --threads 8 --vars '{"STREAMLINE_INVOKE_STREAMS":True,"WAIT":120,"row_limit":2000000}' -m "ethereum_models,tag:streamline_decoded_logs_history_range_1" "fsc_evm,tag:streamline_decoded_logs_complete"
10 changes: 5 additions & 5 deletions .github/workflows/dbt_run_streamline_history_adhoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ on:
description: DBT Run Command
required: true
options:
- dbt run --vars '{"STREAMLINE_INVOKE_STREAMS":True}' -m "ethereum_models,tag:streamline_core_history" "ethereum_models,tag:streamline_core_complete"
- dbt run --threads 8 --vars '{"STREAMLINE_INVOKE_STREAMS":True,"WAIT":120,"row_limit":2000000}' -m "ethereum_models,tag:streamline_decoded_logs_history" "ethereum_models,tag:streamline_decoded_logs_complete"
- dbt run --vars '{"STREAMLINE_INVOKE_STREAMS":True}' -m "fsc_evm,tag:streamline_core_history" "fsc_evm,tag:streamline_core_history_receipts" "fsc_evm,tag:streamline_core_history_confirm_blocks" "fsc_evm,tag:streamline_core_complete" "fsc_evm,tag:streamline_core_complete_receipts" "fsc_evm,tag:streamline_core_complete_confirm_blocks"
- dbt run --threads 8 --vars '{"STREAMLINE_INVOKE_STREAMS":True,"WAIT":120,"row_limit":2000000}' -m "ethereum_models,tag:streamline_decoded_logs_history" "fsc_evm,tag:streamline_decoded_logs_complete"
- dbt run --vars '{"STREAMLINE_INVOKE_STREAMS":True}' -m "ethereum_models,tag:streamline_beacon_history" "ethereum_models,tag:streamline_beacon_complete"
- dbt run --vars '{"STREAMLINE_INVOKE_STREAMS":True}' -m "ethereum_models,tag:streamline_balances_history" "ethereum_models,tag:streamline_balances_complete"
- dbt run --vars '{"STREAMLINE_INVOKE_STREAMS":True}' -m "ethereum_models,tag:streamline_abis_history" "ethereum_models,tag:streamline_abis_complete"
- dbt run --vars '{"STREAMLINE_INVOKE_STREAMS":True}' -m "ethereum_models,tag:streamline_reads_history" "ethereum_models,tag:streamline_reads_complete tag:streamline_reads_curated"
- dbt run --vars '{"STREAMLINE_INVOKE_STREAMS":True}' -m "fsc_evm,tag:streamline_balances_history" "fsc_evm,tag:streamline_balances_complete"
- dbt run --vars '{"STREAMLINE_INVOKE_STREAMS":True}' -m "fsc_evm,tag:streamline_abis_history" "fsc_evm,tag:streamline_abis_complete"
- dbt run --vars '{"STREAMLINE_INVOKE_STREAMS":True}' -m "fsc_evm,tag:streamline_reads_history" "fsc_evm,tag:streamline_reads_complete" "ethereum_models,tag:streamline_reads_curated"
env:
DBT_PROFILES_DIR: ./

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dbt_run_streamline_reads.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ jobs:
dbt deps
- name: Run DBT Jobs
run: |
dbt run --vars '{"STREAMLINE_INVOKE_STREAMS":True}' -m "ethereum_models,tag:streamline_reads_curated" "ethereum_models,tag:streamline_reads_realtime" "ethereum_models,tag:streamline_reads_complete"
dbt run --vars '{"STREAMLINE_INVOKE_STREAMS":True}' -m "ethereum_models,tag:streamline_reads_curated" "fsc_evm,tag:streamline_reads_realtime" "fsc_evm,tag:streamline_reads_complete"
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ jobs:
dbt deps
- name: Run DBT Jobs
run: |
dbt run --threads 6 --vars '{"STREAMLINE_INVOKE_STREAMS":True,"WAIT":150,"row_limit":10000000}' -m "ethereum_models,tag:streamline_decoded_traces_history_range_0" "ethereum_models,tag:streamline_decoded_traces_complete"
dbt run --threads 6 --vars '{"STREAMLINE_INVOKE_STREAMS":True,"WAIT":150,"row_limit":10000000}' -m "ethereum_models,tag:streamline_decoded_traces_history_range_0" "fsc_evm,tag:streamline_decoded_traces_complete"
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ jobs:
dbt deps
- name: Run DBT Jobs
run: |
dbt run --threads 6 --vars '{"STREAMLINE_INVOKE_STREAMS":True,"WAIT":150,"row_limit":10000000}' -m "ethereum_models,tag:streamline_decoded_traces_history_range_1" "ethereum_models,tag:streamline_decoded_traces_complete"
dbt run --threads 6 --vars '{"STREAMLINE_INVOKE_STREAMS":True,"WAIT":150,"row_limit":10000000}' -m "ethereum_models,tag:streamline_decoded_traces_history_range_1" "fsc_evm,tag:streamline_decoded_traces_complete"
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ jobs:
dbt deps
- name: Run DBT Jobs
run: |
dbt run --threads 6 --vars '{"STREAMLINE_INVOKE_STREAMS":True,"WAIT":150,"row_limit":10000000}' -m "ethereum_models,tag:streamline_decoded_traces_history_range_2" "ethereum_models,tag:streamline_decoded_traces_complete"
dbt run --threads 6 --vars '{"STREAMLINE_INVOKE_STREAMS":True,"WAIT":150,"row_limit":10000000}' -m "ethereum_models,tag:streamline_decoded_traces_history_range_2" "fsc_evm,tag:streamline_decoded_traces_complete"
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ jobs:
dbt deps
- name: Run DBT Jobs
run: |
dbt run --threads 6 --vars '{"STREAMLINE_INVOKE_STREAMS":True,"WAIT":150,"row_limit":10000000}' -m "ethereum_models,tag:streamline_decoded_traces_history_range_3" "ethereum_models,tag:streamline_decoded_traces_complete"
dbt run --threads 6 --vars '{"STREAMLINE_INVOKE_STREAMS":True,"WAIT":150,"row_limit":10000000}' -m "ethereum_models,tag:streamline_decoded_traces_history_range_3" "fsc_evm,tag:streamline_decoded_traces_complete"
2 changes: 1 addition & 1 deletion .github/workflows/dbt_test_daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
dbt deps
- name: Run DBT Jobs
run: |
dbt test --exclude "ethereum_models,tag:full_test" "ethereum_models,tag:recent_test" "ethereum_models,tag:beacon" "ethereum_models,tag:gha_tasks" livequery_models
dbt test --exclude "ethereum_models,tag:full_test" "ethereum_models,tag:recent_test" "ethereum_models,tag:beacon" "fsc_evm,tag:gha_tasks" livequery_models



24 changes: 21 additions & 3 deletions .github/workflows/dbt_test_tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,24 @@ concurrency:


jobs:
called_workflow_template:
uses: FlipsideCrypto/analytics-workflow-templates/.github/workflows/dbt_test_tasks.yml@AN-4374/upgrade-dbt-1.7
secrets: inherit
run_dbt_jobs:
runs-on: ubuntu-latest
environment:
name: workflow_prod

steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip"

- name: install dependencies
run: |
pip install -r requirements.txt
dbt deps

- name: Run DBT Jobs
run: |
dbt test -m "fsc_evm,tag:gha_tasks"
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ logs/
.vscode/
.env
.user.yml
dbt-env/
dbt-env/

package-lock.yml
48 changes: 44 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,46 @@
SHELL := /bin/bash
DBT_TARGET ?= dev

dbt-console:
docker-compose run dbt_console
deploy_streamline_functions:
rm -f package-lock.yml && dbt clean && dbt deps
dbt run -s livequery_models.deploy.core --vars '{"UPDATE_UDFS_AND_SPS":True}' -t $(DBT_TARGET)
dbt run-operation fsc_utils.create_evm_streamline_udfs --vars '{"UPDATE_UDFS_AND_SPS":True}' -t $(DBT_TARGET)

.PHONY: dbt-console
cleanup_time:
rm -f package-lock.yml && dbt clean && dbt deps

deploy_streamline_tables:
rm -f package-lock.yml && dbt clean && dbt deps
ifeq ($(findstring dev,$(DBT_TARGET)),dev)
dbt run -m "fsc_evm,tag:bronze_external" --vars '{"STREAMLINE_USE_DEV_FOR_EXTERNAL_TABLES":True}' -t $(DBT_TARGET)
else
dbt run -m "fsc_evm,tag:bronze_external" -t $(DBT_TARGET)
endif
dbt run -m "fsc_evm,tag:streamline_core_complete" "fsc_evm,tag:streamline_core_realtime" "fsc_evm,tag:utils" --full-refresh -t $(DBT_TARGET)

deploy_streamline_requests:
rm -f package-lock.yml && dbt clean && dbt deps
dbt run -m "fsc_evm,tag:streamline_core_complete" "fsc_evm,tag:streamline_core_realtime" --vars '{"STREAMLINE_INVOKE_STREAMS":True}' -t $(DBT_TARGET)

deploy_github_actions:
dbt run -s livequery_models.deploy.marketplace.github --vars '{"UPDATE_UDFS_AND_SPS":True}' -t $(DBT_TARGET)
dbt seed -s github_actions__workflows -t $(DBT_TARGET)
dbt run -m "fsc_evm,tag:gha_tasks" --full-refresh -t $(DBT_TARGET)
ifeq ($(findstring dev,$(DBT_TARGET)),dev)
dbt run-operation fsc_utils.create_gha_tasks --vars '{"START_GHA_TASKS":False}' -t $(DBT_TARGET)
else
dbt run-operation fsc_utils.create_gha_tasks --vars '{"START_GHA_TASKS":True}' -t $(DBT_TARGET)
endif

deploy_new_github_action:
dbt seed -s github_actions__workflows -t $(DBT_TARGET)
dbt run -m "fsc_evm,tag:gha_tasks" --full-refresh -t $(DBT_TARGET)
ifeq ($(findstring dev,$(DBT_TARGET)),dev)
dbt run-operation fsc_utils.create_gha_tasks --vars '{"START_GHA_TASKS":False}' -t $(DBT_TARGET)
else
dbt run-operation fsc_utils.create_gha_tasks --vars '{"START_GHA_TASKS":True}' -t $(DBT_TARGET)
endif

regular_incremental:
dbt run -m "fsc_evm,tag:core" -t $(DBT_TARGET)

.PHONY: deploy_streamline_functions deploy_streamline_tables deploy_streamline_requests deploy_github_actions cleanup_time regular_incremental deploy_new_github_action
Loading