damccorm opened a new pull request, #41642:
URL: https://github.com/apache/beam/pull/41642

   Fixes `feastIntegrationTest` and `bigquery_it_test.py` 
(`testcontainersTest`) on Python 3.13 / Prism:
   
   - **Prevent `google-cloud-storage` downgrade 
(`feast_tests_requirements.txt`):** Replace `feast[gcp]` with `feast`, 
`fsspec>=2024.1.0`, and `google-cloud-bigquery[pandas]<4,>=2`. `feast[gcp]` 
pins `google-cloud-storage<3`, which downgraded `google-cloud-storage` 3.x -> 
2.19.0 in the shared `direct:py313` virtualenv and broke GCS reads 
(`raw_download=True`) in subsequent tasks. The remaining GCP client packages 
are already installed by `apache-beam[gcp]`.
   - **Avoid collection skip (`feast_feature_store_it_test.py`):** Inline 
`ValidateResponse` instead of importing it from 
`vertex_ai_feature_store_it_test.py`, which raised `SkipTest` during collection 
when `testcontainers.redis` dependencies were not yet installed.
   - **Accept Prism `RuntimeError` wrapper without swallowing `SkipTest` 
(`bigquery_it_test.py`):** Narrow the three empty-results exception assertions 
(added in #36791) to `assertRaisesRegex((ValueError, RuntimeError), "no 
matching row found for query")` so `TestDirectRunner`/Prism `RuntimeError` 
wrappers pass while `unittest.SkipTest` still propagates in non-IT suites like 
`PreCommit Python Coverage`.
   
   ### Verification
   - Verified end-to-end as part of `direct:py313:feastIntegrationTest` (3/3 
passed) and `direct:py313:testcontainersTest` (35/35 passed) locally and in 
[PostCommit Python (3.13) run 
45406881889](https://github.com/apache/beam/actions/runs/45406881889/job/138489879460)
 on #41595.
   
   Part of the stack leading up to re-enabling Python 3.13 
`inferencePostCommitIT` in #41595 (independent of the other prerequisite PRs; 
can be merged in any order).
   


-- 
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]

Reply via email to