> It would be nice of course if there was a tool for doing this,
then the
> text could be reduced to 'run the magic tool and make sure it says OK'.
I'll do some thinking whether I can write such a magical tool.
Here we go:
https://git.fedorahosted.org/cgit/fedora-qa.git/tree/track-previous-relea...
A bit more complicated than I expected. But now we can simplify the instructions to this:
https://fedoraproject.org/w/index.php?title=User:Kparal/Draft:SOP_blocker...
What do you think?
The tool itself prints output like this:
$ ./track-previous-release-blocker.py tmw-20130201-6.fc23
INFO Querying Koji for tmw-20130201-6.fc23 in f23-updates ...
INFO Build tmw-20130201-6.fc23 was tagged into f23-updates at: 2016-02-29 18:03:33 UTC
(1456769013.68)
INFO Downloading metalink for updates-released-f23 ...
INFO Metalink contains metadata with these timestamps:
2016-02-29 04:47:02 UTC (1456721222.0) ✘ older than pushed package
2016-02-29 21:44:02 UTC (1456782242.0) ✔ sufficiently recent
WARNING ✘ FAILED Some metadata referenced in metalink is still older than the time when
tmw-20130201-6.fc23 was tagged into f23-updates. Some users would not receive this update
if they chose to update now.
$ ./track-previous-release-blocker.py dmidecode-3.0-1.fc23
INFO Querying Koji for dmidecode-3.0-1.fc23 in f23-updates ...
INFO Build dmidecode-3.0-1.fc23 was tagged into f23-updates at: 2016-01-24 23:02:17 UTC
(1453676537.74)
INFO Downloading metalink for updates-released-f23 ...
INFO Metalink contains metadata with these timestamps:
2016-02-29 04:47:02 UTC (1456721222.0) ✔ sufficiently recent
2016-02-29 21:44:02 UTC (1456782242.0) ✔ sufficiently recent
INFO ✔ PASSED All metadata referenced in metalink is sufficiently newer than the time
when dmidecode-3.0-1.fc23 was tagged into f23-updates. All users should be able to receive
the update now.
$ ./track-previous-release-blocker.py datovka-4.5.0-1.fc23 --metalink ~/tmp/metalink.xml
# hacked for demonstration purposes
INFO Querying Koji for datovka-4.5.0-1.fc23 in f23-updates ...
INFO Build datovka-4.5.0-1.fc23 was tagged into f23-updates at: 2016-02-25 10:56:37 UTC
(1456397797.11)
INFO Metalink contains metadata with these timestamps:
2016-03-02 13:29:06 UTC (1456925346.0) ✘ DNF cache not yet expired (until
2016-03-02 19:29:06 UTC)
WARNING ✘ FAILED All metadata referenced in metalink is newer than the time when
datovka-4.5.0-1.fc23 was tagged into f23-updates. However, it still hasn't been at
least 6 hours (the default DNF metadata expire duration) since any of the listed metadata
were pushed, and so some users would not receive this update if they chose to update now.
Please wait until the expiration time listed above.
$ ./track-previous-release-blocker.py sendmail-8.15.2-2.fc22
INFO Querying Koji for sendmail-8.15.2-2.fc22 in f22-updates ...
WARNING It seems that sendmail-8.15.2-2.fc22 hasn't yet been tagged into f22-updates!
Please verify that your NVR is correct or that something else is not wrong.
Hint: You can see complete tag history by running: koji list-tag-history --build
sendmail-8.15.2-2.fc22
It also has a --debug option if needed.