Azure / azure-iot-cli-extension

Azure IoT extension for Azure CLI
Other
83 stars 65 forks source link

Parallelize DPS tests #544

Closed vilit1 closed 2 years ago

vilit1 commented 2 years ago

Somehow parallelize DPS tests - so that each thread gets a file.

The enrollment (and group) tests no longer erase the previous enrollments. Instead, they focus on if the added enrollment is there (regardless of whatever was added before it). Hubs generated by dps tests are no longer tagged - instead the dps now has the tag to say which hub it is (or at least was) associated with. Doing pipeline runs with iot hub to make sure we are not hitting any limit (hub or dps max num limit) some refactoring of certificate tests for parallization small change to wording of an error

The tests use a single hub:

First success: https://dev.azure.com/azureiotdevxp/aziotcli/_build/results?buildId=6015&view=results

current run: https://dev.azure.com/azureiotdevxp/aziotcli/_build/results?buildId=6053&view=results


This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Thank you for contributing to the IoT extension!

This checklist is used to make sure that common guidelines for a pull request are followed.

General Guidelines

Intent for Production

Basic expectations

Azure IoT CLI maintainers reserve the right to enforce any of the outlined expectations.

A PR is considered ready for review when all basic expectations have been met (or do not apply).

vilit1 commented 2 years ago

https://dev.azure.com/azureiotdevxp/aziotcli/_build/results?buildId=6066&view=results

vilit1 commented 2 years ago

newest run: https://dev.azure.com/azureiotdevxp/aziotcli/_build/results?buildId=6071&view=results

hub is not defined for dps tests

vilit1 commented 2 years ago

most recent run https://dev.azure.com/azureiotdevxp/aziotcli/_build/results?buildId=6098&view=results

digimaun commented 2 years ago

Have we tested against the nightly pipeline (which includes Windows MSI) as well?

vilit1 commented 2 years ago

Have we tested against the nightly pipeline (which includes Windows MSI) as well?

https://dev.azure.com/azureiotdevxp/aziotcli/_build/results?buildId=6103&view=results

vilit1 commented 2 years ago

run with an exception (as in this should fail) https://dev.azure.com/azureiotdevxp/aziotcli/_build/results?buildId=6105&view=results

vilit1 commented 2 years ago

https://dev.azure.com/azureiotdevxp/aziotcli/_build/results?buildId=6115&view=logs&j=3ae2c7c4-5ec4-555e-d2bf-ad8987168812&t=1a02f018-e3e0-530d-ac6f-9f24b5e03c14

vilit1 commented 2 years ago

with the updated if https://dev.azure.com/azureiotdevxp/aziotcli/_build/results?buildId=6127&view=results

merge https://dev.azure.com/azureiotdevxp/aziotcli/_build/results?buildId=6129&view=results