diff --git a/.github/AGENTS.md b/.github/AGENTS.md index 7c041f1dbe5..68a6e0d3e13 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` 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 f79ab62c047..2c27b150cd1 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -29,6 +29,21 @@ updates: rebase-strategy: "disabled" labels: ["autoupdate"] groups: + # 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") + build: + patterns: + - "cmake" + - "cython" + - "mkl-devel-dpcpp" + - "ninja" + - "numpy" + - "onedpl-devel" + - "pytest" + - "scikit-build" + - "setuptools" + - "versioneer" + - "wheel" pip: patterns: ["*"] diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 75b7cd36f32..e1be94a2ac5 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/.github/workflows/os-llvm-sycl-build.yml b/.github/workflows/os-llvm-sycl-build.yml index 68d79d5abea..ac6a3becdbb 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/coverity.txt b/environments/coverity.txt new file mode 100644 index 00000000000..8a3fcf9ebf5 --- /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 diff --git a/environments/os_llvm_sycl_build.txt b/environments/os_llvm_sycl_build.txt new file mode 100644 index 00000000000..7cee75c457e --- /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