Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jcwchen
Copy link
Member

@jcwchen jcwchen commented Mar 2, 2023

Description

Upgrade Protobuf to v21.12 to accept Python Protobuf 4.21

Motivation and Context

Supersede #4242

@jcwchen jcwchen added topic: build Issues related to ONNX builds and packages module: CI pipelines Issues related to the CI pipeline run release CIs Use this label to trigger release tests in CI dependencies Pull requests that update a dependency file labels Mar 2, 2023
@jcwchen jcwchen requested a review from a team as a code owner March 2, 2023 17:38
jcwchen added 16 commits March 2, 2023 09:41
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]>
Signed-off-by: Chun-Wei Chen <[email protected]>
Signed-off-by: Chun-Wei Chen <[email protected]>
@jcwchen jcwchen added this to the 1.14.0 milestone Mar 28, 2023
@jcwchen jcwchen changed the title [WIP] Upgrade Protobuf to v21.1 to accept Python Protobuf 4.21 Upgrade Protobuf to v21.1 to accept Python Protobuf 4.21 Mar 29, 2023
@jcwchen jcwchen changed the title Upgrade Protobuf to v21.1 to accept Python Protobuf 4.21 Upgrade Protobuf to v21.12 to accept Python Protobuf 4.21 Mar 29, 2023
Signed-off-by: Chun-Wei Chen <[email protected]>
@jcwchen jcwchen enabled auto-merge (squash) April 4, 2023 22:45
@jcwchen jcwchen merged commit a220317 into onnx:main Apr 4, 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"
Copy link
Member

Choose a reason for hiding this comment

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

What does this do?

Copy link
Member Author

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.

@jcwchen jcwchen deleted the jcw/protobuf4.21 branch April 5, 2023 03:12
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]>
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

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants