Skip to content

Windows, release pipeline: build .msi package - #745

Merged
philwo merged 2 commits into
bazelbuild:testingfrom
laszlocsomor:msi
Jul 11, 2019
Merged

philwo merged 2 commits into
bazelbuild:testingfrom
laszlocsomor:msi

Conversation

@laszlocsomor

Copy link
Copy Markdown
Contributor

Call the .msi building script in the release
pipeline.

The resulting .msi is unsigned.

See bazelbuild/bazel#8813

@laszlocsomor

Copy link
Copy Markdown
Contributor Author

Thank you! Can I somehow test this?

@philwo

philwo commented Jul 9, 2019

Copy link
Copy Markdown
Member

@laszlocsomor From which Bazel version on would this work?

@laszlocsomor

Copy link
Copy Markdown
Contributor Author

@laszlocsomor

Copy link
Copy Markdown
Contributor Author

@philwo , does this LGTY?

@philwo

philwo commented Jul 10, 2019

Copy link
Copy Markdown
Member

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

@laszlocsomor

Copy link
Copy Markdown
Contributor Author

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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 :)

@philwo

philwo commented Jul 10, 2019

Copy link
Copy Markdown
Member

@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!

@laszlocsomor

Copy link
Copy Markdown
Contributor Author

Thank you Philipp!

@philwo
philwo changed the base branch from master to testing July 11, 2019 11:24
@philwo
philwo merged commit 54513d5 into bazelbuild:testing Jul 11, 2019
@philwo

philwo commented Jul 11, 2019

Copy link
Copy Markdown
Member

@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".

https://buildkite.com/bazel-testing/bazel-release/builds/1#91dbee32-5fa4-46a4-ad33-ddc9e6823947

@laszlocsomor

laszlocsomor commented Jul 15, 2019 •

Copy link
Copy Markdown
Contributor Author

@philwo : set -x in cmd.exe is to enable echo (call @echo on in the script, or remove the @echo off from it), and to run cmd.exe without /Q.
Here, I'd add logging to pinpoint the command that failed. Shall I send a PR?

@philwo

philwo commented Jul 15, 2019

Copy link
Copy Markdown
Member

That would be great! Thanks!

laszlocsomor added a commit to laszlocsomor/continuous-integration that referenced this pull request Jul 15, 2019
Context: bazelbuild#745 (comment)

Fix that culprit and undo this commit.
laszlocsomor added a commit to laszlocsomor/continuous-integration that referenced this pull request Aug 1, 2019
fweikert pushed a commit that referenced this pull request Aug 2, 2019
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants