-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[ServiceBus] Improve test stability and cpu usage #20352
[ServiceBus] Improve test stability and cpu usage #20352
Conversation
/azp run python - servicebus - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
@@ -1595,8 +1595,8 @@ def callback_mock(renewable, error): | |||
auto_lock_renew = AutoLockRenewer() | |||
auto_lock_renew._renew_period = 1 | |||
with auto_lock_renew: # Check that in normal operation it does not get called | |||
auto_lock_renew.register(receiver, renewable=MockReceivedMessage(), on_lock_renew_failure=callback_mock) | |||
time.sleep(3) | |||
auto_lock_renew.register(receiver, renewable=MockReceivedMessage(lock_duration=5), on_lock_renew_failure=callback_mock) |
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.
in this test case, 2 seconds would result in random failure on windows, so increasing the time a bit to let AutoLockRenewer to have enough time for renewing work.
also, the minimum allowed lock duration by the service is 5 seconds
/azp run python - servicebus - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
/check-enforcer reset |
/check-enforcer evaluate |
/azp run python - servicebus - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
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.
lgtm!
…t/azure-sdk-for-python into switch_to_protocol * 'remove_iter_text_lines' of https://github.com/iscai-msft/azure-sdk-for-python: update tests remove iter_text and iter_lines [ServiceBus] Improve test stability and cpu usage (Azure#20352) t2-Netapp-update-to-2021-06-01 (Azure#20453) [AutoRelease] t2-keyvault-2021-08-26-55443 (Azure#20423) Sync eng/common directory with azure-sdk-tools for PR 1943 (Azure#20450) New dummy password in README (Azure#20328)
…into header_tuples * 'main' of https://github.com/Azure/azure-sdk-for-python: (21 commits) [Key Vault] Add 7.3-preview support for certificates (#20477) Use dummy values and correct code rendering in README (#20322) Use CredScan-suppressed dummy password in sample (#20468) Fix type annotation in azure.storage.blob (#20084) Adding static checks (#20457) release_iseus_status_auto_reply (#20441) Clarify LogsQueryClient query parameter description (#20467) Sync eng/common directory with azure-sdk-tools for PR 1953 (#20466) Skip eng common workflow enforcer for private repos (#20462) remove iter_text and iter_lines (#20460) [ServiceBus] Improve test stability and cpu usage (#20352) t2-Netapp-update-to-2021-06-01 (#20453) [AutoRelease] t2-keyvault-2021-08-26-55443 (#20423) Sync eng/common directory with azure-sdk-tools for PR 1943 (#20450) New dummy password in README (#20328) ensure test principal creation succeeds properly (#20446) Update question-answering readme links (#20439) Stip empty changelog sections before release (#20437) [AutoRelease] t2-healthcareapis-2021-08-26-27542 (#20422) [AutoRelease] t2-iothub-2021-08-25-25696 (#20409) ...
* updatet test and improve cpu usage * update changelog
addressing issue:
#20354
#20312