Skip to content

Verify minimum supported numpy in Windows Release CI#4279

Merged
jcwchen merged 6 commits intoonnx:mainfrom
jcwchen:jcw/mini-numpy
Jun 16, 2022
Merged

Verify minimum supported numpy in Windows Release CI#4279
jcwchen merged 6 commits intoonnx:mainfrom
jcwchen:jcw/mini-numpy

Conversation

@jcwchen
Copy link
Copy Markdown
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 module: 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
Copy Markdown
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
@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

module: 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.

2 participants