Azure / Azure/azure-cli

{Test} Some long-running tests are agonizingly slow

Open
#14,228 1 comment 0 reactions 1 assignee Claimed by @Juliehzl View on GitHub
feature-request Test Framework
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:

![image](https://user-images.githubusercontent.com/4003950/86564252-7c537580-bf98-11ea-8876-9faab2b15a2b.png)

[`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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.