Skip to content

[Python] Fix Feast and BigQuery enrichment ITs for Python 3.13 and Prism - #41642

Closed
damccorm wants to merge 1 commit into
apache:masterfrom
damccorm:fix/enrichment-its-py313-feast-and-bigquery
Closed

damccorm wants to merge 1 commit into
apache:masterfrom
damccorm:fix/enrichment-its-py313-feast-and-bigquery

Conversation

@damccorm

Copy link
Copy Markdown
Contributor

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 Handle query returned with empty rows gracefully on bigquery enrichmement #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

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).

- 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.
@damccorm

Copy link
Copy Markdown
Contributor Author

Replaced by native stacked PR #41647.

@damccorm damccorm closed this Nov 24, 2026
@damccorm
damccorm deleted the fix/enrichment-its-py313-feast-and-bigquery branch November 24, 2026 18:17
@github-actions github-actions Bot added python core size/s S: 10-49 lines changed labels Nov 24, 2026
@codecov

codecov Bot commented Nov 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.04%. Comparing base (3e230c6) to head (925a037).

Additional details and impacted files
@@            Coverage Diff            @@
##             master   #41642   +/-   ##
=========================================
  Coverage     58.03%   58.04%           
  Complexity     2844     2844           
=========================================
  Files          1210     1210           
  Lines        173259   173280   +21     
  Branches       2329     2329           
=========================================
+ Hits         100554   100582   +28     
+ Misses        69995    69988    -7     
  Partials       2710     2710           
Flag Coverage Δ
python 80.68% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core python size/s S: 10-49 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant