Repository navigation
Fix test_decode_webp_grayscale for newer torch nightlies. - #9663
Merged
Merged
Conversation
…ises torch.ops C++ warnings as Python warnings.
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/9663
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 Unclassified FailureAs of commit ed04bee with merge base ac8d215 ( UNCLASSIFIED FAILURE - DrCI could not classify the following job because the workflow did not run on the merge base. The failure may be pre-existing on trunk or introduced by this PR:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
adabeyta
marked this pull request as ready for review
September 9, 2026 20:00
cyyever
pushed a commit
to BakeLab/vision
that referenced
this pull request
Sep 26, 2026
hmaarrfk
added a commit
to regro-cf-autotick-bot/torchvision-feedstock
that referenced
this pull request
Oct 30, 2026
<details><summary>Claude's draft</summary> All 24 tested jobs (linux-64, osx-64, win-64) fail only test_decode_webp_grayscale[decode_webp] and [decode_image], with "DID NOT WARN" while the warning is printed to stderr. v0.29.2 cherry-picked pytorch/vision#9663, which moved the test from capfd to pytest.warns. That relies on pytorch/pytorch#193451, which routes C++ warnings from torch.ops through Python. It landed on 2026-08-28 and is not in v2.14.0 or v2.14.1, so the torch 2.14 this feedstock builds against still sends the warning to stderr. The decoder itself behaves correctly, and only the test's expectation is ahead of the torch release, so skip it and drop the skip with torch 2.15. Resume this Claude session: ``` cd /home/mark/git/feedstock claude --resume 6cccca21-7312-446b-935c-b70848f0f002 ``` </details>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Torch nightly raises C++ warnings from torch.ops as Python warnings instead of printing to stderr (pytorch/pytorch#193451), so the capfd check in this test now sees an empty string and fails on main.
pytest.warns, like the other warning tests in test_image.py.set_always_warnhelper.