damccorm opened a new pull request, #41648:
URL: https://github.com/apache/beam/pull/41648
**Stack 5/6** — Updates Direct `inferencePostCommitIT` dependency
constraints and Gradle task configs for Python 3.13:
- **`tensorflow_tests_requirements.txt`:** Use Python-version markers
(`tf-keras>=2.16.0` + `tensorflow>=2.16.0,<2.22` on Python >= 3.12, preserving
`keras<3.0.0` + `tensorflow>=2.12.0,<2.16` on Python < 3.12 for the Python 3.11
Dataflow cost benchmarks).
- **`torch_tests_requirements.txt` & `huggingface_tests_requirements.txt`:**
Cap `torch>=2.3.0,<2.12.0` (matching `setup.py` and `tox.ini`) so `torch>=2.12`
does not pull `triton>=3.7`, which aborts with an LLVM option registration
collision when imported alongside TensorFlow in the shared virtualenv; add
`tensorflow>=2.12.0,<2.22` and `tf-keras>=2.16.0; python_version >= '3.12'` to
`huggingface_tests_requirements.txt`.
- **`sdks/python/test-suites/direct/common.gradle`:**
- Remove the obsolete `pip install 'scikit-learn<1.2.0'` `doFirst` step in
`sklearnInferenceTest` (fails to build on Python 3.13; `apache-beam[test]`
already provides `scikit-learn<1.8.0`).
- Export `TF_USE_LEGACY_KERAS=1` in `tensorflowInferenceTest` so legacy
TF2 SavedModels load under TensorFlow 2.16+.
- Install `enrichment_tests_requirements.txt` (`redis>=5.0.0,<6`) in
`testcontainersTest` (matching `dataflow:mockAPITests`, needed since `redis`
was moved to an optional extra in #36772).
- Give each direct inference/enrichment Gradle task a distinct JUnit
`suite` name so per-task XML reports no longer overwrite
`pytest_postCommitIT-direct-py*.xml`.
### Verification
- Verified end-to-end with all 7 Direct `inferencePostCommitIT` tasks
passing in [PostCommit Python (3.13) run
45406881889](https://github.com/apache/beam/actions/runs/45406881889/job/138489879460).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]