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

3169 Коммитов

Автор SHA1 Сообщение Дата
WenyiQ 33d599a28e ignore webs generated by sphinx 2021-07-12 19:17:43 -07:00
WenyiQ d58b59e118 sphinx quickstart 2021-07-12 19:17:43 -07:00
WenyiQ a8b8e9f4e4 update links in rtd format 2021-07-12 19:17:43 -07:00
WenyiQ 0523bd8faa convert md files to rst files 2021-07-12 19:17:43 -07:00
Gustavo Lima Chaves 4bebeb17d5 Cosmetic log enhancements
Align one table entry better and change a log entry.
2021-07-09 17:00:45 -07:00
Gustavo Lima Chaves 08065dcbac ⬆️ Poetry update 2021-07-09 17:00:45 -07:00
Gustavo Lima Chaves 19d7f0db86 🚚 Rename runbook's 'parent' to be 'include', instead
This is so much more familiar and tells exactly what is happening there.

PS. Do we want to make the 'strategy' field work, anytime soon?
2021-07-09 17:00:45 -07:00
Chi Song 8ed2f05dc9 Transformer: add explanation when it's executed. 2021-07-09 09:32:09 -07:00
Chi Song 6e5b773db7 Azure: add deploy and delete transformers
They are used to deploy a VM for other transformers like export VHD,
build kernel and so on.
2021-07-09 09:32:09 -07:00
Chi Song 13bb4e1b14 small log and comments improvement. 2021-07-09 09:32:09 -07:00
Chi Song ec297e8fbd VHD transformer accept parameters of platform
It makes the configuration of VHD transformer is simpler.
2021-07-09 09:32:09 -07:00
Chi Song b8d63f5ed2 VHD Transformer can skip restore step
If the VM will be deleted in next step, it doesn't need to be restored.
2021-07-09 09:32:09 -07:00
Chi Song a9d40258d4 Fix storage should be created in shared resource 2021-07-09 09:32:09 -07:00
Chi Song 299a59d345 Platform: support load from runbook builder 2021-07-09 09:32:09 -07:00
Chi Song 5e3937b599 Tranformer: add enabled field to control flow.
With the enabled field, some transfromers can be disabled by variables.
It can be used to control flow for different scenarios.
2021-07-09 09:32:09 -07:00
Chi Song a5db0eb492 Azure: Implement vhd transformer
With the VHD transformer, An Azure VM can be exported to a VHD. The VHD
can be deployed in test cases.
2021-07-07 16:51:54 -07:00
Chi Song e1ebdfc38c Azure upgrade compute sdk 2021-07-07 16:51:54 -07:00
Chi Song 60ef359b84 Azure fix StartStop broken 2021-07-07 16:51:54 -07:00
Chi Song 5c0a8464a4 Azure: improve common methods
1. add api_version support to get_compute_client, because StartStop
   needs speical api version.
2. Support generate storage account names for different purpose.
3. fix a incorrect type.
2021-07-07 16:51:54 -07:00
Chi Song 6353349e9f improve logs 2021-07-07 16:51:54 -07:00
Chi Song 025792a205 move default username to constant 2021-07-07 16:51:54 -07:00
Chi Song 4eb47498b2 waagent supports deprovision.
The deprovision is used to generate VHD from VM.
2021-07-07 16:51:54 -07:00
Chi Song 448d81a42b util: generate date str for path 2021-07-07 16:51:54 -07:00
Divyansh fe17dc97ca
Create Azure shared resource group if not present (#1392)
Co-authored-by: Divyansh <divyan@microsoft.com>
2021-07-07 10:28:10 -07:00
LiliDeng 10758c05f8
Part2 - Migrate NVMe test cases. (#1369)
* Part2 - Migrate NVMe test cases.

* Implement assertion for cmd result.

This pattern is used by many test cases, implement the shared logic.

Add message for assert exit code method.

Co-authored-by: Chi Song <chisong@example.com>
2021-07-07 14:11:34 +08:00
Wenyi Qian abdc1fadf2
fix links and inline literals in links (#1391) 2021-07-06 10:32:45 +08:00
Wenyi Qian 50d049ed9e
Docs restructuring for test case developers (#1390)
* finish up docs for test developers
2021-07-05 12:43:22 +08:00
Chi Song cffaf78002 html notifier: fix error in Windows 11
With unknown reason, if enable capture in pytest, there is a
"the handler is invalid" error. Disable the "capture" can workaround it.
Enable capture on the html report back, so it can output information.
2021-07-01 13:30:06 -07:00
Chi Song 217f2a014a Transformer: init document 2021-07-01 13:30:06 -07:00
Chi Song 525812621b integrate transformer into runner
Transformer is called before combinator, it can provide variables to
combinator and other parts.
2021-07-01 13:30:06 -07:00
Chi Song 7a7b1d9f23 Implement ToListTransformer
It can convert a string to a list, which is used by the Combinator.
2021-07-01 13:30:06 -07:00
Chi Song fe866a0698 add UT for transformer 2021-07-01 13:30:06 -07:00
Chi Song 44c055d620 Implement Transformer
A transformer generates a couple of variables. User can define a couple
of transformers to prepare test data sequentially. For example, the
first transformer can install kernel package to an existing environment,
and then the second transformer generate a testable VHD. Well defined
transformers can be organized with different sequence. For example, the
second transformer, which is in previous example, can be used to copy a
image from kernel built too.

The subclasses of Transformer must implement two method,
1. _internal_run. It implements the actual logic of a transformer.
2. output_names. It tells which variables will be generated. It's used
   to validate variables before the real run. It lets failure happenning
   early.
2021-07-01 13:30:06 -07:00
Chi Song f4dd5162f0 Runbook: add derive to use new variables 2021-07-01 13:30:06 -07:00
Chi Song d87e010261 runbook: support partial resolve.
To suport Transformer, the variables need to be delay parsed. Refactor
the code to resolve part of runbook, when it's used. Delay parse the
whole runbook for logging and runner too.
2021-07-01 13:30:06 -07:00
Chi Song b9be3117e4 lisa runner: fix cases are assigned multiple times 2021-07-01 13:30:06 -07:00
Chi Song a84d74c918 legacy improve open log reliability 2021-07-01 13:30:06 -07:00
Chi Song bad5cbd56b fix bug test requirement is overridden by platform
When platform defined the requirement, it should only take defined
items, and apply to test requirement. This fix change the
platform.requirement to be a dict, and merge with test requirement in
runner.
2021-07-01 13:30:06 -07:00
Chi Song cc24403e7a Azure: make all vm_sizes testable
The order decides which is preferred, but all vm_size should be included
to make them testable.
2021-07-01 13:30:06 -07:00
Chi Song f3bb1e6e14 Add help method to deep update dict 2021-07-01 13:30:06 -07:00
Chi Song 6ff3f774af improve log messages. 2021-07-01 13:30:06 -07:00
Chi Song 3c77d33dd7 Tool: remove abstract decorator for virtual tool
Virtual tools may not need to implement the command method. The abstract
class requires the abstract method. Removing abstract class to get it
optional.
2021-07-01 13:30:06 -07:00
Chi Song e9a1c45f74 lisarunner: fix bug close fails if env not prepared. 2021-07-01 13:30:06 -07:00
Chi Song 9ab635f1a9 support vhd in azure runbook 2021-07-01 13:30:06 -07:00
Chi Song 1e0b1863a4 remove artifact schema
As the new design, the Transformer is more powerful and cover all
features of Artifact.
2021-07-01 13:30:06 -07:00
lubaihua33 cb46dd4912 Just check Fedora in _get_os_version of Fedora class 2021-07-01 14:21:05 +08:00
lubaihua33 1efafa5aad Add ID_LIKE support in LISAv3 2021-07-01 14:21:05 +08:00
lubaihua33 08b89131d3 Add support for almalinux 2021-07-01 14:21:05 +08:00
Ali Muhammad 611a766e73
Replaced built functions with literal syntax. (#1384)
replaced dict builtin with literal
2021-06-29 12:24:02 -07:00
Lili Deng ec2d7a3302 Update for timesync_check_unbind_clocksource to count tsc/constant_tsc shown up times. 2021-06-24 14:46:46 -07:00