{Test} Some long-running tests are agonizingly slow
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
Some long-running tests like [`test_storage_account_with_routing_preference`](https://github.com/Azure/azure-cli/blob/a9fe6167381b53dac19a3007f726adf27b64f28b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_account_scenarios.py#L300) are agonizingly slow, thus slowing down the whole CI pipeline:

[`test_storage_account_with_routing_preference.yaml`](https://github.com/Azure/azure-cli/blob/a9fe6167381b53dac19a3007f726adf27b64f28b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_account_with_routing_preference.yaml) contains 62691 lines! Most of the requests (2754 requests) are for `asyncoperations` like `https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/44e93cfe-099a-4aa7-b7a2-78ef221e8855?monitor=true&api-version=2019-06-01`.
**Describe the solution you'd like**
- Make such tests live-only
- Develop a mechanism to remove duplicated polling transactions
Contributor guide
Assessment
This issue has not been assessed yet.