Repository navigation
fix: use a uv managed python for the minimum torch tests - #1318
Merged
Merged
Conversation
danieldk
approved these changes
Nov 10, 2026
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
this pr fixes the
test-kernel-minimum-torchjob 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 venvpicks the runner's system python which has no headers, so triton fails to compile its launcher withPython.h: No such file or directory. the venv now uses--managed-python, which ships with headersrepro in an ubuntu 24.04 container with the system python and no
python3.12-dev, running the #1182 testsbefore
after
note: the repro ran on rocm (mi300x) so triton compiles
hip_utils.cinstead ofcuda_utils.c, samePython.hinclude. #1182 needs a rebuild after this is merged since the workflow runs from main