Skip to content

Conversation

@marmarek
Copy link
Member

Generally we require dom0 to be updated before VM, so that qubesdb key
should always be there. But since handling the opposite case here is
easy, lets do that anyway.

Generally we require dom0 to be updated before VM, so that qubesdb key
should always be there. But since handling the opposite case here is
easy, lets do that anyway.
@codecov
Copy link

codecov bot commented Jun 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.68%. Comparing base (3a07e9d) to head (a580132).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #582      +/-   ##
==========================================
- Coverage   71.10%   70.68%   -0.42%     
==========================================
  Files           3        3              
  Lines         481      481              
==========================================
- Hits          342      340       -2     
- Misses        139      141       +2     

☔ View full report in Codecov by Sentry.
📢 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.

@qubesos-bot
Copy link

OpenQA test summary

Complete test suite and dependencies: https://openqa.qubes-os.org/tests/overview?distri=qubesos&version=4.3&build=2025062114-4.3&flavor=pull-requests

Test run included the following:

New failures, excluding unstable

Compared to: https://openqa.qubes-os.org/tests/overview?distri=qubesos&version=4.3&build=2025061004-4.3&flavor=update

  • system_tests_dispvm

  • system_tests_kde_gui_interactive

    • kde_startup: unnamed test (unknown)
    • kde_startup: Failed (test died)
      # Test died: no candidate needle with tag(s) 'x11' matched...
  • system_tests_qwt_win10@hw13

    • windows_install: Failed (test died)
      # Test died: command 'script -e -c 'bash -x /usr/bin/qvm-create-win...
  • system_tests_qwt_win10_seamless@hw13

    • windows_clipboard_and_filecopy: unnamed test (unknown)
    • windows_clipboard_and_filecopy: Failed (test died)
      # Test died: no candidate needle with tag(s) 'windows-Edge-address-...
  • system_tests_qwt_win11@hw13

    • windows_install: wait_serial (wait serial expected)
      # wait_serial expected: qr/dcWzE-\d+-/...

    • windows_install: Failed (test died + timed out)
      # Test died: command 'script -e -c 'bash -x /usr/bin/qvm-create-win...

Failed tests

10 failures
  • system_tests_dispvm

  • system_tests_kde_gui_interactive

    • kde_startup: unnamed test (unknown)
    • kde_startup: Failed (test died)
      # Test died: no candidate needle with tag(s) 'x11' matched...
  • system_tests_qwt_win10@hw13

    • windows_install: Failed (test died)
      # Test died: command 'script -e -c 'bash -x /usr/bin/qvm-create-win...
  • system_tests_qwt_win10_seamless@hw13

    • windows_clipboard_and_filecopy: unnamed test (unknown)
    • windows_clipboard_and_filecopy: Failed (test died)
      # Test died: no candidate needle with tag(s) 'windows-Edge-address-...
  • system_tests_qwt_win11@hw13

    • windows_install: wait_serial (wait serial expected)
      # wait_serial expected: qr/dcWzE-\d+-/...

    • windows_install: Failed (test died + timed out)
      # Test died: command 'script -e -c 'bash -x /usr/bin/qvm-create-win...

Fixed failures

Compared to: https://openqa.qubes-os.org/tests/142375#dependencies

13 fixed
  • system_tests_splitgpg

  • system_tests_extra

  • system_tests_kde_gui_interactive

    • gui_keyboard_layout: wait_serial (wait serial expected)
      # wait_serial expected: "echo -e '[Layout]\nLayoutList=us,de' | sud...

    • gui_keyboard_layout: Failed (test died)
      # Test died: command 'test "$(cd ~user;ls e1*)" = "$(qvm-run -p wor...

  • system_tests_guivm_vnc_gui_interactive

    • simple_gui_apps: unnamed test (unknown)
    • simple_gui_apps: Failed (test died)
      # Test died: no candidate needle with tag(s) 'vm-settings-applicati...
  • system_tests_audio

Unstable tests

Performance Tests

Performance degradation:

5 performance degradations
  • dom0_root_rnd4k_q32t1_read 3:read_bandwidth_kb: 10460.00 :small_red_triangle: ( previous job: 17102.00, degradation: 61.16%)
  • dom0_root_rnd4k_q1t1_write 3:write_bandwidth_kb: 90.00 :small_red_triangle: ( previous job: 1840.00, degradation: 4.89%)
  • debian-12-xfce_exec-data-simplex: 73.80 🔺 ( previous job: 65.51, degradation: 112.66%)
  • debian-12-xfce_exec-data-duplex-root: 85.52 🔺 ( previous job: 70.01, degradation: 122.16%)
  • whonix-workstation-17_exec-data-duplex-root: 98.45 🔺 ( previous job: 86.00, degradation: 114.47%)

