-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Combine different release pipelines by the use of reusable workflows #6277
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
Conversation
Signed-off-by: Andreas Fehlner <fehlner@arcor.de>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6277 +/- ##
==========================================
+ Coverage 56.95% 57.19% +0.24%
==========================================
Files 506 507 +1
Lines 30467 31257 +790
Branches 4592 4663 +71
==========================================
+ Hits 17353 17879 +526
- Misses 12285 12531 +246
- Partials 829 847 +18 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Andreas Fehlner <fehlner@arcor.de>
Signed-off-by: Andreas Fehlner <fehlner@arcor.de>
Signed-off-by: Andreas Fehlner <fehlner@arcor.de>
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.
@andife For the create release workflow, is it possible to skip the publish step in pull requests? Should we only allow it when the trigger is schedule?
Co-authored-by: Justin Chu <justinchuby@users.noreply.github.com> Signed-off-by: Andreas Fehlner <fehlner@arcor.de>
Signed-off-by: Andreas Fehlner <fehlner@arcor.de>
Signed-off-by: Andreas Fehlner <fehlner@arcor.de>
Signed-off-by: Andreas Fehlner <fehlner@arcor.de>
Both variants would be ok for me. I have added conditions in this regard. Could they be simplified to really only execute it on schedule? On the other hand, you might still have the download step separate? I at schedule we are creating a preview build. I am convinced that it also makes sense to be able to trigger a preview build manually and that the packages are then also pushed to https://pypi.org/project/onnx-weekly/ with the current date. But this I will/would not include into this PR |
Signed-off-by: Andreas Fehlner <fehlner@arcor.de>
Note for clarification: Trusted Publishing does not work for forks (as wanted)
|
Co-authored-by: Justin Chu <justinchuby@users.noreply.github.com> Signed-off-by: Andreas Fehlner <fehlner@arcor.de>
### Description After the release-pipeline upgrade (#6277) the publishing the weekly does not work any more as the secrets are not available at the resuable workflows ( https://github.com/onnx/onnx/actions/runs/10551283959/job/29228497156 ) Link for the option I used for the secrets: https://github.blog/changelog/2022-05-03-github-actions-simplify-using-secrets-with-reusable-workflows ### Motivation and Context In my opinion, we no longer need these secrets at the end. In the future, the publishing of the Onnx weekly builds will be solved via “trusted publishing” outside the individual OS release pipelines. This is already included in create_release.yml. Currently, the previous weeklys are published at pypi.org, in the test via trusted publishing at test.pypi.org After a successful schedule test (next Monday), we could adjust the publishing. a) e.g. throw out the upload steps with twine and adjust the target of separate steps... b) or leave it as it is for now... Signed-off-by: Andreas Fehlner <fehlner@arcor.de>
…nnx#6277) ### Description <!-- - Describe your changes. --> This pull request should be the start of a pipeline (current status of the considerations under onnx#6246) that automatically generates a whls after tagging, signs it and publishes it directly to Pypi to improve supply chain security. As this is all too much at once, the changes will be introduced and tested gradually. Changes related to this PR: Reusable Workflows are used to merge the individual OS release builds together (we need one process as we want to have all artifacts in one pipeline, so there is not need to download them manuelly). The workflows are currently not really "reusable", as we more or less use pypi creditionals in the workflow, among other things. I reused our testpypi weekly repo as I didn't want to change our behavoir for pypi and testpypi. Maybe it would make sense to adapt the process right away so that you can trigger our "Weekly" manually via the Github interface for testing and don't have to wait a week ;-) #### Key points for the review: * How do we want to configure concurrency * What concurrency-groups do we need? * Where do we need "cancel-in-progress"? #### Not part of the pull request: * Extract publish whl to pypi/testpyp * Introduce trusted publishing * ... ### Motivation and Context * see onnx#6246 --------- Signed-off-by: Andreas Fehlner <fehlner@arcor.de> Co-authored-by: Justin Chu <justinchuby@users.noreply.github.com> Signed-off-by: Linsho Kaku <linsho@preferred.jp>
### Description After the release-pipeline upgrade (onnx#6277) the publishing the weekly does not work any more as the secrets are not available at the resuable workflows ( https://github.com/onnx/onnx/actions/runs/10551283959/job/29228497156 ) Link for the option I used for the secrets: https://github.blog/changelog/2022-05-03-github-actions-simplify-using-secrets-with-reusable-workflows ### Motivation and Context In my opinion, we no longer need these secrets at the end. In the future, the publishing of the Onnx weekly builds will be solved via “trusted publishing” outside the individual OS release pipelines. This is already included in create_release.yml. Currently, the previous weeklys are published at pypi.org, in the test via trusted publishing at test.pypi.org After a successful schedule test (next Monday), we could adjust the publishing. a) e.g. throw out the upload steps with twine and adjust the target of separate steps... b) or leave it as it is for now... Signed-off-by: Andreas Fehlner <fehlner@arcor.de> Signed-off-by: Linsho Kaku <linsho@preferred.jp>
Description
This pull request should be the start of a pipeline (current status of the considerations under #6246) that automatically generates a whls after tagging, signs it and publishes it directly to Pypi to improve supply chain security. As this is all too much at once, the changes will be introduced and tested gradually.
Changes related to this PR:
Reusable Workflows are used to merge the individual OS release builds together (we need one process as we want to have all artifacts in one pipeline, so there is not need to download them manuelly). The workflows are currently not really "reusable", as we more or less use pypi creditionals in the workflow, among other things. I reused our testpypi weekly repo as I didn't want to change our behavoir for pypi and testpypi.
Maybe it would make sense to adapt the process right away so that you can trigger our "Weekly" manually via the Github interface for testing and don't have to wait a week ;-)
Key points for the review:
Not part of the pull request:
Motivation and Context