Repository navigation
Conversation
…ation/kfp/components/preprocessing
|
/gemini review |
There was a problem hiding this comment.
📋 Review Summary
This PR updates the base Docker image and Python dependencies in the KFP preprocessing example component so that Pillow==13.0.0, requests==2.33.0, and torch==2.13.0 (which require Python >=3.10 / >=3.11) can be installed without dependency resolution conflicts. The updated package versions (python:3.11-slim, apache_beam[gcp]==2.78.0, torch==2.13.0, torchvision==0.28.0, and numpy==1.26.4) are mutually compatible and align with the changes previously made to the train component in #41417.
🔍 General Feedback
- All pinned dependencies have pre-built
cp311wheels available on PyPI and compatible version constraints (torchvision==0.28.0pairs withtorch==2.13.0, andapache_beam==2.78.0supportsnumpy==1.26.4). - No issues found; the changes are clean and ready to merge.
💡 Tip: Comment /gemini review on this pull request to trigger a new Gemini code review.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #41653 +/- ##
============================================
- Coverage 58.73% 58.72% -0.01%
Complexity 2315 2315
============================================
Files 1135 1135
Lines 170486 170486
Branches 1499 1499
============================================
- Hits 100128 100123 -5
- Misses 67811 67816 +5
Partials 2547 2547
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:
|
Note: this PR was auto-generated by tooling. Before moving it out of draft, the author has done a full review of the PR, specifically evaluating it on the following criteria:
masterthat Dependabot is not already addressingIf you have concerns with the PR or with the underlying methodology used to generate this, please comment below - they will be addressed by the author not the tooling :)
Bumps
torchfrom2.8.0to2.13.0(along with matchingtorchvision==0.28.0,apache_beam[gcp]==2.78.0,numpy==1.26.4, andFROM python:3.11-slim, matching sibling KFPtraincomponent in #41417) in/sdks/python/apache_beam/examples/ml-orchestration/kfp/components/preprocessingto remediate 4 open Dependabot security alerts:CVE-2026-24747(< 2.10.0, High)CVE-2025-2999(< 2.9.1, Medium)CVE-2025-3000(<= 2.12.1, Low)CVE-2025-3001(< 2.10.0, Low)Verification
pip check) and functional execution ofsrc/preprocess.py(T.ToTensor(),TF.resize(),clean_text(),serialize_example(), andapache_beamimports) in an isolated virtual environment withapache_beam[gcp]==2.78.0,requests==2.33.0,torch==2.13.0,torchvision==0.28.0,numpy==1.26.4, andPillow==13.0.0.