-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Use nox for testing #4841
base: main
Are you sure you want to change the base?
Use nox for testing #4841
Conversation
@jcwchen It says I am missing pybind11 (https://dev.azure.com/onnx-pipelines/onnx/_build/results?buildId=36629&view=logs&j=51991ee2-49eb-5ba6-75d8-d9fa44c75e77&t=2ba8a090-2ce7-5eb6-17ea-8e3db6b5fc5d&l=66). Do you have a clue? also
|
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.
@jcwchen It says I am missing pybind11 (https://dev.azure.com/onnx-pipelines/onnx/_build/results?buildId=36629&view=logs&j=51991ee2-49eb-5ba6-75d8-d9fa44c75e77&t=2ba8a090-2ce7-5eb6-17ea-8e3db6b5fc5d&l=66). Do you have a clue?
This is normal. Later on ONNX will build pybind11 from ONNX's submodule.
According the complete error message, it's more like a Protobuf issue. I thought you have removed installing Protobuf from requirements-release.txt. Using a fixed version of Protobuf (3.20.2) should help to resolve this issue.
a2531b4
to
c1c2f16
Compare
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.
I was wrong. The issue should be export env variables are not shared in different script. Before building ONNX, you will need to manually set export CMAKE_ARGS="-DONNX_USE_PROTOBUF_SHARED_LIBS=ON"
again. The error shows you are using a shared Protobuf (comes from apt-get), but the build is using ONNX_USE_PROTOBUF_SHARED_LIBS=OFF"
.
Yeah that's what I figured too. I am trying to see how I can configure the envvars properly |
c1c2f16
to
ea5183f
Compare
Signed-off-by: Justin Chu <justinchu@microsoft.com>
Signed-off-by: Justin Chu <justinchu@microsoft.com>
@jcwchen pipelines are now working, but its strange that some pbs are not up to date https://dev.azure.com/onnx-pipelines/onnx/_build/results?buildId=36686&view=logs&j=08e05908-426e-595c-5fcc-fd56e5a3c39e&t=74710ad4-2707-5404-bc87-4a4ad8cca814&l=5412 |
Could it be caused by system image upgrade? |
Perhaps also exclude |
Good idea, although I don’t think it’s coverage because untracked files are not going to cause git to return non zero “Changes not staged for commit:” has some pb files for log sum exp. |
Is there a way to read / visualize the files? |
Those should be excluded by |
I see what’s happening. I reverted a condition |
Signed-off-by: Justin Chu <justinchu@microsoft.com>
@jcwchen Done |
.azure-pipelines/Linux-CI.yml
Outdated
onnx_ml: true | ||
onnx_debug: false | ||
documentation: false | ||
maxParallel: 7 |
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.
nit: since we are adding two more environments (3.10 + 3.11) in CIs, probably we can remove two existing environments (e.g., one Python 3.7 and one Python 3.8) to keep the number of CI pipelines.
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.
Done
Linux getting |
I think it is
|
hmm no. cmake is 3.25.1 |
google test errors. Do we need to update googletest?
|
This is because we are using a newer gcc with ubuntu 20.04 |
Signed-off-by: Justin Chu <justinchu@microsoft.com>
Signed-off-by: Justin Chu <justinchu@microsoft.com>
gmake[2]: *** No rule to make target 'googletest/src/googletest/googletest/libgtestd.a', needed by 'onnx_gtests'. Stop. |
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.
I thought previously all pipelines are green? Any new things added causes googletest to fail?
Signed-off-by: Justin Chu <justinchu@microsoft.com>
@jcwchen Reverted image versions. Now only macos is failing because of the not found protobuf compiler. Any idea how I can fix that? |
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.
.
# in a private namespace. | ||
! grep -R --include='*.cc' --include='*.h' 'namespace onnx' . | ||
! grep -R --include='*.cc' --include='*.h' 'onnx::' . | ||
pip install nox |
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.
@jcwchen Reverted image versions. Now only macos is failing because of the not found protobuf compiler. Any idea how I can fix that?
Cross scripts is sometimes a headache in AZP. I guess the export path in the first script for installing Protobuf from source was not applied in the following scripts? If yes, manually export in the this script before installing onnx like
export PATH=$INSTALL_PROTOBUF_PATH/include:$INSTALL_PROTOBUF_PATH/lib:$INSTALL_PROTOBUF_PATH/bin:$PATH |
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.
I didn't realize there was a path exported. thanks!
Signed-off-by: Justin Chu <justinchu@microsoft.com>
2ed4b6c
to
2db9fc3
Compare
I need to set an env var that is not PATH. Is there another var I can set? |
Could you please elaborate? I thought you can directly use any variable name you want? |
Description
Use nox to run tests. Only linux and macOS is using nox right now.
Additionally:
Motivation and Context
Unified and repeatable test runs.
Fixes #4791
cc @jcwchen