qrexec-policy-graph: add qube colors#222
Conversation
Fixes QubesOS/qubes-issues#3007 Code decisions: 1. Node styling is not organized: Node styling is added as nodes are found instead of being grouped together. It should have no impact on the final graph and was considered as a potentially acceptable trade-off for implementation simplicity. 2. qubesadmin vs. system_info: The already used system_info did not provide qube colors, therefore it was obtained from qubesadmin. Styling decisions: 1. Qube color was added to node borders in case of a literal qube (one that doesn't start with "@"). On non-literal qubes, nodes are dotted because it's not necessarily an individual qube. 2. The chosen style of coloring borders instead of solid filling made it easier to deal with the inner text (example: black text on black colored qubes).
8984c4c to
6770795
Compare
Then I believe that you could add
I think that is okay.
I think that the border is too big with |
Obtain label from system_info instead of adding a dependency in qubesadmin.
e7b27fc to
507611e
Compare
Done: QubesOS/qubes-core-admin#786
I believe the colors also look nice on thinner borders. I have now changed the width to 3.
|
|
PipelineRetryFailed |
|
PipelineRetryFailed cairo-gobject at it again... will retry pipeline until it gets a functional runner. |
|
CI failure seems to be related to missing the PR on core-admin. I believe that will be run by the gitlab runner when creating the openqa job. |
Tests have mockup system info structure, see qrexec/tests/policy_graph.py. And I'm pretty sure some of the tests will need an update to include the label too. |
I believe I fixed the tests now. The pipeline seems to be failing with the cairo-gobject that @ben-grande mentioned but the tests and lint are passing locally. |
|
PipelineRetryFailed |
|
Passed CI: https://gitlab.com/QubesOS/qubes-core-qrexec/-/pipelines/2373959020 gi problem for pylint, will ignore that and let this PR be scheduled for openqa. |
|
PipelineRetryFailed |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #222 +/- ##
==========================================
+ Coverage 78.88% 78.90% +0.02%
==========================================
Files 55 55
Lines 10531 10542 +11
==========================================
+ Hits 8307 8318 +11
Misses 2224 2224 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
OpenQA test summaryComplete test suite and dependencies: https://openqa.qubes-os.org/tests/overview?distri=qubesos&version=4.3&build=2026031319-4.3-debian&flavor=pull-requests Test run included the following:
New failures, excluding unstableCompared to: https://openqa.qubes-os.org/tests/overview?distri=qubesos&version=4.3&build=2026020304-devel&flavor=update Failed testsNo failures! Fixed failuresCompared to: https://openqa.qubes-os.org/tests/166096#dependencies Unstable testsDetailsPerformance TestsPerformance degradation:No issues Remaining performance tests:13 tests
|
* origin/pr/786: Add label to test_010 Add label to vm_events Add label to system_info Pull request description: This is necessary to display qube colors in qrexec-policy-graph (QubesOS/qubes-core-qrexec#222).
|
This needs a rebase now... |

Fixes QubesOS/qubes-issues#3007. I have not fixed the tests yet, but I believe the rest is ready for feedback.
Code decisions:
Styling decisions:
Before
After