Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1639366
Summary: | tcms-run run time is quadratical to the number of cases | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Martin Kyral <mkyral> |
Component: | python-nitrate | Assignee: | Petr Šplíchal <psplicha> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 28 | CC: | fsumsal, lpol, lzachar, mfrodl, psplicha |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | python-nitrate-1.4-1 python-nitrate-1.4-1.fc28 python-nitrate-1.4-1.fc29 python-nitrate-1.4-1.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-11-15 02:28:32 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Martin Kyral
2018-10-15 15:03:13 UTC
From gdb a bt can be get, showing is where the TR processing is stuck. The bt is most of the time this: Traceback (most recent call first): File "/usr/lib/python2.7/site-packages/nitrate/base.py", line 63, in getter if getattr(self, "_" + field) is NitrateNone: File "/usr/lib/python2.7/site-packages/nitrate/base.py", line 368, in __eq__ return self.id == other.id File "/usr/lib/python2.7/site-packages/nitrate/mutable.py", line 376, in sortkey if caseplan.testcase == testcase][0] File "/usr/lib/python2.7/site-packages/nitrate/containers.py", line 779, in <lambda> self._items, key=lambda x: self._object.sortkey(x)): File "/usr/lib/python2.7/site-packages/nitrate/containers.py", line 779, in __iter__ self._items, key=lambda x: self._object.sortkey(x)): File "/usr/lib/python2.7/site-packages/nitrate/mutable.py", line 185, in __iter__ for testcase in self.testcases: File "/usr/bin/tcms-run", line 367, in link_cases if testcase not in testplan: File "/usr/bin/tcms-run", line 770, in create_update_run link_cases(testplan, testrun, environment) File "/usr/bin/tcms-run", line 844, in process_plan testplan, summary, srpms, distro, notes, errata, environment) File "/usr/bin/tcms-run", line 865, in <module> process_plan(nitrate.TestPlan(testplan)) If someone could try hhttps://github.com/lukaszachy/python-nitrate/commit/3cddb0fd60ff826471a0c3b489f53a636773af46 ... For me tcms-run finished in quite nice time: Linked 1125 relevant cases, skipped 98 irrelevant cases real 3m5.521s user 0m18.295s sys 0m0.517s Tried, tested. The patched version finished the test run creation with ~ 1200 testcases in few minutes instead of several hours. That's what I call a speedup, really. Thanks! While patch is being accepted and official release will be made: rhel6, rhel7, fedora 27,28,29 builds are available on https://copr.fedorainfracloud.org/coprs/lzachar/python-nitrate/ python-nitrate-1.4-1.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-f699a3f38d python-nitrate-1.4-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-14856dab5b python-nitrate-1.4-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-83a0df283a python-nitrate-1.4-1.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-654f0dfbff python-nitrate-1.4-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-83a0df283a python-nitrate-1.4-1.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-f699a3f38d python-nitrate-1.4-1.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-14856dab5b python-nitrate-1.4-1.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-654f0dfbff python-nitrate-1.4-1.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report. python-nitrate-1.4-1.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report. python-nitrate-1.4-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report. |