-
Notifications
You must be signed in to change notification settings - Fork 25
git: option not to update series on tags #143
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
base: master
Are you sure you want to change the base?
Conversation
Thank you for maintaining this project, and for managing patches for MPTCP. This modification is mainly for the MPTCP project, because it uses GitHub. New tags trigger CI executions, and some machines are CPU time limited. Maybe other projects have similar limitations. Note: I was not able to properly test the modification, sorry for that. The modification is quite small and limited to one specific area, is it OK like that? |
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.
Looks reasonable, just had two small comments.
Apart from that, is there no way on GitHub to push without triggering CI?
Thank you for the review!
Yes, there are, but only by modifying the commit message. Both GitHub Actions and Cirrus CI will skip the build if the HEAD commit contains |
Thanks, then I think this solution is okay. It's not ideal to inject The patch looks good to me now! |
Indeed. We could add it under a new
Thank you! Please note that I was still not able to test the modification. I will check if we can modify the MPTCP importer (but I don't control it) |
For testing, maybe consider adding a case in https://github.com/patchew-project/patchew/blob/master/tests/test_tags.py ? |
Thank you!
I used the same commands as the ones used by GitHub Actions, but with
I don't know if these tests are supposed to fail. But when looking closer now, I notice |
Currently, when a new tag is sent on the mailing list, the series is updated in the Git repository. The push is done with '-o ci.skip', but this seems to be something specific to GitLab. It has no effects with GitHub for example. Not to waste resources on retesting everything and sending notifications once a tag is shared, a new per-project option has been added: update_series_on_tags Not to change the current behaviour, series will continue to be updated on new tags by default, except if this option is explicitly disabled. A new test has been added to validate the new option, when disabled. No need to add a new test for the default case (True) as it is already implicitly tested before. Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
@famz thank you for the suggestion. I just added a new test validating the new feature. I don't know well the environment, I guess it is possible to do better. But I checked with and without the option, and I have the expected behaviour. |
I just took a bit of time to understand the issue: it was due to a git config option:
Without that, tests are OK, I should have checked the tests before, sorry for the noise :) |
Currently, when a new tag is sent on the mailing list, the series is updated in the Git repository.
The push is done with '-o ci.skip', but this seems to be something specific to GitLab. It has no effects with GitHub for example. Not to waste resources on retesting everything and sending notifications once a tag is shared, a new per-project option has been added:
Not to change the current behaviour, series will continue to be updated on new tags by default, except if this option is explicitly disabled.