Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

- 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.
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

- "pytest"
- "scikit-build"
- "setuptools"
- "versioneer"
- "wheel"
pip:
patterns: ["*"]

Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/os-llvm-sycl-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
7 changes: 7 additions & 0 deletions environments/coverity.txt
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions environments/os_llvm_sycl_build.txt
Original file line number Diff line number Diff line change
@@ -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
Loading