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

add pull_request cromwell and wom ghas #22

Closed
wants to merge 5 commits into from
Closed

Conversation

seankross
Copy link
Collaborator

@seankross seankross commented Dec 16, 2024

I feel like we should at least be running the "compute happens on gha exclusively" tests for every PR.

@seankross seankross requested review from sckott and tefirman December 16, 2024 23:05
@sckott
Copy link
Collaborator

sckott commented Dec 16, 2024

Yes in theory - though ideally tests run really fast to get fast feedback from CI. Looks like the womtool stuff runs fast, but the cromwell test runs looks like it's already near 2 min in runtime with 3 files. Could that be sped up at all

@tefirman
Copy link
Collaborator

cromwell test runs looks like it's already near 2 min in runtime with 3 files. Could that be sped up at all

Not that I can see, this is as bare bones as it gets. The only other thing I can think of is trying miniWDL as opposed to Cromwell, but that feels like it would defeat the purpose of trying to be as apples-to-apples as possible with PROOF..

@tefirman
Copy link
Collaborator

Here's an equivalent GitHub Action yml using miniwdl: https://github.com/openwdl/workflow-template-wdl/blob/main/.github/workflows/unit.yml

@seankross
Copy link
Collaborator Author

seankross commented Dec 17, 2024

& lets us run each cromwell command in the background. Cut the time in half, for now: https://github.com/FredHutch/wdl-unit-tests/actions/workflows/cromwell-test-run.yml?query=branch%3Arun-gha-on-pr. I'm not sure if this will stay constant-ish time or grow linearly as we add unit tests: e987b88

Copy link
Collaborator

@tefirman tefirman left a comment

Choose a reason for hiding this comment

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

Great call, @seankross ! Looks good to me, but like you said, let's keep an eye on this timing as we add more unit-tests. I'll make sure to incorporate the yml updates into my two existing PR's.

@sckott
Copy link
Collaborator

sckott commented Dec 17, 2024

perhaps we want to make sure these actions run only on PRs that originate from branches within the repo? or maybe not? e.g.,
https://github.com/getwilds/.github/blob/main/workflow-templates/deploy-preview.yml#L27

@tefirman
Copy link
Collaborator

@sckott -- seems smart to me, just added that condition to both YML files.

@sckott
Copy link
Collaborator

sckott commented Dec 17, 2024

cool i'll add to the api tests one as well

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.

3 participants