Skip to content

Commit 3ffd9f8

Browse files
authored
Updated pytorch-version-tests.yml (#3461)
Failures with 1.13 ``` 2025-10-14T12:59:18.3797607Z =========================== short test summary info ============================ 2025-10-14T12:59:18.3799199Z FAILED tests/ignite/contrib/engines/test_common.py::test_setup_clearml_logging - ValueError: ClearML configuration could not be found (missing `~/clearml.conf` or Environment CLEARML_API_HOST) 2025-10-14T12:59:18.3799722Z To get started with ClearML: setup your own `clearml-server`, or create a free account at https://app.community.clear.ml 2025-10-14T12:59:18.3800540Z FAILED tests/ignite/distributed/test_auto.py::test_dist_proxy_sampler - AssertionError: Regex pattern did not match. 2025-10-14T12:59:18.3800712Z Regex: 'Argument sampler should have length' 2025-10-14T12:59:18.3801014Z Input: "Sampler.__init__() missing 1 required positional argument: 'data_source'" 2025-10-14T12:59:18.3801756Z FAILED tests/ignite/engine/test_create_supervised.py::test_create_supervised_training_scalar_assignment - AttributeError: module 'torch.amp' has no attribute 'GradScaler' 2025-10-14T12:59:18.3802359Z FAILED tests/ignite/engine/test_create_supervised.py::test_create_supervised_trainer_scaler_not_amp - AttributeError: module 'torch.amp' has no attribute 'GradScaler' 2025-10-14T12:59:18.3803033Z FAILED tests/ignite/handlers/test_clearml_logger.py::test_integration - ValueError: ClearML configuration could not be found (missing `~/clearml.conf` or Environment CLEARML_API_HOST) 2025-10-14T12:59:18.3803419Z To get started with ClearML: setup your own `clearml-server`, or create a free account at https://app.community.clear.ml 2025-10-14T12:59:18.3804231Z FAILED tests/ignite/handlers/test_clearml_logger.py::test_integration_as_context_manager - ValueError: ClearML configuration could not be found (missing `~/clearml.conf` or Environment CLEARML_API_HOST) 2025-10-14T12:59:18.3804614Z To get started with ClearML: setup your own `clearml-server`, or create a free account at https://app.community.clear.ml 2025-10-14T12:59:18.3805346Z FAILED tests/ignite/handlers/test_clearml_logger.py::test_clearml_logger_getattr_method - ValueError: ClearML configuration could not be found (missing `~/clearml.conf` or Environment CLEARML_API_HOST) 2025-10-14T12:59:18.3805728Z To get started with ClearML: setup your own `clearml-server`, or create a free account at https://app.community.clear.ml 2025-10-14T12:59:18.3806466Z FAILED tests/ignite/handlers/test_clearml_logger.py::test_clearml_logger_get_task_bypass - ValueError: ClearML configuration could not be found (missing `~/clearml.conf` or Environment CLEARML_API_HOST) 2025-10-14T12:59:18.3806841Z To get started with ClearML: setup your own `clearml-server`, or create a free account at https://app.community.clear.ml 2025-10-14T12:59:18.3807407Z FAILED tests/ignite/metrics/vision/test_object_detection_map.py::test_compute[sample0] - TypeError: where(): argument 'other' (position 2) must be Tensor, not int 2025-10-14T12:59:18.3807971Z FAILED tests/ignite/metrics/vision/test_object_detection_map.py::test_compute[sample1] - TypeError: where(): argument 'other' (position 2) must be Tensor, not int 2025-10-14T12:59:18.3808524Z FAILED tests/ignite/metrics/vision/test_object_detection_map.py::test_compute[sample2] - TypeError: where(): argument 'other' (position 2) must be Tensor, not int 2025-10-14T12:59:18.3809076Z FAILED tests/ignite/metrics/vision/test_object_detection_map.py::test_compute[sample3] - TypeError: where(): argument 'other' (position 2) must be Tensor, not int 2025-10-14T12:59:18.3809635Z FAILED tests/ignite/metrics/vision/test_object_detection_map.py::test_compute[sample4] - TypeError: where(): argument 'other' (position 2) must be Tensor, not int 2025-10-14T12:59:18.3810401Z FAILED tests/ignite/metrics/vision/test_object_detection_map.py::test_compute[sample5] - TypeError: where(): argument 'other' (position 2) must be Tensor, not int 2025-10-14T12:59:18.3810967Z FAILED tests/ignite/metrics/vision/test_object_detection_map.py::test_compute[sample6] - TypeError: where(): argument 'other' (position 2) must be Tensor, not int 2025-10-14T12:59:18.3811456Z FAILED tests/ignite/metrics/vision/test_object_detection_map.py::test_compute[sample7] - TypeError: where(): argument 'other' (position 2) must be Tensor, not int 2025-10-14T12:59:18.3811996Z FAILED tests/ignite/metrics/vision/test_object_detection_map.py::test_integration[sample0] - TypeError: where(): argument 'other' (position 2) must be Tensor, not int 2025-10-14T12:59:18.3812473Z FAILED tests/ignite/metrics/vision/test_object_detection_map.py::test_integration[sample1] - TypeError: where(): argument 'other' (position 2) must be Tensor, not int 2025-10-14T12:59:18.3812941Z FAILED tests/ignite/metrics/vision/test_object_detection_map.py::test_integration[sample2] - TypeError: where(): argument 'other' (position 2) must be Tensor, not int 2025-10-14T12:59:18.3813451Z FAILED tests/ignite/metrics/vision/test_object_detection_map.py::test_integration[sample3] - TypeError: where(): argument 'other' (position 2) must be Tensor, not int 2025-10-14T12:59:18.3813909Z FAILED tests/ignite/metrics/vision/test_object_detection_map.py::test_integration[sample4] - TypeError: where(): argument 'other' (position 2) must be Tensor, not int 2025-10-14T12:59:18.3814371Z FAILED tests/ignite/metrics/vision/test_object_detection_map.py::test_integration[sample5] - TypeError: where(): argument 'other' (position 2) must be Tensor, not int 2025-10-14T12:59:18.3814824Z FAILED tests/ignite/metrics/vision/test_object_detection_map.py::test_integration[sample6] - TypeError: where(): argument 'other' (position 2) must be Tensor, not int 2025-10-14T12:59:18.3815340Z FAILED tests/ignite/metrics/vision/test_object_detection_map.py::test_integration[sample7] - TypeError: where(): argument 'other' (position 2) must be Tensor, not int 2025-10-14T12:59:18.3815870Z FAILED tests/ignite/metrics/vision/test_object_detection_map.py::test_distrib_update_compute[gloo_cpu-sample0] - TypeError: where(): argument 'other' (position 2) must be Tensor, not int 2025-10-14T12:59:18.3816391Z FAILED tests/ignite/metrics/vision/test_object_detection_map.py::test_distrib_update_compute[gloo_cpu-sample1] - TypeError: where(): argument 'other' (position 2) must be Tensor, not int 2025-10-14T12:59:18.3816913Z FAILED tests/ignite/metrics/vision/test_object_detection_map.py::test_distrib_update_compute[gloo_cpu-sample2] - TypeError: where(): argument 'other' (position 2) must be Tensor, not int 2025-10-14T12:59:18.3817425Z FAILED tests/ignite/metrics/vision/test_object_detection_map.py::test_distrib_update_compute[gloo_cpu-sample3] - TypeError: where(): argument 'other' (position 2) must be Tensor, not int 2025-10-14T12:59:18.3817950Z FAILED tests/ignite/metrics/vision/test_object_detection_map.py::test_distrib_update_compute[gloo_cpu-sample4] - TypeError: where(): argument 'other' (position 2) must be Tensor, not int 2025-10-14T12:59:18.3818473Z FAILED tests/ignite/metrics/vision/test_object_detection_map.py::test_distrib_update_compute[gloo_cpu-sample5] - TypeError: where(): argument 'other' (position 2) must be Tensor, not int 2025-10-14T12:59:18.3818987Z FAILED tests/ignite/metrics/vision/test_object_detection_map.py::test_distrib_update_compute[gloo_cpu-sample6] - TypeError: where(): argument 'other' (position 2) must be Tensor, not int 2025-10-14T12:59:18.3819509Z FAILED tests/ignite/metrics/vision/test_object_detection_map.py::test_distrib_update_compute[gloo_cpu-sample7] - TypeError: where(): argument 'other' (position 2) must be Tensor, not int 2025-10-14T12:59:18.3819632Z ======================= 32 failed, 3 warnings in 32.37s ======================== ``` - https://github.com/pytorch/ignite/actions/runs/18497027911/job/52703702677
1 parent a30506b commit 3ffd9f8

File tree

1 file changed

+16
-45
lines changed

1 file changed

+16
-45
lines changed

.github/workflows/pytorch-version-tests.yml

Lines changed: 16 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,15 @@ jobs:
1515
max-parallel: 5
1616
fail-fast: false
1717
matrix:
18-
python-version: [3.9, "3.10", "3.11"]
19-
pytorch-version: [2.5.1, 2.4.1, 2.3.1, 2.2.2, 1.13.1, 1.12.1, 1.10.0]
18+
python-version: ["3.10", "3.11", "3.12"]
19+
pytorch-version: [2.7.1, 2.5.1, 2.4.1, 2.3.1, 1.13.1]
2020
exclude:
21-
- pytorch-version: 1.10.0
22-
python-version: "3.10"
23-
- pytorch-version: 1.10.0
24-
python-version: "3.11"
25-
26-
- pytorch-version: 1.11.0
27-
python-version: "3.10"
28-
- pytorch-version: 1.11.0
29-
python-version: "3.11"
30-
- pytorch-version: 1.12.1
31-
python-version: "3.11"
3221
# Conda fails to install cpuonly version and few cpu distributed tests are
3322
# failing with unrelated errors
3423
- pytorch-version: 1.13.1
3524
python-version: "3.11"
25+
- pytorch-version: 1.13.1
26+
python-version: "3.12"
3627

3728
steps:
3829
- uses: actions/checkout@v5
@@ -42,50 +33,30 @@ jobs:
4233
run: echo "date=$(/bin/date "+%Y-%U")" >> $GITHUB_OUTPUT
4334
shell: bash -l {0}
4435

45-
- name: Get pip cache dir
46-
id: pip-cache
47-
run: |
48-
python3 -m pip install -U pip
49-
echo "pip_cache=$(python3 -m pip cache dir)" >> $GITHUB_OUTPUT
50-
shell: bash -l {0}
51-
52-
- uses: actions/cache@v4
53-
with:
54-
path: |
55-
~/conda_pkgs_dir
56-
${{ steps.pip-cache.outputs.pip_cache }}
57-
key: ${{ steps.get-date.outputs.date }}-pytorch-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.pytorch-version }}-${{ hashFiles('requirements-dev.txt') }}
58-
restore-keys: |
59-
${{ steps.get-date.outputs.date }}-pytorch-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.pytorch-version }}-
60-
61-
- name: Setup Miniconda
62-
uses: conda-incubator/setup-miniconda@v3
36+
- uses: astral-sh/setup-uv@v6
6337
with:
64-
miniconda-version: "latest"
38+
version: "latest"
6539
python-version: ${{ matrix.python-version }}
66-
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
40+
activate-environment: true
41+
enable-cache: true
42+
cache-suffix: "${{ steps.get-date.outputs.date }}-pytorch-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.pytorch-version }}"
43+
cache-dependency-glob: |
44+
**/requirements-dev.txt
45+
**/pyproject.toml
6746
6847
- name: Install dependencies
6948
shell: bash -l {0}
7049
run: |
71-
conda install pytorch=${{ matrix.pytorch-version }} torchvision cpuonly python=${{ matrix.python-version }} -c pytorch
50+
uv pip install "torch==${{ matrix.pytorch-version }}" torchvision --index-url https://download.pytorch.org/whl/cpu
7251
7352
# We should install numpy<2.0 for pytorch<2.3
7453
numpy_one_pth_version=$(python -c "import torch; print(float('.'.join(torch.__version__.split('.')[:2])) < 2.3)")
7554
if [ "${numpy_one_pth_version}" == "True" ]; then
76-
pip install -U "numpy<2.0"
55+
uv pip install -U "numpy<2.0"
7756
fi
7857
79-
pip install -r requirements-dev.txt
80-
pip install .
81-
82-
# pytorch>=1.9.0,<1.11.0 is using "from setuptools import distutils; distutils.version.LooseVersion" anti-pattern
83-
# which raises the error: AttributeError: module 'distutils' has no attribute 'version' for setuptools>59
84-
bad_pth_version=$(python -c "import torch; print('.'.join(torch.__version__.split('.')[:2]) in ['1.9', '1.10'])")
85-
if [ "${bad_pth_version}" == "True" ]; then
86-
pip install --upgrade "setuptools<59"
87-
python -c "from setuptools import distutils; distutils.version.LooseVersion"
88-
fi
58+
uv pip install -r requirements-dev.txt
59+
uv pip install .
8960
9061
- name: Download MNIST
9162
uses: pytorch-ignite/download-mnist-github-action@master

0 commit comments

Comments
 (0)