#123: New test: check upgrade paths (etc) between releases
---------------------+------------------------------------------------------
Reporter: wwoods | Owner:
Type: task | Status: new
Priority: major | Milestone: Package update tests
Component: tests | Version: 1.0
Resolution: | Keywords:
---------------------+------------------------------------------------------
Comment (by jlaska):
Replying to [comment:5 skvidal]:
This is not a good script to build from but the idea is easy enough
if
you're doing it for comparing sets of repos.
However, if you're just doing to compare 1 pkg then you'd want to do:
1. return a list of all the pkgs matching name of the pkg in question.
2. sort the list by EVR (which is just sort for yum pkg objects)
3. take the highest one and compare it to your pkg. If it is not less
than or equal to your pkg, then you have an issue to flag.
If y'all can tell me where the 'other' pkgs are and how I can query them
I can probably put this together for you.
Apologies for delay. I *think* what you might use is autoqa.koji_utils
(see
[
http://git.fedorahosted.org/git/?p=autoqa.git;a=blob;f=lib/python/koji_ut...]).
Perhaps something like ...
{{{
import autoqa.koji_utils
koji = autoqa.koji_utils.SimpleKojiClientSession()
envr="lftp-4.0.5-2.fc13"
name="lftp"
print "Proposed update - %s" % envr
print "Available in N-1 - %s" % (koji.list_previous_release(name,
"dist-f12-updates-candidate")['nvr'],)
print "Available in N-2 - %s" % (koji.list_previous_release(name,
"dist-f11-updates-candidate")['nvr'],)
}}}
What's missing ...
* using autoqa.koji_utils.compareNVR() to determine if a previously
released verion is newer.
* something build-into autoqa.koji_utils that understands which tags to
use when looking for older packages?
Just some thoughts. Is this what you were looking for?
--
Ticket URL: <
https://fedorahosted.org/autoqa/ticket/123#comment:6>
AutoQA <
http://autoqa.fedorahosted.org>
Automated QA project