0c1c65182c
Fix HW Diags test selections for teststations
2023-07-12 12:48:31 -07:00
8f14fd2442
Fix SMART attribute tracking
...
Since we've moved to delayed SMART attribute updates we need to set
initial_attributes after we first check the SMART data instead of at
object creation time.
2023-07-08 18:07:55 -07:00
7499639c5c
Drop sat,auto detection for smartctl
...
This was needed twofold. First is that it was not working as expected
for some time. Second is that it conflicts with the delayed attribute
updating needed for faster WKClone menus.
2023-07-05 14:57:54 -07:00
d6f3455236
Misc update
2023-07-03 21:27:41 -07:00
815cfde84a
Refactor check_mprime_results() to use sets
2023-07-03 20:16:37 -07:00
9a7fdba3f9
Add warning if cooldown temp is too high vs idle
...
Addresses issue #204
2023-07-03 20:15:03 -07:00
f9a6850c1a
Split CPU & Cooling tests into separate functions
...
Addresses issue #204
2023-07-02 15:10:22 -07:00
86203a4b86
Use slots for all dataclasses
...
The minimum Python version was bumped to 3.10 so this is now safe.
2023-06-29 13:48:34 -06:00
acd484f891
Check for TRIM in HW Diagnostics and ddrescue-tui
...
Addresses issue #212
2023-06-17 20:45:44 -07:00
3e10f2cb8c
Reset layout when aborting HW diagnostics
2023-06-17 18:56:08 -07:00
c3bf5f6730
Avoid mixing types for HW Diags main menu
2023-06-17 18:30:33 -07:00
c63b388f81
Small linting refactor
2023-06-17 18:25:12 -07:00
203ad715e0
Refactor ddrescue-tui source/dest selection
...
- Re-enables taking images instead of direct cloning!
- Removed some safety checks for clearer code
- We avoid a second scan by reusing the disk_menu object
2023-06-11 15:48:58 -07:00
986c870090
Move ddrescue-tui menus to a separate file
2023-06-10 21:50:56 -07:00
4feb15182e
Rework SMART self-test sections (again)
...
- Use results from self-test log rather than self-test details
- Include more result details in more scenarios
- Only add self-test results to the report to avoid
duplicate/conflicting info
- Add check if test started but didn't finish (again?)
2023-06-10 18:59:19 -07:00
de7993c39c
Fix type hint for get_known_disk_attributes()
2023-05-29 17:47:58 -07:00
386a8b7000
Merge branch 'type-hinting' into dev
2023-05-29 16:26:16 -07:00
a5eb64a055
Add type hints to class instance variables
2023-05-29 16:25:37 -07:00
f654052f1d
Fix typo
2023-05-29 13:42:45 -07:00
12326a5e2c
Use new Union syntax
...
This bumps the minimum Python version to 3.10
2023-05-29 12:35:40 -07:00
62edaac25a
Add type hints to functions
2023-05-28 20:09:54 -07:00
534f258846
Add some type hints
2023-05-27 20:05:03 -07:00
0126452bf1
Merge branch 'ui-split' into dev
2023-05-27 19:50:49 -07:00
cb012423bb
Refactor hardware diagnostics to use new TUI
2023-05-27 19:47:26 -07:00
f19c4b2422
Update self-test data before checking result
...
Addresses #209
2023-05-22 20:59:10 -07:00
59d89575ed
Refactor SMART self-test checks
...
- Preserve TimedOut status
- Adds last self-test result to notes (if present and result is unknown)
2023-05-21 14:52:28 -07:00
ba3bf480f7
BREAKING Add wk/ui/tui.py
2023-04-09 15:59:34 -07:00
f9bcd534d4
Move ansi code into wk/ui
2023-04-08 19:20:22 -07:00
13fc64e6ab
Remove unneeded wk.ui calls
2023-04-08 14:16:41 -07:00
95d7159414
Move ANSI color escape sections to their own file
2023-04-02 20:46:54 -07:00
03a143488c
Adjust ui imports and calls
2023-04-02 20:12:18 -07:00
6efc970374
Move tmux sections into wk.ui
2023-04-01 22:36:59 -07:00
89fd647792
Split wk.std into debug, std, and ui sections
2023-04-01 22:14:03 -07:00
9f66b151af
Replace more pylint sections with ruff
2023-03-26 23:52:52 -07:00
e00920f24a
Switch to ruff linting
2023-03-19 18:47:46 -07:00
137c3ec5e5
Add label for test mode in hardware diagnostics
2022-12-11 21:44:20 -08:00
e583929498
Reduce time needed for get_disks()
2022-11-12 23:21:23 -08:00
d306a4c4e6
Improve RAM model reporting
2022-10-29 12:06:37 -07:00
166ad3198c
Add badblocks support for drives over 16TB
2022-10-23 13:31:37 -07:00
2706d1a9a5
Show failed SMART attributes during disk tests
2022-10-23 13:18:43 -07:00
25b64d6852
Limit badblocks scan to minimum in test_mode
2022-10-22 19:41:27 -07:00
3d799c2b62
Fix test mode in I/O benchmark test
2022-10-08 22:05:54 -07:00
7714b3436f
Track initial and current SMART attributes
...
Addresses issue #194
2022-10-08 19:26:20 -07:00
4465caa9fd
Skip empty devices
2022-10-08 18:45:31 -07:00
a6a774beae
Update Disk details before checking labels
2022-10-08 18:44:56 -07:00
2c9e56e830
Improve device size reporting in the description
...
i.e. support 512GB SSDs, 1.5TB HDDs, etc
Addresses issue #199
2022-10-08 16:33:50 -07:00
6880a353cc
Set known_attributes when intializing Disk()
...
This new design uses copy.deepcopy() to avoid erroneous thresholds being
applied to drives during diags. This also reduces the number of lookups
to one per Disk.
2022-10-08 14:15:32 -07:00
926b32b574
Clean badblocks results to remove backspaces
2022-09-28 00:33:15 -07:00
f008546565
Avoid crashing if a device disconnects mid-diags
2022-09-24 19:58:41 -07:00
7abd4c21c3
Refactor Disk children sections
...
Child devices are not added by default to improve performance.
Disk.children is always present to avoid overly cautious lookups.
2022-05-21 15:03:44 -07:00