-
Notifications
You must be signed in to change notification settings - Fork 21
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
better %changelog text for "Update patches" #160
Comments
Right, I just didn't figure out the right format/way to do this for everyone because showing every commit between releases for projects like nova would bloat the changelog into unreadability. OTOH for rdopkg itself I do exactly that - list commits between releases and filter them by hand. Now started using reno to take care of release notes, maybe that could also be used... Listing patches changes changes sounds like more universal option, it could even list when a ds patch was merged upstream and is now part of a release... but that would be a lots of parsing and I'll try looking at the |
Another approach would be to require patches to include Reno file, see https://github.com/openstack/reno |
We use rdopkg with several different upstreams outside the RDO ecosystem (eg. ceph, ceph-ansible, nfs-ganesha) and it would be difficult to convince them all to use reno in order to use rdopkg effectively. |
There is one difference between Debian packaging and RPM packaging that makes this easier to provide sane changelogs within the Debian tooling. With rdopkg's patch files, we have the commit sha1 as the first line of the file. This means that if we ever rebase the -patches branch, all the .patch files from the rebase point onward will be "changed" because the sha1s will change. Debian's patches do not have that |
Debian's See the |
In Ceph we often have to rewrite our -patches branch to address build failures, etc.
If I rewrite the final patch in my
-patches
branch and runrdopkg patch
again, rdopkg will bump the Release and insert a generic changelog entry like this:Currently I have to rewrite that %changelog by hand in this case.
It would be great to figure out which patches changed and print their commit message titles here, along with the rhbz numbers.
I do this with an Ubuntu-equivalent tool at https://github.com/red-hat-storage/rhcephpkg/blob/master/rhcephpkg/patch.py . It generates a package changelog like this:
It works by reading the output of
git status -s debian/patches/
, and parsing that into "Deleted", "Added", "Modified" actions.The text was updated successfully, but these errors were encountered: