Skip to content

Reject wrong default_dispvm and management_dispvm#809

Merged
marmarek merged 1 commit into
QubesOS:mainfrom
ben-grande:validate-disp-tpl
May 26, 2026
Merged

Reject wrong default_dispvm and management_dispvm#809
marmarek merged 1 commit into
QubesOS:mainfrom
ben-grande:validate-disp-tpl

Conversation

@ben-grande
Copy link
Copy Markdown
Contributor

@ben-grande ben-grande commented May 18, 2026

Validation on pre-events is not called when using "app.add_new_vm()", a
setter is necessary for those cases. Setter plus pre-set is unnecessary
when validating only newvalue.

Also prohibit removing template_for_dispvms when disposable template is referenced as a property by the system or any other qube, including itself.

Fixes: QubesOS/qubes-issues#10881

@codecov
Copy link
Copy Markdown

codecov Bot commented May 18, 2026

Codecov Report

❌ Patch coverage is 96.36364% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 70.43%. Comparing base (71b5ab2) to head (95895a4).
⚠️ Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
qubes/app.py 93.75% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #809      +/-   ##
==========================================
+ Coverage   70.24%   70.43%   +0.19%     
==========================================
  Files          61       61              
  Lines       14073    14139      +66     
==========================================
+ Hits         9885     9959      +74     
+ Misses       4188     4180       -8     
Flag Coverage Δ
unittests 70.43% <96.36%> (+0.19%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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
Copy Markdown

qubesos-bot commented May 21, 2026

OpenQA test summary

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

Test run included the following:

Upload failures

  • system_tests_dispvm_perf@hw7
    • system_tests: wait_serial (unknown)
      # Command: testfunc qubes.tests.integ.dispvm_perf...

    • system_tests: Failed (test died + timed out)
      # Test died: command 'testfunc qubes.tests.integ.dispvm_perf' timed...

New failures, excluding unstable

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

  • system_tests_network

  • system_tests_audio@hw1

  • system_tests_qwt_win10@hw13

    • windows_install: wait_serial (unknown)
      Unable to decode windows_install-36.txt....
  • system_tests_qwt_win11@hw13

    • windows_install: wait_serial (unknown)
      Unable to decode windows_install-36.txt....
  • system_tests_gpu_passthrough@hw13

    • shutdown: unnamed test (unknown)
    • shutdown: Failed (test died)
      # Test died: no candidate needle with tag(s) 'tty3-selected, text-l...
  • system_tests_gui_interactive

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

    • windows_install: wait_serial (unknown)
      Unable to decode windows_install-36.txt....

    • windows_install: Failed (test died + timed out)
      # Test died: Install timed out at qubesos/tests/windows_install.pm ...

  • system_tests_extra

Failed tests

23 failures
  • system_tests_whonix

    • [unstable] whonixcheck: fail (unknown)
      Whonixcheck for sys-whonix failed...

    • [unstable] whonixcheck: Failed (test died)
      # Test died: systemcheck failed at qubesos/tests/whonixcheck.pm lin...

  • system_tests_network

  • system_tests_audio@hw1

  • system_tests_qwt_win10@hw13

    • windows_install: wait_serial (unknown)
      Unable to decode windows_install-36.txt....

    • windows_install: Failed (test died + timed out)
      # Test died: Install timed out at qubesos/tests/windows_install.pm ...

  • system_tests_qwt_win11@hw13

    • windows_install: wait_serial (unknown)
      Unable to decode windows_install-36.txt....

    • windows_install: Failed (test died + timed out)
      # Test died: Install timed out at qubesos/tests/windows_install.pm ...

  • system_tests_whonix@hw1

    • [unstable] whonixcheck: fail (unknown)
      Whonixcheck for sys-whonix failed...

    • [unstable] whonixcheck: Failed (test died)
      # Test died: systemcheck failed at qubesos/tests/whonixcheck.pm lin...

  • system_tests_gpu_passthrough@hw13

    • shutdown: unnamed test (unknown)
    • shutdown: Failed (test died)
      # Test died: no candidate needle with tag(s) 'tty3-selected, text-l...
  • system_tests_gui_interactive

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

    • shutdown: unnamed test (unknown)
    • shutdown: Failed (test died)
      # Test died: no candidate needle with tag(s) 'text-logged-in-root' ...
  • system_tests_qwt_win10_seamless@hw13

    • windows_install: wait_serial (unknown)
      Unable to decode windows_install-36.txt....

    • windows_install: Failed (test died + timed out)
      # Test died: Install timed out at qubesos/tests/windows_install.pm ...

  • system_tests_extra

    • TC_01_InputProxyExclude_debian-13-xfce: test_000_qemu_tablet (error)
      qubes.exc.QubesVMError: Cannot connect to qrexec agent for 120 seco...

    • [unstable] TC_01_InputProxyExclude_fedora-43-xfce: test_000_qemu_tablet (error)
      qubes.exc.QubesVMError: Cannot connect to qrexec agent for 120 seco...

    • TC_00_PDFConverter_debian-13-xfce: test_004_cancel_stops_conversion (failure)
      AssertionError: DispVM not cleaned up 10s after cancel: {<DispVM at...

    • [unstable] TC_00_PDFConverter_fedora-43-xfce: test_004_cancel_stops_conversion (failure)
      AssertionError: DispVM not cleaned up 10s after cancel: {<DispVM at...

Fixed failures

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

26 fixed
  • system_tests_pvgrub_salt_storage

    • system_tests: Fail (unknown)
      Tests qubes.tests.integ.grub failed (exit code 1), details reported...

    • system_tests: Failed (test died)
      # Test died: Some tests failed at qubesos/tests/system_tests.pm lin...

    • TC_41_HVMGrub_debian-13-xfce: test_000_standalone_vm (error)
      qubes.exc.QubesVMError: Cannot connect to qrexec agent for 120 seco...

    • TC_41_HVMGrub_debian-13-xfce: test_001_standalone_vm_dracut (error)
      qubes.exc.QubesVMError: Cannot connect to qrexec agent for 120 seco...

    • TC_41_HVMGrub_debian-13-xfce: test_010_template_based_vm (error)
      qubes.exc.QubesVMError: Cannot connect to qrexec agent for 120 seco...

    • TC_41_HVMGrub_debian-13-xfce: test_011_template_based_vm_dracut (error)
      qubes.exc.QubesVMError: Cannot connect to qrexec agent for 120 seco...

    • TC_41_HVMGrub_fedora-43-xfce: test_010_template_based_vm (error)
      qubes.exc.QubesVMError: Cannot connect to qrexec agent for 120 seco...

  • system_tests_usbproxy

    • system_tests: Fail (unknown)
      Tests qubes.tests.extra failed (exit code 1), details reported sepa...

    • system_tests: Failed (test died)
      # Test died: Some tests failed at qubesos/tests/system_tests.pm lin...

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

    • TC_20_USBProxy_core3_fedora-43-xfce: test_090_attach_stubdom (error)
      qubes.exc.QubesVMError: Cannot connect to qrexec agent for 120 seco...

  • system_tests_network_ipv6

    • system_tests: Fail (unknown)
      Tests qubes.tests.integ.network_ipv6 failed (exit code 1), details ...

    • system_tests: Failed (test died)
      # Test died: Some tests failed at qubesos/tests/system_tests.pm lin...

    • VmIPv6Networking_fedora-43-xfce: test_001_simple_networking_paused_from_none_to_existent (error)
      raise TimeoutError from exc_val... TimeoutError

  • system_tests_audio

  • 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_extra

    • TC_00_QVCTest_fedora-43-xfce: test_010_screenshare (failure + cleanup)
      ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^... AssertionError: 1179648 != 0

    • TC_00_QVCTest_whonix-gateway-18: test_010_screenshare (failure + cleanup)
      AssertionError: 2.3156185715769593 not less than 2.0

Unstable tests

Details
  • system_tests_whonix

    whonixcheck/Failed (3/5 times with errors)
    • job 179099 # Test died: systemcheck failed at qubesos/tests/whonixcheck.pm lin...
    • job 179105 # Test died: systemcheck failed at qubesos/tests/whonixcheck.pm lin...
    • job 179922 # Test died: systemcheck failed at qubesos/tests/whonixcheck.pm lin...
    whonixcheck/Failed (2/5 times with errors)
    • job 179051 # Test died: systemcheck failed at qubesos/tests/whonixcheck.pm lin...
    • job 179102 # Test died: systemcheck failed at qubesos/tests/whonixcheck.pm lin...
    whonixcheck/fail (2/5 times with errors)
    whonixcheck/fail (3/5 times with errors)
    whonixcheck/fail (2/5 times with errors)
  • system_tests_gui_tools

    desktop_linux_manager_config/ (2/5 times with errors)
    desktop_linux_manager_config/Failed (2/5 times with errors)
    • job 178837 # Test died: no candidate needle with tag(s) 'qubes-global-config' ...
    • job 178840 # Test died: no candidate needle with tag(s) 'qubes-global-config' ...
    desktop_linux_manager_config/wait_serial (1/5 times with errors)
    • job 178837 # Command: curl --form upload=@/var/log/libvirt/libxl/libxl-driver....
  • system_tests_suspend

    suspend/Failed (2/5 times with errors)
    • job 179086 # Test died: command 'qvm-run -p sys-net true' timed out at /usr/li...
    • job 179098 # Test died: command 'qvm-run -p sys-net true' timed out at /usr/li...
    suspend/Failed (3/5 times with errors)
    • job 178918 # Test died: command '! qvm-check sys-usb || qvm-run -p sys-usb tru...
    • job 179097 # Test died: command '! qvm-check sys-usb || qvm-run -p sys-usb tru...
    • job 179101 # Test died: command '! qvm-check sys-usb || qvm-run -p sys-usb tru...
    suspend/wait_serial (2/5 times with errors)
    suspend/wait_serial (3/5 times with errors)
    • job 178918 # Command: ! qvm-check sys-usb || qvm-run -p sys-usb true...
    • job 179097 # Command: ! qvm-check sys-usb || qvm-run -p sys-usb true...
    • job 179101 # Command: ! qvm-check sys-usb || qvm-run -p sys-usb true...
    suspend/wait_serial (2/5 times with errors)
    suspend/wait_serial (3/5 times with errors)
    • job 178918 # wait_serial expected: "lspci; echo 2E8vz-\$?-"...
    • job 179097 # wait_serial expected: "lspci; echo 2E8vz-\$?-"...
    • job 179101 # wait_serial expected: "lspci; echo 2E8vz-\$?-"...
  • system_tests_basic_vm_qrexec_gui

    system_tests/Fail (1/5 times with errors)
    • job 178906 Tests qubes.tests.integ.basic failed (exit code 1), details reporte...
    system_tests/Failed (1/5 times with errors)
    • job 178906 # Test died: Some tests failed at qubesos/tests/system_tests.pm lin...
    TC_00_Basic/test_141_libvirt_objects_reconnect (1/5 times with errors)
    • job 178906 AssertionError: libvirt event impl drain timeout
  • system_tests_pvgrub_salt_storage

    system_tests/Fail (4/5 times with errors)
    • job 178956 Tests qubes.tests.integ.grub failed (exit code 1), details reported...
    • job 178962 Tests qubes.tests.integ.grub failed (exit code 1), details reported...
    • job 179083 Tests qubes.tests.integ.grub failed (exit code 1), details reported...
    • job 179954 Tests qubes.tests.integ.grub failed (exit code 1), details reported...
    system_tests/Failed (4/5 times with errors)
    • job 178956 # Test died: Some tests failed at qubesos/tests/system_tests.pm lin...
    • job 178962 # Test died: Some tests failed at qubesos/tests/system_tests.pm lin...
    • job 179083 # Test died: Some tests failed at qubesos/tests/system_tests.pm lin...
    • job 179954 # Test died: Some tests failed at qubesos/tests/system_tests.pm lin...
    TC_41_HVMGrub_debian-13-xfce/test_000_standalone_vm (2/5 times with errors)
    • job 179083 qubes.exc.QubesVMShutdownTimeoutError: Domain shutdown timed out: '...
    • job 179954 qubes.exc.QubesVMError: Cannot connect to qrexec agent for 120 seco...
    TC_41_HVMGrub_fedora-43-xfce/test_000_standalone_vm (1/5 times with errors)
    • job 179954 qubes.exc.QubesVMError: Cannot connect to qrexec agent for 120 seco...
    TC_41_HVMGrub_debian-13-xfce/test_001_standalone_vm_dracut (3/5 times with errors)
    • job 178956 qubes.exc.QubesVMError: Cannot connect to qrexec agent for 120 seco...
    • job 178962 qubes.exc.QubesVMError: Cannot connect to qrexec agent for 120 seco...
    • job 179954 qubes.exc.QubesVMError: Cannot connect to qrexec agent for 120 seco...
    TC_41_HVMGrub_debian-13-xfce/test_010_template_based_vm (3/5 times with errors)
    • job 178956 qubes.exc.QubesVMError: Cannot connect to qrexec agent for 120 seco...
    • job 178962 qubes.exc.QubesVMError: Cannot connect to qrexec agent for 120 seco...
    • job 179954 qubes.exc.QubesVMError: Cannot connect to qrexec agent for 120 seco...
    TC_41_HVMGrub_fedora-43-xfce/test_010_template_based_vm (3/5 times with errors)
    • job 178956 qubes.exc.QubesVMError: Cannot connect to qrexec agent for 120 seco...
    • job 178962 qubes.exc.QubesVMError: Cannot connect to qrexec agent for 120 seco...
    • job 179954 qubes.exc.QubesVMError: Cannot connect to qrexec agent for 120 seco...
    TC_42_PVHGrub_fedora-43-xfce/test_010_template_based_vm (1/5 times with errors)
    • job 179083 qubes.exc.QubesVMError: Cannot connect to qrexec agent for 120 seco...
    TC_41_HVMGrub_debian-13-xfce/test_011_template_based_vm_dracut (3/5 times with errors)
    • job 178956 qubes.exc.QubesVMError: Cannot connect to qrexec agent for 120 seco...
    • job 178962 qubes.exc.QubesVMError: Cannot connect to qrexec agent for 120 seco...
    • job 179954 qubes.exc.QubesVMError: Cannot connect to qrexec agent for 120 seco...
  • system_tests_usbproxy

    system_tests/Fail (2/5 times with errors)
    • job 179050 Tests qubes.tests.extra failed (exit code 1), details reported sepa...
    • job 179921 Tests qubes.tests.extra failed (exit code 1), details reported sepa...
    system_tests/Failed (2/5 times with errors)
    • job 179050 # Test died: Some tests failed at qubesos/tests/system_tests.pm lin...
    • job 179921 # Test died: Some tests failed at qubesos/tests/system_tests.pm lin...
    TC_00_USBProxy_fedora-43-xfce/test_020_detach_on_remove (1/5 times with errors)
    • job 179050 AssertionError: 0 != 1 : Device not cleaned up
    TC_20_USBProxy_core3_fedora-43-xfce/test_090_attach_stubdom (1/5 times with errors)
    • job 179921 qubes.exc.QubesVMError: Cannot connect to qrexec agent for 120 seco...
  • system_tests_network_ipv6

    system_tests/Fail (4/5 times with errors)
    • job 178924 Tests qubes.tests.integ.network_ipv6 failed (exit code 1), details ...
    • job 178952 Tests qubes.tests.integ.network_ipv6 failed (exit code 1), details ...
    • job 178963 Tests qubes.tests.integ.network_ipv6 failed (exit code 1), details ...
    • job 179952 Tests qubes.tests.integ.network_ipv6 failed (exit code 1), details ...
    system_tests/Failed (4/5 times with errors)
    • job 178924 # Test died: Some tests failed at qubesos/tests/system_tests.pm lin...
    • job 178952 # Test died: Some tests failed at qubesos/tests/system_tests.pm lin...
    • job 178963 # Test died: Some tests failed at qubesos/tests/system_tests.pm lin...
    • job 179952 # Test died: Some tests failed at qubesos/tests/system_tests.pm lin...
    VmIPv6Networking_debian-13-xfce/test_001_simple_networking_paused_from_none_to_existent (2/5 times with errors)
    • job 178924 raise TimeoutError from exc_val... TimeoutError
    • job 178952 raise TimeoutError from exc_val... TimeoutError
    VmIPv6Networking_fedora-43-xfce/test_001_simple_networking_paused_from_none_to_existent (1/5 times with errors)
    • job 178952 raise TimeoutError from exc_val... TimeoutError
    VmIPv6Networking_debian-13-xfce/test_110_dynamic_attach (1/5 times with errors)
    • job 179952 raise TimeoutError from exc_val... TimeoutError
    VmIPv6Networking_fedora-43-xfce/test_110_dynamic_attach (2/5 times with errors)
    • job 178952 raise TimeoutError from exc_val... TimeoutError
    • job 179952 raise TimeoutError from exc_val... TimeoutError
    VmIPv6Networking_fedora-43-xfce/test_501_simple_networking_paused_from_none_to_existent (2/5 times with errors)
    • job 178924 raise TimeoutError from exc_val... TimeoutError
    • job 178963 raise TimeoutError from exc_val... TimeoutError
  • system_tests_network_updates

    system_tests/Fail (1/5 times with errors)
    • job 179082 Tests qubes.tests.integ.dom0_update failed (exit code 1), details r...
    system_tests/Fail (1/5 times with errors)
    • job 178914 Tests qubes.tests.integ.vm_update failed (exit code 1), details rep...
    system_tests/Failed (2/5 times with errors)
    • job 178914 # Test died: Some tests failed at qubesos/tests/system_tests.pm lin...
    • job 179082 # Test died: Some tests failed at qubesos/tests/system_tests.pm lin...
    TC_10_QvmTemplate_whonix-gateway-18/test_000_template_list (1/5 times with errors)
    • job 179082 subprocess.CalledProcessError: Command 'timeout=120; while ! tor-ci...
    TC_00_Dom0Upgrade_whonix-gateway-18/test_010_instal (1/5 times with errors)
    • job 179082 Error: Failed to download metadata for repo 'test': Cannot download...
    VmUpdates_debian-13-xfce/test_020_updates_available_notification (1/5 times with errors)
    • job 178914 subprocess.CalledProcessError: Command '/usr/lib/qubes/upgrades-sta...
  • system_tests_basic_vm_qrexec_gui_zfs

    system_tests/Fail (1/5 times with errors)
    • job 179073 Tests qubes.tests.integ.basic failed (exit code 1), details reporte...
    system_tests/Failed (1/5 times with errors)
    • job 179073 # Test died: Some tests failed at qubesos/tests/system_tests.pm lin...
    TC_30_Gui_daemon/test_002_clipboard_300k (1/5 times with errors)
    • job 179073 : Clipboard copy operation failed - content...
  • system_tests_audio

    system_tests/Failed (1/5 times with errors)
    • job 179117 # Test died: Some tests failed at qubesos/tests/system_tests.pm lin...
    system_tests/Failed (4/5 times with errors)
    • job 179054 # Test died: Some tests failed at qubesos/tests/system_tests.pm lin...
    • job 179106 # Test died: Some tests failed at qubesos/tests/system_tests.pm lin...
    • job 179116 # Test died: Some tests failed at qubesos/tests/system_tests.pm lin...
    • job 179925 # Test died: Some tests failed at qubesos/tests/system_tests.pm lin...
    TC_20_AudioVM_Pulse_fedora-43-xfce/test_224_audio_rec_muted_hvm (1/5 times with errors)
    • job 179117 qubes.exc.QubesVMError: Cannot connect to qrexec agent for 120 seco...
    TC_20_AudioVM_Pulse_whonix-workstation-18/test_225_audio_rec_unmuted_hvm (3/5 times with errors)
    • job 179106 AssertionError: too short audio, expected 10s, got 7.86328798185941...
    • job 179116 AssertionError: too short audio, expected 10s, got 6.08503401360544...
    • job 179925 AssertionError: too short audio, expected 10s, got 6.12523809523809...
    TC_20_AudioVM_PipeWire_whonix-workstation-18/test_251_audio_playback_audiovm_pipewire_late_start (2/5 times with errors)
    • job 179054 AssertionError: too short audio, expected 10s, got 9.41070294784580...
    • job 179106 AssertionError: too short audio, expected 10s, got 9.44195011337868...
    TC_20_AudioVM_PipeWire_whonix-workstation-18/test_260_audio_mic_enabled_switch_audiovm (1/5 times with errors)
    • job 179117 AssertionError: 0 not greater than 0 : Failed to move-source-output
    system_tests/wait_serial (1/5 times with errors)
    • job 179106 # Command: curl --form upload=@/var/log/libvirt/libxl/libxl-driver....
  • system_tests_audio@hw1

    system_tests/Failed (1/5 times with errors)
    • job 179117 # Test died: Some tests failed at qubesos/tests/system_tests.pm lin...
    system_tests/Failed (4/5 times with errors)
    • job 179054 # Test died: Some tests failed at qubesos/tests/system_tests.pm lin...
    • job 179106 # Test died: Some tests failed at qubesos/tests/system_tests.pm lin...
    • job 179116 # Test died: Some tests failed at qubesos/tests/system_tests.pm lin...
    • job 179925 # Test died: Some tests failed at qubesos/tests/system_tests.pm lin...
    TC_20_AudioVM_Pulse_fedora-43-xfce/test_224_audio_rec_muted_hvm (1/5 times with errors)
    • job 179117 qubes.exc.QubesVMError: Cannot connect to qrexec agent for 120 seco...
    TC_20_AudioVM_Pulse_whonix-workstation-18/test_225_audio_rec_unmuted_hvm (3/5 times with errors)
    • job 179106 AssertionError: too short audio, expected 10s, got 7.86328798185941...
    • job 179116 AssertionError: too short audio, expected 10s, got 6.08503401360544...
    • job 179925 AssertionError: too short audio, expected 10s, got 6.12523809523809...
    TC_20_AudioVM_PipeWire_whonix-workstation-18/test_251_audio_playback_audiovm_pipewire_late_start (2/5 times with errors)
    • job 179054 AssertionError: too short audio, expected 10s, got 9.41070294784580...
    • job 179106 AssertionError: too short audio, expected 10s, got 9.44195011337868...
    TC_20_AudioVM_PipeWire_whonix-workstation-18/test_260_audio_mic_enabled_switch_audiovm (1/5 times with errors)
    • job 179117 AssertionError: 0 not greater than 0 : Failed to move-source-output
    system_tests/wait_serial (1/5 times with errors)
    • job 179106 # Command: curl --form upload=@/var/log/libvirt/libxl/libxl-driver....
  • system_tests_whonix@hw1

    whonixcheck/Failed (3/5 times with errors)
    • job 179099 # Test died: systemcheck failed at qubesos/tests/whonixcheck.pm lin...
    • job 179105 # Test died: systemcheck failed at qubesos/tests/whonixcheck.pm lin...
    • job 179922 # Test died: systemcheck failed at qubesos/tests/whonixcheck.pm lin...
    whonixcheck/Failed (2/5 times with errors)
    • job 179051 # Test died: systemcheck failed at qubesos/tests/whonixcheck.pm lin...
    • job 179102 # Test died: systemcheck failed at qubesos/tests/whonixcheck.pm lin...
    whonixcheck/fail (2/5 times with errors)
    whonixcheck/fail (3/5 times with errors)
    whonixcheck/fail (2/5 times with errors)
  • system_tests_basic_vm_qrexec_gui_ext4

    system_tests/Failed (1/5 times with errors)
    • job 179942 # Test died: command 'qvm-run --no-gui -p sys-net "curl -f http://1...
    system_tests/wait_serial (1/5 times with errors)
    • job 179942 # Command: qvm-run --no-gui -p sys-net "curl -f http://10.0.2.2:201...
  • system_tests_basic_vm_qrexec_gui_xfs

    system_tests/ (1/5 times with errors)
    system_tests/Failed (1/5 times with errors)
    • job 179072 # Test died: no candidate needle with tag(s) 'x11' matched...
  • system_tests_suspend@hw1

    suspend/Failed (2/5 times with errors)
    • job 179086 # Test died: command 'qvm-run -p sys-net true' timed out at /usr/li...
    • job 179098 # Test died: command 'qvm-run -p sys-net true' timed out at /usr/li...
    suspend/Failed (3/5 times with errors)
    • job 178918 # Test died: command '! qvm-check sys-usb || qvm-run -p sys-usb tru...
    • job 179097 # Test died: command '! qvm-check sys-usb || qvm-run -p sys-usb tru...
    • job 179101 # Test died: command '! qvm-check sys-usb || qvm-run -p sys-usb tru...
    suspend/wait_serial (2/5 times with errors)
    suspend/wait_serial (3/5 times with errors)
    • job 178918 # Command: ! qvm-check sys-usb || qvm-run -p sys-usb true...
    • job 179097 # Command: ! qvm-check sys-usb || qvm-run -p sys-usb true...
    • job 179101 # Command: ! qvm-check sys-usb || qvm-run -p sys-usb true...
    suspend/wait_serial (2/5 times with errors)
    suspend/wait_serial (3/5 times with errors)
    • job 178918 # wait_serial expected: "lspci; echo 2E8vz-\$?-"...
    • job 179097 # wait_serial expected: "lspci; echo 2E8vz-\$?-"...
    • job 179101 # wait_serial expected: "lspci; echo 2E8vz-\$?-"...
  • system_tests_basic_vm_qrexec_gui@hw7

    system_tests/Fail (1/5 times with errors)
    • job 178906 Tests qubes.tests.integ.basic failed (exit code 1), details reporte...
    system_tests/Failed (1/5 times with errors)
    • job 178906 # Test died: Some tests failed at qubesos/tests/system_tests.pm lin...
    TC_00_Basic/test_141_libvirt_objects_reconnect (1/5 times with errors)
    • job 178906 AssertionError: libvirt event impl drain timeout
  • system_tests_gui_tools@hw7

    desktop_linux_manager_config/ (2/5 times with errors)
    desktop_linux_manager_config/Failed (2/5 times with errors)
    • job 178837 # Test died: no candidate needle with tag(s) 'qubes-global-config' ...
    • job 178840 # Test died: no candidate needle with tag(s) 'qubes-global-config' ...
    desktop_linux_manager_config/wait_serial (1/5 times with errors)
    • job 178837 # Command: curl --form upload=@/var/log/libvirt/libxl/libxl-driver....
  • system_tests_extra

    system_tests/Fail (2/5 times with errors)
    • job 178816 Tests qubes.tests.extra failed (exit code 1), details reported sepa...
    • job 178860 Tests qubes.tests.extra failed (exit code 1), details reported sepa...
    system_tests/Failed (2/5 times with errors)
    • job 178816 # Test died: Some tests failed at qubesos/tests/system_tests.pm lin...
    • job 178860 # Test died: Some tests failed at qubesos/tests/system_tests.pm lin...
    TC_01_InputProxyExclude_fedora-43-xfce/test_000_qemu_tablet (1/5 times with errors)
    • job 178860 qubes.exc.QubesVMError: Cannot connect to qrexec agent for 120 seco...
    TC_00_PDFConverter_fedora-43-xfce/test_004_cancel_stops_conversion (1/5 times with errors)
    • job 178816 AssertionError: DispVM not cleaned up 10s after cancel: {<DispVM at...
    TC_00_QVCTest_fedora-43-xfce/test_010_screenshare (1/5 times with errors)
    • job 178860 ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^... AssertionError: 1179648 != 0

Performance Tests

Performance degradation:

16 performance degradations
  • debian-13-xfce_socket: 9.65 🔻 ( previous job: 8.37, degradation: 115.35%)
  • fedora-43-xfce_socket-root: 9.10 🔻 ( previous job: 7.96, degradation: 114.40%)
  • whonix-gateway-18_socket-root: 9.47 🔻 ( previous job: 8.37, degradation: 113.16%)
  • whonix-gateway-18_socket-data-duplex: 109.49 🔻 ( previous job: 90.03, degradation: 121.61%)
  • whonix-workstation-18_socket: 9.10 🔻 ( previous job: 7.66, degradation: 118.75%)
  • whonix-workstation-18_exec-data-duplex-root: 144.99 🔻 ( previous job: 130.67, degradation: 110.95%)
  • whonix-workstation-18_socket-data-duplex: 109.72 🔻 ( previous job: 92.97, degradation: 118.01%)
  • dom0_root_rnd4k_q1t1_write 3:write_bandwidth_kb: 2828.00 🔻 ( previous job: 5055.00, degradation: 55.94%)
  • dom0_varlibqubes_seq1m_q8t1_read 3:read_bandwidth_kb: 379231.00 🔻 ( previous job: 429040.00, degradation: 88.39%)
  • dom0_varlibqubes_seq1m_q1t1_read 3:read_bandwidth_kb: 334260.00 🔻 ( previous job: 446202.00, degradation: 74.91%)
  • dom0_varlibqubes_seq1m_q1t1_write 3:write_bandwidth_kb: 174092.00 🔻 ( previous job: 201978.00, degradation: 86.19%)
  • dom0_varlibqubes_rnd4k_q32t1_write 3:write_bandwidth_kb: 9171.00 🔻 ( previous job: 10623.00, degradation: 86.33%)
  • fedora-43-xfce_root_seq1m_q1t1_write 3:write_bandwidth_kb: 44600.00 🔻 ( previous job: 78270.00, degradation: 56.98%)
  • fedora-43-xfce_root_rnd4k_q1t1_read 3:read_bandwidth_kb: 7572.00 🔻 ( previous job: 8769.00, degradation: 86.35%)
  • fedora-43-xfce_private_seq1m_q1t1_write 3:write_bandwidth_kb: 49886.00 🔻 ( previous job: 71992.00, degradation: 69.29%)
  • fedora-43-xfce_private_rnd4k_q32t1_write 3:write_bandwidth_kb: 2389.00 🔻 ( previous job: 3674.00, degradation: 65.02%)

Remaining performance tests:

56 tests
  • debian-13-xfce_exec: 8.44 🔻 ( previous job: 7.85, degradation: 107.47%)
  • debian-13-xfce_exec-root: 27.53 🔻 ( previous job: 26.74, degradation: 102.93%)
  • debian-13-xfce_socket-root: 9.35 🔻 ( previous job: 9.13, degradation: 102.42%)
  • debian-13-xfce_exec-data-simplex: 57.69 🟢 ( previous job: 63.05, improvement: 91.50%)
  • debian-13-xfce_exec-data-duplex: 65.79 🔻 ( previous job: 62.45, degradation: 105.34%)
  • debian-13-xfce_exec-data-duplex-root: 77.16 🟢 ( previous job: 78.04, improvement: 98.86%)
  • debian-13-xfce_socket-data-duplex: 88.39 🔻 ( previous job: 85.67, degradation: 103.18%)
  • fedora-43-xfce_exec: 9.07 🟢 ( previous job: 9.10, improvement: 99.66%)
  • fedora-43-xfce_exec-root: 70.62 🔻 ( previous job: 69.86, degradation: 101.10%)
  • fedora-43-xfce_socket: 8.93 🔻 ( previous job: 8.52, degradation: 104.84%)
  • fedora-43-xfce_exec-data-simplex: 65.77 🔻 ( previous job: 60.82, degradation: 108.14%)
  • fedora-43-xfce_exec-data-duplex: 68.98 🔻 ( previous job: 68.31, degradation: 100.99%)
  • fedora-43-xfce_exec-data-duplex-root: 98.31 🟢 ( previous job: 98.74, improvement: 99.57%)
  • fedora-43-xfce_socket-data-duplex: 87.66 🟢 ( previous job: 91.81, improvement: 95.48%)
  • whonix-gateway-18_exec: 8.36 🔻 ( previous job: 8.01, degradation: 104.38%)
  • whonix-gateway-18_exec-root: 132.82 🔻 ( previous job: 126.14, degradation: 105.30%)
  • whonix-gateway-18_socket: 8.88 🔻 ( previous job: 8.63, degradation: 102.94%)
  • whonix-gateway-18_exec-data-simplex: 62.52 🔻 ( previous job: 62.50, degradation: 100.02%)
  • whonix-gateway-18_exec-data-duplex: 63.64 🟢 ( previous job: 68.01, improvement: 93.56%)
  • whonix-gateway-18_exec-data-duplex-root: 130.17 🟢 ( previous job: 137.28, improvement: 94.82%)
  • whonix-workstation-18_exec: 8.03 🟢 ( previous job: 8.14, improvement: 98.71%)
  • whonix-workstation-18_exec-root: 142.49 🟢 ( previous job: 144.02, improvement: 98.94%)
  • whonix-workstation-18_socket-root: 8.95 🔻 ( previous job: 8.87, degradation: 100.94%)
  • whonix-workstation-18_exec-data-simplex: 65.59 🟢 ( previous job: 66.36, improvement: 98.85%)
  • whonix-workstation-18_exec-data-duplex: 69.25 🔻 ( previous job: 65.56, degradation: 105.63%)
  • dom0_root_seq1m_q8t1_read 3:read_bandwidth_kb: 469581.00 🟢 ( previous job: 388793.00, improvement: 120.78%)
  • dom0_root_seq1m_q8t1_write 3:write_bandwidth_kb: 205815.00 🟢 ( previous job: 119690.00, improvement: 171.96%)
  • dom0_root_seq1m_q1t1_read 3:read_bandwidth_kb: 437088.00 🟢 ( previous job: 245223.00, improvement: 178.24%)
  • dom0_root_seq1m_q1t1_write 3:write_bandwidth_kb: 183171.00 🔻 ( previous job: 199974.00, degradation: 91.60%)
  • dom0_root_rnd4k_q32t1_read 3:read_bandwidth_kb: 112330.00 🟢 ( previous job: 13948.00, improvement: 805.35%)
  • dom0_root_rnd4k_q32t1_write 3:write_bandwidth_kb: 8151.00 🟢 ( previous job: 6899.00, improvement: 118.15%)
  • dom0_root_rnd4k_q1t1_read 3:read_bandwidth_kb: 8339.00 🔻 ( previous job: 8963.00, degradation: 93.04%)
  • dom0_varlibqubes_seq1m_q8t1_write 3:write_bandwidth_kb: 355449.00 🟢 ( previous job: 257066.00, improvement: 138.27%)
  • dom0_varlibqubes_rnd4k_q32t1_read 3:read_bandwidth_kb: 98658.00 🔻 ( previous job: 102155.00, degradation: 96.58%)
  • dom0_varlibqubes_rnd4k_q1t1_read 3:read_bandwidth_kb: 8027.00 🔻 ( previous job: 8179.00, degradation: 98.14%)
  • dom0_varlibqubes_rnd4k_q1t1_write 3:write_bandwidth_kb: 4339.00 🔻 ( previous job: 4404.00, degradation: 98.52%)
  • fedora-43-xfce_root_seq1m_q8t1_read 3:read_bandwidth_kb: 373823.00 🔻 ( previous job: 415113.00, degradation: 90.05%)
  • fedora-43-xfce_root_seq1m_q8t1_write 3:write_bandwidth_kb: 138919.00 🟢 ( previous job: 138144.00, improvement: 100.56%)
  • fedora-43-xfce_root_seq1m_q1t1_read 3:read_bandwidth_kb: 356294.00 🟢 ( previous job: 310781.00, improvement: 114.64%)
  • fedora-43-xfce_root_rnd4k_q32t1_read 3:read_bandwidth_kb: 92375.00 🟢 ( previous job: 90877.00, improvement: 101.65%)
  • fedora-43-xfce_root_rnd4k_q32t1_write 3:write_bandwidth_kb: 3047.00 🟢 ( previous job: 1519.00, improvement: 200.59%)
  • fedora-43-xfce_root_rnd4k_q1t1_write 3:write_bandwidth_kb: 1098.00 🟢 ( previous job: 262.00, improvement: 419.08%)
  • fedora-43-xfce_private_seq1m_q8t1_read 3:read_bandwidth_kb: 360583.00 🟢 ( previous job: 355690.00, improvement: 101.38%)
  • fedora-43-xfce_private_seq1m_q8t1_write 3:write_bandwidth_kb: 179878.00 🟢 ( previous job: 130275.00, improvement: 138.08%)
  • fedora-43-xfce_private_seq1m_q1t1_read 3:read_bandwidth_kb: 293390.00 🔻 ( previous job: 294295.00, degradation: 99.69%)
  • fedora-43-xfce_private_rnd4k_q32t1_read 3:read_bandwidth_kb: 89009.00 🟢 ( previous job: 81357.00, improvement: 109.41%)
  • fedora-43-xfce_private_rnd4k_q1t1_read 3:read_bandwidth_kb: 8483.00 🟢 ( previous job: 8429.00, improvement: 100.64%)
  • fedora-43-xfce_private_rnd4k_q1t1_write 3:write_bandwidth_kb: 973.00 🟢 ( previous job: 567.00, improvement: 171.60%)
  • fedora-43-xfce_volatile_seq1m_q8t1_read 3:read_bandwidth_kb: 354728.00 🔻 ( previous job: 378957.00, degradation: 93.61%)
  • fedora-43-xfce_volatile_seq1m_q8t1_write 3:write_bandwidth_kb: 189734.00 🟢 ( previous job: 95037.00, improvement: 199.64%)
  • fedora-43-xfce_volatile_seq1m_q1t1_read 3:read_bandwidth_kb: 298995.00 🟢 ( previous job: 202428.00, improvement: 147.70%)
  • fedora-43-xfce_volatile_seq1m_q1t1_write 3:write_bandwidth_kb: 35994.00 🟢 ( previous job: 26016.00, improvement: 138.35%)
  • fedora-43-xfce_volatile_rnd4k_q32t1_read 3:read_bandwidth_kb: 75753.00 🔻 ( previous job: 79218.00, degradation: 95.63%)
  • fedora-43-xfce_volatile_rnd4k_q32t1_write 3:write_bandwidth_kb: 4425.00 🟢 ( previous job: 1720.00, improvement: 257.27%)
  • fedora-43-xfce_volatile_rnd4k_q1t1_read 3:read_bandwidth_kb: 8087.00 🔻 ( previous job: 8667.00, degradation: 93.31%)
  • fedora-43-xfce_volatile_rnd4k_q1t1_write 3:write_bandwidth_kb: 550.00 🟢 ( previous job: 548.00, improvement: 100.36%)

Comment thread qubes/tests/vm/mix/dvmtemplate.py Outdated
)

mock_events.reset_mock()
self.app.default_dispvm = False
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
self.app.default_dispvm = False
self.app.default_dispvm = None

Comment thread qubes/vm/mix/dvmtemplate.py Outdated
Comment on lines +379 to +395
used_by_system = []
if self == getattr(self.app, "default_dispvm", None):
used_by_system.append("default_dispvm")
if self == getattr(self.app, "management_dispvm", None):
used_by_system.append("management_dispvm")
if used_by_system:
msg = (
"Cannot change template_for_dispvms to False while it is the "
"system's %s" % (", ".join(used_by_system))
)
self.log.error("%s", msg)
raise qubes.exc.QubesVMInUseError(self, msg)
used_by_qube: dict[str, list] = {}
for qube in self.app.domains:
for prop in ["default_dispvm", "management_dispvm"]:
if self == getattr(qube, prop, None):
used_by_qube.setdefault(str(qube), []).append(prop)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks quite similar to qubes.on_domain_pre_deleted() handler. Maybe better extract that into a helper function and use in both places? That function would need to have a parameter for properties list, because here you want just template, management_dispvm and default_dispvm, but in remove case you want all (including netvm, guivm for example).

@ben-grande ben-grande force-pushed the validate-disp-tpl branch 3 times, most recently from 010bec3 to 80cd0d2 Compare May 24, 2026 22:56
Comment thread qubes/vm/mix/dvmtemplate.py Outdated
Validation on pre-events is not called when using "app.add_new_vm()", a
setter is necessary for those cases. Setter plus pre-set is unnecessary
when validating only newvalue.

Also prohibit removing "template_for_dispvms" when disposable template is
referenced as a property by the system or any other qube, including
itself.

Fixes: QubesOS/qubes-issues#10881
@ben-grande
Copy link
Copy Markdown
Contributor Author

PipelineRetry

@marmarek marmarek merged commit b4626b6 into QubesOS:main May 26, 2026
5 of 6 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.

System or per qube default disposable template is allowed to be a qube without template_for_dispvms=True

3 participants