Remaining performance tests:

67 tests
  • dom0_root_seq1m_q8t1_read 3:read_bandwidth_kb: 490676.00 :green_circle: ( previous job: 289982.00, improvement: 169.21%)
  • dom0_root_seq1m_q8t1_write 3:write_bandwidth_kb: 137827.00 :green_circle: ( previous job: 101988.00, improvement: 135.14%)
  • dom0_root_seq1m_q1t1_read 3:read_bandwidth_kb: 83346.00 :green_circle: ( previous job: 14284.00, improvement: 583.49%)
  • dom0_root_seq1m_q1t1_write 3:write_bandwidth_kb: 59598.00 :green_circle: ( previous job: 32696.00, improvement: 182.28%)
  • dom0_root_rnd4k_q32t1_write 3:write_bandwidth_kb: 1431.00 :green_circle: ( previous job: 1091.00, improvement: 131.16%)
  • dom0_root_rnd4k_q1t1_read 3:read_bandwidth_kb: 11970.00 :green_circle: ( previous job: 11086.00, improvement: 107.97%)
  • dom0_varlibqubes_seq1m_q8t1_read 3:read_bandwidth_kb: 444500.00 :green_circle: ( previous job: 289182.00, improvement: 153.71%)
  • dom0_varlibqubes_seq1m_q8t1_write 3:write_bandwidth_kb: 135779.00 :green_circle: ( previous job: 122848.00, improvement: 110.53%)
  • dom0_varlibqubes_seq1m_q1t1_read 3:read_bandwidth_kb: 430449.00 :small_red_triangle: ( previous job: 433654.00, degradation: 99.26%)
  • dom0_varlibqubes_seq1m_q1t1_write 3:write_bandwidth_kb: 200756.00 :green_circle: ( previous job: 167872.00, improvement: 119.59%)
  • dom0_varlibqubes_rnd4k_q32t1_read 3:read_bandwidth_kb: 104608.00 :small_red_triangle: ( previous job: 108760.00, degradation: 96.18%)
  • dom0_varlibqubes_rnd4k_q32t1_write 3:write_bandwidth_kb: 9595.00 :green_circle: ( previous job: 8874.00, improvement: 108.12%)
  • dom0_varlibqubes_rnd4k_q1t1_read 3:read_bandwidth_kb: 6662.00 :green_circle: ( previous job: 6356.00, improvement: 104.81%)
  • dom0_varlibqubes_rnd4k_q1t1_write 3:write_bandwidth_kb: 4179.00 :small_red_triangle: ( previous job: 4420.00, degradation: 94.55%)
  • fedora-42-xfce_root_seq1m_q8t1_read 3:read_bandwidth_kb: 392725.00
  • fedora-42-xfce_root_seq1m_q8t1_write 3:write_bandwidth_kb: 280442.00
  • fedora-42-xfce_root_seq1m_q1t1_read 3:read_bandwidth_kb: 300107.00
  • fedora-42-xfce_root_seq1m_q1t1_write 3:write_bandwidth_kb: 121560.00
  • fedora-42-xfce_root_rnd4k_q32t1_read 3:read_bandwidth_kb: 88255.00
  • fedora-42-xfce_root_rnd4k_q32t1_write 3:write_bandwidth_kb: 1922.00
  • fedora-42-xfce_root_rnd4k_q1t1_read 3:read_bandwidth_kb: 8507.00
  • fedora-42-xfce_root_rnd4k_q1t1_write 3:write_bandwidth_kb: 527.00
  • fedora-42-xfce_private_seq1m_q8t1_read 3:read_bandwidth_kb: 378410.00
  • fedora-42-xfce_private_seq1m_q8t1_write 3:write_bandwidth_kb: 284861.00
  • fedora-42-xfce_private_seq1m_q1t1_read 3:read_bandwidth_kb: 319395.00
  • fedora-42-xfce_private_seq1m_q1t1_write 3:write_bandwidth_kb: 136942.00
  • fedora-42-xfce_private_rnd4k_q32t1_read 3:read_bandwidth_kb: 71153.00
  • fedora-42-xfce_private_rnd4k_q32t1_write 3:write_bandwidth_kb: 4044.00
  • fedora-42-xfce_private_rnd4k_q1t1_read 3:read_bandwidth_kb: 7446.00
  • fedora-42-xfce_private_rnd4k_q1t1_write 3:write_bandwidth_kb: 68.00
  • fedora-42-xfce_volatile_seq1m_q8t1_read 3:read_bandwidth_kb: 348364.00
  • fedora-42-xfce_volatile_seq1m_q8t1_write 3:write_bandwidth_kb: 164365.00
  • fedora-42-xfce_volatile_seq1m_q1t1_read 3:read_bandwidth_kb: 263991.00
  • fedora-42-xfce_volatile_seq1m_q1t1_write 3:write_bandwidth_kb: 126364.00
  • fedora-42-xfce_volatile_rnd4k_q32t1_read 3:read_bandwidth_kb: 75987.00
  • fedora-42-xfce_volatile_rnd4k_q32t1_write 3:write_bandwidth_kb: 2708.00
  • fedora-42-xfce_volatile_rnd4k_q1t1_read 3:read_bandwidth_kb: 8128.00
  • fedora-42-xfce_volatile_rnd4k_q1t1_write 3:write_bandwidth_kb: 1408.00
  • debian-12-xfce_exec: 6.03 🟢 ( previous job: 8.63, improvement: 69.83%)
  • debian-12-xfce_exec-root: 28.69 🟢 ( previous job: 29.44, improvement: 97.46%)
  • debian-12-xfce_socket: 8.59 🔺 ( previous job: 8.50, degradation: 101.07%)
  • debian-12-xfce_socket-root: 7.60 🟢 ( previous job: 8.31, improvement: 91.39%)
  • debian-12-xfce_exec-data-duplex: 67.54 🟢 ( previous job: 73.55, improvement: 91.83%)
  • debian-12-xfce_socket-data-duplex: 163.89 🔺 ( previous job: 161.35, degradation: 101.57%)
  • fedora-42-xfce_exec: 9.18
  • fedora-42-xfce_exec-root: 58.50
  • fedora-42-xfce_socket: 8.22
  • fedora-42-xfce_socket-root: 8.25
  • fedora-42-xfce_exec-data-simplex: 74.01
  • fedora-42-xfce_exec-data-duplex: 70.46
  • fedora-42-xfce_exec-data-duplex-root: 95.91
  • fedora-42-xfce_socket-data-duplex: 135.78
  • whonix-gateway-17_exec: 6.51 🟢 ( previous job: 7.34, improvement: 88.69%)
  • whonix-gateway-17_exec-root: 41.93 🔺 ( previous job: 39.57, degradation: 105.94%)
  • whonix-gateway-17_socket: 8.16 🔺 ( previous job: 7.85, degradation: 103.86%)
  • whonix-gateway-17_socket-root: 7.31 🟢 ( previous job: 7.89, improvement: 92.58%)
  • whonix-gateway-17_exec-data-simplex: 78.40 🔺 ( previous job: 77.76, degradation: 100.82%)
  • whonix-gateway-17_exec-data-duplex: 77.37 🟢 ( previous job: 78.39, improvement: 98.70%)
  • whonix-gateway-17_exec-data-duplex-root: 96.49 🔺 ( previous job: 90.74, degradation: 106.34%)
  • whonix-gateway-17_socket-data-duplex: 172.90 🔺 ( previous job: 161.95, degradation: 106.76%)
  • whonix-workstation-17_exec: 8.08 🟢 ( previous job: 8.27, improvement: 97.67%)
  • whonix-workstation-17_exec-root: 56.47 🟢 ( previous job: 57.61, improvement: 98.02%)
  • whonix-workstation-17_socket: 8.17 🟢 ( previous job: 8.97, improvement: 91.15%)
  • whonix-workstation-17_socket-root: 9.06 🟢 ( previous job: 9.46, improvement: 95.82%)
  • whonix-workstation-17_exec-data-simplex: 70.95 🟢 ( previous job: 74.54, improvement: 95.19%)
  • whonix-workstation-17_exec-data-duplex: 76.05 🔺 ( previous job: 74.84, degradation: 101.62%)
  • whonix-workstation-17_socket-data-duplex: 171.62 🔺 ( previous job: 160.20, degradation: 107.13%)

set -eu

if test "$(qubesdb-read /qubes-gui-enabled)" = "True"; then
if test "$(qubesdb-read --default=True /qubes-gui-enabled)" = "True"; then
Copy link

@3nprob 3nprob Jun 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is /qubes-gui-enabled ever set to False by Qubes?

It seems like if the user hasn't manually set qubes-gui-enabled=False in qubesdb, assuming True will make it wait infinitely for a socket that never appears, effectively reverting #571

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a new qubesdb entry to tell VM when GUI is enabled/disabled. It can be set to False for example when user sets qvm-feature vmname gui "". Previously, VM did not received this information at all, so yes, it resulted in this code waiting indefinitely - basically, if you manually disabled GUI, you also needed to always use qvm-run --nogui. The introduction of this qubesdb entry fixes it, but if you run older dom0 that doesn't add it, this PR preserves the old behavior (instead of breaking all GUI applications by starting them before X server ...).

@marmarek marmarek merged commit a580132 into QubesOS:main Jun 22, 2025
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants