Get attribute from VM object instead of string - #457
Conversation
649eaad to
f46fbfd
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #457 +/- ##
==========================================
- Coverage 69.34% 69.31% -0.04%
==========================================
Files 17 17
Lines 4058 4060 +2
==========================================
Hits 2814 2814
- Misses 1244 1246 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
f46fbfd to
08144d6
Compare
OpenQA test summaryComplete test suite and dependencies: https://openqa.qubes-os.org/tests/overview?distri=qubesos&version=4.3&build=2026080303-devel&flavor=pull-requests Test run included the following:
Upload failures
New failures, excluding unstableCompared to: https://openqa.qubes-os.org/tests/overview?distri=qubesos&version=4.3&build=2026050504-devel&flavor=update
Failed tests15 failures
Fixed failuresCompared to: https://openqa.qubes-os.org/tests/176874#dependencies 23 fixed
Unstable testsDetails
Performance TestsPerformance degradation:18 performance degradations
Remaining performance tests:92 tests
|
| QtWidgets.QDialog): | ||
| def __init__(self, vm, qapp, qubesapp=None, *, parent=None, new_vm=False): | ||
| def __init__( | ||
| self, vm: QubesVM, qapp: QtWidgets, *, parent=None, new_vm: bool = False |
There was a problem hiding this comment.
The argument change needs updating all places where it's used. For example, you missed the standalone qubes-vm-boot-from-disk command (and BTW there deviating from standardized arguments makes it problematic...).
There was a problem hiding this comment.
And also, I question type type hints: QtWidgets is a module name, I think you meant QtWidgets.QApplication.
| self.new_vm = new_vm | ||
|
|
||
| if vm.klass in ["RemoteVM", "AdminVM"]: | ||
| if self.vm.klass in ["RemoteVM", "AdminVM"]: |
There was a problem hiding this comment.
Any specific reason for this change (here and below)?
There was a problem hiding this comment.
Mostly stylistic choice, that when using a variable that is a class attribute, I prefer using it rather than the parameter.
There was a problem hiding this comment.
Also see on line 61, it using self.vm instead of vm...
08144d6 to
cce338e
Compare
In some instances, it uses both methods on "__init__", let's unify to instance attribute.
cce338e to
48e0822
Compare
Fixes: QubesOS/qubes-issues#11015