Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft 1.16 RC #7722

Draft
wants to merge 35 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
10a69de
Deprecate KFP v1 support
nikelite Aug 29, 2024
a6fd9bc
1.16 rc
nikelite Nov 26, 2024
7dfd7b4
Update 1.16 compatibility
nikelite Nov 27, 2024
544d382
bump up the version of tornado
nikelite Dec 2, 2024
dfb4a4d
Merge branch 'master' into 1.16
nikelite Dec 2, 2024
5b51711
sync with master branch
nikelite Dec 2, 2024
935e83e
sync with master branch
nikelite Dec 2, 2024
00575a3
update nightly
nikelite Dec 2, 2024
7a46db6
Update nightly test constratins
nikelite Dec 2, 2024
e0c550b
update nightly test constraints
nikelite Dec 2, 2024
041599f
pin keras version
nikelite Dec 2, 2024
25fbbf2
Update keras model not to use deprecated APIs
nikelite Dec 2, 2024
187a639
Update example template models not to use deprecated Keras APIs
nikelite Dec 2, 2024
f42957d
Update template models not to use deprecated Keras apis (#7723)
nikelite Dec 2, 2024
e3fe5b1
Add xfail to the flaky tests (#7724)
nikelite Dec 3, 2024
0222d20
Update docker images to include data files
nikelite Dec 3, 2024
17d1ac5
Fix vertex end-to-end test failures
nikelite Dec 3, 2024
14d9822
Update bdist wheel scripts to use MANIFEST.in
nikelite Dec 4, 2024
739b7fb
update taxi_utils not to use deprecated model save apis
nikelite Dec 4, 2024
7b968ee
Update evaluator config to work with taxi keras models
nikelite Dec 4, 2024
c35ced2
Update test cases with expected pipeline JSON to reflect updated eval…
nikelite Dec 4, 2024
cfab8a4
Fix: Vertex ML pipeline test failures (#7727)
nikelite Dec 4, 2024
af06dc0
Merge branch 'main' of https://github.com/nikelite/tfx into 1.16
nikelite Dec 5, 2024
c97a381
1.16 rc
nikelite Dec 5, 2024
484cd20
Update 1.16 compatibility
nikelite Dec 5, 2024
f9fe7de
sync with master branch
nikelite Dec 5, 2024
a329c4f
update nightly
nikelite Dec 2, 2024
52f5c8b
Update nightly test constratins
nikelite Dec 2, 2024
5cbfb95
update nightly test constraints
nikelite Dec 2, 2024
abb4795
pin keras version
nikelite Dec 2, 2024
ce30ce8
Update keras model not to use deprecated APIs
nikelite Dec 5, 2024
38b1657
Update example template models not to use deprecated Keras APIs
nikelite Dec 2, 2024
049de14
Update docker images to include data files
nikelite Dec 3, 2024
53e530f
Update bdist wheel scripts to use MANIFEST.in
nikelite Dec 4, 2024
6e3a829
Merge branch '1.16' of https://github.com/nikelite/tfx into 1.16
nikelite Dec 5, 2024
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
52 changes: 19 additions & 33 deletions nightly_test_constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,17 @@
Flask-session<0.6.0

#TODO(b/329181965): Remove once we migrate TFX to 2.16.
tensorflow==2.15.1
tensorflow-text==2.15.0
tensorflow==2.16.2
tensorflow-text==2.16.1
keras==3.6.0

absl-py==1.4.0
aiohappyeyeballs==2.4.3
aiohttp==3.10.9
aiosignal==1.3.1
alembic==1.13.3
annotated-types==0.7.0
anyio==4.6.0
apache-airflow==2.10.2
apache-airflow-providers-common-compat==1.2.1rc1
apache-airflow-providers-common-io==1.4.2rc1
apache-airflow-providers-common-sql==1.18.0rc1
apache-airflow-providers-fab==1.4.1rc1
apache-airflow-providers-ftp==3.11.1
apache-airflow-providers-http==4.13.1
apache-airflow-providers-imap==3.7.0
apache-airflow-providers-mysql==5.7.2rc1
apache-airflow-providers-smtp==1.8.0
apache-airflow-providers-sqlite==3.9.0
apache-airflow==2.10.3
apache-beam==2.59.0
apispec==6.6.1
argcomplete==3.5.1
Expand Down Expand Up @@ -91,7 +81,6 @@ fasteners==0.19
fastjsonschema==2.20.0
filelock==3.16.1
Flask==2.2.5
Flask-AppBuilder==4.5.0
Flask-Babel==2.0.0
Flask-Caching==2.3.0
Flask-JWT-Extended==4.6.0
Expand Down Expand Up @@ -152,7 +141,6 @@ importlib_resources==6.4.5
inflection==0.5.1
iniconfig==2.0.0
ipykernel==6.29.5
ipython==7.34.0
ipython-genutils==0.2.0
ipywidgets==7.8.4
isoduration==20.11.0
Expand All @@ -179,7 +167,7 @@ jupyterlab==4.2.5
jupyterlab_pygments==0.3.0
jupyterlab_server==2.27.3
jupyterlab_widgets==1.1.10
keras==2.15.0
tf-keras==2.16.0
keras-tuner==1.4.7
kfp==2.5.0
kfp-pipeline-spec==0.2.2
Expand All @@ -205,12 +193,12 @@ mdurl==0.1.2
methodtools==0.4.7
mistune==3.0.2
ml-dtypes==0.3.2
ml-metadata>=1.17.0.dev20241016
ml-metadata>=1.16.0
mmh==2.2
more-itertools==10.5.0
msgpack==1.1.0
multidict==6.1.0
mysql-connector-python==9.0.0
mysql-connector-python==9.1.0
mysqlclient==2.2.4
nbclient==0.10.0
nbconvert==7.16.4
Expand Down Expand Up @@ -262,7 +250,6 @@ proto-plus==1.24.0
protobuf==3.20.3
psutil==6.0.0
ptyprocess==0.7.0
pyarrow==10.0.1
pyarrow-hotfix==0.6
pyasn1==0.6.1
pyasn1_modules==0.4.1
Expand Down Expand Up @@ -316,33 +303,33 @@ SQLAlchemy==1.4.54
SQLAlchemy-JSONField==1.0.2
SQLAlchemy-Utils==0.41.2
sqlparse==0.5.1
struct2tensor>=0.47.0.dev20240430; extra == "all"
struct2tensor>=0.47.0
tabulate==0.9.0
tenacity==9.0.0
tensorboard==2.15.2
tensorboard==2.16.2
tensorboard-data-server==0.7.2
tensorflow==2.15.1
tensorflow==2.16.2
tensorflow-cloud==0.1.16
tensorflow-data-validation>=1.16.0.dev20240508
tensorflow-data-validation>=1.16.1
tensorflow-datasets==4.9.3
tensorflow-decision-forests==1.8.1
tensorflow-decision-forests==1.9.2
tensorflow-estimator==2.15.0
tensorflow-hub==0.15.0
tensorflow-io==0.24.0
tensorflow-io-gcs-filesystem==0.24.0
tensorflow-metadata>=1.17.0.dev20241016
tensorflow-ranking==0.5.5
tensorflow-serving-api==2.15.1
tensorflow-text==2.15.0
tensorflow-transform>=1.16.0.dev20240430
tensorflow_model_analysis>=0.47.0.dev20240617
tensorflow-metadata>=1.16.1
# tensorflow-ranking==0.5.5
tensorflow-serving-api==2.16.1
tensorflow-text==2.16.1
tensorflow-transform>=1.16.0
tensorflow_model_analysis>=0.47.0
tensorflowjs==4.17.0
tensorstore==0.1.66
termcolor==2.5.0
terminado==0.18.1
text-unidecode==1.3
tflite-support==0.4.4
tfx-bsl>=1.16.0.dev20240430
tfx-bsl>=1.16.1
threadpoolctl==3.5.0
time-machine==2.16.0
tinycss2==1.3.0
Expand All @@ -367,7 +354,6 @@ wcwidth==0.2.13
webcolors==24.8.0
webencodings==0.5.1
websocket-client==0.59.0
Werkzeug==2.2.3
widgetsnbextension==3.6.9
wirerope==0.4.7
wrapt==1.14.1
Expand Down
1 change: 1 addition & 0 deletions package_build/initialize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ do
ln -sf $BASEDIR/setup.py $BASEDIR/package_build/$CONFIG_NAME/
ln -sf $BASEDIR/dist $BASEDIR/package_build/$CONFIG_NAME/
ln -sf $BASEDIR/tfx $BASEDIR/package_build/$CONFIG_NAME/
ln -sf $BASEDIR/MANIFEST.in $BASEDIR/package_build/$CONFIG_NAME/
ln -sf $BASEDIR/README*.md $BASEDIR/package_build/$CONFIG_NAME/
ln -sf $BASEDIR/LICENSE $BASEDIR/package_build/$CONFIG_NAME/

Expand Down
45 changes: 19 additions & 26 deletions test_constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,17 @@
Flask-session<0.6.0

#TODO(b/329181965): Remove once we migrate TFX to 2.16.
tensorflow==2.15.1
tensorflow-text==2.15.0
tensorflow==2.16.2
tensorflow-text==2.16.1
keras==3.6.0

absl-py==1.4.0
aiohappyeyeballs==2.4.3
aiohttp==3.10.9
aiosignal==1.3.1
alembic==1.13.3
annotated-types==0.7.0
anyio==4.6.0
apache-airflow==2.10.2
apache-airflow-providers-common-compat==1.2.1rc1
apache-airflow-providers-common-io==1.4.2rc1
apache-airflow-providers-common-sql==1.18.0rc1
apache-airflow-providers-fab==1.4.1rc1
apache-airflow-providers-ftp==3.11.1
apache-airflow-providers-http==4.13.1
apache-airflow-providers-imap==3.7.0
apache-airflow-providers-mysql==5.7.2rc1
apache-airflow-providers-smtp==1.8.0
apache-airflow-providers-sqlite==3.9.0
apache-airflow==2.10.3
apache-beam==2.59.0
apispec==6.6.1
argcomplete==3.5.1
Expand Down Expand Up @@ -91,7 +81,6 @@ fasteners==0.19
fastjsonschema==2.20.0
filelock==3.16.1
Flask==2.2.5
Flask-AppBuilder==4.5.0
Flask-Babel==2.0.0
Flask-Caching==2.3.0
Flask-JWT-Extended==4.6.0
Expand Down Expand Up @@ -152,7 +141,6 @@ importlib_resources==6.4.5
inflection==0.5.1
iniconfig==2.0.0
ipykernel==6.29.5
ipython==7.34.0
ipython-genutils==0.2.0
ipywidgets==7.8.4
isoduration==20.11.0
Expand All @@ -179,7 +167,7 @@ jupyterlab==4.2.5
jupyterlab_pygments==0.3.0
jupyterlab_server==2.27.3
jupyterlab_widgets==1.1.10
keras==2.15.0
tf-keras==2.16.0
keras-tuner==1.4.7
kfp==2.5.0
kfp-pipeline-spec==0.2.2
Expand All @@ -205,11 +193,12 @@ mdurl==0.1.2
methodtools==0.4.7
mistune==3.0.2
ml-dtypes==0.3.2
ml-metadata>=1.16.0
mmh==2.2
more-itertools==10.5.0
msgpack==1.1.0
multidict==6.1.0
mysql-connector-python==9.0.0
mysql-connector-python==9.1.0
mysqlclient==2.2.4
nbclient==0.10.0
nbconvert==7.16.4
Expand Down Expand Up @@ -261,7 +250,6 @@ proto-plus==1.24.0
protobuf==3.20.3
psutil==6.0.0
ptyprocess==0.7.0
pyarrow==10.0.1
pyarrow-hotfix==0.6
pyasn1==0.6.1
pyasn1_modules==0.4.1
Expand Down Expand Up @@ -315,27 +303,33 @@ SQLAlchemy==1.4.54
SQLAlchemy-JSONField==1.0.2
SQLAlchemy-Utils==0.41.2
sqlparse==0.5.1
struct2tensor>=0.47.0
tabulate==0.9.0
tenacity==9.0.0
tensorboard==2.15.2
tensorboard==2.16.2
tensorboard-data-server==0.7.2
tensorflow==2.15.1
tensorflow==2.16.2
tensorflow-cloud==0.1.16
tensorflow-data-validation>=1.16.1
tensorflow-datasets==4.9.3
tensorflow-decision-forests==1.8.1
tensorflow-decision-forests==1.9.2
tensorflow-estimator==2.15.0
tensorflow-hub==0.15.0
tensorflow-io==0.24.0
tensorflow-io-gcs-filesystem==0.24.0
tensorflow-ranking==0.5.5
tensorflow-serving-api==2.15.1
tensorflow-text==2.15.0
tensorflow-metadata>=1.16.1
# tensorflow-ranking==0.5.5
tensorflow-serving-api==2.16.1
tensorflow-text==2.16.1
tensorflow-transform>=1.16.0
tensorflow_model_analysis>=0.47.0
tensorflowjs==4.17.0
tensorstore==0.1.66
termcolor==2.5.0
terminado==0.18.1
text-unidecode==1.3
tflite-support==0.4.4
tfx-bsl>=1.16.1
threadpoolctl==3.5.0
time-machine==2.16.0
tinycss2==1.3.0
Expand All @@ -360,7 +354,6 @@ wcwidth==0.2.13
webcolors==24.8.0
webencodings==0.5.1
websocket-client==0.59.0
Werkzeug==2.2.3
widgetsnbextension==3.6.9
wirerope==0.4.7
wrapt==1.14.1
Expand Down
2 changes: 2 additions & 0 deletions tfx/components/statistics_gen/executor_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"""Tests for tfx.components.statistics_gen.executor."""

import os
import pytest
import tempfile

from absl.testing import parameterized
Expand Down Expand Up @@ -288,6 +289,7 @@ def testDoWithSchemaAndStatsOptions(self):
"expected_sample_rate_by_split_property": {"train": 0.2, "eval": 0.2},
},
)
@pytest.mark.xfail(run=False, reason="Flaky test")
def testDoWithSamplingProperty(
self, sample_rate, sample_rate_by_split, expected_sample_rate_by_split_property
):
Expand Down
22 changes: 11 additions & 11 deletions tfx/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ def make_pipeline_sdk_required_install_packages():
"ml-metadata"
+ select_constraint(
# LINT.IfChange
default=">=1.15.0,<1.16.0",
default=">=1.16.0,<1.17.0",
# LINT.ThenChange(tfx/workspace.bzl)
nightly=">=1.16.0.dev",
nightly=">=1.17.0.dev",
git_master="@git+https://github.com/google/ml-metadata@master",
),
"packaging>=22",
Expand Down Expand Up @@ -105,31 +105,31 @@ def make_required_install_packages():
# Pip might stuck in a TF 1.15 dependency although there is a working
# dependency set with TF 2.x without the sync.
# pylint: disable=line-too-long
"tensorflow" + select_constraint(">=2.15.0,<2.16"),
"tensorflow" + select_constraint(">=2.16.0,<2.17"),
# pylint: enable=line-too-long
"tensorflow-hub>=0.15.0,<0.16",
"tensorflow-data-validation"
+ select_constraint(
default=">=1.15.1,<1.16.0",
nightly=">=1.16.0.dev",
default=">=1.16.1,<1.17.0",
nightly=">=1.16.1.dev",
git_master=("@git+https://github.com/tensorflow/data-validation@master"),
),
"tensorflow-model-analysis"
+ select_constraint(
default=">=0.46.0,<0.47.0",
default=">=0.47.0,<0.48.0",
nightly=">=0.47.0.dev",
git_master="@git+https://github.com/tensorflow/model-analysis@master",
),
"tensorflow-serving-api>=2.15,<2.16",
"tensorflow-serving-api>=2.16,<2.17",
"tensorflow-transform"
+ select_constraint(
default=">=1.15.0,<1.16.0",
default=">=1.16.0,<1.17.0",
nightly=">=1.16.0.dev",
git_master="@git+https://github.com/tensorflow/transform@master",
),
"tfx-bsl"
+ select_constraint(
default=">=1.15.1,<1.16.0",
default=">=1.16.1,<1.17.0",
nightly=">=1.16.0.dev",
git_master="@git+https://github.com/tensorflow/tfx-bsl@master",
),
Expand Down Expand Up @@ -199,7 +199,7 @@ def make_extra_packages_tf_ranking():
"tensorflow-ranking>=0.5,<0.6",
"struct2tensor"
+ select_constraint(
default=">=0.46.0,<0.47.0",
default=">=0.47.0,<0.48.0",
nightly=">=0.47.0.dev",
git_master="@git+https://github.com/google/struct2tensor@master",
),
Expand All @@ -211,7 +211,7 @@ def make_extra_packages_tfdf():
# Required for tfx/examples/penguin/penguin_utils_tfdf_experimental.py
return [
# NOTE: TFDF 1.0.1 is only compatible with TF 2.10.x.
"tensorflow-decision-forests>=1.0.1,<1.9",
"tensorflow-decision-forests>=1.8.1,<2",
]


Expand Down
3 changes: 1 addition & 2 deletions tfx/examples/chicago_taxi_pipeline/taxi_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ def _build_keras_model(
output = tf.keras.layers.Dense(1, activation='sigmoid')(
tf.keras.layers.concatenate([deep, wide])
)
output = tf.squeeze(output, -1)

model = tf.keras.Model(input_layers, output)
model.compile(
Expand Down Expand Up @@ -371,4 +370,4 @@ def run_fn(fn_args: fn_args_utils.FnArgs):
model, tf_transform_output
),
}
model.save(fn_args.serving_model_dir, save_format='tf', signatures=signatures)
tf.saved_model.save(model, fn_args.serving_model_dir, signatures=signatures)
Loading
Loading