Skip to content

Build and test conda packages and wheels - #2409

Open
jharlow-intel wants to merge 1 commit into
masterfrom
ci/intel-python-ci
Open

jharlow-intel wants to merge 1 commit into
masterfrom
ci/intel-python-ci

Conversation

@jharlow-intel

@jharlow-intel jharlow-intel commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Adds ci/ and .github/workflows/intel-ci.yml, which build the conda packages and wheels for Linux and Windows on every declared Python, and test each in a clean environment.

  • conda-recipe/ is now the only recipe: the conda-forge one that was conda-recipe-cf/. The Intel-channel recipe and conda-package.yml are removed; conda-package-cf.yml stays.
  • The dppy/label/dev uploads and the cleanup of old dev packages move into intel-ci.yml, for pushes to master and tags only.
  • Wheels build with cibuildwheel and icx 2026.2, leave the SYCL runtime out, and require intel-sycl-rt and intel-cmplr-lib-rt, as the PyPI wheels do. scikit-build is pinned below 1.0 (Scikit-build (classic) 1.0 internals #2341).
  • ci/test.py runs pytest --pyargs dpctl on the installed package and fails when it finds no SYCL device: the OpenCL CPU device in Actions, or a GPU with GH_CI_DEVICE=gpu.

Validation, with a temporary push trigger on this branch: run 41648323136 built and tested the conda packages and wheels for 3.10 and 3.15 on Linux and Windows, and pre-commit, zizmor and conda-package-cf.yml passed. Before the rename, a full-matrix run passed all 61 jobs, 3.14t and 3.15t included. Not run yet: a GPU, and the uploads, which only master and tags do.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

@coveralls

coveralls commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 75.173%. remained the same — ci/intel-python-ci into master

Comment thread ci/test.py Resolved
Comment thread ci/test.py Resolved
Comment thread .github/workflows/intel-ci.yml Resolved
Comment thread ci/benchmark.py Resolved
Comment thread conda-recipe/bld.bat Resolved
Comment thread conda-recipe/bld.bat Resolved
Comment thread pyproject.toml Resolved
@jharlow-intel jharlow-intel changed the title Build and test conda packages and wheels for Intel Python CI Build and test conda packages and wheels Nov 5, 2026
@jharlow-intel
jharlow-intel force-pushed the ci/intel-python-ci branch 3 times, most recently from 9ea68d5 to a3fdfd1 Compare November 10, 2026 22:49
- "3.13"
- "3.14.* *_cp314"
- "3.14.* *_cp314t"
- "3.15.* *_cp315"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Could the conda packages get 3.15t too, as the wheels have? The wheels build and test 3.15t from the Free Threading classifier, but this list stops at 3.14.* *_cp314t, so a push to master uploads no cp315t conda package to dppy/label/dev. What the 3.15t TODO in conda-package.yml waits for is there now: conda-forge has had NumPy 2.5.5 for cp315t on linux-64 and win-64 since 2026-11-16, after this PR's last push, and dpctl 0.23.0 for cp315t since 2026-11-20. dpnp's conda packages require the dpctl dev series, so they can add 3.15t only once the label has it.

Suggested change
- "3.15.* *_cp315"
- "3.15.* *_cp315"
- "3.15.* *_cp315t"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added in e0a8e2f: the conda packages build 3.15t on Linux and Windows, and a pull request builds it as the newest free-threaded version. ci/README.md no longer says conda-forge has no NumPy for it.

Adds a ci/ directory and .github/workflows/intel-ci.yml, which build the
conda packages and the wheels for every declared platform and Python and
test each with ci/test.py on the OpenCL CPU device.

conda-recipe/ is now the only recipe, the conda-forge one that was
conda-recipe-cf/; the Intel-channel recipe and conda-package.yml are
removed. The dev uploads to anaconda.org and their cleanup move into
intel-ci.yml, for pushes to master and tags only. The wheels leave the SYCL
runtime out and require intel-sycl-rt and intel-cmplr-lib-rt, as the PyPI
wheels do; scikit-build is pinned below 1.0 (#2341).

LDFLAGS in the cibuildwheel environment links every Linux library with
-z,relro,-z,now, as conda-forge's compiler activation does for the conda
packages, so libDPCTLSyclInterface.so gets full RELRO like the extensions.
conda-build gets --extra-meta remote_url=... sha=... when GitHub Actions
sets GITHUB_SERVER_URL, GITHUB_REPOSITORY and GITHUB_SHA, so each conda
package records the commit it was built from.

A pull request also builds and tests the newest free-threaded version, and
every push and tag run gets a concurrency group of its own. Every test job
waits for both the conda and the wheel builds, and the conda packages build
Python 3.15t too. The benchmarks take PyYAML from conda-forge, as PyPI has
no Python 3.15 wheel for it yet. ci/build.py refuses two built packages
with the same file name, which would overwrite each other in its flat
output directory.

ci/test.py fails when python -m dpctl -f fails, and when the environment's
conda compilers cannot build an extension, instead of deselecting the two
tests that need them. The dev upload takes each wheel's version from its
file name and fails when there is nothing to upload. The benchmarks set
USERPROFILE as well as HOME, and the repair commands match any libsycl
version, as wheel-requires allows any 2026 runtime.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants