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

Fixing Windows CI build. #1143

Merged
merged 3 commits into from
Dec 1, 2018
Merged

Conversation

johnkord
Copy link
Contributor

@johnkord johnkord commented Nov 30, 2018

Right now Windows builds in CI are broken (the tests aren't getting run and powershell is erroring out, yet it believes it to be a successful build), and this PR will revert the changes that broke it.

This PR temporarily disables the oeedgr8r tests on Windows, which needs to be re-enabled ASAP.

@johnkord johnkord added the ci/cd Issue is related to the code integration/deployment pipeline label Nov 30, 2018
@johnkord johnkord self-assigned this Nov 30, 2018
@johnkord
Copy link
Contributor Author

johnkord commented Nov 30, 2018

Take a look at the build output here for the powershell script for the Windows stage: https://oe-jenkins.eastus.cloudapp.azure.com/blue/organizations/jenkins/Bors/detail/staging/289/pipeline/32

@johnkord johnkord force-pushed the johnkord-revert_windows_powershell_CI branch 2 times, most recently from 9c61a26 to 047fff9 Compare November 30, 2018 18:58
@johnkord
Copy link
Contributor Author

bors try

oe-bors bot pushed a commit that referenced this pull request Nov 30, 2018
@johnkord
Copy link
Contributor Author

johnkord commented Nov 30, 2018

(The following comment is no longer valid to the current changes in this PR, but I'm leaving it around for historical purpsoses): Note that the extra commit here (deleting the "linuxbin" directory) is to get CI to pass on Windows. The Jenkins agent on Windows is not cleaning the Jenkins workspace before or after the build properly, even though it is configured to do so. That seems like a bug with the Jenkins agent. To remedy this, we now force remove the "linuxbin" directory before the build to make sure that it is wiped away.

Copy link
Contributor

@CodeMonkeyLeet CodeMonkeyLeet left a comment

Choose a reason for hiding this comment

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

Thanks for jumping on this, LGTM pending the bors run.

@oe-bors
Copy link

oe-bors bot commented Nov 30, 2018

try

Build failed

@andyleejordan
Copy link
Member

Oh yeah, PowerShell doesn't usually report the exit code of native processes back to the process which spawned PowerShell. This bites everyone.

@andyleejordan
Copy link
Member

You can do it in PowerShell, you just have to wrap the execution of the native binaries and instruct PowerShell to throw when they fail. Here's how we do it in PowerShell's own build script.

Copy link
Member

@andyleejordan andyleejordan left a comment

Choose a reason for hiding this comment

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

But I still think using bat in this way is simpler 😄

@johnkord johnkord force-pushed the johnkord-revert_windows_powershell_CI branch from 047fff9 to 08ba23d Compare November 30, 2018 23:02
@johnkord
Copy link
Contributor Author

bors try

oe-bors bot pushed a commit that referenced this pull request Nov 30, 2018
@oe-bors
Copy link

oe-bors bot commented Nov 30, 2018

try

Build failed

John Kordich added 2 commits November 30, 2018 16:31
Something is broken regarding the scripted Jenkinsfile and how it
handles updates to the git repository and cleaning the workspace. On our
Windows CI, very odd behavior has been seen.
These flags have been temporarily removed because Windows doesn't
recognize them and our Windows CI has been broken for the last few days
and ignoring builds that would otherwise fail.
@johnkord johnkord force-pushed the johnkord-revert_windows_powershell_CI branch from 08ba23d to e36ff75 Compare December 1, 2018 02:32
@johnkord
Copy link
Contributor Author

johnkord commented Dec 1, 2018

bors try

oe-bors bot pushed a commit that referenced this pull request Dec 1, 2018
@oe-bors
Copy link

oe-bors bot commented Dec 1, 2018

try

Build failed

@johnkord
Copy link
Contributor Author

johnkord commented Dec 1, 2018

bors try

oe-bors bot pushed a commit that referenced this pull request Dec 1, 2018
@oe-bors
Copy link

oe-bors bot commented Dec 1, 2018

try

Build failed

@johnkord johnkord changed the title Revert "Added support for test-build-config.ps1 in Jenkinsfile." Fixing Windows CI build. Dec 1, 2018
@johnkord johnkord force-pushed the johnkord-revert_windows_powershell_CI branch from e36ff75 to 42ef11e Compare December 1, 2018 05:06
@johnkord
Copy link
Contributor Author

johnkord commented Dec 1, 2018

bors try

oe-bors bot pushed a commit that referenced this pull request Dec 1, 2018
@oe-bors
Copy link

oe-bors bot commented Dec 1, 2018

try

Build succeeded

@johnkord
Copy link
Contributor Author

johnkord commented Dec 1, 2018

bors r+

oe-bors bot pushed a commit that referenced this pull request Dec 1, 2018
1143: Fixing Windows CI build. r=johnkord a=johnkord

Right now Windows builds in CI are broken (the tests aren't getting run and powershell is erroring out, yet it believes it to be a successful build), and this PR will revert the changes that broke it.

This PR temporarily disables the oeedgr8r tests on Windows, which needs to be re-enabled ASAP.

Co-authored-by: John Kordich <johnkord@microsoft.com>
Co-authored-by: Anita Govindarajan <v-angovi@microsoft.com>
@oe-bors
Copy link

oe-bors bot commented Dec 1, 2018

Build failed

@johnkord
Copy link
Contributor Author

johnkord commented Dec 1, 2018

bors r+

oe-bors bot pushed a commit that referenced this pull request Dec 1, 2018
1143: Fixing Windows CI build. r=johnkord a=johnkord

Right now Windows builds in CI are broken (the tests aren't getting run and powershell is erroring out, yet it believes it to be a successful build), and this PR will revert the changes that broke it.

This PR temporarily disables the oeedgr8r tests on Windows, which needs to be re-enabled ASAP.

Co-authored-by: John Kordich <johnkord@microsoft.com>
Co-authored-by: Anita Govindarajan <v-angovi@microsoft.com>
@oe-bors
Copy link

oe-bors bot commented Dec 1, 2018

Build failed

@johnkord
Copy link
Contributor Author

johnkord commented Dec 1, 2018

bors r+

oe-bors bot pushed a commit that referenced this pull request Dec 1, 2018
1143: Fixing Windows CI build. r=johnkord a=johnkord

Right now Windows builds in CI are broken (the tests aren't getting run and powershell is erroring out, yet it believes it to be a successful build), and this PR will revert the changes that broke it.

This PR temporarily disables the oeedgr8r tests on Windows, which needs to be re-enabled ASAP.

Co-authored-by: John Kordich <johnkord@microsoft.com>
Co-authored-by: Anita Govindarajan <v-angovi@microsoft.com>
@oe-bors
Copy link

oe-bors bot commented Dec 1, 2018

Build succeeded

@oe-bors oe-bors bot merged commit 42ef11e into master Dec 1, 2018
@oe-bors oe-bors bot deleted the johnkord-revert_windows_powershell_CI branch December 1, 2018 06:10
@johnkord
Copy link
Contributor Author

johnkord commented Dec 1, 2018

Woo hoo! :)

@anitagov
Copy link
Contributor

anitagov commented Dec 1, 2018

Great job John. Windows CI giving a False PASS wasn't good.

oprinmarius pushed a commit to oprinmarius/openenclave that referenced this pull request Dec 3, 2018
1143: Fixing Windows CI build. r=johnkord a=johnkord

Right now Windows builds in CI are broken (the tests aren't getting run and powershell is erroring out, yet it believes it to be a successful build), and this PR will revert the changes that broke it.

This PR temporarily disables the oeedgr8r tests on Windows, which needs to be re-enabled ASAP.

Co-authored-by: John Kordich <johnkord@microsoft.com>
Co-authored-by: Anita Govindarajan <v-angovi@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/cd Issue is related to the code integration/deployment pipeline
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants