diff --git a/.github/AGENTS.md b/.github/AGENTS.md index d7e3d7d7eb9..c2401c9400f 100644 --- a/.github/AGENTS.md +++ b/.github/AGENTS.md @@ -12,5 +12,6 @@ These keep zizmor (`zizmor.yml`, fails on medium or higher findings) and the Ope - `workflows/intel-ci.yml` is Intel CI: its conda matrix is `conda-recipe/conda_build_config.yaml`, its wheel matrix the Python classifiers in `pyproject.toml`, and its upload and cleanup jobs run only for pushes to `master` and tags in IntelPython/dpnp; see `ci/README.md`. - `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. No PR job installs `coverity.txt`: before merging a PR that changes it, run `coverity.yml` on the PR branch (`gh workflow run coverity.yml --ref `), which builds under `cov-build` but submits to Coverity Scan only from `master`. - 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. `prune-pr-docs.yml` squashes the `gh-pages` history into one commit every week, so nothing may rely on older `gh-pages` commits. - Dependabot (`dependabot.yml`) bumps actions, `environments/` pins (among them `intel-ci.yml`'s conda-build and cibuildwheel) 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/` files only; don't merge it. Instead, by hand, move the dev-series pins (`[project].dependencies` in `pyproject.toml`, `environments/dpctl_pkg.{txt,yml}`, `environments/dpctl_wheel_build.txt`, `conda-recipe/meta.yaml`) to the next `X.Y.0dev0`, and the release-only pin (`[build-system].requires` in `pyproject.toml`) to the new release. diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 9634047d3c1..ca547262b59 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -28,7 +28,28 @@ updates: default-days: 7 rebase-strategy: "disabled" labels: ["autoupdate"] + ignore: + # TODO: drop when dpnp (https://github.com/IntelPython/dpnp/issues/3222) and dpctl, which os-llvm-sycl-build.yml builds from source, move to scikit-build-core; 1.0 dropped the classic backend + - dependency-name: "scikit-build" + versions: [">=1.0"] + # Pinned to match [build-system].requires in pyproject.toml and the conda recipes, which Dependabot doesn't bump + - dependency-name: "versioneer" 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 21a3043f132..e1be94a2ac5 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -53,11 +53,8 @@ jobs: architecture: x64 - name: Install dpnp build dependencies - # Cython pinned so the generated code, and the Coverity CIDs, stay stable - # TODO: lift the scikit-build cap when the build moves to scikit-build-core (https://github.com/IntelPython/dpnp/issues/3222); 1.0 dropped the classic backend - run: | - pip install cmake "cython==3.3.0" ninja numpy "scikit-build<1.0" 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 d769e2ed321..ac6a3becdbb 100644 --- a/.github/workflows/os-llvm-sycl-build.yml +++ b/.github/workflows/os-llvm-sycl-build.yml @@ -133,10 +133,7 @@ jobs: path: ${{ env.dpctl-repo-path }} - name: Install dpnp dependencies - # TODO: lift the scikit-build cap when dpnp (https://github.com/IntelPython/dpnp/issues/3222) and dpctl, which this job builds from source, move to scikit-build-core; 1.0 dropped the classic backend - run: | - pip install numpy cython setuptools"<80" pytest "scikit-build<1.0" 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