-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Debug daily metrics GHA #167
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
- cron: "0 20 * * *" | ||
|
||
jobs: | ||
build: | ||
save-daily-metrics: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
|
@@ -22,7 +22,7 @@ jobs: | |
with: | ||
environment-file: environment.yml | ||
cache-environment: true | ||
ondarc: | | ||
condarc: | | ||
channels: | ||
- conda-forge | ||
- defaults | ||
|
@@ -41,9 +41,7 @@ jobs: | |
continue-on-error: true | ||
uses: "google-github-actions/auth@v2" | ||
with: | ||
workload_identity_provider: "projects/345950277072/locations/global/workloadIdentityPools/gh-actions-pool/providers/gh-actions-provider" | ||
service_account: "pudl-usage-metrics-etl@catalyst-cooperative-pudl.iam.gserviceaccount.com" | ||
create_credentials_file: true | ||
credentials_json: "${{ secrets.GCP_USAGE_METRICS_ARCHIVER_KEY }}" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, sure, but what was the issue with WIF? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was done to give this archiver write access and to keep the ETL account as having read-only access to the archived files. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Makes sense! Do you have a new service account now? Is it in Terraform / if not, do you want help putting it in Terraform? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let me move this question into the living terraform PR (catalyst-cooperative/pudl#3841), as @bendnorman set up the account and would know better. |
||
|
||
- name: "Set up Cloud SDK" | ||
uses: "google-github-actions/setup-gcloud@v2" | ||
|
@@ -53,7 +51,7 @@ jobs: | |
- shell: bash -l {0} | ||
name: Save Github Metrics | ||
env: | ||
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | ||
API_TOKEN_GITHUB: ${{ secrets.USAGE_STATS_ACCESS_TOKEN }} | ||
jdangerx marked this conversation as resolved.
Show resolved
Hide resolved
|
||
run: | | ||
python src/usage_metrics/scripts/save_github_metrics.py | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-_- my eyes completely glazed over this during the first review