From 89c1ebcaa849070f5cb8f6c6e757432098d401e0 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sun, 19 Jul 2026 22:22:46 +0200 Subject: [PATCH] =?UTF-8?q?Update=20GitHub=20runners:=20ubuntu=2024.04=20?= =?UTF-8?q?=E2=86=92=2026.04?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TSan needs to map its shadow memory at fixed addresses. Newer Ubuntu kernels raised `vm.mmap_rnd_bits` to 32. With that much ASLR entropy the mmap region can collide with TSan’s reserved ranges. TSan tries to re-exec itself with ASLR disabled: https://github.com/llvm/llvm-project/pull/78351 Docker’s default seccomp profile appears to be blocking the personality(ADDR_NO_RANDOMIZE) call TSan uses to re-exec itself without ASLR. Relax security options so that TSan is able to re-exec itself. Similarly, Docker’s default seccomp profile is blocking a syscall the old 32-bit glibc resolver uses. Relax security options so that DNS resolution works on the obsolete i686 image. --- .github/workflows/ci.yaml | 27 +++++++++++++++------------ .readthedocs.yaml | 2 +- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c3c5c516..31e5d98d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -28,7 +28,7 @@ env: jobs: python_sdist: - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 outputs: sdist_artifact_name: ${{ steps.build_sdist.outputs.sdist_artifact_name }} package_version: ${{ steps.build_sdist.outputs.package_version }} @@ -60,7 +60,7 @@ jobs: # always upload the sdist artifact- all the wheel build jobs require it make_linux_matrix: - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 outputs: matrix_json: ${{ steps.make_matrix.outputs.matrix_json }} steps: @@ -154,7 +154,7 @@ jobs: linux: needs: [python_sdist, make_linux_matrix] - runs-on: ${{ (matrix.arch == 'aarch64') && 'ubuntu-24.04-arm' || 'ubuntu-24.04' }} + runs-on: ${{ (matrix.arch == 'aarch64') && 'ubuntu-26.04-arm' || 'ubuntu-26.04' }} timeout-minutes: 120 strategy: fail-fast: false @@ -188,6 +188,7 @@ jobs: make install && \ cd .. && \ rm -rf libffi-3.4.6 + CIBW_CONTAINER_ENGINE: "${{ matrix.arch == 'i686' && 'docker; create_args: --security-opt seccomp=unconfined' || 'docker' }}" # Docker’s default seccomp profile is blocking a syscall required by the old 32-bit glibc resolver CIBW_ENVIRONMENT_PASS_LINUX: CFLAGS # ensure that the build container can see our overridden build config CIBW_ENVIRONMENT: >- CPPFLAGS="$CPPFLAGS ${{ env.skip_artifact_upload == 'true' && '-UNDEBUG' || '-DNDEBUG' }}" @@ -225,7 +226,7 @@ jobs: if: ${{ (matrix.skip_artifact_upload != 'true') && (env.skip_artifact_upload != 'true') }} make_macos_matrix: - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 outputs: matrix_json: ${{ steps.make_matrix.outputs.matrix_json }} steps: @@ -317,7 +318,7 @@ jobs: if: ${{ env.skip_artifact_upload != 'true' }} make_windows_matrix: - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 outputs: matrix_json: ${{ steps.make_matrix.outputs.matrix_json }} steps: @@ -411,7 +412,7 @@ jobs: if: ${{ env.skip_artifact_upload != 'true' }} make_ios_matrix: - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 outputs: matrix_json: ${{ steps.make_matrix.outputs.matrix_json }} steps: @@ -522,7 +523,7 @@ jobs: merge_artifacts: needs: [python_sdist, linux, macos, windows, ios] - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 steps: - name: merge all artifacts uses: actions/upload-artifact/merge@v7 @@ -532,7 +533,7 @@ jobs: if: ${{ env.skip_artifact_upload != 'true' }} make_run_parallel_matrix: - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 outputs: matrix_json: ${{ steps.make_matrix.outputs.matrix_json }} steps: @@ -543,7 +544,7 @@ jobs: with: matrix_yaml: | include: - - { runner: ubuntu-24.04, python-version: 3.15t-dev } + - { runner: ubuntu-26.04, python-version: 3.15t-dev } - { runner: macos-26, python-version: 3.15t-dev } - { runner: windows-2025, python-version: 3.15t-dev } @@ -579,8 +580,10 @@ jobs: python -m pytest --parallel-threads=4 --skip-thread-unsafe=True --timeout=300 --timeout-method=thread clang_TSAN: - runs-on: ubuntu-24.04 - container: ghcr.io/nascheme/numpy-tsan:3.15t-dev + runs-on: ubuntu-26.04 + container: + image: ghcr.io/nascheme/numpy-tsan:3.15t-dev + options: --security-opt seccomp=unconfined timeout-minutes: 30 env: CFLAGS: -g -O0 -fsanitize=thread @@ -602,7 +605,7 @@ jobs: check: if: always() needs: [python_sdist, linux, macos, windows, ios, clang_TSAN, pytest-run-parallel, merge_artifacts] - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 steps: - name: Verify all previous jobs succeeded (provides a single check to sample for gating purposes) uses: re-actors/alls-green@release/v1 diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 59d8570e..31f0a616 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -7,7 +7,7 @@ version: 2 # Set the version of Python and other tools you might need build: - os: ubuntu-24.04 + os: ubuntu-26.04 tools: python: "3.12"