Skip to content

gh-136157: Optimize asyncio.to_thread to avoid contextvars.copy_context() overhead for empty contexts #159488

gh-136157: Optimize asyncio.to_thread to avoid contextvars.copy_context() overhead for empty contexts

gh-136157: Optimize asyncio.to_thread to avoid contextvars.copy_context() overhead for empty contexts #159488

Triggered via pull request July 1, 2025 17:13
Status Cancelled
Total duration 14m 57s
Artifacts 1

build.yml

on: pull_request
Change detection  /  Create context from changed files
12s
Change detection / Create context from changed files
Matrix: Address sanitizer
Matrix: build-macos
Matrix: build-tsan
Matrix: Ubuntu SSL tests with OpenSSL
Matrix: build-ubuntu
Matrix: build-windows-msi
Waiting for pending jobs
Matrix: build-windows
Matrix: CIFuzz
Docs  /  Docs
1m 48s
Docs / Docs
Docs  /  Doctest
5m 3s
Docs / Doctest
Check if Autoconf files are up to date
28s
Check if Autoconf files are up to date
Check if generated files are up to date
4m 36s
Check if generated files are up to date
WASI  /  build and test
6m 5s
WASI / build and test
Hypothesis tests on Ubuntu
9m 29s
Hypothesis tests on Ubuntu
Cross build Linux
3m 59s
Cross build Linux
Undefined behavior sanitizer  /  Undefined behavior sanitizer
14m 12s
Undefined behavior sanitizer / Undefined behavior sanitizer
All required checks pass
3s
All required checks pass
Fit to window
Zoom out
Zoom in

Annotations

31 errors and 12 warnings
Docs / Docs
Process completed with exit code 255.
Docs / Docs
Process completed with exit code 2.
Windows / Build and test (Win32)
The operation was canceled.
Windows / Build and test (Win32)
Canceling since a higher priority waiting request for Tests-heliang666s-asyncio_to_thread_clean exists
Windows (free-threading) / Build and test (x64)
The operation was canceled.
Windows (free-threading) / Build and test (x64)
Canceling since a higher priority waiting request for Tests-heliang666s-asyncio_to_thread_clean exists
Ubuntu (free-threading) / build and test (ubuntu-24.04)
The operation was canceled.
Ubuntu (free-threading) / build and test (ubuntu-24.04)
Canceling since a higher priority waiting request for Tests-heliang666s-asyncio_to_thread_clean exists
Windows / Build and test (arm64)
The operation was canceled.
Windows / Build and test (arm64)
Canceling since a higher priority waiting request for Tests-heliang666s-asyncio_to_thread_clean exists
Windows (free-threading) / Build and test (arm64)
The operation was canceled.
Windows (free-threading) / Build and test (arm64)
Canceling since a higher priority waiting request for Tests-heliang666s-asyncio_to_thread_clean exists
Undefined behavior sanitizer / Undefined behavior sanitizer
The operation was canceled.
Undefined behavior sanitizer / Undefined behavior sanitizer
Canceling since a higher priority waiting request for Tests-heliang666s-asyncio_to_thread_clean exists
Windows / Build and test (x64)
The operation was canceled.
Windows / Build and test (x64)
Canceling since a higher priority waiting request for Tests-heliang666s-asyncio_to_thread_clean exists
Ubuntu (bolt) / build and test (ubuntu-24.04)
The operation was canceled.
Ubuntu (bolt) / build and test (ubuntu-24.04)
Canceling since a higher priority waiting request for Tests-heliang666s-asyncio_to_thread_clean exists
Thread sanitizer (free-threading) / Thread sanitizer
The operation was canceled.
Thread sanitizer (free-threading) / Thread sanitizer
Canceling since a higher priority waiting request for Tests-heliang666s-asyncio_to_thread_clean exists
All required checks pass
Process completed with exit code 1.
Tests
Canceling since a higher priority waiting request for Tests-heliang666s-asyncio_to_thread_clean exists
Tests
Canceling since a higher priority waiting request for Tests-heliang666s-asyncio_to_thread_clean exists
Tests
Canceling since a higher priority waiting request for Tests-heliang666s-asyncio_to_thread_clean exists
Tests
Canceling since a higher priority waiting request for Tests-heliang666s-asyncio_to_thread_clean exists
Tests
Canceling since a higher priority waiting request for Tests-heliang666s-asyncio_to_thread_clean exists
Tests
Canceling since a higher priority waiting request for Tests-heliang666s-asyncio_to_thread_clean exists
Tests
Canceling since a higher priority waiting request for Tests-heliang666s-asyncio_to_thread_clean exists
Tests
Canceling since a higher priority waiting request for Tests-heliang666s-asyncio_to_thread_clean exists
Tests
Canceling since a higher priority waiting request for Tests-heliang666s-asyncio_to_thread_clean exists
Tests
Canceling since a higher priority waiting request for Tests-heliang666s-asyncio_to_thread_clean exists
macOS / build and test (ghcr.io/cirruslabs/macos-runner:sonoma)
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK is set: not checking for outdated dependents or dependents with broken linkage!
macOS / build and test (ghcr.io/cirruslabs/macos-runner:sonoma)
xz 5.8.1 is already installed and up-to-date. To reinstall 5.8.1, run: brew reinstall xz
macOS / build and test (ghcr.io/cirruslabs/macos-runner:sonoma)
pkgconf 2.4.3 is already installed and up-to-date. To reinstall 2.4.3, run: brew reinstall pkgconf
macOS (free-threading) / build and test (ghcr.io/cirruslabs/macos-runner:sonoma)
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK is set: not checking for outdated dependents or dependents with broken linkage!
macOS (free-threading) / build and test (ghcr.io/cirruslabs/macos-runner:sonoma)
xz 5.8.1 is already installed and up-to-date. To reinstall 5.8.1, run: brew reinstall xz
macOS (free-threading) / build and test (ghcr.io/cirruslabs/macos-runner:sonoma)
pkgconf 2.4.3 is already installed and up-to-date. To reinstall 2.4.3, run: brew reinstall pkgconf
Hypothesis tests on Ubuntu
No files were found with the provided path: /home/runner/work/cpython/cpython-builddir/.hypothesis/examples/. No artifacts will be uploaded.
macOS / build and test (macos-13)
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK is set: not checking for outdated dependents or dependents with broken linkage!
macOS / build and test (macos-13)
tcl-tk@8 8.6.16 is already installed and up-to-date. To reinstall 8.6.16, run: brew reinstall tcl-tk@8
macOS / build and test (macos-13)
gdbm 1.25 is already installed and up-to-date. To reinstall 1.25, run: brew reinstall gdbm
macOS / build and test (macos-13)
xz 5.8.1 is already installed and up-to-date. To reinstall 5.8.1, run: brew reinstall xz
macOS / build and test (macos-13)
pkgconf 2.5.1 is already installed and up-to-date. To reinstall 2.5.1, run: brew reinstall pkgconf

Artifacts

Produced during runtime
Name Size Digest
ubsan-logs Expired
15 KB
sha256:93cfb147b327f7f58b643b7658efef4d02189649908c73f5b1a67bbdbb723447