Skip to content

Conversation

lidizheng
Copy link
Contributor

@lidizheng lidizheng commented Sep 15, 2020

https://source.cloud.google.com/results/invocations/3e1420d1-16a3-4c33-94e1-b905b02ef08e/targets/github%2Fgrpc/tests;group=tasks;test=build_artifact.python_windows_x86_Python38_32bit;row=1

TIL that Batch scripts don't have an exit-on-error option. It's pretty manual to add explicit return statement when error occurred. The older version of powershell returns 0 even if the script is terminated with an error, so there need to a mechanism to intercept the error and change the return code to 1.

Also, the PR enables Python 3.8 install script to retry when download failed. Retry might be a bit complex to put into the CI script with the while, try catch, error checking logic. The most native MaximumRetryCount option can't be used because Kokoro VM's powershell is not new enough.

CC @jtattermusch

@lidizheng lidizheng added lang/Python platform/Windows release notes: no Indicates if PR should not be in release notes labels Sep 15, 2020
@lidizheng lidizheng changed the title Improve Win Python CI script with fail fast and retry Improve Win CI script with better exception chaining Sep 15, 2020
@lidizheng lidizheng changed the title Improve Win CI script with better exception chaining Improve Win CI script with better exception propagation Sep 15, 2020
@lidizheng lidizheng marked this pull request as ready for review September 16, 2020 17:22
Copy link
Contributor

@gnossen gnossen left a comment

Choose a reason for hiding this comment

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

Once again, Windows proves to be a pain. Thanks for looking into this!

Copy link
Contributor

@veblush veblush left a comment

Choose a reason for hiding this comment

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

Lidi, thank you for taking care of this!

@lidizheng lidizheng merged commit bbf3e3d into grpc:master Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang/Python platform/Windows release notes: no Indicates if PR should not be in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants