Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## users/damccorm/py313-inference-3-pytorch #41647 +/- ##
===========================================================================
Coverage 58.04% 58.04%
Complexity 2844 2844
===========================================================================
Files 1210 1210
Lines 173284 173284
Branches 2329 2329
===========================================================================
+ Hits 100586 100587 +1
+ Misses 69988 69987 -1
Partials 2710 2710
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
stop reviewer notifications |
- feast_tests_requirements.txt: install feast with fsspec and google-cloud-bigquery[pandas] instead of feast[gcp] so it does not downgrade google-cloud-storage from 3.x to 2.x in the shared test virtualenv. - feast_feature_store_it_test.py: inline ValidateResponse instead of importing it from vertex_ai_feature_store_it_test, which skipped collection when testcontainers.redis was not installed yet. - bigquery_it_test.py: assert (ValueError, RuntimeError) in the three empty-results exception tests so Prism/TestDirectRunner RuntimeError wrappers are accepted while unittest.SkipTest still propagates when --test-pipeline-options is not passed.
94d8192 to
5f99f26
Compare
|
Stopping reviewer notifications for this pull request: requested by reviewer. If you'd like to restart, comment |
There was a problem hiding this comment.
📋 Review Summary
This PR resolves Python 3.13 and Prism integration test issues for Feast and BigQuery enrichment handlers. It prevents feast[gcp] from downgrading google-cloud-storage in shared virtual environments, decouples feast_feature_store_it_test.py from vertex_ai_feature_store_it_test.py to avoid SkipTest during collection when testcontainers is absent, and updates bigquery_it_test.py assertions to handle Prism's RuntimeError exception wrapper.
🔍 General Feedback
- The changes are well-scoped, clean, and directly address the root causes of the test failures without introducing side effects.
💡 Tip: Comment /gemini review on this pull request to trigger a new Gemini code review.
jrmccluskey
left a comment
There was a problem hiding this comment.
LGTM, just one nit that we can come back to later
| # Install feast without the [gcp] extra because feast[gcp] pins | ||
| # google-cloud-storage<3, which conflicts with Beam's google-cloud-storage>=3,<4 | ||
| # requirement and downgrades it in the shared test virtualenv. The remaining GCP | ||
| # client packages are already installed by apache-beam[gcp]. | ||
| feast | ||
| fsspec>=2024.1.0 | ||
| google-cloud-bigquery[pandas]<4,>=2 |
There was a problem hiding this comment.
Not a consideration for review here, but the problem of keeping these test requirements.txt files in line with mainline Beam requirements has been nagging at me lately. Perhaps this is another good use case for uv, just checking if we can get valid installs with current beam requirements + the test requirements file and surface the mismatch earlier.
| 'Feast feature store test dependencies are not installed.') | ||
|
|
||
|
|
||
| class ValidateResponse(beam.DoFn): |
There was a problem hiding this comment.
Nit: if this is useful in multiple test suites we should probably split it out as a helper in a utility file somewhere to reduce code duplication
Part of #41652 (stack: https://github.com/apache/beam/stack/41650).
Stack 4/6 — Fixes
feastIntegrationTestandbigquery_it_test.py(testcontainersTest) on Python 3.13 / Prism:google-cloud-storagedowngrade (feast_tests_requirements.txt): Replacefeast[gcp]withfeast,fsspec>=2024.1.0, andgoogle-cloud-bigquery[pandas]<4,>=2.feast[gcp]pinsgoogle-cloud-storage<3, which downgradedgoogle-cloud-storage3.x -> 2.19.0 in the shareddirect:py313virtualenv and broke GCS reads (raw_download=True) in subsequent tasks. The remaining GCP client packages are already installed byapache-beam[gcp].feast_feature_store_it_test.py): InlineValidateResponseinstead of importing it fromvertex_ai_feature_store_it_test.py, which raisedSkipTestduring collection whentestcontainers.redisdependencies were not yet installed.RuntimeErrorwrapper without swallowingSkipTest(bigquery_it_test.py): Narrow the three empty-results exception assertions (added in Handle query returned with empty rows gracefully on bigquery enrichmement #36791) toassertRaisesRegex((ValueError, RuntimeError), "no matching row found for query")soTestDirectRunner/PrismRuntimeErrorwrappers pass whileunittest.SkipTeststill propagates in non-IT suites likePreCommit Python Coverage.Verification
direct:py313:feastIntegrationTest(3/3 passed) anddirect:py313:testcontainersTest(35/35 passed) locally and in PostCommit Python (3.13) run 45406881889.