From 5316a7c9d6762bc6dbe0ed7275aa67fbd9495939 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Tue, 1 Dec 2026 12:17:12 +0100 Subject: [PATCH 1/2] Pin the pip packages of the open source SYCL build 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). --- .github/AGENTS.md | 1 + .github/dependabot.yml | 14 ++++++++++++++ .github/workflows/os-llvm-sycl-build.yml | 4 +--- environments/os_llvm_sycl_build.txt | 10 ++++++++++ 4 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 environments/os_llvm_sycl_build.txt diff --git a/.github/AGENTS.md b/.github/AGENTS.md index 7c041f1dbe5c..badb7ec4bd94 100644 --- a/.github/AGENTS.md +++ b/.github/AGENTS.md @@ -11,5 +11,6 @@ These keep zizmor (`zizmor.yml`, fails on medium or higher findings) and the Ope - 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` installs its pip packages from `environments/os_llvm_sycl_build.txt`, one `==` pin per package; list each one in the `os-llvm-sycl-build` group of `dependabot.yml` too. - Every write to `gh-pages` (`build-sphinx.yml`, `prune-pr-docs.yml`) goes through `.github/scripts/update_gh_pages.sh`, which retries a push rejected by a concurrent writer; don't push to `gh-pages` any other way. - Dependabot (`dependabot.yml`) bumps actions, `environments/` pins and pre-commit hooks weekly with a 7-day cooldown. After a `dpctl` release it opens a PR that raises the `dpctl` floor in `environments/dpctl_pkg.txt` only; don't merge it. Instead, by hand, move the dev-series pins (`[project].dependencies` in `pyproject.toml`, `environments/dpctl_pkg.{txt,yml}`, `conda-recipe/meta.yaml`, `conda-recipe/rattler_recipe.yaml`) to the next `X.Y.0dev0`, and the release-only pins (`[build-system].requires` in `pyproject.toml`, `conda-recipe-cf/meta.yaml`) to the new release. diff --git a/.github/dependabot.yml b/.github/dependabot.yml index f79ab62c0473..96194af144a6 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -29,6 +29,20 @@ updates: rebase-strategy: "disabled" labels: ["autoupdate"] groups: + # os_llvm_sycl_build.txt: a bump that breaks that build blocks no other pin + # (an update joins the first group it matches, so keep this before "pip") + os-llvm-sycl-build: + patterns: + - "cmake" + - "cython" + - "mkl-devel-dpcpp" + - "ninja" + - "numpy" + - "onedpl-devel" + - "pytest" + - "scikit-build" + - "setuptools" + - "versioneer" pip: patterns: ["*"] diff --git a/.github/workflows/os-llvm-sycl-build.yml b/.github/workflows/os-llvm-sycl-build.yml index 68d79d5abea9..ac6a3becdbba 100644 --- a/.github/workflows/os-llvm-sycl-build.yml +++ b/.github/workflows/os-llvm-sycl-build.yml @@ -133,9 +133,7 @@ jobs: path: ${{ env.dpctl-repo-path }} - name: Install dpnp dependencies - run: | - pip install numpy cython setuptools"<80" pytest scikit-build cmake ninja versioneer[toml]==0.29 \ - mkl-devel-dpcpp onedpl-devel + run: pip install -r environments/os_llvm_sycl_build.txt - name: Create set_allvars.sh run: | diff --git a/environments/os_llvm_sycl_build.txt b/environments/os_llvm_sycl_build.txt new file mode 100644 index 000000000000..7cee75c457ea --- /dev/null +++ b/environments/os_llvm_sycl_build.txt @@ -0,0 +1,10 @@ +cmake==4.4.5 +cython==3.3.2 +mkl-devel-dpcpp==2026.2.2 +ninja==1.13.2 +numpy==2.5.5 +onedpl-devel==2022.14.0 +pytest==9.2.0 +scikit-build==0.19.1 +setuptools==84.2.1 +versioneer[toml]==0.29 From b138d7482652751d33e670b6b96d757055815a3b Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Tue, 1 Dec 2026 12:18:47 +0100 Subject: [PATCH 2/2] Pin the pip packages of the Coverity build 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. --- .github/AGENTS.md | 2 +- .github/dependabot.yml | 5 +++-- .github/workflows/coverity.yml | 6 ++---- environments/coverity.txt | 7 +++++++ 4 files changed, 13 insertions(+), 7 deletions(-) create mode 100644 environments/coverity.txt diff --git a/.github/AGENTS.md b/.github/AGENTS.md index badb7ec4bd94..68a6e0d3e13e 100644 --- a/.github/AGENTS.md +++ b/.github/AGENTS.md @@ -11,6 +11,6 @@ These keep zizmor (`zizmor.yml`, fails on medium or higher findings) and the Ope - 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` installs its pip packages from `environments/os_llvm_sycl_build.txt`, one `==` pin per package; list each one in the `os-llvm-sycl-build` group of `dependabot.yml` too. +- `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. - Every write to `gh-pages` (`build-sphinx.yml`, `prune-pr-docs.yml`) goes through `.github/scripts/update_gh_pages.sh`, which retries a push rejected by a concurrent writer; don't push to `gh-pages` any other way. - Dependabot (`dependabot.yml`) bumps actions, `environments/` pins and pre-commit hooks weekly with a 7-day cooldown. After a `dpctl` release it opens a PR that raises the `dpctl` floor in `environments/dpctl_pkg.txt` only; don't merge it. Instead, by hand, move the dev-series pins (`[project].dependencies` in `pyproject.toml`, `environments/dpctl_pkg.{txt,yml}`, `conda-recipe/meta.yaml`, `conda-recipe/rattler_recipe.yaml`) to the next `X.Y.0dev0`, and the release-only pins (`[build-system].requires` in `pyproject.toml`, `conda-recipe-cf/meta.yaml`) to the new release. diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 96194af144a6..2c27b150cd19 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -29,9 +29,9 @@ updates: rebase-strategy: "disabled" labels: ["autoupdate"] groups: - # os_llvm_sycl_build.txt: a bump that breaks that build blocks no other pin + # os_llvm_sycl_build.txt, coverity.txt: a bump that breaks a build blocks no other pin # (an update joins the first group it matches, so keep this before "pip") - os-llvm-sycl-build: + build: patterns: - "cmake" - "cython" @@ -43,6 +43,7 @@ updates: - "scikit-build" - "setuptools" - "versioneer" + - "wheel" pip: patterns: ["*"] diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 75b7cd36f327..e1be94a2ac50 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -53,10 +53,8 @@ jobs: architecture: x64 - name: Install dpnp build dependencies - # Cython pinned so the generated code, and the Coverity CIDs, stay stable - run: | - pip install cmake "cython==3.3.0" ninja numpy scikit-build setuptools wheel \ - "versioneer[toml]==0.29" + # Cython pinned here, out of Dependabot's reach, so the generated code, and the Coverity CIDs, stay stable + run: pip install -r environments/coverity.txt "cython==3.3.0" - name: Install dpctl # dpctl_pkg.txt replaces PyPI, so numpy must come from the step above diff --git a/environments/coverity.txt b/environments/coverity.txt new file mode 100644 index 000000000000..8a3fcf9ebf50 --- /dev/null +++ b/environments/coverity.txt @@ -0,0 +1,7 @@ +cmake==4.4.5 +ninja==1.13.2 +numpy==2.5.5 +scikit-build==0.19.1 +setuptools==84.2.1 +versioneer[toml]==0.29 +wheel==0.48.0