Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"comment": "Modify this file in a trivial way to cause this test suite to run.",
"modification": 3
"modification": 5
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# Driver requirements for CloudML TFT benchmarks.
# tensorflow-transform and tfx_bsl are installed separately with --no-deps in
# installTFTRequirements to avoid re-resolving apache-beam[gcp] during setup.
dill==0.4.1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The version dill==0.4.1 does not exist on PyPI (the latest stable releases are in the 0.3.x series, such as 0.3.8 or 0.3.9). Additionally, Apache Beam has strict constraints on dill (typically dill>=0.3.1.1,<0.3.9 or <0.3.10 depending on the Beam version). Specifying dill==0.4.1 will cause the pip install step to fail.

Please update this to a valid version compatible with Beam's constraints, such as dill>=0.3.1.1,<0.3.10.

dill>=0.3.1.1,<0.3.10

tensorflow>=2.16,<2.17
numpy>=1.22.0,<2.0
tensorflow-metadata>=1.16.1,<1.17.0
pyarrow>=10,<11
tensorflow-serving-api>=2.16.1,<2.20
tf-keras>=2.16.0,<2.17
11 changes: 5 additions & 6 deletions sdks/python/test-suites/dataflow/common.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -571,13 +571,12 @@ task installTFTRequirements {
exec {
workingDir "$rootProject.projectDir/sdks/python/apache_beam/testing/benchmarks/cloudml/"
executable 'sh'
// installGcpTest already installed apache-beam[gcp]. tensorflow-transform also
// lists that dependency, so a plain pip install -r can re-resolve the GCP extra
// and hit ResolutionTooDeep. Install TFT with --no-deps instead.
// installGcpTest already installed apache-beam[gcp]. tensorflow-transform and
// tfx_bsl also list that dependency, so a plain pip install -r can re-resolve
// the GCP extra and hit ResolutionTooDeep. Install them with --no-deps instead.
args '-c', ". ${envdir}/bin/activate && " +
"grep -v '^tensorflow-transform' requirements.txt > /tmp/cloudml_tft_base_requirements.txt && " +
"pip install -r /tmp/cloudml_tft_base_requirements.txt && " +
"pip install --no-deps tensorflow-transform==1.16.0"
"pip install -r cloudml_driver_requirements.txt && " +
"pip install --no-deps tfx_bsl==1.16.1 tensorflow-transform==1.16.0"
}
}
}
Expand Down
Loading