Граф коммитов

67 Коммитов

Автор SHA1 Сообщение Дата
Chi Song 4f9e1a4e57 Runner: remove returned results
With new design, it doesn't need to return test results. So remove it
from all runners. It makes the code logic simpler also.
2021-10-12 15:03:03 -07:00
Chi Song a25dac5870 Azure: share resource cross platform instance
In combinator scenarios, there are multiple platform instances. Some
resource can be shared among platforms. So, move them to class leve
 variables.
2021-10-12 15:03:03 -07:00
Divyansh 2f89c22404 Improve multithreading for root runner
Remove constraint to allow only max concurrency runner in the remaining_runner queue which results in
 under-utilization of free workers.
2021-09-29 20:10:34 -07:00
LiliDeng 0f77791b8f
Add cases nvme_sriov_rescind_validation and nvme_max_disk_validation. (#1523)
* Rename metadata into field_metadata and move it under util to avoid circular import.

* Add NvmeSettings used to specify nvme disk count.

* Refine PciDevice class for disable and enable PCI devices.

* Add case nvme_max_disk_validation and nvme_sriov_rescind_validation.

* Update import using an easier way.
2021-09-12 15:42:50 +08:00
Divyansh b104458bc5 Add network interface feature settings 2021-09-03 16:36:59 -07:00
Chi Song a29bd1b34d Disk: rename PremiumLRS to PremiumSSDLRS 2021-08-25 22:39:10 -07:00
Chi Song 24dd0e4040 Disk: add test cases 2021-08-25 22:39:10 -07:00
Chi Song f9b25f8006 NodeSpace: move disk fields to DiskSettings. 2021-08-25 22:39:10 -07:00
Chi Song ee2ecd3265 Disk Feature: Add DiskOptionSettings
1. The DiskOptionSettings is used to support disk_type as a set space.
2. Move Disk feature to a member of node space, because it's not an
   optional capability for all platforms.
2021-08-25 22:39:10 -07:00
Chi Song 4b219b5070 env: remove useless setting.
The concurrency is implemented in runbook level, not env level. Remove
the useless one.
2021-08-25 22:39:10 -07:00
Chi Song 72f9a87947 runner: fix case skipped by lack of environment
The original design is to plan needed environments for test cases. It
doesn't create the environment candidate, if it looks not necessary. But
as practice, it means to plan it twice. One is to merge equaled
environments, the second is in the real run. It's hard to have
consistent algorithm. So remove the calculation on merging. Each test
result has a candidate, the extra environment won't be deployed.
2021-08-25 22:39:10 -07:00
Chi Song bd133486bb schema: refactoring to provide serializing method
The original way is one line, but not straightforward, and need type
ignore annotation. With the methods, the readability is improved.
2021-08-25 22:39:10 -07:00
Chi Song d9c6f7aa73 Test Case: dump exception type 2021-08-25 22:39:10 -07:00
Chi Song c2d3849ff3 Azure: force to deploy on not found vm size
Some vm size cannot be listed by API, because it's preview. Before this
change, the tests will skip because no vm size. With this change, this
kind of vm_size can run test case, and Azure will raise exception, if
it cannot find the vm size.
2021-08-24 22:33:50 -07:00
LiliDeng 595d742d35
Support deployment with attaching disks (#1457)
* Rename disk_count into data_disk_count and set default value as 0.

* Add min_data_disk_count into test requirement and node schema.

* Add data_disk_caching_type.

* Add data_disk_iops.

* Update template for attaching data disks during provision.

* Split node_requirement from simple_requirement.

* Update UT for simple_requirement.
2021-08-18 12:34:44 +08:00
Chi Song b68f810127 runner: fix some envs deleted too early
In some complex combination of test cases, which needs new_env and early
deployment phase, they may be put into the same environments, but
returned later. The extra environments will be deleted in the period,
so the test results cannot be run. With this change, the not deployed
environments won't be deleted until the whole runner completed.
2021-08-11 10:58:48 -07:00
Chi Song a66cce8f4f unittest move to selftests folder 2021-08-06 14:38:24 -07:00