Skip to content

Replace Transient state for Starting and Halting#455

Open
ben-grande wants to merge 3 commits into
QubesOS:mainfrom
ben-grande:transient
Open

Replace Transient state for Starting and Halting#455
ben-grande wants to merge 3 commits into
QubesOS:mainfrom
ben-grande:transient

Conversation

@ben-grande

@ben-grande ben-grande commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

@ben-grande ben-grande linked an issue Jul 15, 2026 that may be closed by this pull request
@codecov

codecov Bot commented Jul 15, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 69.29%. Comparing base (1db8837) to head (2f3b009).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
qubesmanager/qube_manager.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #455      +/-   ##
==========================================
- Coverage   69.40%   69.29%   -0.11%     
==========================================
  Files          17       17              
  Lines        4059     4058       -1     
==========================================
- Hits         2817     2812       -5     
- Misses       1242     1246       +4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ben-grande

Copy link
Copy Markdown
Contributor Author

Without this PR, the application crashes when it sees a power state it is not aware of, such as Starting. This PR fixes it, but for next time, each client application should handle unknown states gracefully.

Jul 16 17:06:21 dom0 python3[186072]: Traceback (most recent call last):
                                        File "/usr/lib/python3.13/site-packages/qubesmanager/qube_manager.py", line 173, in paint
                                          self.stateIcons[index.data()['power']].pixmap(iconSize))
                                          ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
                                      KeyError: 'Starting'
Jul 16 17:06:21 dom0 systemd-coredump[187813]: [] Process 186072 (qubes-qube-mana) of user 1000 dumped core.

Is a transition period necessary? Where the server sends Transient in place of Starting?

@ben-grande
ben-grande force-pushed the transient branch 2 times, most recently from 500be91 to b7cfaa7 Compare July 16, 2026 16:16
@ben-grande
ben-grande marked this pull request as ready for review July 23, 2026 13:25
"Transient" state will be fully deprecated on Qubes R5.0. For now,
"Halting" is received but "Staring" is not received yet.

For: QubesOS/qubes-issues#10966
Requires: QubesOS/qubes-core-admin-client#480
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve handling of Transient power state

1 participant