Repository navigation
Windows, release pipeline: build .msi package - #745
Conversation
|
Thank you! Can I somehow test this? |
|
@laszlocsomor From which Bazel version on would this work? |
|
Any version whose prefix is in https://github.com/bazelbuild/bazel/blob/874fe754282651bdf006c06147842cbb226c6ae9/scripts/packages/msi/guids.txt The msi scripts must be from bazelbuild/bazel@874fe75 or newer. |
|
@philwo , does this LGTY? |
|
In general yes, but the "scripts" folder is taken from the Git commit of Bazel that is about to be released. If this change requires bazelbuild/bazel@874fe75 or newer and will otherwise fail, we cannot merge this, until Bazel 0.29.0 is about to be cut and there will surely not be patch releases for 0.27 or 0.28 anymore. Is there a way to make this change gracefully skip the MSI building for older commits? If yes, we could get it in earlier. :) |
|
Good to know! I added a check, PTAL. |
| @rem if the release branch has that commit. | ||
| @rem TODO(laszlocsomor): remove this version check and build the .msi unconditionally after | ||
| @rem Bazel 0.29 (the first version whose release branch will have 874fe75428) is released. | ||
| git merge-base --is-ancestor 874fe754282651bdf006c06147842cbb226c6ae9 HEAD 2>nul |
There was a problem hiding this comment.
Wow. This is a way nicer check than I expected, I didn't know about "--is-ancestor" - I'll use that myself in the future to implement version-dependent behavior :)
|
@laszlocsomor I'll merge this into the testing branch, then will try to build a release there and if it works, I'll merge it into master! |
|
Thank you Philipp! |
|
@laszlocsomor This seems to fail, unfortunately Windows doesn't print any error :( If you know how to enable better output logging for batch files (something like "set -x" in Bash?), we can add it to the script. Otherwise: "Exit code 1 - that's all we know". |
|
@philwo : |
|
That would be great! Thanks! |
Context: bazelbuild#745 (comment) Fix that culprit and undo this commit.
This is failing in release 0.29.0. Fixes #784. Needs to be addressed in bazelbuild/bazel#8813. Revert "Windows, release pipeline: build .msi package (#745) (#782)" This reverts commit c2bc203.
Call the .msi building script in the release
pipeline.
The resulting .msi is unsigned.
See bazelbuild/bazel#8813