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

Generate VDR Using Github Actions #15

Open
wants to merge 23 commits into
base: main
Choose a base branch
from

Conversation

Scanteianu
Copy link
Contributor

@Scanteianu Scanteianu commented May 10, 2024

Run pipeline to generate the VDR from Github Actions.
Publishes both the vdr and also the data directory with supporting artifacts.

Resolves #7

@Scanteianu Scanteianu marked this pull request as ready for review May 10, 2024 12:50
@Scanteianu Scanteianu changed the title Vdr generation gh action Generate VDR Using Github Actions May 10, 2024
@karianna karianna requested a review from gdams May 11, 2024 23:08
.github/workflows/vdr-creation.yml Outdated Show resolved Hide resolved
.github/workflows/vdr-creation.yml Outdated Show resolved Hide resolved
.github/workflows/vdr-creation.yml Outdated Show resolved Hide resolved
.github/workflows/vdr-creation.yml Outdated Show resolved Hide resolved
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we need flake8 and pytest in this workflow?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'd rather fail it early instead of running the vdr creation on a failing PR but i'm open to suggestions

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You already have a CI workflow though so why duplicate?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i can remove it; is there any way for the CI action to kill this one upon failure?

@Scanteianu Scanteianu requested a review from gdams May 13, 2024 16:35
workflow_dispatch:
push:
branches: [ main ]
pull_request: # todo: do we want it to run on all PRs?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You won't be able to use secrets in PR runs so it probably makes sense to remove this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can run in slow mode without the secrets (and there's a chance of some other PR or other github action elsewhere causing some throttling, although i've not seen this in trial runs), but getting the vdr result of a PR before merging I think is super valuable. Without the secret, the rate limit is 5 requests/30 seconds (with the secret it's 50). Experimentally, it takes <30 minutes to get the vdr generated without the secret, so I think it's worth waiting 30 mins and spot checking the vdr before actually merging a PR. In the future, we might integrate the GH actions cache to further speed up the CI.

@Scanteianu Scanteianu requested a review from gdams May 14, 2024 15:13
Copy link
Contributor

@steelhead31 steelhead31 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generate VDR using Github Actions
4 participants