Repository navigation
Conversation
- 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 venv. - feast_feature_store_it_test.py: inline ValidateResponse instead of importing it from vertex_ai_feature_store_it_test (which skips on missing testcontainers.redis). - direct/common.gradle: - remove obsolete scikit-learn<1.2.0 downgrade in sklearnInferenceTest - export TF_USE_LEGACY_KERAS=1 in tensorflowInferenceTest - install enrichment_tests_requirements.txt (redis) in testcontainersTest - tensorflow_tests_requirements.txt: use tf-keras and tensorflow>=2.16,<2.22 on Python >=3.12 while preserving keras<3 / tensorflow<2.16 on Python <3.12 for Python 3.11 Dataflow cost benchmarks. - torch_tests_requirements.txt & huggingface_tests_requirements.txt: cap torch<2.12.0 to avoid triton>=3.7 LLVM option collision with tensorflow, and add tf-keras / tensorflow<2.22 bounds in huggingface_tests_requirements. - Remove remaining datatable references from xgboost ITs/example/unit test following PR apache#41586.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #41595 +/- ##
============================================
+ Coverage 59.40% 59.42% +0.02%
Complexity 5137 5137
============================================
Files 1470 1470
Lines 187620 187727 +107
Branches 3819 3819
============================================
+ Hits 111451 111562 +111
+ Misses 72762 72758 -4
Partials 3407 3407
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:
|
…Python 3.13 - huggingface_inference.py & huggingface_inference_test.py: wrap single-dict predictions from Hugging Face pipelines (such as QuestionAnsweringPipeline on batch size 1) in a list before calling utils._convert_to_result, fixing the regression from apache#36593. - huggingface_inference_it_test.py, huggingface_language_modeling.py, README.md: replace the unavailable third-party stevhliu/my_awesome_eli5_mlm_model Hub checkpoint with FacebookAI/roberta-base (inlining expected outputs so the shared GCS golden file is unchanged) and replace removed tokenizer.encode_plus with tokenizer(...) for transformers 5.x compatibility. - pytorch_inference_it_test.py: compare MaskRCNN detection outputs using exact top-5 match plus >=0.8 multiset IoU so +/-1 pixel bilinear resize rounding differences in Pillow 13.0.0 do not break borderline detections near 0.05 (after restoring the 15 missing COCO val2017 images to gs://apache-beam-ml). - bigquery_it_test.py: assert Exception instead of bare ValueError in the three empty-results exception ITs so Prism/TestDirectRunner RuntimeError wrappers are accepted, matching bigtable_it_test.py and vertex_ai_feature_store_it_test.py. - direct/common.gradle: give each direct inference/enrichment Gradle task a distinct JUnit suite name so per-task XML reports are not overwritten.
…uery_it_test - huggingface_inference.py & huggingface_inference_test.py: move the single-dict batch wrapping from HuggingFacePipelineModelHandler.run_inference into _default_pipeline_inference_fn so custom inference_fn implementations returning columnar dicts (such as Beam YAML's runinference_huggingface.yaml) are still transposed by utils._convert_to_result; add a unit test for this. - bigquery_it_test.py: narrow assertRaisesRegex from Exception to (ValueError, RuntimeError) so unittest.SkipTest raised by TestPipeline when --test-pipeline-options is absent is not caught in PreCommit Python Coverage.
This was referenced Nov 24, 2026
Closed
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Re-enables
:sdks:python:test-suites:direct:py313:inferencePostCommitIT(which includesfeastIntegrationTest,testcontainersTest, and Direct RunInference ITs) and:sdks:python:test-suites:dataflow:py313:inferencePostCommitIT(vertexAIInferenceTest,geminiInferenceTest,mockAPITests) inpython313PostCommit.Both tasks were unintentionally dropped from
build.gradle.ktswhen Python 3.9 (#36665) and Python 3.10 (#40413) support were removed without migrating the dependencies topython311PostCommit/python313PostCommit.Prerequisite PR stack
To keep reviews small and focused, the individual Python 3.13 / Direct
inferencePostCommitITfixes from this branch have been split into independent prerequisite PRs againstmaster(all verified together in green PostCommit Python (3.13) run 45406881889):datatablereferences from XGBoost inference tests and exampleHuggingFacePipelineModelHandlersingle-dict batch handling and MLM ITinferencePostCommitITrequirements and Gradle tasks for Python 3.13Once #41639–#41643 are merged into
master, mergingmasterinto this PR will reduce its diff to justbuild.gradle.kts(re-enablingdirect:py313:inferencePostCommitITanddataflow:py313:inferencePostCommitIT) and.github/trigger_files/beam_PostCommit_Python.json.(Also restored the 15 missing COCO
val2017JPEG inputs referenced bygs://apache-beam-ml/testing/inputs/it_coco_validation_inputs.txtintogs://apache-beam-ml/datasets/coco/raw-data/val2017/.)