From 74b95b71e89c9690e4a4b9fe3a68c340dc120f83 Mon Sep 17 00:00:00 2001 From: Donghee Na Date: Wed, 17 Sep 2025 22:09:20 +0100 Subject: [PATCH 1/2] gh-137838: Add CI for no-opt JIT --- .github/workflows/jit.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/jit.yml b/.github/workflows/jit.yml index adec905df4f762..d50485bfd8ddba 100644 --- a/.github/workflows/jit.yml +++ b/.github/workflows/jit.yml @@ -134,6 +134,33 @@ jobs: make all --jobs 4 ./python -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3 + no-opt-jit: + name: JIT without optimizations (Debug) + needs: interpreter + runs-on: ubuntu-24.04 + timeout-minutes: 90 + strategy: + fail-fast: false + matrix: + llvm: + - 19 + steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false + - uses: actions/setup-python@v5 + with: + python-version: '3.11' + - name: Build with JIT enabled without optimizations + run: | + sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ matrix.llvm }} + export PATH="$(llvm-config-${{ matrix.llvm }} --bindir):$PATH" + ./configure --enable-experimental-jit --with-pydebug + make all --jobs 4 + - name: Run tests + run: | + PYTHON_UOPS_OPTIMIZE=0 ./python -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3 + # XXX: GH-133171 # jit-with-disabled-gil: # name: Free-Threaded (Debug) From 188b310abb126bc86eef2b842002432fc663a67f Mon Sep 17 00:00:00 2001 From: Donghee Na Date: Wed, 17 Sep 2025 22:11:10 +0100 Subject: [PATCH 2/2] nit --- .github/workflows/jit.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/jit.yml b/.github/workflows/jit.yml index d50485bfd8ddba..52f7d0d2b3df95 100644 --- a/.github/workflows/jit.yml +++ b/.github/workflows/jit.yml @@ -151,13 +151,13 @@ jobs: - uses: actions/setup-python@v5 with: python-version: '3.11' - - name: Build with JIT enabled without optimizations + - name: Build with JIT run: | sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ matrix.llvm }} export PATH="$(llvm-config-${{ matrix.llvm }} --bindir):$PATH" ./configure --enable-experimental-jit --with-pydebug make all --jobs 4 - - name: Run tests + - name: Run tests without optimizations run: | PYTHON_UOPS_OPTIMIZE=0 ./python -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3