Investigate Bodhi Client Changes
Open, HighPublic

Description

Guess what? The bodhi client code is changing in rawhide (and only rawhide for now)!

AFAIK, the current plan is that current rawhide and f26+ will have the new, backwards-incompatible bodhi client code but that change in rawhide is imminent.

Look through the changes and determine what changes we have to make to our projects. File project-specific tickets if changes are needed.

tflink created this task.Sep 13 2016, 3:18 PM
tflink edited the task description. (Show Details)Sep 13 2016, 3:21 PM
tflink added projects: blockerbugs, Restricted Project.

One of the big problems for libtaskotron is going to be that the client libraries will not be upgraded on f25 and older.

That means we'll have to figure out a way to either detect the client version and switch off it or find code that works with both client libraries

kparal added a subscriber: kparal.

This is the current state:

$ pkgwat releases bodhi
+---------------+-----------------+----------------------+
| release       | stable_version  | testing_version      |
+---------------+-----------------+----------------------+
| Rawhide       | 2.2.4-1.fc26    | None                 |
| Fedora 25     | 0.9.12.2-5.fc25 | None                 |
| Fedora 24     | 0.9.12.2-4.fc24 | None                 |
| Fedora 23     | 0.9.12.2-3.fc23 | None                 |
| Fedora EPEL 7 | 0.9.8-4.el7     | 2.2.4-1.el7 0 karma  |
| Fedora EPEL 6 | 0.9.12.2-1.el6  | 0.9.13-2.el6 0 karma |
| Fedora EPEL 5 | None            | None                 |
+---------------+-----------------+----------------------+

I've looked at bodhi-2.2.4-1.fc24 (it's built even for F24 in Koji, just not pushed to updates). It depends on the same version of python-fedora, there's nothing considerably newer in Rawhide:

$ pkgwat releases python-fedora
+---------------+-----------------------+-----------------+
| release       | stable_version        | testing_version |
+---------------+-----------------------+-----------------+
| Rawhide       | 0.8.0-2.fc25          | None            |
| Fedora 25     | 0.8.0-2.fc25          | None            |
| Fedora 24     | 0.8.0-1.fc24          | None            |
| Fedora 23     | 0.8.0-1.fc23 (update) | None            |
| Fedora EPEL 7 | 0.7.1-2.el7           | None            |
| Fedora EPEL 6 | 0.5.6-1.el6           | None            |
| Fedora EPEL 5 | None                  | None            |
+---------------+-----------------------+-----------------+

So the import fedora.client.bodhi API didn't seem to change. The only thing that seems to have changed is /usr/bin/bodhi command line tool. You can now import it (import bodhi.client) and it was most probably updated to work well with Bodhi2. There's also a new python2-bodhi RPM now, but that's completely empty at the moment.

So overall, if you use import fedora.client.bodhi in your code, nothing has changed (at least it seems). Only if you used the /usr/bin/bodhi command line tool, then things have changed. In libtaskotron we don't, so I'm removing the project from here. Not sure about blockerbugs.