Repository navigation
Pin the pip packages of the open source SYCL and Coverity builds - #3215
Open
antonwolfy wants to merge 5 commits into
Open
antonwolfy wants to merge 5 commits into
antonwolfy wants to merge 5 commits into
Conversation
The job installed its pip packages unpinned, so CMake 4.5.1, published on PyPI on 2026-12-01, broke it on every PR: CMake 4.5 identifies the open source DPC++ nightly as the new compiler ID `DPClang`, which `IntelSYCLConfig.cmake` of dpctl and dpnp rejects ("Unsupported compiler family DPClang").
The packages now come from `environments/os_llvm_sycl_build.txt` with the versions of the last green run, so Dependabot proposes each update in a PR of its own `os-llvm-sycl-build` group, where a bump that breaks this build holds up no other pin.
The `setuptools<80` cap is dropped: it was copied from dpctl's CI, which added it when setuptools 80 broke its `setup.py develop` builds, and this job doesn't use `develop`. A local replica of the job with the nightly of 2026-11-30 built dpctl and dpnp the same way with setuptools 84.2.1 and 79.0.1, and `dpnp/tests` passed on the CPU device with both (97370 passed).
The weekly Coverity job also installed its build packages unpinned. They now come from `environments/coverity.txt` with the versions of its last green run (2026-11-30), so a new CMake, NumPy, scikit-build, setuptools or wheel arrives in a Dependabot PR instead of in the scheduled run. The job uses icpx, which CMake 4.5 still identifies as `IntelLLVM`, so it isn't hit by the `DPClang` change; the pins keep it reproducible. Both files share most packages, so the Dependabot group becomes `build` and covers `wheel` too. Cython stays pinned on the workflow's pip line: in a Dependabot-managed file its bump would change the generated code and the Coverity CIDs, and an ignore rule can't be limited to one file.
antonwolfy
requested review from
ndgrigorian and
vlad-perevezentsev
as code owners
December 1, 2026 11:28
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the dependency-pinning changes.
No open issues 🎉
What changed in this PR
Pins pip dependencies for the open-source SYCL and Coverity builds to make dependency updates controlled and reproducible. The SYCL build retains CMake 4.4.5 to avoid the unsupported DPClang compiler identification introduced by CMake 4.5.
Changes:
- Moves both workflows’ pip dependencies into pinned requirements files.
- Adds a dedicated Dependabot
buildgroup ahead of the catch-all group. - Keeps Coverity’s Cython pin in the workflow to preserve generated code and Coverity issue identifiers.
| File | Description |
|---|---|
environments/os_llvm_sycl_build.txt |
Adds pinned SYCL build and test dependencies. |
environments/coverity.txt |
Adds pinned Coverity build dependencies. |
.github/workflows/os-llvm-sycl-build.yml |
Installs dependencies from the new requirements file. |
.github/workflows/coverity.yml |
Uses the requirements file while retaining the inline Cython pin. |
.github/dependabot.yml |
Groups build dependency updates separately from other pip updates. |
.github/AGENTS.md |
Documents pin maintenance, grouping, and the Coverity Cython exception. |
Review effort: Balanced
This was referenced Dec 1, 2026
Contributor
|
View rendered docs @ https://intelpython.github.io/dpnp/pull/3215/index.html |
Contributor
|
Array API standard conformance tests for dpnp=0.22.0dev3=np2py314h8d9cdd5_69 ran successfully. |
Collaborator
antonwolfy
added a commit
that referenced
this pull request
Dec 2, 2026
…ke` (#3216) CMake 4.5 identifies the open source DPC++ compiler by a new compiler ID. Its release notes say: "The open-source DPC++ compiler, version 7.0 and newer, is now supported with compiler id DPClang for languages C and CXX". CMake recognizes it by the `__DPCPP__` and `__dpcpp_major__` macros that the compiler defines since its 7.0 release, and keeps `IntelLLVM` for icpx, which defines `__INTEL_LLVM_COMPILER`. There is no policy to get the old `Clang` ID back. The vendored `dpnp/backend/cmake/Modules/IntelSYCLConfig.cmake` accepts only `Clang` and `IntelLLVM`, so with the open source DPC++ and CMake 4.5 the configure step fails: ``` -- The CXX compiler identification is DPClang 7.2.0 CMake Error at dpnp/backend/cmake/Modules/IntelSYCLConfig.cmake:144 (message): Intel SYCL Compiler not found. ``` This PR adds `DPClang` to both compiler-ID checks of the module: the one that decides whether the compiler supports SYCL, and the one that adds `-fsycl`. The version parsing needs no change, as `--version` still prints `clang version 24.0.0git` after the new `DPC++ compiler 7.2.0` line. The oneAPI 2026.3.0 compiler package ships the same module unchanged from 2026.2.0, so it doesn't support `DPClang` either. Nothing else in the build depends on the ID: dpnp's own CMake files don't check it, MKL, TBB and oneDPL come with their own config files, and no C++ code sees it. Built locally with the nightly of 2026-11-30 and `--onemath`: - With CMake 4.5.1 and this change, the generated `build.ninja` has every compile and link command of dpnp, its extensions and oneMath the same as with CMake 4.4.5; the only differences are CMake's own (version header, new phony targets, its `DPClang` modules among the regeneration inputs). Build warnings are the same too. - `dpnp/tests` on the OpenCL CPU device: 97370 passed, 7190 skipped and 3 xfailed, as with CMake 4.4.5. - Without this change, CMake 4.5.1 fails at the configure step as shown above. The `Build with Open Source LLVM SYCL compiler` job can't show this yet: dpctl, which the job builds from source first, has its own `IntelSYCLConfig.cmake` with the same check and needs the same two lines (the local build used them). Until then: - With CMake 4.5.1, which the job installs on master today, it fails at the `Build and install dpctl` step, before dpnp is built. - #3215 pins the job to CMake 4.4.5, which still says `Clang`. Once dpctl accepts `DPClang`, the Dependabot PR that moves the pin to CMake 4.5 runs this code in CI. #3163 moves `dpnp/backend/cmake/Modules/` to `cmake/Modules/`; whichever of the two merges second has to carry the two lines to the moved file.
github-actions Bot
added a commit
that referenced
this pull request
Dec 2, 2026
…ke` (#3216) CMake 4.5 identifies the open source DPC++ compiler by a new compiler ID. Its release notes say: "The open-source DPC++ compiler, version 7.0 and newer, is now supported with compiler id DPClang for languages C and CXX". CMake recognizes it by the `__DPCPP__` and `__dpcpp_major__` macros that the compiler defines since its 7.0 release, and keeps `IntelLLVM` for icpx, which defines `__INTEL_LLVM_COMPILER`. There is no policy to get the old `Clang` ID back. The vendored `dpnp/backend/cmake/Modules/IntelSYCLConfig.cmake` accepts only `Clang` and `IntelLLVM`, so with the open source DPC++ and CMake 4.5 the configure step fails: ``` -- The CXX compiler identification is DPClang 7.2.0 CMake Error at dpnp/backend/cmake/Modules/IntelSYCLConfig.cmake:144 (message): Intel SYCL Compiler not found. ``` This PR adds `DPClang` to both compiler-ID checks of the module: the one that decides whether the compiler supports SYCL, and the one that adds `-fsycl`. The version parsing needs no change, as `--version` still prints `clang version 24.0.0git` after the new `DPC++ compiler 7.2.0` line. The oneAPI 2026.3.0 compiler package ships the same module unchanged from 2026.2.0, so it doesn't support `DPClang` either. Nothing else in the build depends on the ID: dpnp's own CMake files don't check it, MKL, TBB and oneDPL come with their own config files, and no C++ code sees it. Built locally with the nightly of 2026-11-30 and `--onemath`: - With CMake 4.5.1 and this change, the generated `build.ninja` has every compile and link command of dpnp, its extensions and oneMath the same as with CMake 4.4.5; the only differences are CMake's own (version header, new phony targets, its `DPClang` modules among the regeneration inputs). Build warnings are the same too. - `dpnp/tests` on the OpenCL CPU device: 97370 passed, 7190 skipped and 3 xfailed, as with CMake 4.4.5. - Without this change, CMake 4.5.1 fails at the configure step as shown above. The `Build with Open Source LLVM SYCL compiler` job can't show this yet: dpctl, which the job builds from source first, has its own `IntelSYCLConfig.cmake` with the same check and needs the same two lines (the local build used them). Until then: - With CMake 4.5.1, which the job installs on master today, it fails at the `Build and install dpctl` step, before dpnp is built. - #3215 pins the job to CMake 4.4.5, which still says `Clang`. Once dpctl accepts `DPClang`, the Dependabot PR that moves the pin to CMake 4.5 runs this code in CI. #3163 moves `dpnp/backend/cmake/Modules/` to `cmake/Modules/`; whichever of the two merges second has to carry the two lines to the moved file.
3 of 7 tasks
antonwolfy
added a commit
that referenced
this pull request
Dec 3, 2026
scikit-build 1.0.0, released on 2026-12-02, replaced its classic backend with the setuptools plugin of scikit-build-core: `skbuild.setup()` is now a thin wrapper around it. Two of dpnp's builds fail with it: - `scripts/build_locally.py` and `scripts/gen_coverage.py` call `setup.py build_ext --inplace` with `--generator`, `--build-type` and `-- <cmake args>`, which 1.0 removed. The `Build with Open Source LLVM SYCL compiler` job, which installs `scikit-build` with pip, fails at `Build dpnp`: ``` error: option --generator not recognized ``` - The Windows wheels fail at CMake's compiler check. 1.0 dropped the generator probing that set up the MSVC environment for a Ninja build, so the linker doesn't find the Windows SDK libraries: ``` LINK : fatal error LNK1104: cannot open file 'kernel32.lib' ``` The Linux wheels still build. conda-forge has scikit-build 0.19.0, so the conda builds and the jobs that build from `environments/build_with_oneapi.yml` (docs, oneMath, coverage) aren't affected yet, but they would fail the same way once conda-forge has 1.0. This PR caps `scikit-build` below 1.0 wherever it is installed: - `[build-system].requires` in `pyproject.toml`, which the wheel builds install in isolation - `conda-recipe/meta.yaml` and `conda-recipe/rattler_recipe.yaml` - `environments/build_with_oneapi.yml` and `environments/examples.yml` - the pip installs of `coverity.yml` and `os-llvm-sycl-build.yml`, which call `setup.py` through the build scripts, so the `pyproject.toml` pin doesn't reach them - the `conda create` commands of the quick start guide, whose build commands use the removed `setup.py build_ext --inplace -- -G Ninja` syntax The cap is a stopgap, and each one carries a TODO. Staying on `skbuild.setup` with 1.0 would also lose incremental builds: its backend removes the CMake build directory on every run, and `pip install -e .` builds everything a second time. A follow-up moves the build to scikit-build-core directly and lifts the caps. #3215 moves the pip installs of `coverity.yml` and `os-llvm-sycl-build.yml` into requirement files with `scikit-build==0.19.1`; whichever of the two merges second takes the other's lines there.
github-actions Bot
added a commit
that referenced
this pull request
Dec 3, 2026
scikit-build 1.0.0, released on 2026-12-02, replaced its classic backend with the setuptools plugin of scikit-build-core: `skbuild.setup()` is now a thin wrapper around it. Two of dpnp's builds fail with it: - `scripts/build_locally.py` and `scripts/gen_coverage.py` call `setup.py build_ext --inplace` with `--generator`, `--build-type` and `-- <cmake args>`, which 1.0 removed. The `Build with Open Source LLVM SYCL compiler` job, which installs `scikit-build` with pip, fails at `Build dpnp`: ``` error: option --generator not recognized ``` - The Windows wheels fail at CMake's compiler check. 1.0 dropped the generator probing that set up the MSVC environment for a Ninja build, so the linker doesn't find the Windows SDK libraries: ``` LINK : fatal error LNK1104: cannot open file 'kernel32.lib' ``` The Linux wheels still build. conda-forge has scikit-build 0.19.0, so the conda builds and the jobs that build from `environments/build_with_oneapi.yml` (docs, oneMath, coverage) aren't affected yet, but they would fail the same way once conda-forge has 1.0. This PR caps `scikit-build` below 1.0 wherever it is installed: - `[build-system].requires` in `pyproject.toml`, which the wheel builds install in isolation - `conda-recipe/meta.yaml` and `conda-recipe/rattler_recipe.yaml` - `environments/build_with_oneapi.yml` and `environments/examples.yml` - the pip installs of `coverity.yml` and `os-llvm-sycl-build.yml`, which call `setup.py` through the build scripts, so the `pyproject.toml` pin doesn't reach them - the `conda create` commands of the quick start guide, whose build commands use the removed `setup.py build_ext --inplace -- -G Ninja` syntax The cap is a stopgap, and each one carries a TODO. Staying on `skbuild.setup` with 1.0 would also lose incremental builds: its backend removes the CMake build directory on every run, and `pip install -e .` builds everything a second time. A follow-up moves the build to scikit-build-core directly and lifts the caps. #3215 moves the pip installs of `coverity.yml` and `os-llvm-sycl-build.yml` into requirement files with `scikit-build==0.19.1`; whichever of the two merges second takes the other's lines there.
The `build` group would propose scikit-build 1.0, which dropped the classic backend that dpnp and dpctl, built from source by the open source SYCL job, still use; the merge of master moved the cap from the workflows' pip lines into an `ignore` with the TODO of #3222. versioneer is pinned to 0.29 to match `[build-system].requires` in `pyproject.toml` and the conda recipes, which Dependabot doesn't bump, so it is ignored too and moves by hand with them. `coverity.txt` is installed by no PR job, so `.github/AGENTS.md` now says to run `coverity.yml` on the PR branch before merging a change to it; a branch run builds under `cov-build` but submits to Coverity Scan only from `master`.
This branch has not been deployed
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.
The
Build with Open Source LLVM SYCL compilerworkflow fails at theBuild and install dpctlstep since CMake 4.5.1 was published on PyPI on 2026-12-01. The job installs its pip packages unpinned, and CMake 4.5 identifies the open source DPC++ nightly as the new compiler IDDPClang, by its DPC++ version 7.2.0 instead ofClang 24.0.0, whichIntelSYCLConfig.cmakerejects:Failing job (on #3193; every PR and master run hits it): https://github.com/IntelPython/dpnp/actions/runs/46625537086/job/142568624520
This PR moves the job's pip packages into
environments/os_llvm_sycl_build.txt, pinned to the versions of the last green run (CMake 4.4.5), so a new release reaches the job through a Dependabot PR instead of on its own:build, listed before the catch-allpipgroup, so a bump that breaks a build stays in its own PR and doesn't hold up the other pins. CMake 4.5.1 should arrive in such a PR on 2026-12-12, after the 7-day cooldown.setuptools<80cap is dropped and setuptools is pinned to 84.2.1. The cap was copied from dpctl's CI, which added it when setuptools 80 broke itssetup.py developbuilds. This job installs dpctl withpip install .and builds dpnp withsetup.py build_ext --inplaceandpip install -e ., none of which changed.coverity.ymlgets the same withenvironments/coverity.txt, pinned to the versions of its 2026-11-30 run. Itscython==3.3.0pin stays on the workflow's pip line: a Dependabot bump would change the generated code and the Coverity CIDs, and an ignore rule can't be limited to one file. Coverity builds with icpx, which CMake 4.5 still identifies asIntelLLVM, so it wasn't broken; the pins keep it reproducible.ignore), and versioneer, pinned to 0.29 to match[build-system].requiresinpyproject.tomland the conda recipes, which Dependabot doesn't bump..github/AGENTS.mdsays to list every package of the two files in thebuildgroup, and to runcoverity.ymlon the branch of a PR that changescoverity.txtbefore merging it, since no PR job installs that file; a branch run builds undercov-buildbut submits to Coverity Scan only frommaster.Support for
DPClangitself is a separate change: the CMake 4.5.1 bump can merge once theIntelSYCLConfig.cmakeof both dpnp and dpctl accept it.Checked with a local replica of the job (nightly of 2026-11-30, dpctl and dpnp from master,
--onemath), once with setuptools 79.0.1 and once with 84.2.1: both built with the same warnings, anddpnp/testson the OpenCL CPU device gave 97370 passed, 7190 skipped and 3 xfailed with both. The new Coverity pip line resolves to exactly the packages its last run installed.