Page MenuHomePhabricator

GraalPy tests are extremely slow with coverage.py
Closed, ResolvedPublic

Description

GraalPy tests are significantly slower when run with coverage run. In particular, the GraalPy 25 tests on Ubuntu take about 60–80 minutes with coverage.py.

GraalPy provides native coverage support, including LCOV output, which avoids this excessive overhead and reduces the test runtime to about 1–2 minutes. Therefore investigate and use GraalPy's native coverage support for GraalPy tests.

The affected tests currently cover only the dry tests (-a "not net"). If the runtime can be significantly reduced by using GraalPy's native coverage support, the remaining deep tests could also be enabled.

Event Timeline

Xqt triaged this task as Medium priority.
Xqt added a project: Pywikibot-tests.

it can be added as a sub-task to this T434934, or what do you think?

Change #1328345 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [tests] use native coverage for GraalPy tests

https://gerrit.wikimedia.org/r/1328345

it can be added as a sub-task to this T434934, or what do you think?

I don't think that the test time will be reduced for GraalPy in general. The current test time is reduced by about 90% with native coverage, but on the other hand, I want to run the full test suite because currently only the dry tests are enabled due to the runtime restriction.

it can be added as a sub-task to this T434934, or what do you think?

I don't think that the test time will be reduced for GraalPy in general. The current test time is reduced by about 90% with native coverage, but on the other hand, I want to run the full test suite because currently only the dry tests are enabled due to the runtime restriction.

aha! that makes sense.
thanks.

Change #1328347 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [tests] enable deep tests for GraalPy

https://gerrit.wikimedia.org/r/1328347

Change #1328345 merged by jenkins-bot:

[pywikibot/core@master] [tests] use native coverage for GraalPy tests

https://gerrit.wikimedia.org/r/1328345

Change #1328347 merged by jenkins-bot:

[pywikibot/core@master] [tests] enable deep tests for GraalPy

https://gerrit.wikimedia.org/r/1328347