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

Merge dev into main for 2023-12-08 #3138

Merged
merged 147 commits into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
84e5618
wip: add data corrections for sizable minority utilities
cmgosnell Nov 22, 2023
c287d24
Use click for ETL CLI. Consolidate CLI under etl subpackage.
zaneselvans Nov 23, 2023
395731c
Update conda-lock.yml and rendered conda environment files.
zaneselvans Nov 25, 2023
9452dde
Merge branch 'pydantic-v2' into clickety-click
zaneselvans Nov 26, 2023
543b8d0
Migrate ferc_to_sqlite to the click CLI framework.
zaneselvans Nov 26, 2023
dd7a062
Merge branch 'clean_up_explosion' into explode_sizable_minority
cmgosnell Nov 27, 2023
e59ec47
Create new issue template for adding a new year of eia data
aesharpe Nov 27, 2023
0180fd4
Address Christina's PR comments
aesharpe Nov 27, 2023
0f8493a
Add step about plant_id mapping to eia issue template
aesharpe Nov 27, 2023
9b3804d
update path to zenodo doi in the eia issue template
aesharpe Nov 27, 2023
5c20ae5
Merge branch 'dev' into issue-template-for-eia-annual-release
aesharpe Nov 27, 2023
c7701e9
Merge branch 'issue-template-for-eia-annual-release' of https://githu…
aesharpe Nov 27, 2023
adca602
Merge branch 'dev' into clickety-click
zaneselvans Nov 28, 2023
ec013ed
wip: pause video game w/ auto-generating facts to fix
cmgosnell Nov 28, 2023
f47e5c7
Update conda-lock.yml and rendered conda environment files.
cmgosnell Nov 28, 2023
1064452
Make the annual updates template more generic and link directly to th…
aesharpe Nov 28, 2023
a563ff3
Rename eia_new_year.md template to annual_updates.md
aesharpe Nov 28, 2023
6c2df5f
Merge branch 'dev' into issue-template-for-eia-annual-release
aesharpe Nov 28, 2023
eb67770
Update conda-lock.yml and rendered conda environment files.
aesharpe Nov 28, 2023
73edc24
initial version of mannually compiling the facts to fix
cmgosnell Nov 28, 2023
b68a6dc
Merge branch 'explode_sizable_minority' of github.com:catalyst-cooper…
cmgosnell Nov 28, 2023
9172160
Merge branch 'dev' into explode_sizable_minority
cmgosnell Nov 28, 2023
b7f31dc
Update conda-lock.yml and rendered conda environment files.
cmgosnell Nov 28, 2023
14ac52f
first attempt at adding these special corrections into the explode calcs
cmgosnell Nov 28, 2023
f49edb6
Merge branch 'dev' into clickety-click
zaneselvans Nov 29, 2023
e94ed56
Update conda-lock.yml and rendered conda environment files.
zaneselvans Nov 29, 2023
bfea777
remove duplicate fix and tweek metric tolerances
cmgosnell Nov 29, 2023
73b0bce
rename some things for clarification
cmgosnell Nov 29, 2023
e4c9839
Merge branch 'dev' into explode_sizable_minority
cmgosnell Nov 29, 2023
b26e252
Update conda-lock.yml and rendered conda environment files.
cmgosnell Nov 29, 2023
b7328a0
simplification and docs!
cmgosnell Nov 29, 2023
a510ded
Merge branch 'dev' into explode_sizable_minority
cmgosnell Nov 29, 2023
557e97e
Merge branch 'dev' into clickety-click
zaneselvans Nov 29, 2023
cad8a04
Extract EIA923 emissions control table and add 2022 final release dat…
aesharpe Nov 30, 2023
304c4dd
Add release notes for addition of the emissions_contorl table extraction
aesharpe Nov 30, 2023
936b33d
Merge branch 'dev' into issue-template-for-eia-annual-release
aesharpe Nov 30, 2023
dcfbbb2
Merge branch 'issue-template-for-eia-annual-release' of https://githu…
aesharpe Nov 30, 2023
028876e
Update conda-lock.yml and rendered conda environment files.
aesharpe Nov 30, 2023
e8ba2a1
Merge branch 'dev' into clickety-click
zaneselvans Dec 1, 2023
e7293ae
Merge branch 'dev' into clickety-click
zaneselvans Dec 1, 2023
84ab7b3
Update conda-lock.yml and rendered conda environment files.
zaneselvans Dec 1, 2023
34c637d
Merge branch 'dev' into extract-eia923-emissions-control
zaneselvans Dec 1, 2023
8c9f0cd
Sort DBs Fly Datasette; don't distribute Datasette's metadata.yml
zaneselvans Dec 1, 2023
80b289f
Merge pull request #3100 from catalyst-cooperative/extract-eia923-emi…
zaneselvans Dec 1, 2023
f4da38d
Merge branch 'dev' into better-build-outputs
zaneselvans Dec 1, 2023
f456126
Fix formatting in bulletized list.
zaneselvans Dec 1, 2023
29a7443
Merge pull request #3106 from catalyst-cooperative/better-build-outputs
zaneselvans Dec 1, 2023
bed5d8d
Merge branch 'dev' into issue-template-for-eia-annual-release
aesharpe Dec 1, 2023
4c932e7
Update conda-lock.yml and rendered conda environment files.
aesharpe Dec 1, 2023
54039d7
respond to pr suggestions!
cmgosnell Dec 1, 2023
b86669f
Merge branch 'explode_sizable_minority' of github.com:catalyst-cooper…
cmgosnell Dec 1, 2023
7f1fb1c
Add support for choosing between multiprocess and inprocess executors…
rousik Dec 1, 2023
5617bb0
Update conda-lock.yml and rendered conda environment files.
rousik Dec 1, 2023
6f284f3
Merge branch 'main' into dev
zaneselvans Dec 1, 2023
e2b21e7
Merge branch 'dev' into clickety-click
zaneselvans Dec 1, 2023
6b2f836
Remove epacems_to_parquet script
zaneselvans Dec 2, 2023
4293db9
Migrate state_demand analysis script to Kaggle example notebook.
zaneselvans Dec 2, 2023
bb18fdb
Update conda-lock.yml and rendered conda environment files.
zaneselvans Dec 2, 2023
7dd3fdc
Remove reference to epacems_to_parquet from CEMS dataset docs
zaneselvans Dec 2, 2023
99d9de2
Merge branch 'clickety-click' of github.com:catalyst-cooperative/pudl…
zaneselvans Dec 2, 2023
ec60718
Migrate pudl_check_fks to use click
zaneselvans Dec 2, 2023
0c52ab9
Update conda-lock.yml and rendered conda environment files.
zaneselvans Dec 2, 2023
feedb61
Exclude nonexistent entity_types_eia table from docs build
zaneselvans Dec 2, 2023
b00462f
Migrate metadata_to_rst to use Click framework.
zaneselvans Dec 2, 2023
f0d7022
Update conda-lock.yml and rendered conda environment files.
zaneselvans Dec 2, 2023
3d741d3
Migrate pudl_datastore to use Click.
zaneselvans Dec 3, 2023
23c3625
Update conda-lock.yml and rendered conda environment files.
zaneselvans Dec 3, 2023
87236af
Unit test pudl_datastore script
zaneselvans Dec 3, 2023
d01fdcd
Remove pudl_setup script and all vestiges of legacy setup.
zaneselvans Dec 3, 2023
1fa9b37
Fix cut-and-paste error in Dockerfile.
zaneselvans Dec 3, 2023
85c2ea4
Improve flexibility for publishing options (#2964)
rousik Dec 3, 2023
2373182
Clarify command for SSHing into a running GCS VM.
zaneselvans Dec 3, 2023
a01df3e
Merge branch 'dev' into clickety-click
zaneselvans Dec 3, 2023
a35788c
A nominally working service territory script
zaneselvans Dec 3, 2023
e60620d
Update conda-lock.yml and rendered conda environment files.
zaneselvans Dec 3, 2023
54658ca
Add an integration test for the pudl_service_territory script.
zaneselvans Dec 4, 2023
78cc049
Update conda-lock.yml and rendered conda environment files.
zaneselvans Dec 4, 2023
8f6a693
Bump google-github-actions/auth from 1 to 2
dependabot[bot] Dec 4, 2023
b3ba71d
Bump actions/checkout from 3 to 4
dependabot[bot] Dec 4, 2023
91b88f6
Condense and document _save_geoparquet()
zaneselvans Dec 4, 2023
9e1b6f0
Adjust coverage settings; move config to pyproject.toml
zaneselvans Dec 4, 2023
7c30618
Update conda-lock.yml and rendered conda environment files.
zaneselvans Dec 4, 2023
4e8e409
Skip empty files; move coverage source config to pyproject.toml
zaneselvans Dec 4, 2023
819d26b
Add conftest.py to test coverage; update release notes.
zaneselvans Dec 4, 2023
2df4068
Consolidate coverage args from Makefile into pyproject.toml
zaneselvans Dec 4, 2023
42b213d
Update conda-lock.yml and rendered conda environment files.
zaneselvans Dec 4, 2023
c01c239
Move some console script tests from unit to integration.
zaneselvans Dec 4, 2023
19edbee
Merge pull request #3112 from catalyst-cooperative/dependabot/github_…
zaneselvans Dec 4, 2023
9a94eec
Merge pull request #3109 from catalyst-cooperative/dependabot/github_…
zaneselvans Dec 4, 2023
a790b0d
Bump docker/login-action from 2.1.0 to 3.0.0
dependabot[bot] Dec 4, 2023
b2f55b7
Bump docker/build-push-action from 4.0.0 to 5.1.0
dependabot[bot] Dec 4, 2023
e1c8d79
Bump docker/setup-buildx-action from 2.5.0 to 3.0.0
dependabot[bot] Dec 4, 2023
ff6d1de
Merge pull request #3113 from catalyst-cooperative/update-conda-lockfile
zaneselvans Dec 4, 2023
ecb9752
Update conda-lock.yml and rendered conda environment files.
zaneselvans Dec 4, 2023
fc6cb73
Merge pull request #3110 from catalyst-cooperative/dependabot/github_…
zaneselvans Dec 4, 2023
c69db7b
Merge pull request #3108 from catalyst-cooperative/dependabot/github_…
zaneselvans Dec 4, 2023
66052a5
Merge pull request #3111 from catalyst-cooperative/dependabot/github_…
zaneselvans Dec 4, 2023
07bf0ab
Merge branch 'dev' into clickety-click
zaneselvans Dec 4, 2023
d58b753
Remove unused docs/Makefile; Simplify covargs in main Makefile.
zaneselvans Dec 4, 2023
a64e478
Skip pudl_service_territories test to see if it's causing CI failure
zaneselvans Dec 4, 2023
e173ae0
Merge branch 'dev' into explode_sizable_minority
cmgosnell Dec 4, 2023
e8ce4a3
Update conda-lock.yml and rendered conda environment files.
cmgosnell Dec 4, 2023
59d4d97
Use public Zenodo cache, add single-year service territory option.
zaneselvans Dec 4, 2023
61cf811
Update conda-lock.yml and rendered conda environment files.
zaneselvans Dec 4, 2023
4b7e668
Test both dissolve/no-dissolve, ba/util service territories
zaneselvans Dec 4, 2023
58bb088
Fix small syntax error in gcp_pudl_etl.sh
bendnorman Dec 4, 2023
34c6b8c
Test 2 years and --limit-by-state
zaneselvans Dec 4, 2023
54ecd8b
only calculate inter-table calcs once
cmgosnell Dec 4, 2023
8393bca
Hide diffs in lock files by default. (#3103)
jdangerx Dec 4, 2023
394ce97
Update conda-lock.yml and rendered conda environment files.
jdangerx Dec 4, 2023
7ade239
Merge branch 'dev' into clickety-click
zaneselvans Dec 4, 2023
ff6bd72
Checkout env files from 7cc80dab59437b0dda3dbac3bed28be5f4e33858
bendnorman Dec 5, 2023
e03c9d2
Update conda-lock.yml and rendered conda environment files.
bendnorman Dec 5, 2023
f0a75b7
Checkout env files from 7cc80dab59437b0dda3dbac3bed28be5f4e33858 [no ci]
bendnorman Dec 5, 2023
7eec80e
Checkout env files from dev and remove apt-get installs [no ci]
bendnorman Dec 5, 2023
65d1816
Add apt-get installs back and update python log level [no ci]
bendnorman Dec 5, 2023
6125ea9
Restrict dagster-postgres version [no ci]
bendnorman Dec 5, 2023
68cc9a7
Revert debugging changes
bendnorman Dec 5, 2023
984c64b
Update conda-lock.yml and rendered conda environment files.
bendnorman Dec 5, 2023
40308d1
Merge branch 'fix-gcp-pudl-etl-syntax' into clickety-click
zaneselvans Dec 5, 2023
0145bbe
Merge branch 'dev' into issue-template-for-eia-annual-release
aesharpe Dec 5, 2023
bf1fd58
Merge branch 'issue-template-for-eia-annual-release' of https://githu…
aesharpe Dec 5, 2023
373c20e
align environment files with dev
aesharpe Dec 5, 2023
eb73c68
Update conda-lock.yml and rendered conda environment files.
aesharpe Dec 5, 2023
52a595d
Merge branch 'dev' into explode_sizable_minority
cmgosnell Dec 5, 2023
797d794
Update conda-lock.yml and rendered conda environment files.
cmgosnell Dec 5, 2023
a829f70
Merge pull request #3086 from catalyst-cooperative/clickety-click
zaneselvans Dec 5, 2023
3452bae
Update conda-lock.yml and rendered conda environment files.
zaneselvans Dec 5, 2023
7da9629
Merge branch 'dev' into issue-template-for-eia-annual-release
aesharpe Dec 5, 2023
77c8e79
Merge branch 'issue-template-for-eia-annual-release' of https://githu…
aesharpe Dec 5, 2023
107b9c9
Merge pull request #3089 from catalyst-cooperative/issue-template-for…
aesharpe Dec 5, 2023
8005fd0
Merge branch 'main' into dev
zaneselvans Dec 5, 2023
ce56db0
Reorganize contributing docs + add process description. (#3044)
jdangerx Dec 6, 2023
701349c
Update conda-lock.yml and rendered conda environment files.
jdangerx Dec 6, 2023
32de33e
Merge branch 'dev' into explode_sizable_minority
cmgosnell Dec 6, 2023
6a4db4c
Update conda-lock.yml and rendered conda environment files.
cmgosnell Dec 6, 2023
4dd4b0e
change pks for the sizable minority fixes
cmgosnell Dec 6, 2023
0389e2a
Merge branch 'explode_sizable_minority' of github.com:catalyst-cooper…
cmgosnell Dec 6, 2023
0407adb
smol docs fix
cmgosnell Dec 6, 2023
cbd0950
Merge pull request #3078 from catalyst-cooperative/explode_sizable_mi…
cmgosnell Dec 7, 2023
51381a0
Add slow test marker to skip during pre-commit.
jdangerx Dec 7, 2023
e72ef9e
Tag a few more slow unit tests.
jdangerx Dec 7, 2023
b4e8b26
Update conda-lock.yml and rendered conda environment files.
jdangerx Dec 7, 2023
4edc19d
Fix header for the v2023.12.01 release notes
zaneselvans Dec 8, 2023
1be965a
Merge branch 'dev' into slow-hypothesis-test
zaneselvans Dec 8, 2023
2e37b3a
Merge pull request #3132 from catalyst-cooperative/slow-hypothesis-test
zaneselvans Dec 8, 2023
94bb8c5
Update conda-lock.yml and rendered conda environment files.
zaneselvans Dec 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
---
coverage:
range: 70..100
round: down
round: nearest
precision: 1

ignore:
- "src/pudl/validate.py"

codecov:
token: 23a7ee04-6ac5-4d1b-9d36-86b0c50d40c5
require_ci_to_pass: true
Expand Down
22 changes: 0 additions & 22 deletions .coveragerc

This file was deleted.

2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
*.ipynb linguist-detectable=false
*.html linguist-detectable=false
eia861-transform.ipynb merge=ours
environments/conda-*lock.yml merge=ours
environments/conda-*lock.yml merge=ours linguist-generated=true
*.csv text
*.py text
*.json text
Expand Down
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/annual_updates.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Integrate New Year of Data
about: Check-list for integrating a new year of data
title: ''
labels: new-data
assignees: ''

---

### New year of data integration check-list:

Based on the [Annual Updates Docs](https://catalystcoop-pudl.readthedocs.io/en/dev/dev/annual_updates.html)


- [ ] [Obtain fresh data](https://catalystcoop-pudl.readthedocs.io/en/latest/dev/annual_updates.html#obtain-fresh-data)
- [ ] [Map the structure of the new data](https://catalystcoop-pudl.readthedocs.io/en/latest/dev/annual_updates.html#map-the-structure-of-the-new-data)
- [ ] [Test data extraction](https://catalystcoop-pudl.readthedocs.io/en/latest/dev/annual_updates.html#test-data-extraction)
- [ ] [Update table and column transformations](https://catalystcoop-pudl.readthedocs.io/en/latest/dev/annual_updates.html#update-table-column-transformations)
- [ ] [Update the PUDL db schema](https://catalystcoop-pudl.readthedocs.io/en/latest/dev/annual_updates.html#update-the-pudl-db-schema)
- [ ] [Connect datasets](https://catalystcoop-pudl.readthedocs.io/en/latest/dev/annual_updates.html#connect-datasets)
- [ ] [Run the ETL](https://catalystcoop-pudl.readthedocs.io/en/latest/dev/annual_updates.html#run-the-etl)
- [ ] [Update the output routines and run full tests](https://catalystcoop-pudl.readthedocs.io/en/latest/dev/annual_updates.html#update-the-output-routines-and-run-full-tests)
- [ ] [Run and update data validations](https://catalystcoop-pudl.readthedocs.io/en/latest/dev/annual_updates.html#run-and-update-data-validations)
- [ ] [Update the documentation](https://catalystcoop-pudl.readthedocs.io/en/latest/dev/annual_updates.html#update-the-documentation)
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/new_dataset.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: New dataset
about: Provide information about a new dataset you'd like to see in PUDL
title: ''
labels: new-data
assignees: ''
---

### Overview

What is this dataset?

Why do you want it in PUDL?

Is it already partially in PUDL, or do we need to start from scratch?

### Logistics

Is this dataset publically available?

Where can one download the actual data?

How often does this dataset get updated?

What licensing restrictions apply?

### What do you know about it so far?

What have you done with this dataset so far? Have you run into any problems with
it yet?
52 changes: 14 additions & 38 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,49 +1,25 @@
<!--

Making a PUDL Pull Request

Before making a PR you may want to check out our:

Resources:
* contributing guidelines: https://catalystcoop-pudl.readthedocs.io/en/latest/CONTRIBUTING.html
* code of conduct: https://catalystcoop-pudl.readthedocs.io/en/latest/code_of_conduct.html
* development process: https://catalystcoop-pudl.readthedocs.io/en/latest/dev/index.html

## PR Process Overview

* PRs have to get an approving review before merging into their development branch.
* Most PRs should be made against the `dev` branch, unless they are part of some larger ongoing refactoring, in which case there will be a persistent development branch for that work.
* It is much easier to do timely code reviews on smaller chunks of code. We try to keep PRs under 500 lines of code.
* Draft PRs are a good way to get early feedback on designs or several incremental commits that will add up to larger changes. If you want a review of a draft PR, make sure you contact the reviewer directly or mention their username in the PR comment, so they get a notification.
* How quickly we can review a PR will depend on how large and complex it is, and how busy we are, but ideally we strive to get an initial review done within a week. If there are going to be delays, we should at least comment on the PR to let you know the situation.
* If you believe you've addressed a reviewer's comments, respond with a brief note and mark the comment resolved. If further discussion is requried respond and do not resolve the comment.
* Before a PR is merged all reviewer comments should be resolved. If a reviewer doesn't feel that their comment has been sufficiently addressed, they may unresolve a comment.
* Be careful not to accidentally "start a review" when responding to comments! If this does happen, don't forget to submit the review you've started so the other PR participatns can see your comments (they are invisible to others if marked "Pending").
* In the period after an initial review when there is significant back-and-forth with the reviewer deciding what changes should actually be made, there should probably be daily interaction. If significant changes are required, it's usually best to request another review after those changes have been made.

Feel free to delete the commented-out parts of the template before submitting the PR.

-->
# Overview

# PR Overview
Closes #XXXX.

<!--
What problem does this address?

Include a short narrative summary of what's going on in the PR. This can be a bulleted list. You might want to include:
What did you change?

* What are you changing and why?
* Are there any known unsolved problems remaining in the PR?
* Is there anything that you want a reivewer to pay particular attention to?
* What kind of feedback are you looking for on the PR?

-->
# Testing

# PR Checklist
How did you make sure this worked? How can a reviewer verify this?

- [ ] Merge the most recent version of the branch you are merging into (probably `dev`).
- [ ] All CI checks are passing. [Run tests locally to debug failures](https://catalystcoop-pudl.readthedocs.io/en/latest/dev/testing.html#running-tests-with-tox)
- [ ] Make sure you've included good docstrings.
```[tasklist]
# To-do list
- [ ] Make sure full ETL runs & `make pytest-integration-full` passes locally
- [ ] For major data coverage & analysis changes, [run data validation tests](https://catalystcoop-pudl.readthedocs.io/en/latest/dev/testing.html#data-validation)
- [ ] Include unit tests for new functions and classes.
- [ ] Defensive data quality/sanity checks in analyses & data processing functions.
- [ ] Update the [release notes](https://catalystcoop-pudl.readthedocs.io/en/latest/release_notes.html) and reference reference the PR and related issues.
- [ ] Do your own explanatory review of the PR to help the reviewer understand what's going on and identify issues preemptively.
- [ ] If updating analyses or data processing functions: make sure to update or write data validation tests
- [ ] Update the [release notes](../docs/release_notes.rst): reference the PR and related issues.
- [ ] Review the PR yourself and call out any questions or issues you have
```
21 changes: 15 additions & 6 deletions .github/workflows/build-deploy-pudl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ env:
GITHUB_REF: ${{ github.ref_name }} # This is changed to dev if running on a schedule
GCE_INSTANCE: pudl-deployment-tag # This is changed to pudl-deployment-dev if running on a schedule
GCE_INSTANCE_ZONE: ${{ secrets.GCE_INSTANCE_ZONE }}
GCS_OUTPUT_BUCKET: gs://nightly-build-outputs.catalyst.coop

jobs:
build_and_deploy_pudl:
Expand All @@ -27,13 +28,14 @@ jobs:
echo "This action was triggered by a schedule." && echo "GCE_INSTANCE=pudl-deployment-dev" >> $GITHUB_ENV && echo "GITHUB_REF=dev" >> $GITHUB_ENV

- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ env.GITHUB_REF }}

- name: Get HEAD of the branch (main or dev)
run: |
echo "ACTION_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV
echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV

- name: Print action vars
run: |
Expand All @@ -53,17 +55,17 @@ jobs:
type=ref,event=tag

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.5.0
uses: docker/setup-buildx-action@v3.0.0

- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2.1.0
uses: docker/login-action@v3.0.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build image and push to Docker Hub
uses: docker/build-push-action@v4.0.0
uses: docker/build-push-action@v5.1.0
with:
context: .
file: docker/Dockerfile
Expand All @@ -74,7 +76,7 @@ jobs:
cache-to: type=gha,mode=max

- id: "auth"
uses: "google-github-actions/auth@v1"
uses: "google-github-actions/auth@v2"
with:
workload_identity_provider: "projects/345950277072/locations/global/workloadIdentityPools/gh-actions-pool/providers/gh-actions-provider"
service_account: "deploy-pudl-github-action@catalyst-cooperative-pudl.iam.gserviceaccount.com"
Expand All @@ -83,6 +85,11 @@ jobs:
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v1

- name: Determine commit information
run: |-
echo "COMMIT_BRANCH=$(gitrev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV
echo "COMMIT_TIME=$(git log -1 --format=%cd --date=format:%Y-%m-%d-%H%M)" >> $GITHUB_ENV

# Deploy PUDL image to GCE
- name: Deploy
env:
Expand Down Expand Up @@ -119,6 +126,7 @@ jobs:
--container-env DAGSTER_PG_DB="dagster-storage" \
--container-env FLY_ACCESS_TOKEN=${{ secrets.FLY_ACCESS_TOKEN }} \
--container-env PUDL_SETTINGS_YML="/home/mambauser/src/pudl/package_data/settings/etl_full.yml" \
--container-env PUDL_GCS_OUTPUT=${{ env.GCS_OUTPUT_BUCKET }}/${{ env.COMMIT_TIME }}-${{ env.SHORT_SHA }}-${{ env.COMMIT_BRANCH }}

# Start the VM
- name: Start the deploy-pudl-vm
Expand All @@ -129,6 +137,7 @@ jobs:
uses: slackapi/[email protected]
with:
channel-id: "C03FHB9N0PQ"
slack-message: "build-deploy-pudl status: ${{ job.status }}\n${{ env.ACTION_SHA }}-${{ env.GITHUB_REF }}"
slack-message: "build-deploy-pudl status: ${{ job.status }}\n${{ env.COMMIT_TIME}}-${{ env.SHORT_SHA }}-${{ env.COMMIT_BRANCH }}"
env:
channel-id: "C03FHB9N0PQ"
SLACK_BOT_TOKEN: ${{ secrets.PUDL_DEPLOY_SLACK_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/docker-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
id-token: write
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Docker Metadata
id: docker_metadata
Expand All @@ -24,10 +24,10 @@ jobs:
latest=auto

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.5.0
uses: docker/setup-buildx-action@v3.0.0

- name: Build image but do not push to Docker Hub
uses: docker/build-push-action@v4.0.0
uses: docker/build-push-action@v5.1.0
with:
context: .
file: docker/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ jobs:
- name: Set default GCP credentials
id: gcloud-auth
continue-on-error: true
uses: "google-github-actions/auth@v1"
uses: "google-github-actions/auth@v2"
with:
workload_identity_provider: "projects/345950277072/locations/global/workloadIdentityPools/gh-actions-pool/providers/gh-actions-provider"
service_account: "tox-pytest-github-action@catalyst-cooperative-pudl.iam.gserviceaccount.com"
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/run-etl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
id-token: write
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Docker Metadata
id: docker_metadata
uses: docker/[email protected]
Expand All @@ -24,15 +24,15 @@ jobs:
latest=auto
tags: type=sha
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.5.0
uses: docker/setup-buildx-action@v3.0.0
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2.1.0
uses: docker/login-action@v3.0.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build image and push to Docker Hub
uses: docker/build-push-action@v4.0.0
uses: docker/build-push-action@v5.1.0
with:
context: .
file: docker/Dockerfile
Expand All @@ -48,7 +48,7 @@ jobs:
contents: read
steps:
- id: gcloud-auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
with:
workload_identity_provider: "projects/345950277072/locations/global/workloadIdentityPools/gh-actions-pool/providers/gh-actions-provider"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zenodo-cache-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:

- name: Set default gcp credentials
id: gcloud-auth
uses: "google-github-actions/auth@v1"
uses: "google-github-actions/auth@v2"
with:
workload_identity_provider: "projects/345950277072/locations/global/workloadIdentityPools/gh-actions-pool/providers/gh-actions-provider"
service_account: "zenodo-cache-manager@catalyst-cooperative-pudl.iam.gserviceaccount.com"
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ repos:
verbose: false
pass_filenames: false
always_run: true
entry: pytest --doctest-modules src/pudl test/unit
entry: pytest --doctest-modules src/pudl test/unit -m "not slow"

# Configuration for pre-commit.ci
ci:
Expand Down
Loading
Loading