test_typing tests are failing because of ValueError: not enough values to unpack (expected 1, got 0) on main branch
Tests Failing:
test_fail_random.py, test_fail_torch_size.py, test_reveal_module_list.py, test_reveal_namedtuple.py, test_reveal_opt_size.py, test_reveal_size.py, test_reveal_tensor_constructors.py, test_reveal_tensor_copy.py, test_reveal_tensor_sampling.py, test_reveal_torch_optim.py, test_success_arithmetic_ops.py, test_success_creation_ops.py, test_success_cuda_steam.py, test_success_distributions.py, test_success_math_ops.py, test_success_torch_size.py
Env details:
PyTorch version: 2.10.0
Branch: main
OS: RHEL 9.6
CPU: Intel
python version: 3.12
commit id : 6de6685797cabc6256df76803f3a5f772d5275a7 (tag: trunk/6de6685797cabc6256df76803f3a5f772d5275a7, origin/main, origin/HEAD)
Steps to repro:
Log in to H200.
Login to quay.io: podman login quay.io
Pull base image: podman pull quay.io/aipcc/pytorch:rhel_cuda_build_without_pins
Run the image and specify the GPU to be used: podman run -it <IMAGE_NAME>
Run the PyTorch UT: TEST_CONFIG=cpu python3 test/run_test.py -i test_typing
Expected result: UTs should run fine.
Actual result:
ValueError: not enough values to unpack (expected 1, got 0) - All typing tests fail consistently with a ValueError occurring in /pytorch/mypy_plugins/check_mypy_version.py at line 55. The error occurs when trying to unpack a regex match result from re.finditer(), but the regex pattern doesn't find any matches. Specifically, the code expects to unpack one match from get_correct_mypy_version(), but re.finditer() returns zero matches, indicating that the mypy version check is failing to parse the expected version string format. This suggests a mismatch between the installed mypy version and the expected version format that the plugin is trying to validate.
Logs are attached below
- blocks
-
AIPCC-7777 Update PyTorch Upstream CI Requirements
-
- In Progress
-
-
AIPCC-4643 transition torch build ownership from AE to torch team
-
- In Progress
-