Xqt created this task. Xqt added projects: Pywikibot, Pywikibot-tests. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION Observed behavior: ------------------ - On Linux with GraalPy 24.1, running the full test suite takes ~3 hours. - `date_tests` (TestDate / DateTestMeta) frequently stalls during startup. - On GraalPy 25, `date_tests` fails completely. - MacOS runs all tests much faster and stable on both GraalPy 24.1 and 25. Root cause: ----------- - TestDate dynamically generates test methods via DateTestMeta metaclass. - Each format in `date.formats` creates a separate test method. - GraalPy JIT (Truffle) compiles each dynamically generated function on import. - Nested loops and repeated `convert(convert(value))` calls amplify VM overhead. - Module import (`from pywikibot import date`) initializes many Callables, triggering additional compilation. - Combined, this leads to long delays or stalls under GraalPy. Impact: ------- - GraalPy CI on Linux is impractically slow or fails completely. - CPython tests are unaffected. Proposed mitigation: -------------------- Skip `TestDate` dynamically on GraalPy to allow CI to finish and to reduce test time (T413596 <https://phabricator.wikimedia.org/T413596>) TASK DETAIL https://phabricator.wikimedia.org/T413712 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
_______________________________________________ pywikibot-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
