Skip to content

CI: Removed the pytorch upper-bound version in pyproject.toml#671

Merged
swahtz merged 2 commits into
openvdb:mainfrom
swahtz:pyproject_remove_torch_upper_bound
Jun 25, 2026
Merged

CI: Removed the pytorch upper-bound version in pyproject.toml#671
swahtz merged 2 commits into
openvdb:mainfrom
swahtz:pyproject_remove_torch_upper_bound

Conversation

@swahtz

@swahtz swahtz commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Removed the <2.13 from the torch requirements in the pyproject.toml
Change all the CI workflows that build their environments with uv/pip to use a -c torch-constraints.txt that gets JIT-built from our versions.json file to constrain the correct torch version

This was inspired by a conversation with @jameslamb in our conda-forge feedstock: conda-forge/fvdb-core-feedstock#34 (comment)

Changed CI to use a `-c torch-constraints.txt` that gets JIT-built from our versions.json file to constrain the correct torch version.

Signed-off-by: Jonathan Swartz <jonathan@jswartz.info>
@swahtz swahtz requested a review from a team as a code owner June 25, 2026 04:39
@swahtz swahtz requested a review from blackencino June 25, 2026 04:39
@swahtz swahtz added the CI Issues related to the Github actions CI/CD. For build issues use CMake/Build label Jun 25, 2026
@swahtz swahtz requested review from areidmeyer and Copilot June 25, 2026 04:39

Copilot AI left a comment

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.

Pull request overview

This PR updates packaging and CI to remove the PyTorch upper-bound from pyproject.toml and instead pin the tested PyTorch version in CI via a generated constraints file, keeping the project dependency flexible for end users while CI remains deterministic.

Changes:

  • Remove the <2.13 upper bound from the torch dependency in pyproject.toml.
  • Update multiple GitHub Actions workflows to install dependencies using uv pip install -c torch-constraints.txt ... so torch resolves to the intended matrix/versioned value.
  • Standardize CUDA-index installs by applying the torch pin via constraints instead of direct torch==... requirement in the install command.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
pyproject.toml Removes the PyTorch upper bound from runtime dependencies.
.github/workflows/publish.yml Switches build + smoke-test installs to pin torch via a generated constraints file.
.github/workflows/nightly-publish.yml Switches nightly build environment setup to pin torch via a generated constraints file.
.github/workflows/cu130.yml Adds a generated torch constraints file to constrain torch during build/test installs.
.github/workflows/cu130-nightly.yml Adds a generated torch constraints file to constrain torch during nightly build/test installs.
.github/workflows/cu128.yml Adds a generated torch constraints file to constrain torch during build/test installs.
.github/workflows/cu128-nightly.yml Adds a generated torch constraints file to constrain torch during nightly build/test installs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/publish.yml Outdated
Comment thread .github/workflows/publish.yml Outdated
Comment thread .github/workflows/nightly-publish.yml Outdated
Address Copilot review feedback on openvdb#671: the publish and nightly-publish
constraint files hard-coded the torch patch as `.0` (e.g. via
`${{ matrix.torch-version }}.0`), which would silently diverge from
`.github/versions.json` if `torch.full_version` became a non-`.0` patch
(e.g. 2.11.1). Source the pin from the `torch-full-version` output of the
versions job so every workflow shares a single source of truth.

Signed-off-by: Jonathan Swartz <jonathan@jswartz.info>

Copilot AI left a comment

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.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.

@matthewdcong matthewdcong left a comment

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.

Nice one, thanks @swahtz

@swahtz swahtz merged commit d9eecdd into openvdb:main Jun 25, 2026
39 checks passed
@swahtz swahtz deleted the pyproject_remove_torch_upper_bound branch June 25, 2026 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Issues related to the Github actions CI/CD. For build issues use CMake/Build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants