-
Notifications
You must be signed in to change notification settings - Fork 22
Sync protobuf version with TF for the OSX build. #168
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,7 +27,7 @@ function main() { | |
| write_to_bazelrc "build --cxxopt=-std=c++17" | ||
| write_to_bazelrc "build --host_cxxopt=-std=c++17" | ||
| write_to_bazelrc "build --experimental_repo_remote_exec" | ||
| write_to_bazelrc "common --check_direct_dependencies=error" | ||
| # write_to_bazelrc "common --check_direct_dependencies=error" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This breaks downstream, especially Grain, which installs a protobuf version that is incompatible with |
||
| PLATFORM="$(uname)" | ||
|
|
||
| if [ -n "${CROSSTOOL_TOP}" ]; then | ||
|
|
@@ -91,11 +91,12 @@ function main() { | |
| $PYTHON_BIN -c 'import array_record' | ||
| $PYTHON_BIN -c 'from array_record.python import array_record_data_source' | ||
| # TF is not available on Python 3.13 and above. | ||
| if [ "$(uname)" != "Darwin" ] && (( "${PYTHON_MINOR_VERSION}" < 13 )); then | ||
| # if [ "$(uname)" != "Darwin" ] && (( "${PYTHON_MINOR_VERSION}" < 13 )); then | ||
| if (( "${PYTHON_MINOR_VERSION}" < 13 )); then | ||
|
Comment on lines
+94
to
+95
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Once google/grain#954 is merged and Grain gets a pre-release we can actually have this change. |
||
| $PYTHON_BIN -m pip install jax tensorflow grain | ||
| $PYTHON_BIN oss/test_import_grain.py | ||
| $PYTHON_BIN oss/test_import_tensorflow.py | ||
| fi | ||
| } | ||
|
|
||
| main | ||
| main | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| package(licenses = ["notice"]) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| diff --git a/MODULE.bazel b/MODULE.bazel | ||
| index 2c1f801c..5d864a1c 100644 | ||
| --- a/MODULE.bazel | ||
| +++ b/MODULE.bazel | ||
| @@ -44,7 +44,7 @@ bazel_dep( | ||
| ) | ||
| bazel_dep( | ||
| name = "protobuf", | ||
| - version = "28.3", | ||
| + version = "21.7", | ||
| repo_name = "com_google_protobuf", | ||
| ) | ||
| bazel_dep( |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @dryman!
With @iindyk we purposefully upgraded protobuf version (we need it for conda-forge feedstocks). The good news is that a few days ago tensorflow 2.20.0rc0 was released with
protobuf-6.31.1. We now use this TF version for testing.tensorflow/tensorflow@50bd166