Skip to content

ci: run full-dependency tests with Python 3.12 and PyTorch 2.15 - #9140

Merged
ericspod merged 4 commits into
Project-MONAI:devfrom
agourakis82:9069-py312-full-dep-observability
Nov 25, 2026
Merged

ericspod merged 4 commits into
Project-MONAI:devfrom
agourakis82:9069-py312-full-dep-observability

Conversation

@agourakis82

@agourakis82 agourakis82 commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Related to #9069. Follow-up to #9266.

Description

Add an Ubuntu entry to the existing full-dependency matrix for Python 3.12, PyTorch 2.15.0, and torchvision 0.29.2. It installs the full and testing extras, builds and imports the C++ extension, verifies the resolved PyTorch and torchvision versions, and runs the existing full unit-test step.

The three existing full-dependency entries keep their required check names and default versions.

Validation

  • Validated the workflow with actionlint and evaluated the GitHub Actions expressions for all four matrix entries.
  • On Python 3.12, imported the pinned PyTorch and torchvision CPU builds and verified that the version check rejects either version mismatch.
  • Ran the MONAI formatting checks and all eight dependency-parser tests locally. The full-dependency suite runs in GitHub Actions.

Types of changes

  • Non-breaking CI change.
  • New test matrix entry.

Assisted by OpenAI Codex.

@coderabbitai

coderabbitai Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review.

Walkthrough

When test_skip indicates that tests are required, a new Ubuntu job runs with Python 3.12. It installs the complete dependency set, removes ITK, and runs pip check. The job records the resolved packages and uploads them as an artifact, even if an earlier step fails. The job has a 90-minute timeout and continues on error.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: Minimal · previous review 362de

The new Python 3.12 job provides a non-gating dependency-resolution snapshot when tests are required; it does not claim to establish Python 3.12 compatibility. No merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title names the main change: a CI job that runs full-dependency tests on Python 3.12 with PyTorch 2.15. The raw summary describes a job that runs pip check and uploads pip freeze, and the objectiv…
Description check Passed The description follows the template. It includes a summary of the changes, validation notes, and the types-of-changes checklist. It leaves the 'Fixes #' line filled with a related issue reference rat…
Full details: Title check

Explanation

The title names the main change: a CI job that runs full-dependency tests on Python 3.12 with PyTorch 2.15. The raw summary describes a job that runs pip check and uploads pip freeze, and the objectives describe an informational job that does not run the unit suite. The PR description says it runs the existing full unit-test step. The title's 'run full-dependency tests' is therefore consistent with the description, but it conflicts with the objectives. The title is related to the changeset, but its PyTorch 2.15 detail is not visible in the summary.

Full details: Description check

Explanation

The description follows the template. It includes a summary of the changes, validation notes, and the types-of-changes checklist. It leaves the 'Fixes #' line filled with a related issue reference rather than a closing reference. It omits the test-related checklist items, which are not all checked. The validation section reports that the full-dependency suite runs in GitHub Actions, but the local validation is limited.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

ℹ️ Recent review info

⚙️ Run configuration

  • Configuration used: Repository: Project-MONAI/MONAI/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5df92357-99da-49e2-a711-338cb01dc361
📥 Commits

Reviewing files that changed from the base of the PR and between 94fea07 and 362dee1.

📒 Files selected for processing: 1

  • .github/workflows/cicd_tests.yml

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@agourakis82

Copy link
Copy Markdown
Contributor Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Full review finished.

@agourakis82
agourakis82 marked this pull request as ready for review September 29, 2026 18:16
Copilot AI balanced review requested due to automatic review settings September 29, 2026 18:16

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.

Copilot review overview

🟢 Approval recommended

The isolated, non-blocking workflow job matches the stated observability scope and preserves existing CI behavior.

Review effort: Balanced
Findings: None

What changed in this PR

Adds a non-blocking Python 3.12 CI job to observe full dependency resolution without changing compatibility guarantees or existing matrices.

Changes:

  • Installs all testing dependencies and runs pip check.
  • Uploads the resolved environment from pip freeze.
File Description
.github/​workflows/​cicd_tests.yml Adds the informational Python 3.12 dependency-resolution job.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@agourakis82
agourakis82 force-pushed the 9069-py312-full-dep-observability branch from 42c5281 to e970953 Compare October 1, 2026 22:25
@agourakis82

