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

Verify minimum supported numpy in Windows Release CI #4279

Merged
merged 6 commits into from Jun 16, 2022

Conversation

jcwchen
Copy link
Member

@jcwchen jcwchen commented Jun 15, 2022

Description
Verify minimum supported numpy in Windows CI. Only apply it in Windows since numpy 1.16.6 does not support Python>=3.9 so we need to build numpy from source in CIs, which is time-consuming and it might bump into some issue unrelated to ONNX. For now verifying it in Windows CI should be sufficient.

Motivation and Context
Since ONNX's requirements.txt has loose restriction for NumPy (1.16.6) and it uses NumPy (1.21.5) for release. To prevent issues with older NumPy version (>=1.16.6; <1.21.5), CI should verify the built wheel can work with the minimum supported numpy. For instance, #4277 numpy.typing was introduced by NumPy 1.20. The failure with lower numpy version is not caught by any CI.

Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>
@jcwchen jcwchen added CI pipelines Issues related to the CI pipeline run release CIs Use this label to trigger release tests in CI labels Jun 15, 2022
@jcwchen jcwchen requested a review from a team as a code owner June 15, 2022 17:26
Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>
Copy link
Member Author

@jcwchen jcwchen left a comment

Choose a reason for hiding this comment

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

This PR should pass all CIs after #4277 has been merged.

@jcwchen jcwchen changed the title Verify minimum supported numpy in CIs [WIP] Verify minimum supported numpy in CIs Jun 15, 2022
Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>
@jcwchen jcwchen changed the title [WIP] Verify minimum supported numpy in CIs Verify minimum supported numpy in Windows CI Jun 15, 2022
Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>
@jcwchen jcwchen changed the title Verify minimum supported numpy in Windows CI Verify minimum supported numpy in Windows Release CI Jun 16, 2022
@jcwchen jcwchen enabled auto-merge (squash) June 16, 2022 15:09
@jcwchen jcwchen merged commit b251a72 into onnx:main Jun 16, 2022
@jcwchen jcwchen deleted the jcw/mini-numpy branch June 16, 2022 17:37
broune pushed a commit to broune/onnx that referenced this pull request May 6, 2023
* Verify minimum supported numpy in CIs

Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>

* remove typo

Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>

* keep windows and revert others

Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>

* mention in doc

Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI pipelines Issues related to the CI pipeline run release CIs Use this label to trigger release tests in CI
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants