]> git.apps.os.sepia.ceph.com Git - teuthology.git/log
teuthology.git
3 years agoorch/run: Add unnittest_xml parameter wip-vallariag-improve-log
Vallari Agrawal [Mon, 26 Sep 2022 10:49:38 +0000 (16:19 +0530)]
orch/run: Add unnittest_xml parameter

Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
3 years agoorch/run: trim log files & other minor fixes 1768/head
Vallari Agrawal [Sat, 25 Jun 2022 14:16:46 +0000 (19:46 +0530)]
orch/run: trim log files & other minor fixes

- use `with` in file-handling
- make ERROR_PATTERNS class static var
- use try-except for ErrorScanner call
- rename flag to `_flag`

Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
3 years agoorch/run: add pytest for ErrorScanner
Vallari Agrawal [Thu, 23 Jun 2022 22:06:19 +0000 (03:36 +0530)]
orch/run: add pytest for ErrorScanner

Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
3 years agoorch/run: add entire gtest logs
Vallari Agrawal [Thu, 23 Jun 2022 22:01:50 +0000 (03:31 +0530)]
orch/run: add entire gtest logs

run: https://pulpito.ceph.com/vallariag-2022-06-22_16:34:18-rbd:basic-gtest-vallariag-test-distro-default-smithi/

Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
3 years agoorch/run: set mutable default arguments as None
Vallari Agrawal [Mon, 20 Jun 2022 18:33:11 +0000 (00:03 +0530)]
orch/run: set mutable default arguments as None

Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
3 years agoorch/run: add entire nose log file for unit-testing
Vallari Agrawal [Mon, 20 Jun 2022 17:20:01 +0000 (22:50 +0530)]
orch/run: add entire nose log file for unit-testing

Test run - https://pulpito.ceph.com/vallariag-2022-06-20_13:16:35-smoke-quincy-release-distro-default-smithi/

Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
3 years agoorch/run: use re.compile and add is_prev_detected_error check
Vallari Agrawal [Mon, 20 Jun 2022 13:10:35 +0000 (18:40 +0530)]
orch/run: use re.compile and add is_prev_detected_error check

Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
3 years agoorch/run: seek to EOF after each scan
Vallari Agrawal [Mon, 20 Jun 2022 09:23:15 +0000 (14:53 +0530)]
orch/run: seek to EOF after each scan

Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
3 years agoorch/run: Read logs line by line
Vallari Agrawal [Thu, 16 Jun 2022 11:17:33 +0000 (16:47 +0530)]
orch/run: Read logs line by line

And include test name in UnitTestError

Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
3 years agoorch/run: Scan teuthology log files for unit test errors
Vallari Agrawal [Sun, 12 Jun 2022 20:50:50 +0000 (02:20 +0530)]
orch/run: Scan teuthology log files for unit test errors

- Scan teuthology log files from bottom up
- Keep a flag to keep track of line-number till which logs were last scanned
  Do not scan above this flag index.
- Raise UnitTestError with error message found in log files

Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>