-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Upgrade Protobuf to v21.12 to accept Python Protobuf 4.21 #4956
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
Merged
Conversation
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
xadupre
reviewed
Mar 2, 2023
Signed-off-by: Chun-Wei Chen <[email protected]>
Signed-off-by: Chun-Wei Chen <[email protected]>
Signed-off-by: Chun-Wei Chen <[email protected]>
Signed-off-by: Chun-Wei Chen <[email protected]>
Signed-off-by: Chun-Wei Chen <[email protected]>
Signed-off-by: Chun-Wei Chen <[email protected]>
Signed-off-by: Chun-Wei Chen <[email protected]>
Signed-off-by: Chun-Wei Chen <[email protected]>
Signed-off-by: Chun-Wei Chen <[email protected]>
Signed-off-by: Chun-Wei Chen <[email protected]>
Signed-off-by: Chun-Wei Chen <[email protected]>
Signed-off-by: Chun-Wei Chen <[email protected]>
…lds. Signed-off-by: Chun-Wei Chen <[email protected]>
Signed-off-by: Chun-Wei Chen <[email protected]>
Signed-off-by: Chun-Wei Chen <[email protected]>
Signed-off-by: Chun-Wei Chen <[email protected]>
This was referenced Mar 6, 2023
Signed-off-by: Chun-Wei Chen <[email protected]>
Signed-off-by: Chun-Wei Chen <[email protected]>
Signed-off-by: Chun-Wei Chen <[email protected]>
Signed-off-by: Chun-Wei Chen <[email protected]>
9e612f9 to
4907b60
Compare
Signed-off-by: Chun-Wei Chen <[email protected]>
gramalingam
approved these changes
Apr 3, 2023
Signed-off-by: Chun-Wei Chen <[email protected]>
Signed-off-by: Chun-Wei Chen <[email protected]>
Signed-off-by: Chun-Wei Chen <[email protected]>
Signed-off-by: Chun-Wei Chen <[email protected]>
…to jcw/protobuf4.21
justinchuby
reviewed
Apr 5, 2023
| TP_DIR = os.path.join(TOP_DIR, "third_party") | ||
| CMAKE_BUILD_DIR = os.path.join(TOP_DIR, ".setuptools-cmake-build") | ||
| PACKAGE_NAME = "onnx" | ||
| PACKAGE_NAME = "onnx-protobufv21" |
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.
What does this do?
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.
Good catch. This was for testing the built wheel with PyTorch... Here is the PR to fix this: #5089.
smk2007
pushed a commit
to smk2007/onnx
that referenced
this pull request
Apr 5, 2023
* [WIP] Upgrade Protobuf to v21.1 to accept Python Protobuf 4.21 Signed-off-by: Chun-Wei Chen <[email protected]> * then Signed-off-by: Chun-Wei Chen <[email protected]> * Same as previous PR Signed-off-by: Chun-Wei Chen <[email protected]> * fix CIs Signed-off-by: Chun-Wei Chen <[email protected]> * 3.21.12 Signed-off-by: Chun-Wei Chen <[email protected]> * build protobuf from source on Linux Signed-off-by: Chun-Wei Chen <[email protected]> * static protobuf Signed-off-by: Chun-Wei Chen <[email protected]> * protoc --version Signed-off-by: Chun-Wei Chen <[email protected]> * $BUILD_TYPE Signed-off-by: Chun-Wei Chen <[email protected]> * printenv PATH Signed-off-by: Chun-Wei Chen <[email protected]> * path Signed-off-by: Chun-Wei Chen <[email protected]> * onnx-protobufv21 Signed-off-by: Chun-Wei Chen <[email protected]> * test 3.20.2 Signed-off-by: Chun-Wei Chen <[email protected]> * Protobuf 4 and Protobuf 3 will output different order of protobuf fields. Signed-off-by: Chun-Wei Chen <[email protected]> * skip Signed-off-by: Chun-Wei Chen <[email protected]> * %%script --no-raise-error false Signed-off-by: Chun-Wei Chen <[email protected]> * updated Signed-off-by: Chun-Wei Chen <[email protected]> * test lower protoc Signed-off-by: Chun-Wei Chen <[email protected]> * export CMAKE_ARGS="-DONNX_WERROR=ON -DONNX_USE_PROTOBUF_SHARED_LIBS=ON" Signed-off-by: Chun-Wei Chen <[email protected]> * fix Signed-off-by: Chun-Wei Chen <[email protected]> * still test protobuf==3.20.2 at least in a CI Signed-off-by: Chun-Wei Chen <[email protected]> * update Protobufs.ipynb Signed-off-by: Chun-Wei Chen <[email protected]> * ["nbreg"] = {"skip": True, "skip_reason": "Not ready for testing."} Signed-off-by: Chun-Wei Chen <[email protected]> * NBVAL_SKIP Signed-off-by: Chun-Wei Chen <[email protected]> * use " instead of ' Signed-off-by: Chun-Wei Chen <[email protected]> --------- Signed-off-by: Chun-Wei Chen <[email protected]> Signed-off-by: Sheil Kumar <[email protected]>
gramalingam
pushed a commit
that referenced
this pull request
Apr 5, 2023
* Bump ossf/scorecard-action from 2.1.2 to 2.1.3 (#5084) Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.1.2 to 2.1.3. - [Release notes](https://github.com/ossf/scorecard-action/releases) - [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md) - [Commits](ossf/scorecard-action@e38b190...80e868c) --- updated-dependencies: - dependency-name: ossf/scorecard-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Sheil Kumar <[email protected]> * [CI] Fix weekly mac release CI failure and cover onnxruntime tests on AzurePipelines (#5057) * clean up CIs Signed-off-by: Chun-Wei Chen <[email protected]> * rename .yml instead of .yaml for consistency Signed-off-by: Chun-Wei Chen <[email protected]> * windows CI Signed-off-by: Chun-Wei Chen <[email protected]> --------- Signed-off-by: Chun-Wei Chen <[email protected]> Co-authored-by: Andreas Fehlner <[email protected]> Signed-off-by: Sheil Kumar <[email protected]> * Fix reference implementation for Pad and Reduce ops (#5008) * Fix reference implementation for Pad Signed-off-by: xadupre <[email protected]> * add unit test Signed-off-by: xadupre <[email protected]> * use parameterized Signed-off-by: xadupre <[email protected]> * check type Signed-off-by: xadupre <[email protected]> --------- Signed-off-by: xadupre <[email protected]> Signed-off-by: Sheil Kumar <[email protected]> * Add expected outputs for light models to make the backend test faster (#4960) * Add expected outputs for light models to make the backend test faster Signed-off-by: xadupre <[email protected]> * add expected outputs Signed-off-by: xadupre <[email protected]> * add missing outputs Signed-off-by: xadupre <[email protected]> * add missing expected output Signed-off-by: xadupre <[email protected]> * lint Signed-off-by: xadupre <[email protected]> * lint Signed-off-by: xadupre <[email protected]> * skip failing test for onnxruntime Signed-off-by: xadupre <[email protected]> * lint Signed-off-by: xadupre <[email protected]> * use range as well Signed-off-by: xadupre <[email protected]> * fix a bug Signed-off-by: xadupre <[email protected]> * exception Signed-off-by: xadupre <[email protected]> * fix light models by lower the fill value of ConstantOfShape nodes Signed-off-by: xadupre <[email protected]> * lint Signed-off-by: xadupre <[email protected]> * fix type issue in deform implementation Signed-off-by: xadupre <[email protected]> * exclude deformconv from onnxruntime backend test series Signed-off-by: xadupre <[email protected]> * disable test when numpy is not recent enough Signed-off-by: xadupre <[email protected]> * move one test Signed-off-by: xadupre <[email protected]> * avoid python 3.7 Signed-off-by: xadupre <[email protected]> * add missing import Signed-off-by: xadupre <[email protected]> * fix import Signed-off-by: xadupre <[email protected]> * add missing license Signed-off-by: xadupre <[email protected]> * add copyright for binary file Signed-off-by: xadupre <[email protected]> --------- Signed-off-by: xadupre <[email protected]> Co-authored-by: Chun-Wei Chen <[email protected]> Signed-off-by: Sheil Kumar <[email protected]> * merge batch dimension fix to STFT Signed-off-by: Sheil Kumar <[email protected]> * Add clang tidy review in Lint CI (#5041) * add clang-tidy review Signed-off-by: Chun-Wei Chen <[email protected]> * more configs Signed-off-by: Chun-Wei Chen <[email protected]> * add post yml Signed-off-by: Chun-Wei Chen <[email protected]> * rename Signed-off-by: Chun-Wei Chen <[email protected]> * post Signed-off-by: Chun-Wei Chen <[email protected]> * orkflow_dispatch Signed-off-by: Chun-Wei Chen <[email protected]> * Post clang-tidy review comments Signed-off-by: Chun-Wei Chen <[email protected]> * remove workflow Signed-off-by: Chun-Wei Chen <[email protected]> * test Signed-off-by: Chun-Wei Chen <[email protected]> * revert demo Signed-off-by: Chun-Wei Chen <[email protected]> --------- Signed-off-by: Chun-Wei Chen <[email protected]> Co-authored-by: Andreas Fehlner <[email protected]> Signed-off-by: Sheil Kumar <[email protected]> * Upgrade Protobuf to v21.12 to accept Python Protobuf 4.21 (#4956) * [WIP] Upgrade Protobuf to v21.1 to accept Python Protobuf 4.21 Signed-off-by: Chun-Wei Chen <[email protected]> * then Signed-off-by: Chun-Wei Chen <[email protected]> * Same as previous PR Signed-off-by: Chun-Wei Chen <[email protected]> * fix CIs Signed-off-by: Chun-Wei Chen <[email protected]> * 3.21.12 Signed-off-by: Chun-Wei Chen <[email protected]> * build protobuf from source on Linux Signed-off-by: Chun-Wei Chen <[email protected]> * static protobuf Signed-off-by: Chun-Wei Chen <[email protected]> * protoc --version Signed-off-by: Chun-Wei Chen <[email protected]> * $BUILD_TYPE Signed-off-by: Chun-Wei Chen <[email protected]> * printenv PATH Signed-off-by: Chun-Wei Chen <[email protected]> * path Signed-off-by: Chun-Wei Chen <[email protected]> * onnx-protobufv21 Signed-off-by: Chun-Wei Chen <[email protected]> * test 3.20.2 Signed-off-by: Chun-Wei Chen <[email protected]> * Protobuf 4 and Protobuf 3 will output different order of protobuf fields. Signed-off-by: Chun-Wei Chen <[email protected]> * skip Signed-off-by: Chun-Wei Chen <[email protected]> * %%script --no-raise-error false Signed-off-by: Chun-Wei Chen <[email protected]> * updated Signed-off-by: Chun-Wei Chen <[email protected]> * test lower protoc Signed-off-by: Chun-Wei Chen <[email protected]> * export CMAKE_ARGS="-DONNX_WERROR=ON -DONNX_USE_PROTOBUF_SHARED_LIBS=ON" Signed-off-by: Chun-Wei Chen <[email protected]> * fix Signed-off-by: Chun-Wei Chen <[email protected]> * still test protobuf==3.20.2 at least in a CI Signed-off-by: Chun-Wei Chen <[email protected]> * update Protobufs.ipynb Signed-off-by: Chun-Wei Chen <[email protected]> * ["nbreg"] = {"skip": True, "skip_reason": "Not ready for testing."} Signed-off-by: Chun-Wei Chen <[email protected]> * NBVAL_SKIP Signed-off-by: Chun-Wei Chen <[email protected]> * use " instead of ' Signed-off-by: Chun-Wei Chen <[email protected]> --------- Signed-off-by: Chun-Wei Chen <[email protected]> Signed-off-by: Sheil Kumar <[email protected]> * add reuse badge (#5085) * Update README.md --------- Signed-off-by: Andreas Fehlner <[email protected]> Signed-off-by: Sheil Kumar <[email protected]> * Update reuse.yml (#5087) Signed-off-by: Andreas Fehlner <[email protected]> Signed-off-by: Sheil Kumar <[email protected]> * onnx (#5089) Signed-off-by: Chun-Wei Chen <[email protected]> Co-authored-by: Andreas Fehlner <[email protected]> Signed-off-by: Sheil Kumar <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Sheil Kumar <[email protected]> Signed-off-by: Chun-Wei Chen <[email protected]> Signed-off-by: xadupre <[email protected]> Signed-off-by: Andreas Fehlner <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Chun-Wei Chen <[email protected]> Co-authored-by: Andreas Fehlner <[email protected]> Co-authored-by: Xavier Dupré <[email protected]>
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
dependencies
Pull requests that update a dependency file
module: CI pipelines
Issues related to the CI pipeline
run release CIs
Use this label to trigger release tests in CI
topic: build
Issues related to ONNX builds and packages
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.
Description
Upgrade Protobuf to v21.12 to accept Python Protobuf 4.21
Motivation and Context
Supersede #4242