Skip to content

Commit aec0392

Browse files
authored
Revert previous workarounds and upgrade TFX stack to 1.21.0 (#39164)
1 parent 78fdc95 commit aec0392

5 files changed

Lines changed: 11 additions & 60 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"comment": "Modify this file in a trivial way to cause this test suite to run.",
3-
"modification": 5
3+
"modification": 3
44
}

sdks/python/apache_beam/examples/ml_transform/mltransform_one_hot_encoding_test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ def test_format_json_output_with_dict(self):
104104
self.assertEqual(parsed['category'], 'test')
105105
self.assertEqual(parsed['value'], 123)
106106

107-
@pytest.mark.uses_tft
108107
def test_end_to_end_pipeline_local(self):
109108
"""Integration test running the full pipeline locally."""
110109
extra_opts = {
@@ -140,7 +139,6 @@ def test_end_to_end_pipeline_local(self):
140139
self.assertIn('color', record)
141140
self.assertIn('size', record)
142141

143-
@pytest.mark.uses_tft
144142
def test_pipeline_with_missing_columns(self):
145143
"""Test pipeline handles records with missing columns gracefully."""
146144
# Create input with some missing columns

sdks/python/apache_beam/testing/benchmarks/cloudml/constraints.txt

Lines changed: 0 additions & 42 deletions
This file was deleted.

sdks/python/apache_beam/testing/benchmarks/cloudml/requirements.txt

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,12 @@
1515
# limitations under the License.
1616
#
1717

18-
# Core TFT dependencies with version bounds.
19-
# Note: To avoid pip ResolutionTooDeep errors, always install using the constraints file:
20-
# pip install -c constraints.txt -r requirements.txt
21-
dill>=0.3,<0.5
22-
tfx_bsl>=1.15,<1.17
23-
tensorflow-transform>=1.15,<1.17
24-
tensorflow>=2.15,<2.16
25-
numpy>=1.22.0,<2.0
26-
tensorflow-metadata>=1.15,<1.16
27-
pyarrow>=10,<11
28-
tensorflow-serving-api>=2.15,<2.16
29-
tf-keras>=2.15,<2.16
18+
dill==0.4.1
19+
tfx_bsl==1.21.0
20+
tensorflow-transform==1.21.0
21+
tensorflow-metadata==1.21.0
22+
tensorflow
23+
numpy
24+
pyarrow
25+
tensorflow-serving-api
26+
tf-keras

sdks/python/test-suites/dataflow/common.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -589,9 +589,7 @@ task installTFTRequirements {
589589
exec {
590590
workingDir "$rootProject.projectDir/sdks/python/apache_beam/testing/benchmarks/cloudml/"
591591
executable 'sh'
592-
// Use constraints file to pin versions while allowing pip to
593-
// resolve compatible versions within the specified ranges in requirements.txt
594-
args '-c', ". ${envdir}/bin/activate && pip install -c constraints.txt -r requirements.txt"
592+
args '-c', ". ${envdir}/bin/activate && pip install -r requirements.txt"
595593
}
596594
}
597595
}

0 commit comments

Comments
 (0)