Copy link
Copy Markdown
Contributor Author

Refreshed this branch against upstream dev at 9a6ac14 in b945eba, without conflicts. The observational workflow is byte-identical to the previous public head; the refresh does not modify existing jobs, matrices or gates.

Local validation was limited to Ruby/Psych workflow comparisons, bash syntax and Git whitespace/scope checks. Dependency resolution, MONAI tests and Actions were not run locally. Could a maintainer approve the workflow runs when available so the required jobs can execute?

Comment thread .github/workflows/cicd_tests.yml Resolved
Comment thread .github/workflows/cicd_tests.yml Resolved
@agourakis82
agourakis82 force-pushed the 9069-py312-full-dep-observability branch from 362dee1 to 4043f3b Compare October 14, 2026 10:27
@ericspod

Copy link
Copy Markdown
Member

The output from the job is this:

py312-full-dep-resolved.txt
absl-py==2.5.1
aiohappyeyeballs==2.7.1
aiohttp==3.14.5
aiosignal==1.4.0
alembic==1.20.0
annotated-doc==0.0.5
annotated-types==0.8.0
anyio==4.15.1
astor==0.8.1
attrs==26.1.0
backports.tarfile==1.2.0
beautifulsoup4==4.15.0
black==26.10.1
blinker==1.9.0
cachetools==7.2.1
certifi==2026.7.22
cffi==2.1.1
cfgv==3.5.0
charset-normalizer==3.5.2
clearml==2.2.0rc0
click==8.5.0
cloudpickle==3.1.2
colorama==0.4.6
colorlog==6.12.0
contourpy==1.4.0
coverage==7.16.2
cryptography==50.0.2
cucim-cu13==26.10.0
cuda-bindings==13.4.4
cuda-pathfinder==1.8.3
cuda-toolkit==13.0.3.0
cupy-cuda13x==14.2.0
cycler==0.12.1
databricks-sdk==0.152.0
Deprecated==3.0.0
distlib==0.4.3
docker==7.2.0
donfig==0.8.1.post1
einops==0.8.2
fastapi==0.143.1
filelock==3.11.0
fire==0.7.1
flake8==7.4.1
Flask==3.1.3
flask-cors==6.0.5
fonttools==4.67.0
frozenlist==1.8.0
fsspec==2026.9.0
furl==2.1.4
gdown==6.4.2
gitdb==4.0.12
GitPython==3.2.1
google-auth==2.62.0
google-crc32c==1.9.0
graphene==3.4.3
graphql-core==3.2.13
graphql-relay==3.2.0
grpcio==1.84.0
gunicorn==26.2.0
h11==0.16.0
h5py==3.16.0
hf-xet==1.7.0
httpcore2==2.13.1
httpx2==2.13.1
huey==3.4.0
huggingface_hub==2.2.0
humanize==4.16.0
identify==2.6.20
idna==3.20
imagecodecs==2026.10.10
ImageIO==2.38.1
importlib_metadata==9.0.1
isort==9.0.2
itk-core==5.4.7
itk-filtering==5.4.7
itk-io==5.4.7
itk-numerics==5.4.7
itk-registration==5.4.7
itk-segmentation==5.4.7
itsdangerous==2.2.0
jaxtyping==0.3.11
Jinja2==3.1.6
joblib==1.6.0
json-tricks==3.17.3
jsonschema==4.26.0
jsonschema-specifications==2025.9.1
kiwisolver==1.5.1
lazy-loader==0.6
lmdb==3.0.0
lpips==0.1.4
Mako==1.4.3
Markdown==3.11.1
markdown-it-py==4.2.0
MarkupSafe==3.0.4
matplotlib==3.11.2
mccabe==0.7.0
mdurl==0.1.2
MetricsReloaded @ git+https://github.com/Project-MONAI/MetricsReloaded@5fea77de36b37add5c101d5eab2beafd5eb27c68
ml_dtypes==0.6.0
mlflow==3.17.1
mlflow-skinny==3.17.1
mlflow-tracing==3.17.1
monai @ file:///home/runner/work/MONAI/MONAI
more-itertools==11.2.0
mpmath==1.3.0
msgspec==0.22.0
multidict==7.1.0
mypy_extensions==1.1.0
narwhals==2.27.1
networkx==3.7
nibabel==5.4.2
ninja==1.13.2
nni==3.0
nodeenv==1.11.0
numcodecs==0.17.0
numpy==2.5.4
nvidia-cublas==13.1.1.3
nvidia-cuda-cupti==13.0.85
nvidia-cuda-nvrtc==13.0.88
nvidia-cuda-runtime==13.0.96
nvidia-cudnn-cu13==9.24.0.43
nvidia-cufft==12.0.0.61
nvidia-cufile==1.15.1.6
nvidia-curand==10.4.0.35
nvidia-cusolver==12.0.4.66
nvidia-cusparse==12.6.3.3
nvidia-cusparselt-cu13==0.8.1
nvidia-ml-py==13.615.71
nvidia-nccl-cu13==2.30.7
nvidia-nvimgcodec-cu13==0.9.0.20
nvidia-nvjitlink==13.4.92
nvidia-nvshmem-cu13==3.4.5
nvidia-nvtx==13.0.85
onnx==1.23.2
onnx-ir==1.0.0
onnx_graphsurgeon==0.6.1
onnxscript==0.7.2
openslide-bin==4.0.1.2
openslide-python==1.4.6
opentelemetry-api==1.45.1
opentelemetry-proto==1.45.1
opentelemetry-sdk==1.45.1
opentelemetry-semantic-conventions==0.66b1
optuna==5.0.0
orderedmultidict==1.0.2
packaging==26.3
pandas==3.0.6
parameterized==0.9.0
pathlib2==2.3.7.post1
pathspec==1.1.1
pep8-naming==0.15.1
pillow==12.3.0
platformdirs==3.11.0
polygraphy==0.53.6
pre_commit==4.7.0
prettytable==3.18.0
propcache==0.5.4
protobuf==6.33.6
psutil==7.2.2
pyamg==5.2.1
pyarrow==25.0.1
pyasn1==0.6.4
pyasn1_modules==0.4.2
pybind11==3.1.0
pycodestyle==2.15.0
pycparser==3.11
pydantic==2.14.1
pydantic_core==2.50.1
pydicom==3.0.2
pyflakes==4.0.3
Pygments==2.21.0
PyJWT==2.15.1
pynrrd==1.1.3
pyparsing==3.3.3
pyrefly==1.3.2
PySocks==1.7.1
python-dateutil==2.9.0.post0
python-dotenv==1.2.4
PythonWebHDFS==0.2.3
pytokens==0.4.1
pytorch-ignite==0.5.5
PyYAML==6.0.3
referencing==0.37.0
regex==2026.9.29
requests==2.34.2
responses==0.26.3
rich==15.0.0
rpds-py==2026.9.1
ruff==0.17.0
safetensors==0.8.0
schema==0.7.8
scikit-image==0.26.0
scikit-learn==1.9.1
scipy==1.18.1
segment_anything @ git+https://github.com/facebookresearch/segment-anything.git@6fdee8f2727f4506cfbbe553e23b895e27956588
setuptools==84.0.0
shellingham==1.5.4
simpleitk==2.5.6
simplejson==4.2.0
six==1.17.0
skops==0.16.0
smmap==5.0.3
soupsieve==3.0.3
SQLAlchemy==2.1.4
sqlparse==0.6.0
starlette==1.8.0
sympy==1.14.0
tensorboard==2.21.0
tensorboard-data-server==0.7.2
tensorboardX==2.6.5
termcolor==3.3.0
threadpoolctl==3.7.0
tifffile==2026.9.20
tokenizers==0.23.3
tomli==2.5.0
torch==2.14.1
torchio==1.2.1
torchvision==0.29.1
tqdm==4.70.1
transformers==5.19.0
triton==3.8.0
truststore==0.10.5
typeguard==4.1.2
typer==0.27.3
types-PyYAML==6.0.12.20260906
types-setuptools==84.0.0.20261006
typing-inspection==0.4.4
typing_extensions==4.16.0
urllib3==2.8.0
uvicorn==0.54.0
versioneer==0.29
virtualenv==20.23.0
wadler_lindig==0.1.7
wcwidth==0.9.2
websockets==17.2
Werkzeug==3.1.9
wheel==0.48.0
wrapt==2.5.1
yarl==1.25.1
zarr==3.4.1
zipp==4.1.1

