question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

propose-update does not generate proper changelog from release tag

See original GitHub issue

As discussed in issue #298, the idea was that the changelog gets generated from the upstream release tag (or the github description, etc). I think that even worked right when I tested that, but it seems to have regressed. For cockpit-ostree 179 it now just generates:

--- a/cockpit-ostree.spec
+++ b/cockpit-ostree.spec
@@ -1,12 +1,17 @@
 Name: cockpit-ostree
-Version: 178
+Version: 179
 Release: 1%{?dist}
 BuildArch: noarch
 Summary: Cockpit user interface for rpm-ostree
 License: LGPLv2+
 Requires: cockpit-bridge >= 125
 Requires: cockpit-system >= 125
-Requires: /usr/libexec/rpm-ostreed
+# On RHEL Atomic 7, the package name is different (curiously not on CentOS Atomic)
+%if 0%{?rhel} == 7
+Requires: rpm-ostree-client
+%else
+Requires: rpm-ostree
+%endif
 
 # Download from https://github.com/cockpit-project/cockpit-ostree/releases
 Source: cockpit-ostree-%{version}.tar.gz
@@ -27,6 +32,9 @@ find %{buildroot}%{_datadir}/cockpit/ -name '*.map' | xargs rm --verbose
 %{_datadir}/cockpit/*
 
 %changelog
+* Wed Jul 24 2019 Martin Pitt <martin@piware.de> - 179-1
+- new upstream release: 179
+
 * Fri Jul 12 2019 Martin Pitt <martin@piware.de> - 178-1
 - new upstream release: 178

(that’s just the .spec change, ignoring changes to sources and .gitignore).

This is a bit sad, the changelog should include some useful information, bug refs, etc. I did 178 with an earlier packit master as well, same problem (but that was after #298 landed).

❱❱❱ git -C ~/tmp/packit/ rev-parse HEAD
efb466df8567c2050b09f6854b515250ac1dfa7a

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:21 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
lachmanfrantisekcommented, Jan 13, 2020

I am not sure about the priority, but it looks still relevant to me.

2reactions
martinpittcommented, Aug 1, 2019

Maybe I was just imagining that it worked before then? Ideally we want to copy the upstream git tag description, i. e. what can be seen on the GitHub /releases page. In this case:

 %changelog
* Wed Jul 24 2019 Martin Pitt <martin@piware.de> - 179-1
- spec: Depend on package instead of file path (rhbz#1731687)
- Add packit configuration

If packit can’t or doesn’t want to (for clean architecture reasons) look at the tag, would it be possible to feed that in through an option?

Edit: @TomasTomecek highlighted the request a bit

Read more comments on GitHub >

github_iconTop Results From Across the Web

document how to include changelog in tagged release #94
I'm using a similar workaround (tag, build changelog, delete tag, commit changelog and tag again). It's not perfect but it works. The suggestion ......
Read more >
Update changelog for a release tag - github - Stack Overflow
I am make a release tag with github actions as below: ... But I don't know whether this way was correct and how...
Read more >
Reviewer Guide - OpenStack Releases
Releases for deliverables that do not have that governance tag can be approved at any time. Releases from master can be approved with...
Read more >
2019 - Packit
packit propose-update to create a pull request in Fedora dist-git with the selected upstream release; packit build to build the new upstream release...
Read more >
How To Automatically Generate A Helpful Changelog From ...
These types have no implicit effect on semantic versioning and are not part of the conventional commit specification. I also recommend reading How...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found