-
Notifications
You must be signed in to change notification settings - Fork 28
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
The "Build and push the license feeder/detector" workflows get triggered on *every* push #456
Comments
Can I have a look at the branches that still trigger the Build and push the license feeder Docker image and Build and push the python license detector Docker image ? I did a bit of cleanup (removing unmerged branches, as asked by Antoine @amottier), and now it could be handled. |
Hello, the root cause of the issue are those 3 lines at the deployment files: fasten/.github/workflows/docker-license-detector-plugin.yml Lines 13 to 15 in da66973
More specifically, in both Build and push the license detector Docker image, Build and push the license feeder Docker image and Build and push the python license detector Docker image actions, the worflows are configured to be triggered every time a modification is placed on a pull request targeting the Therefore, I would propose removing this configuration and keep triggering the actions only on pushes on specific branches. |
On push or pull_request on develop, the three GH actions that creates the 2 license detectors (the ones that include Scancode) and the Java license feeder, are triggered.
There are no side branches for licensing anymore. All is in develop. Consider that all these plugins uses the fasten core library. If any modification on the core is performed, it makes sense that these GH actions run (there may be modifications that breaks the license detectors, as well as the Java license feeder). |
Hi there, I performed the modification suggested by @gdrosos Giorgos. I merged this branch with the proposed modification. |
Every push, regardless on which branch it happens, triggers the two workflows "Build and push the license feeder Docker image" and "Build and push the python license detector Docker image". Both do not only take extended time to finish, they also both publish a Docker image. I would expect that the build is only triggered on commits on
develop
, but from the name it looks like there could be even smarter handling involved as one build only affects Python.The current handling does not seem to be intended and it wastes a lot of resources in terms of storage and build minutes for the organization.
@michelescarlato Could you please look into this?
The text was updated successfully, but these errors were encountered: