Skip to content

fix: use a uv managed python for the minimum torch tests - #1318

Merged
drbh merged 1 commit into
mainfrom
fix-min-torch-python-headers
Nov 10, 2026
Merged

drbh merged 1 commit into
mainfrom
fix-min-torch-python-headers

Conversation

@drbh

@drbh drbh commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

this pr fixes the test-kernel-minimum-torch job for stable abi kernels that run triton in their tests (first hit on #1182 https://github.com/huggingface/kernels-community/actions/runs/41133285042/job/124352993673)

tldr; uv venv picks the runner's system python which has no headers, so triton fails to compile its launcher with Python.h: No such file or directory. the venv now uses --managed-python, which ships with headers

repro in an ubuntu 24.04 container with the system python and no python3.12-dev, running the #1182 tests

before

44 failed, 92 passed, 4 skipped

after

136 passed, 4 skipped

note: the repro ran on rocm (mi300x) so triton compiles hip_utils.c instead of cuda_utils.c, same Python.h include. #1182 needs a rebuild after this is merged since the workflow runs from main

@github-actions github-actions Bot added the fix Bug fix label Nov 10, 2026
@drbh
drbh merged commit a342931 into main Nov 10, 2026
8 checks passed
@drbh
drbh deleted the fix-min-torch-python-headers branch November 10, 2026 18:13
drbh added a commit that referenced this pull request Nov 13, 2026
this pr fixes the `test-kernel-rocm` job for kernels that run triton in
their tests (first hit on #1320
https://github.com/huggingface/kernels-community/actions/runs/43476728896/job/132069439103)

tldr; the job runs in a bare `ubuntu:24.04` container with no compiler,
so triton fails to build its launcher with `RuntimeError: Failed to find
C compiler`. the base packages step now also installs `gcc` and
`libc6-dev` (`--no-install-recommends` skips the libc headers otherwise)

same #1182 cv-utils tests as #1318, `44 failed, 92 passed, 4 skipped`,
but a missing compiler instead of missing `Python.h` (the nix ci-test
python has headers). the cuda runners have a host gcc so
`test-kernel-gpu` passes

note: #1320 and #1329 need a rebuild after this is merged since the
workflow runs from main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants