Skip to content

Commit

Permalink
remove later: remove large chunks of ETL for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jdangerx committed Nov 8, 2023
1 parent c0292ed commit c49bfcb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-deploy-pudl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
--container-env DAGSTER_PG_PASSWORD="$DAGSTER_PG_PASSWORD" \
--container-env DAGSTER_PG_HOST="104.154.182.24" \
--container-env DAGSTER_PG_DB="dagster-storage" \
--container-env PUDL_SETTINGS_YML="/home/catalyst/src/pudl/package_data/settings/etl_full.yml" \
--container-env PUDL_SETTINGS_YML="/home/catalyst/src/pudl/package_data/settings/etl_fast.yml" \
--container-env FLY_ACCESS_TOKEN=${{ secrets.FLY_ACCESS_TOKEN }} \
# Start the VM
Expand Down
20 changes: 7 additions & 13 deletions docker/gcp_pudl_etl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,7 @@ function run_pudl_etl() {
--loglevel=DEBUG \
--gcs-cache-path=gs://internal-zenodo-cache.catalyst.coop \
--workers=8 \
$PUDL_SETTINGS_YML \
&& pudl_etl \
--loglevel DEBUG \
--gcs-cache-path gs://internal-zenodo-cache.catalyst.coop \
$PUDL_SETTINGS_YML \
&& pytest \
--gcs-cache-path=gs://internal-zenodo-cache.catalyst.coop \
--etl-settings=$PUDL_SETTINGS_YML \
--live-dbs test
$PUDL_SETTINGS_YML
}

function shutdown_vm() {
Expand Down Expand Up @@ -93,16 +85,18 @@ if [[ ${PIPESTATUS[0]} == 0 ]]; then
fi

# Deploy the updated data to datasette
if [ $GITHUB_REF = "dev" ]; then
if [ $GITHUB_REF = "fly-io" ]; then
python ~/devtools/datasette/publish.py 2>&1 | tee -a $LOGFILE
fi
fi

# Notify slack about entire pipeline's success or failure;
# PIPESTATUS[0] either refers to the failed ETL run or the last distribution
# task that was run above
if [[ ${PIPESTATUS[0]} == 0 ]]; then notify_slack "success" else notify_slack
"failure" fi

if [[ ${PIPESTATUS[0]} == 0 ]]; then
notify_slack "success"
else
notify_slack "failure"
fi

shutdown_vm

0 comments on commit c49bfcb

Please sign in to comment.