bodhi_utils: make build2update more effective
ClosedPublic

Authored by kparal on Jul 22 2015, 1:47 PM.

Details

Summary

Instead of making many single calls, make use of (somewhat undocumented)
Bodhi method 'get_updates_from_builds'. This speeds up the query time
about 8 times (in a scenario with 50 builds to query).

Test Plan

test suite adjusted. manually tested in ipython, and with upgradepath (depcheck skipped, the downloading is too slow)

Diff Detail

Repository
rLTRN libtaskotron
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kparal retitled this revision from to bodhi_utils: make build2update more effective.Jul 22 2015, 1:47 PM
kparal updated this object.
kparal edited the test plan for this revision. (Show Details)
kparal added reviewers: lbrabec, jskladan, mkrizek, tflink.
kparal updated this revision to Diff 1231.Jul 22 2015, 1:51 PM
  • keep 80 columns for documentation
lbrabec accepted this revision.Jul 22 2015, 2:25 PM

Neat! I tried build2update() on 350 packages, this code did it in 30 seconds, code from develop branch didn't end in 6 minutes...

Macro doge: such speed very ack

This revision is now accepted and ready to land.Jul 22 2015, 2:25 PM
jskladan accepted this revision.Jul 23 2015, 8:23 AM
This revision was automatically updated to reflect the committed changes.