Repository navigation
Pin the pip packages of the open source SYCL and Coverity builds - #3215
antonwolfy wants to merge 3 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.
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
|
View rendered docs @ https://intelpython.github.io/dpnp/pull/3215/index.html |
|
Array API standard conformance tests for dpnp=0.22.0dev3=np2py314h8d9cdd5_69 ran successfully. |
| - Set up conda with the local `.github/actions/setup-miniconda` action, which retries a failed setup once, instead of calling `conda-incubator/setup-miniconda` directly; a job that checks dpnp out into a subdirectory uses it from there (`./source/.github/actions/setup-miniconda`). | ||
| - `workflows/array-api-skips.txt` lists array-api-tests node IDs skipped by the conformance job; precede each with a comment naming the upstream issue. | ||
| - `bump-sycl-deps.yml` rewrites the `DRIVER_PATH`, `OCLCPUEXP_FN`, `TBB_URL`, `TBB_INSTALL_DIR` and `TBB_FN` pins in `.github/sycl-build-deps.env` with `sed`, and `os-llvm-sycl-build.yml` reads exactly those five; keep one unquoted `KEY=VALUE` per line, starting at column 0. | ||
| - `os-llvm-sycl-build.yml` and `coverity.yml` install their pip packages from `environments/os_llvm_sycl_build.txt` and `environments/coverity.txt`, one `==` pin per package; list each one in the `build` group of `dependabot.yml` too. Coverity's Cython pin stays in `coverity.yml`, out of Dependabot's reach, so its CIDs only change by hand. |
There was a problem hiding this comment.
No PR job reads environments/coverity.txt: coverity.yml runs only on its Monday cron or by hand. So a Dependabot build PR that bumps numpy, cmake or setuptools in it goes green without the Coverity build, and a break shows up only in the next scheduled scan, like before.
Could this rule say to run coverity.yml by hand on the Dependabot branch before merging a bump of coverity.txt?
| - "mkl-devel-dpcpp" | ||
| - "ninja" | ||
| - "numpy" | ||
| - "onedpl-devel" |
There was a problem hiding this comment.
Nit: versioneer is pinned to 0.29 to match [build-system].requires in pyproject.toml and the conda recipes, which Dependabot does not bump. A new release would move only these two txt files. It is pinned only here, so an ignore for versioneer in this entry would not hit other files, unlike Cython.
…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.
…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.
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.
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 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..github/AGENTS.mdsays to list every package of the two files in thebuildgroup.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.