The question here is what this does for us. I think the issue is that we need to move up the versions we're testing with an emphasis on Python 3.12 as it's a minimum for a number of things.

@agourakis82

Copy link
Copy Markdown
Contributor Author

Thanks, Eric. I added this as a small first step to expose the environment resolved under Python 3.12 and make dependency conflicts easier to inspect. Its value is limited to installation diagnostics: the job doesn't run the MONAI test suite.

I agree that the more useful next step is to move the versions we actually test forward. I propose reworking this PR around running the existing full-dependency tests on Python 3.12, with the resolved environment retained as diagnostic output.

Would updating the existing full-dependency job be the right scope for this PR?

@ericspod

Copy link
Copy Markdown
Member

Hi @agourakis82 I had been working on the updates that need to be made here. This changes the lowest tested version of Python to 3.11 but this doesn't test Python 3.12 with the latest version of PyTorch. Could you please have a look at that PR and see if we're missing test coverage?

Copy link
Copy Markdown
Contributor Author

Thanks @ericspod! I'll take a look at #9266 and check whether we're missing a Python 3.12 + latest PyTorch job, and comment there with what I find.

@agourakis82

Copy link
Copy Markdown
Contributor Author

@ericspod I checked #9266 at 85d01d4. The Ubuntu min-dep job already passed with Python 3.12 and PyTorch 2.15.0. It installs .[testing] and runs ./runtests.sh --min. The Ubuntu full-dep job still uses Python 3.11 and pins PyTorch 2.12.1.

