Repository navigation
[CI] Cap redis below 8.2.0 - #206270
[CI] Cap redis below 8.2.0#206270Isalia20 wants to merge 2 commits into
Conversation
redis 8.2.0 (released 2026-11-23) raises BytesWarning on import under `python -bb`, which run_test.py uses, so macOS and Windows trunk tests that import inductor fail. Cap it until a fixed release. Test Plan: `python -bb -c "import redis"` passes with 8.1.0, fails with 8.2.0.
PR Status: Approved 🚀Please fix all CI failures and trigger merge by commenting "@pytorchbot merge". ✅ AUTOMATED REVIEW - Ready for human review:
Findings (3): Reviewed commit: 🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/206270
Note: Links to docs will display an error until the docs builds have been completed. ⏳ 31 Pending, 1 Unrelated FailureAs of commit fbae045 with merge base 1340330 ( FLAKY - The following job failed but was likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@pytorchbot merge -f "Yes, let's do it" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: This PR changes files under .ci/docker/, so the Details for Dev Infra teamRaised by workflow job |
|
Holding off before deadsnakes PPA launchpad outage is fixed: |
Three images built under the previous hash during the Launchpad PPA outage installed Ubuntu's python3.11 3.11.0rc1. docker-builds never rebuilds an existing tag, so a new hash is needed to rebuild them.
There was a problem hiding this comment.
Automated review of fbae045: nothing blocking; ready for human review.
The PR caps redis below 8.2.0 in .ci/docker/requirements-ci.txt, because 8.2.0 raises a BytesWarning on import under python -bb, which breaks inductor imports in run_test.py jobs. Recommendation: Approve. All three points the review raises are non-blocking.
⚪ 3 non-blocking findings
pytorch/.ci/docker/requirements-ci.txt
Line 320 in fbae045
Dependabot will probably lift the cap (non-blocking, but worth fixing before merge). .github/dependabot.yml:31-86 runs a weekly update over /.ci/docker, which includes this file. It uses versioning-strategy: increase-if-necessary and a 7-day cooldown, and its ignore: list has no redis entry. Before this PR, redis>=4.0.0 already accepted 8.2.0, so Dependabot had nothing to change. The new <8.2.0 bound gives it something to raise. Once the cooldown ends, a Dependabot PR (probably the grouped ci-image one) will likely widen the cap to allow 8.2.x, which would bring back the macOS and Windows -bb failures. The file already handles this for the intel-openmp cap (dependabot.yml:75, with a reason comment at lines 70-72). Fix: add - dependency-name: "redis" with a short reason comment, optionally scoped with versions: [">=8.2.0"].
pytorch/.ci/docker/requirements-ci.txt
Line 320 in fbae045
Still a floating range, not an == pin (non-blocking). macOS, Windows and s390x install this file at job time, so a new 8.1.x release would still come in without review. The exposure is narrow, and it is smaller than before the PR. redis==8.1.0, the version the Test Plan checked, would close it. Only do this together with the Dependabot ignore, since increase-if-necessary also bumps == pins.
pytorch/.ci/docker/requirements-ci.txt
Line 322 in fbae045
The comment has no issue link (non-blocking). Other pins in this file cite an issue: hypothesis at line 61 (# 31136), intel-openmp at line 87 (# 201218) and scipy at line 280 (# 60347). The upstream issue (redis/redis-py# 4677) and the "until a fixed release" condition are only in the PR description. Copy both into the comment so whoever removes the cap later knows when it is safe.
This review is AI-generated and advisory. Each new automated review replaces the previous one. Report a bad review
|
@pytorchbot merge |
Brings in b62254c ("[CI] Cap redis below 8.2.0 (pytorch#206270)"). Without the cap, macOS and Windows CI install redis-py 8.2.0, whose module-level mixed str/bytes frozenset raises BytesWarning; the test runner's -bb flag turns that into an error and every test file that imports torch._inductor fails at import time. The merge is conflict-free and keeps the PR diff limited to test/test_testing.py. Co-Authored-By: Claude Code <[email protected]>
Pytest 9.2 crashed when the JUnit reporter used a different key from pytest. Redis 8.2.0 raised a BytesWarning on import under python -bb. Merge main at 579ecc5 to use pytest's reporter keys (pytorch#202390) and the upstream CI images that cap Redis below 8.2.0 (pytorch#206270). This keeps the load deduplication patch unchanged. Test Plan The affected jobs passed on the merged main commit in https://github.com/pytorch/pytorch/actions/runs/46101078121. The staged tree matched a replay of the original patch on that commit. Syntax and PR diff checks passed. ```sh git diff --cached --check MERGE_HEAD git diff --cached --exit-code MERGE_HEAD -- .ci/docker test/conftest.py test/test_testing.py git diff --cached MERGE_HEAD | git patch-id --stable git diff HEAD^ HEAD | git patch-id --stable python -m py_compile torch/_inductor/dependencies.py test/conftest.py ``` Local lint and the CPU and CUDA suites did not run. This checkout lacks lintrunner and a PyTorch build. Authored with an AI assistant.
redis 8.2.0 (released 2026-11-23) raises BytesWarning on import under
python -bb, which run_test.py uses, so macOS and Windows trunk tests that import inductor fail. Cap it until a fixed release.Test Plan:
python -bb -c "import redis"passes with 8.1.0, fails with 8.2.0.Reported issue to redis repo here:
redis/redis-py#4677