-
Notifications
You must be signed in to change notification settings - Fork 3.6k
ENG-1524: Change retry mechansim default in LightningClient #15412
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
Merged
Merged
Changes from 12 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
c93c07e
Change retry mechansim default in LightningClient
awaelchli cb2b637
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] dd47149
add changelog
awaelchli 30d5c1f
fix weird patching mechanism
awaelchli 48abe6a
debug
awaelchli dac9da4
remove unused import
awaelchli ae1d564
debug
awaelchli 8a661e9
debug
awaelchli d89c1f4
debug
awaelchli 36ee4ec
fix string
awaelchli 0c48d4b
Merge branch 'master' into bugfix/disable-retry-for-cli
Borda b27b038
Merge branch 'master' into bugfix/disable-retry-for-cli
Borda 6aebd74
Merge branch 'master' into bugfix/disable-retry-for-cli
awaelchli f26ce75
hack the system
awaelchli 8d564ec
Merge branch 'master' into bugfix/disable-retry-for-cli
awaelchli 01e1661
hack
awaelchli 8d4d813
debug
awaelchli d983000
debug
awaelchli 084480e
debug
awaelchli 3157746
debug
awaelchli 9723a60
testing
Borda 7bc614b
Merge branch 'master' into bugfix/disable-retry-for-cli
awaelchli 33540f7
try again, maybe something has changed in the package
awaelchli 30fd9dd
Merge branch 'master' into bugfix/disable-retry-for-cli
awaelchli 30ef12e
Update CHANGELOG.md
Borda 21d79b1
Merge branch 'master' into bugfix/disable-retry-for-cli
Borda 97af082
typo
Borda 4b146c6
Merge branch 'master' into bugfix/disable-retry-for-cli
awaelchli e5f1d45
debug
awaelchli 49e7e7e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 111fea7
be creative
awaelchli 0f89385
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 2ba3e65
Merge branch 'master' into bugfix/disable-retry-for-cli
awaelchli 6675867
unused import
awaelchli 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
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 |
---|---|---|
@@ -1,5 +1,17 @@ | ||
from lightning_app.utilities.network import find_free_network_port | ||
from unittest.mock import patch | ||
|
||
from lightning_app.utilities.network import find_free_network_port, LightningClient | ||
|
||
|
||
def test_port(): | ||
assert find_free_network_port() | ||
|
||
|
||
def test_lightning_client_retry_enabled(): | ||
with patch("lightning_app.utilities.network._retry_wrapper") as wrapper: | ||
LightningClient() # default: retry=False | ||
wrapper.assert_not_called() | ||
|
||
with patch("lightning_app.utilities.network._retry_wrapper") as wrapper: | ||
LightningClient(retry=True) | ||
wrapper.assert_called() |
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.
Uh oh!
There was an error while loading. Please reload this page.