The missing case is one additional Ubuntu full-dep entry with Python 3.12, PyTorch 2.15.0 (the newest pin in #9266), and the matching torchvision build. It should install .[all,testing], check that dependency resolution preserved the intended torch/torchvision versions, build and import monai._C, and run the existing python -m unittest -v step. The install and pip check job in #9140 covers dependency resolution only.

CI inspection and drafting assisted by OpenAI Codex.

@ericspod

Copy link
Copy Markdown
Member

Hi @agourakis82 I'm going to merge #9266 without the added full-dep test as it's getting very large already and is holding up other things I need to do. Could you adjust this PR to add the test we need once that's gone through? Thanks!

@agourakis82

Copy link
Copy Markdown
Contributor Author

Sure!! Thank you for the attention and patience!!

Best

Demetrios

Add one Ubuntu entry after the CI version update in Project-MONAI#9266. Keep the three required full-dep check names and verify the resolved PyTorch and torchvision versions before running the full test suite.

Assisted-by: OpenAI Codex
Signed-off-by: Demetrios Agourakis <demetrios@agourakis.med.br>
@agourakis82
agourakis82 force-pushed the 9069-py312-full-dep-observability branch from 4043f3b to 02d42b0 Compare November 23, 2026 18:59
@agourakis82 agourakis82 changed the title ci: observe Python 3.12 full-dependency resolution ci: run full-dependency tests with Python 3.12 and PyTorch 2.15 Nov 23, 2026

@ericspod ericspod left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the update, I have minor changes to make but it looks good overall. The new full-dep check won't be counted as required until I update the branch rules so don't worry about that. It is failing currently with tests that fail, could you please look into these?

Comment thread .github/workflows/ci_tests.yml Resolved
Comment thread .github/workflows/ci_tests.yml Resolved
Comment thread .github/workflows/ci_tests.yml Resolved
@ericspod

Copy link
Copy Markdown
Member

@agourakis82 I think the issues here would be addressed by your other PR on orientation, I'm looking at that one now.

ericspod and others added 2 commits November 25, 2026 11:49
Expose matrix package versions at job scope, keep the existing default versions, and verify resolved versions with Bash after the complete dependency installation.

Assisted-by: OpenAI Codex
Signed-off-by: Demetrios Agourakis <demetrios@agourakis.med.br>

@ericspod ericspod left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hi @agourakis82 this looks good to me now, I can update your branch now.

@ericspod
ericspod enabled auto-merge (squash) November 25, 2026 14:42
@ericspod
ericspod disabled auto-merge November 25, 2026 16:49
@ericspod
ericspod enabled auto-merge (squash) November 25, 2026 16:50
@ericspod
ericspod merged commit 879b47a into Project-MONAI:dev Nov 25, 2026
32 checks passed
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.

3 participants