Red Hat Bugzilla – Bug 1305353
Make CheckOwnDirs test faster
Last modified: 2016-05-02 15:42:47 EDT
Description of problem:
When running fedora-review the time spent performing the CheckOwnDirs test is way too long.
fedora-review -x CheckOwnDirs -m fedora-rawhide-x86_64 -n R-highlight
fedora-review -m fedora-rawhide-x86_64 -n R-highlight
I,e, by excluding the CheckOwnDirs test the running time of fedora-review is reduced from 70 minutes to 6 minutes.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Compare running fedora-review with and without the -x CheckOwnDirs flag
Excluding the CheckOwnDirs test reduces the running time with about one hour.
This test should not add significantly to the running time of fedora-review
Most of the time is used for running:
dnf repoquery -q -C --requires --resolve <somepackage>
This takes a few minutes per package:
$ time dnf repoquery -q -C --requires --resolve glibc
Without the --resolve flag it returns in less than a second.
So if you could reimplement the test not using the --resolve flag it would be much faster. Or if dnf didn't take that much time when the --resolve flag was used...
This is basically about bug #1279538. I'm closing this as not-a-bug, which should be understood as not-a-bug in fedora-review but rather dnf.
Thanks for reporting.