-
Notifications
You must be signed in to change notification settings - Fork 2
build: Only run actions based on path changed filter #19
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
Conversation
83b5ce4
to
36336cb
Compare
613edab
to
102630c
Compare
Looks like it didn't run / finish all the jobs. I tried to restart the failed jobs, but only 1 restarted. Are we hitting the concurrent jobs limit here? Though that shouldn't affect rerunning only a portion. |
102630c
to
e9b0f42
Compare
e9b0f42
to
611712e
Compare
This should be sorted now! |
branches: [ main ] | ||
|
||
paths: | ||
- 'medcat-v2/**' |
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.
Just as a comment, I don't think this currently has much effect since the tutorials target a hard coded version rather than the one in the PR. But in principle that is a separate issue we should address.
tags: | ||
- 'v*.*.*' # e.g., v0.1.1 | ||
- 'medcat-service/v*.*.*' # e.g., medcat-serice/v0.1.1 | ||
pull_request: |
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.
Just commenting here with the changes.
Does this actually make sense? This workflow pushes to docker hub. I don't think it makes sense to push to docker hub upon each PR, does it?
@alhendrickson
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.
In my view - yes I want to push every time to docker hub. There's no storage limit at all, and it is very fast due to the layering and caching, so I dont see a real reason not to. To further justify: in the example docker provide for their official github action, it pushes to docker every push to git, dockerhub really dont care how much you want to send them. Practical benefits are this is now true e2e, it pulls and runs the exact image from dockerhub for this branch for a test
As the side note - I would still prefer to run every action every single push, the only reason I see not to right now is the concurrency limit in github combined with the long action times right now. As a culture here I'd want to move towards us not caring if the runners do "unnecessary work", until there's some real reason, and I think a lot of these actions including other repos have a bit of premature optimisation going on in terms of when they run, instead of how fast they run
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.
The problem is this means changes are pushed before a review of the PR.
While I'm pretty sure we have workflow disabled for outside PRs (so no direct attack vector), once you enable it, any PR will immediately push the changes to docker hub upon workflow. So even if every other workflow fails, the image in docker hub was already pushed as part of this workflow.
IMHO this should only run on new commits on the main
branch rather than on PRs.
No description provided.