jrmccluskey commented on code in PR #41647:
URL: https://github.com/apache/beam/pull/41647#discussion_r4686007450
##########
sdks/python/apache_beam/transforms/enrichment_handlers/feast_feature_store_it_test.py:
##########
@@ -29,18 +29,35 @@
import apache_beam as beam
from apache_beam.testing.test_pipeline import TestPipeline
+from apache_beam.testing.util import BeamAssertException
# pylint: disable=ungrouped-imports
try:
from apache_beam.transforms.enrichment import Enrichment
from apache_beam.transforms.enrichment_handlers.feast_feature_store import
FeastFeatureStoreEnrichmentHandler
- from
apache_beam.transforms.enrichment_handlers.vertex_ai_feature_store_it_test
import \
- ValidateResponse # pylint: disable=line-too-long
except ImportError:
raise unittest.SkipTest(
'Feast feature store test dependencies are not installed.')
+class ValidateResponse(beam.DoFn):
Review 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
##########
sdks/python/apache_beam/transforms/enrichment_handlers/feast_tests_requirements.txt:
##########
@@ -15,4 +15,10 @@
# limitations under the License.
#
-feast[gcp]
\ No newline at end of file
+# 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
Review 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.
--
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]