countdown¶
Source code: countdown.py
A count down monitor for better user interface in run-in tests.
Description¶
Count down and display system load. This is helpful for run-in phase to run multiple stress tests (for example, CPU, memory, disk, GPU, … etc) in background so operator can see how long the run-in has been executed, and a quick overview of system status. It also alarms if there’s any abnormal status (for example overheat) detected during run-in.
Test Procedure¶
This test is designed to run in parallel with other background tests. No user interaction is needed but if there were abnormal events operator should collect debug logs for fault analysis.
Dependency¶
Thermal in Device API (cros.factory.device.thermal) for system thermal sensor readings.
Examples¶
To run a set of tests for 120 seconds in parallel with countdown showing progress, add this in test list:
{
"pytest_name": "countdown",
"args": {
"duration_secs": 120
}
}
To run 8 hours and alert if main sensor (CPU) reaches 60 Celcius and fail when exceeding 65 Celcius:
{
"pytest_name": "countdown",
"args": {
"duration_secs": 28800,
"temp_criteria": [
["CPU", null, 60, 65]
]
}
}
Test Arguments¶
Name |
Type |
Description |
---|---|---|
duration_secs |
int |
Duration of time to countdown. |
log_interval |
int |
(optional; default: |
ui_update_interval |
int |
(optional; default: |
wifi_update_interval |
int |
(optional; default: |
bluetooth_update_interval |
int |
(optional; default: |
als_update_interval |
int |
(optional; default: |
grace_secs |
int |
(optional; default: |
temp_max_delta |
int, None |
(optional; default: |
temp_criteria |
list |
(optional; default: |
relative_temp_criteria |
list |
(optional; default: |
fan_min_expected_rpm |
int, None |
(optional; default: |
allow_invalid_temp |
bool |
(optional; default: |
cpu_min_expected_freq |
int, None |
(optional; default: |
cpu_max_expected_freq |
int, None |
(optional; default: |
show_warn_on_display |
bool |
(optional; default: |
terminate_on_critical_temp |
bool |
(optional; default: |