From de1c9c85291910307595e0210c4d2c1f4cf78d8c Mon Sep 17 00:00:00 2001 From: masklinn Date: Mon, 28 Oct 2024 22:24:00 +0100 Subject: [PATCH] Disable TRegex (Graal) JIT compilation TRegex JIT-ing really doesn't like the UAP workload one bit. It basically uses 3 cores worth of CPU to do nothing as the runtime is the same with and without compilation. Sadge. Might as well cut it off, no sense wasting CPU time on the runners. --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74ab4a5..4f41e86 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -93,6 +93,9 @@ jobs: artifact: dist/*.tar.gz - source: wheel artifact: dist/*.whl + - opts: "" + - python-version: graalpy-24 + opts: "--experimental-options --engine.CompileOnly='~tregex re'" steps: - name: Checkout working copy uses: actions/checkout@v4 @@ -127,6 +130,6 @@ jobs: name: ${{ matrix.source }} path: dist/ - name: install package in environment - run: pip install ${{ matrix.artifact || '.' }} + run: python -m pip install ${{ matrix.artifact || '.' }} - name: run tests - run: pytest -v -Werror -Wignore::ImportWarning --doctest-glob="*.rst" -ra + run: python ${{ matrix.opts }} -m pytest -v -Werror -Wignore::ImportWarning --doctest-glob="*.rst" -ra