Skip to content

Conversation

alhendrickson
Copy link
Collaborator

No description provided.

@alhendrickson alhendrickson force-pushed the build/limit-workflow-to-paths-changed branch 2 times, most recently from 83b5ce4 to 36336cb Compare June 30, 2025 16:12
@alhendrickson alhendrickson marked this pull request as ready for review June 30, 2025 16:46
@alhendrickson alhendrickson force-pushed the build/limit-workflow-to-paths-changed branch 2 times, most recently from 613edab to 102630c Compare July 1, 2025 10:11
@mart-r
Copy link
Collaborator

mart-r commented Jul 1, 2025

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.

@alhendrickson alhendrickson marked this pull request as draft July 1, 2025 12:30
@alhendrickson alhendrickson force-pushed the build/limit-workflow-to-paths-changed branch from 102630c to e9b0f42 Compare July 1, 2025 14:29
@alhendrickson alhendrickson force-pushed the build/limit-workflow-to-paths-changed branch from e9b0f42 to 611712e Compare July 1, 2025 14:45
@alhendrickson alhendrickson marked this pull request as ready for review July 1, 2025 14:50
@alhendrickson
Copy link
Collaborator Author

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.

This should be sorted now!

@alhendrickson alhendrickson merged commit 555905f into main Jul 2, 2025
13 checks passed
@alhendrickson alhendrickson deleted the build/limit-workflow-to-paths-changed branch July 2, 2025 08:24
branches: [ main ]

paths:
- 'medcat-v2/**'
Copy link
Collaborator

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:
Copy link
Collaborator

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

Copy link
Collaborator Author

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

Copy link
Collaborator

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.

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.

2 participants