5 Commits

Author SHA1 Message Date
Sergio Cazzolato
9134ef8daa tests: re-organize the perf test suite (#13672)
* tests:new perf test to install many snaps with --no-wait and check changes

Install different snaps many times based on arch availability. In this
scenario all the snaps are installed in parallel and the test checks
the system can handel all the installs and remains active.

* performance tests reorganization

To avoid executing perf tests when the nested tests are executed, the
tests have been moved under tests/perf

tests/perf/main -> suite with the tests executed in the target device
tests/perf/nested -> suite with the tests executed in a nested
environment

* Update tests/perf/nested/install-many-snaps-no-wait/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

* Update tests/perf/nested/install-many-snaps-no-wait/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

* Update tests/perf/main/install-many-snaps-no-wait/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

* improve logs check and fixes based on review comments

* addressing review comments

---------

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>
2024-04-03 10:01:18 -03:00
Sergio Cazzolato
32c0489d28 tests: new perf test install-many-snaps (#13478)
* new test isntall many snaps

this test installs as many snaps as desired and then checks the snapd
status and main functions

* fix shellcheck about quotes

* check if ssh is ready in nested tests before the checks in serial log

This will save time and also prevent race issues
2024-03-06 18:26:46 +02:00
Sergio Cazzolato
633c9b6b28 tests: update the snap used to install in parallel-installs perf test (#13460)
* update the snap used to install in parallel-installs perf test

this is because gh is not available for arm64 devices

* update the kill timeout for perf tests

We need this because the slow decives need more time to run perf tests
2024-01-10 22:17:16 +02:00
Sergio Cazzolato
7baa3cac6f tests: use load generator to generate load in perf tests (#13417)
* tests: use load generator to generate load in perf tests

Also it is included a new test to check snap connections for snap
provided interfaces and another to check many installations in parallel.

* fix shellchecks

* fix misspelling

* update parallel install numbers

* Target the perf tests for ubuntu core >=18
2024-01-03 05:31:01 +02:00
Sergio Cazzolato
51521365b6 tests: add new performance and load test suite (#13371)
* tests: add new performance and load test suite

This is the initial change to support performance tests.

These new tests have to be able to run either in nested vms and in
external devices.
The idea is to run nightly and on demand on nested vms and also as part
of regular runs on specific devices.

The initial test is about connecting and disconnecting interfaces,
covering a specific percentage of those and also test how the system
behaves when all are connected together.

* fix shellcheck

* fix minimal-smoke test

* add details to minimal-smoke test

* use ubuntu-image snap in xenial
2023-12-06 20:06:50 +02:00