openzim / _python-bootstrap

Sample openZIM Python project bootstrap
1 stars 1 forks source link

Worflows are not running when pushing to a branch without a pull request #8

Closed benoit74 closed 10 months ago

benoit74 commented 11 months ago

When pushing to a branch (not main, any other branch), QA and Test workflows are not running.

This is a bit sad because it means that we must open a pull request to see workflows running and their result.

At the same time, if we activate workflows on all push and pull requests, it means that workflows will run twice in many cases.

I have identified an alternative (implemented in offspot/metrics for instance):

To make it works, we have to perform a workflow call, but it works well.

WDYT ?

rgaudin commented 11 months ago

That's a question for @kelson42

benoit74 commented 10 months ago

@kelson42 could we quickly have your feedback on this proposal?

We need to make a decision, both alternatives are ok for me, but we now have lots of variants between old way of doing this, new convention which is not deployed everywhere, my proposition which has been implemented in some cases before the convention was decided and this is not confortable.

kelson42 commented 10 months ago

Sorry for my lack of feedback.

This is something we have fixed a certain way everywhere the same manner. Look at https://github.com/openzim/libzim/blob/66b3b7f1de7f9ce1370de388e51364f420fc63e4/.github/workflows/ci.yml#L3 for example

@benoit74 Let me know if there anything you are not satified by this way of doing.

benoit74 commented 10 months ago

Like I said before, I'm ok with this way of doing.

I personally find it more elegant to start workflows as soon as a push occurs rather than relying on pull requests being opened, but I agree this is a very personal taste not backed by a lot of science / arguments.

The purpose of this issue was to ensure that we are all aligned on the way of doing things, and that we were doing it on purpose (i.e. not only because "otherwise the workflows will twice on some cases"), because as of today, we are not (yet) doing this everywhere the same manner.

I'm ok with the decision to stick with the fact that we run workflows on pull requests + push on main branch as coded today in the bootstrap workflows.

kelson42 commented 10 months ago

@benoit74 Thx, I believe we discussed that already in details?! So concretly, you have to make (draft) PRs to get the CI running. This is IMO the main and only advantage/disadvantage.