This repository was archived by the owner on Oct 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Better catch the error when pip install #233
Merged
liyanhui1228
merged 12 commits into
GoogleCloudPlatform:master
from
liyanhui1228:install_error
Jan 30, 2019
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
70c8404
Better catch the error when pip install
liyanhui1228 41249c5
fix test
liyanhui1228 9aaf9c6
turn on raise_on_failure
liyanhui1228 8ef271e
fix
liyanhui1228 47cb0bd
Check for returncode 137
liyanhui1228 598c25c
fix
liyanhui1228 e2f5442
fix
liyanhui1228 18d7570
fix test
liyanhui1228 d71e513
fix lint
liyanhui1228 a122504
fix
liyanhui1228 74df635
fix lint
liyanhui1228 c59acc6
fix
liyanhui1228 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -306,7 +306,7 @@ def get_result(self, | |
| 'self': False, | ||
| } | ||
| ) | ||
| if status_type is 'self-success': | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice catch! |
||
| if status_type == 'self-success': | ||
| status_type = 'pairwise-success' | ||
|
|
||
| result = { | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This wasn't mocking the docker container timeout behavior correctly before, which should actually return a 137 code instead of raising a
docker.errors.APIError. Changing this to match the behavior and the test in line 123 is for testing the timeout error.