From 5f3a53c8bf0fbd262b5942628187cb26b4f97e55 Mon Sep 17 00:00:00 2001 From: drethereum Date: Thu, 10 Apr 2025 16:00:17 -0600 Subject: [PATCH] add scores job --- .../workflows/dbt_run_scheduled_scores.yml | 20 +++++++++++++++++++ makefile | 13 ++++++++---- package-lock.yml | 2 +- 3 files changed, 30 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/dbt_run_scheduled_scores.yml diff --git a/.github/workflows/dbt_run_scheduled_scores.yml b/.github/workflows/dbt_run_scheduled_scores.yml new file mode 100644 index 0000000..5c2f0f9 --- /dev/null +++ b/.github/workflows/dbt_run_scheduled_scores.yml @@ -0,0 +1,20 @@ + +name: dbt_run_scheduled_scores +run-name: dbt_run_scheduled_scores + +on: + workflow_dispatch: + branches: + - "main" + +concurrency: + group: ${{ github.workflow }} + +jobs: + called_workflow_template: + uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@pre-release/v4-beta + with: + command_name: Run Scores Models + command: | + dbt run -m "fsc_evm,tag:scores" + secrets: inherit \ No newline at end of file diff --git a/makefile b/makefile index 6fb8325..69c29ae 100644 --- a/makefile +++ b/makefile @@ -13,10 +13,15 @@ deploy_new_github_action: dbt run -m "fsc_evm,tag:gha_tasks" --full-refresh -t $(DBT_TARGET) dbt run-operation fsc_evm.create_gha_tasks --vars '{"START_GHA_TASKS":False}' -t $(DBT_TARGET) +deploy_livequery: + dbt run-operation fsc_evm.drop_livequery_schemas --vars '{"UPDATE_UDFS_AND_SPS": true}' -t $(DBT_TARGET) + dbt run -m livequery_base.deploy.core --vars '{"UPDATE_UDFS_AND_SPS": true}' -t $(DBT_TARGET) + dbt run-operation fsc_evm.livequery_grants --vars '{"UPDATE_UDFS_AND_SPS": true}' -t $(DBT_TARGET) + deploy_chain_phase_1: - dbt run -m livequery_base.deploy.core --vars '{UPDATE_UDFS_AND_SPS: true}' -t $(DBT_TARGET) - dbt run-operation fsc_evm.livequery_grants -t $(DBT_TARGET) - dbt run-operation fsc_evm.create_evm_streamline_udfs --vars '{UPDATE_UDFS_AND_SPS: true}' -t $(DBT_TARGET) + dbt run -m livequery_base.deploy.core --vars '{"UPDATE_UDFS_AND_SPS": true}' -t $(DBT_TARGET) + dbt run-operation fsc_evm.livequery_grants --vars '{"UPDATE_UDFS_AND_SPS": true}' -t $(DBT_TARGET) + dbt run-operation fsc_evm.create_evm_streamline_udfs --vars '{"UPDATE_UDFS_AND_SPS": true}' -t $(DBT_TARGET) dbt run-operation fsc_evm.call_sample_rpc_node -t $(DBT_TARGET) dbt run -m "fsc_evm,tag:phase_1" --full-refresh --vars '{"GLOBAL_STREAMLINE_FR_ENABLED": true}' -t $(DBT_TARGET) # kick chainhead workflow @@ -33,4 +38,4 @@ deploy_chain_phase_3: dbt run -m "fsc_evm,tag:phase_3" --full-refresh --vars '{"GLOBAL_BRONZE_FR_ENABLED": true, "GLOBAL_SILVER_FR_ENABLED": true, "GLOBAL_GOLD_FR_ENABLED": true}' -t $(DBT_TARGET) # kick alter_gha_task workflow to RESUME individual tasks, as needed -.PHONY: deploy_github_actions cleanup_time deploy_new_github_action deploy_chain_phase_1 deploy_chain_phase_2 deploy_chain_phase_3 \ No newline at end of file +.PHONY: deploy_github_actions cleanup_time deploy_new_github_action deploy_chain_phase_1 deploy_chain_phase_2 deploy_chain_phase_3 deploy_livequery \ No newline at end of file diff --git a/package-lock.yml b/package-lock.yml index c01120d..422af66 100644 --- a/package-lock.yml +++ b/package-lock.yml @@ -10,7 +10,7 @@ packages: - package: get-select/dbt_snowflake_query_tags version: 2.5.0 - git: https://github.com/FlipsideCrypto/fsc-evm.git - revision: ba33d753ce29f98660cec0e0b700d62670e862a4 + revision: 7e37c02fe5919a75239b003bb6f0e27b3d2c7ae8 - package: calogica/dbt_date version: 0.7.2 - git: https://github.com/FlipsideCrypto/livequery-base.git