Skip to content

Conversation

ben-grande
Copy link
Contributor

@ben-grande ben-grande commented Aug 13, 2025

Affects suspend, which uses this function.

For: QubesOS/qubes-issues#1512

@ben-grande ben-grande marked this pull request as ready for review August 13, 2025 15:34
@codecov
Copy link

codecov bot commented Aug 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.51%. Comparing base (5140b97) to head (10b3de5).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #718      +/-   ##
==========================================
- Coverage   70.55%   70.51%   -0.05%     
==========================================
  Files          61       61              
  Lines       13616    13623       +7     
==========================================
- Hits         9607     9606       -1     
- Misses       4009     4017       +8     
Flag Coverage Δ
unittests 70.51% <100.00%> (-0.05%) ⬇️

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

qubesos-bot commented Aug 14, 2025

OpenQA test summary

Complete test suite and dependencies: https://openqa.qubes-os.org/tests/overview?distri=qubesos&version=4.3&build=2025082915-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=2025081011-4.3&flavor=update

  • 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) 'qubes-website' matche...
  • system_tests_qwt_win11@hw13

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

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

  • system_tests_guivm_gpu_gui_interactive@hw13

    • update_guivm: Failed (test died)
      # Test died: command '(set -o pipefail; qubesctl --all --show-outpu...

Failed tests

8 failures
  • system_tests_extra

    • TC_00_QVCTest_whonix-workstation-17: test_010_screenshare (failure)
      AssertionError: 1 != 0 : Timeout waiting for /dev/video0 in test-in...
  • 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_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) 'qubes-website' matche...
  • system_tests_qwt_win11@hw13

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

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

  • system_tests_guivm_gpu_gui_interactive@hw13

    • update_guivm: Failed (test died)
      # Test died: command '(set -o pipefail; qubesctl --all --show-outpu...

Fixed failures

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

72 fixed

Unstable tests

Performance Tests

Performance degradation:

15 performance degradations
  • fedora-42-xfce_exec-data-duplex: 75.21 🔺 ( previous job: 67.92, degradation: 110.73%)
  • whonix-workstation-17_socket-data-duplex: 165.62 🔺 ( previous job: 147.97, degradation: 111.93%)
  • dom0_root_seq1m_q8t1_read 3:read_bandwidth_kb: 269418.00 :small_red_triangle: ( previous job: 497426.00, degradation: 54.16%)
  • dom0_root_seq1m_q1t1_read 3:read_bandwidth_kb: 96031.00 :small_red_triangle: ( previous job: 431512.00, degradation: 22.25%)
  • dom0_root_seq1m_q1t1_write 3:write_bandwidth_kb: 19641.00 :small_red_triangle: ( previous job: 196254.00, degradation: 10.01%)
  • dom0_root_rnd4k_q32t1_write 3:write_bandwidth_kb: 1520.00 :small_red_triangle: ( previous job: 2446.00, degradation: 62.14%)
  • dom0_varlibqubes_rnd4k_q1t1_write 3:write_bandwidth_kb: 3383.00 :small_red_triangle: ( previous job: 3925.00, degradation: 86.19%)
  • fedora-42-xfce_root_rnd4k_q32t1_write 3:write_bandwidth_kb: 1734.00 :small_red_triangle: ( previous job: 3020.00, degradation: 57.42%)
  • fedora-42-xfce_private_seq1m_q1t1_write 3:write_bandwidth_kb: 29416.00 :small_red_triangle: ( previous job: 79539.00, degradation: 36.98%)
  • fedora-42-xfce_private_rnd4k_q32t1_write 3:write_bandwidth_kb: 2468.00 :small_red_triangle: ( previous job: 3765.00, degradation: 65.55%)
  • fedora-42-xfce_volatile_seq1m_q8t1_read 3:read_bandwidth_kb: 325745.00 :small_red_triangle: ( previous job: 383531.00, degradation: 84.93%)
  • fedora-42-xfce_volatile_seq1m_q8t1_write 3:write_bandwidth_kb: 136480.00 :small_red_triangle: ( previous job: 157382.00, degradation: 86.72%)
  • fedora-42-xfce_volatile_seq1m_q1t1_write 3:write_bandwidth_kb: 44503.00 :small_red_triangle: ( previous job: 64217.00, degradation: 69.30%)
  • fedora-42-xfce_volatile_rnd4k_q32t1_read 3:read_bandwidth_kb: 75007.00 :small_red_triangle: ( previous job: 87141.00, degradation: 86.08%)
  • fedora-42-xfce_volatile_rnd4k_q1t1_write 3:write_bandwidth_kb: 1564.00 :small_red_triangle: ( previous job: 2384.00, degradation: 65.60%)

Remaining performance tests:

159 tests
  • debian-13-xfce_exec: 8.92 🔺 ( previous job: 8.36, degradation: 106.66%)
  • debian-13-xfce_exec-root: 27.40 🔺 ( previous job: 27.36, degradation: 100.15%)
  • debian-13-xfce_socket: 8.12 🟢 ( previous job: 8.57, improvement: 94.70%)
  • debian-13-xfce_socket-root: 8.48 🔺 ( previous job: 8.26, degradation: 102.65%)
  • debian-13-xfce_exec-data-simplex: 71.24 🟢 ( previous job: 72.43, improvement: 98.36%)
  • debian-13-xfce_exec-data-duplex: 75.68 🟢 ( previous job: 76.65, improvement: 98.73%)
  • debian-13-xfce_exec-data-duplex-root: 91.80 🔺 ( previous job: 91.79, degradation: 100.01%)
  • debian-13-xfce_socket-data-duplex: 145.91 🔺 ( previous job: 133.45, degradation: 109.34%)
  • fedora-42-xfce_exec: 9.11 🔺 ( previous job: 9.06, degradation: 100.57%)
  • fedora-42-xfce_exec-root: 60.01 🔺 ( previous job: 58.19, degradation: 103.13%)
  • fedora-42-xfce_socket: 8.46 🟢 ( previous job: 8.48, improvement: 99.74%)
  • fedora-42-xfce_socket-root: 8.58 🔺 ( previous job: 8.18, degradation: 104.82%)
  • fedora-42-xfce_exec-data-simplex: 74.15 🟢 ( previous job: 78.48, improvement: 94.47%)
  • fedora-42-xfce_exec-data-duplex-root: 98.11 🔺 ( previous job: 96.36, degradation: 101.82%)
  • fedora-42-xfce_socket-data-duplex: 154.38 🔺 ( previous job: 142.58, degradation: 108.27%)
  • whonix-gateway-17_exec: 7.56 🟢 ( previous job: 8.12, improvement: 93.11%)
  • whonix-gateway-17_exec-root: 40.20 🟢 ( previous job: 41.05, improvement: 97.91%)
  • whonix-gateway-17_socket: 8.19 🟢 ( previous job: 8.52, improvement: 96.04%)
  • whonix-gateway-17_socket-root: 7.25 🟢 ( previous job: 8.12, improvement: 89.34%)
  • whonix-gateway-17_exec-data-simplex: 74.69 🟢 ( previous job: 83.60, improvement: 89.34%)
  • whonix-gateway-17_exec-data-duplex: 67.00 🟢 ( previous job: 68.38, improvement: 97.98%)
  • whonix-gateway-17_exec-data-duplex-root: 79.36 🟢 ( previous job: 99.37, improvement: 79.86%)
  • whonix-gateway-17_socket-data-duplex: 173.12 🔺 ( previous job: 167.12, degradation: 103.59%)
  • whonix-workstation-17_exec: 8.28 🔺 ( previous job: 7.57, degradation: 109.43%)
  • whonix-workstation-17_exec-root: 55.88 🟢 ( previous job: 56.76, improvement: 98.45%)
  • whonix-workstation-17_socket: 8.37 🟢 ( previous job: 8.59, improvement: 97.53%)
  • whonix-workstation-17_socket-root: 8.35 🟢 ( previous job: 8.89, improvement: 93.95%)
  • whonix-workstation-17_exec-data-simplex: 72.78 🔺 ( previous job: 66.80, degradation: 108.94%)
  • whonix-workstation-17_exec-data-duplex: 73.62 🟢 ( previous job: 74.50, improvement: 98.82%)
  • whonix-workstation-17_exec-data-duplex-root: 96.86 🟢 ( previous job: 102.34, improvement: 94.64%)
  • dom0_root_seq1m_q8t1_write 3:write_bandwidth_kb: 252790.00 :small_red_triangle: ( previous job: 265260.00, degradation: 95.30%)
  • dom0_root_rnd4k_q32t1_read 3:read_bandwidth_kb: 24825.00 :green_circle: ( previous job: 23940.00, improvement: 103.70%)
  • dom0_root_rnd4k_q1t1_read 3:read_bandwidth_kb: 9157.00 :green_circle: ( previous job: 5874.00, improvement: 155.89%)
  • dom0_root_rnd4k_q1t1_write 3:write_bandwidth_kb: 3191.00 :green_circle: ( previous job: 29.00, improvement: 11003.45%)
  • dom0_varlibqubes_seq1m_q8t1_read 3:read_bandwidth_kb: 458694.00 :green_circle: ( previous job: 292489.00, improvement: 156.82%)
  • dom0_varlibqubes_seq1m_q8t1_write 3:write_bandwidth_kb: 125437.00 :green_circle: ( previous job: 110817.00, improvement: 113.19%)
  • dom0_varlibqubes_seq1m_q1t1_read 3:read_bandwidth_kb: 400985.00 :green_circle: ( previous job: 137802.00, improvement: 290.99%)
  • dom0_varlibqubes_seq1m_q1t1_write 3:write_bandwidth_kb: 195845.00 :green_circle: ( previous job: 121719.00, improvement: 160.90%)
  • dom0_varlibqubes_rnd4k_q32t1_read 3:read_bandwidth_kb: 105886.00 :green_circle: ( previous job: 103932.00, improvement: 101.88%)
  • dom0_varlibqubes_rnd4k_q32t1_write 3:write_bandwidth_kb: 7558.00 :green_circle: ( previous job: 6356.00, improvement: 118.91%)
  • dom0_varlibqubes_rnd4k_q1t1_read 3:read_bandwidth_kb: 7979.00 :green_circle: ( previous job: 7695.00, improvement: 103.69%)
  • fedora-42-xfce_root_seq1m_q8t1_read 3:read_bandwidth_kb: 372363.00 :green_circle: ( previous job: 366891.00, improvement: 101.49%)
  • fedora-42-xfce_root_seq1m_q8t1_write 3:write_bandwidth_kb: 146655.00 :green_circle: ( previous job: 140215.00, improvement: 104.59%)
  • fedora-42-xfce_root_seq1m_q1t1_read 3:read_bandwidth_kb: 330364.00 :green_circle: ( previous job: 299764.00, improvement: 110.21%)
  • fedora-42-xfce_root_seq1m_q1t1_write 3:write_bandwidth_kb: 62239.00 :green_circle: ( previous job: 47575.00, improvement: 130.82%)
  • fedora-42-xfce_root_rnd4k_q32t1_read 3:read_bandwidth_kb: 87489.00 :green_circle: ( previous job: 86001.00, improvement: 101.73%)
  • fedora-42-xfce_root_rnd4k_q1t1_read 3:read_bandwidth_kb: 8887.00 :small_red_triangle: ( previous job: 9042.00, degradation: 98.29%)
  • fedora-42-xfce_root_rnd4k_q1t1_write 3:write_bandwidth_kb: 1434.00 :green_circle: ( previous job: 1368.00, improvement: 104.82%)
  • fedora-42-xfce_private_seq1m_q8t1_read 3:read_bandwidth_kb: 380608.00 :small_red_triangle: ( previous job: 387500.00, degradation: 98.22%)
  • fedora-42-xfce_private_seq1m_q8t1_write 3:write_bandwidth_kb: 167304.00 :green_circle: ( previous job: 136640.00, improvement: 122.44%)
  • fedora-42-xfce_private_seq1m_q1t1_read 3:read_bandwidth_kb: 311519.00 :small_red_triangle: ( previous job: 325139.00, degradation: 95.81%)
  • fedora-42-xfce_private_rnd4k_q32t1_read 3:read_bandwidth_kb: 91402.00 :green_circle: ( previous job: 87396.00, improvement: 104.58%)
  • fedora-42-xfce_private_rnd4k_q1t1_read 3:read_bandwidth_kb: 8718.00 :small_red_triangle: ( previous job: 8992.00, degradation: 96.95%)
  • fedora-42-xfce_private_rnd4k_q1t1_write 3:write_bandwidth_kb: 1252.00 :green_circle: ( previous job: 1251.00, improvement: 100.08%)
  • fedora-42-xfce_volatile_seq1m_q1t1_read 3:read_bandwidth_kb: 312914.00 :green_circle: ( previous job: 293225.00, improvement: 106.71%)
  • fedora-42-xfce_volatile_rnd4k_q32t1_write 3:write_bandwidth_kb: 4430.00 :green_circle: ( previous job: 4098.00, improvement: 108.10%)
  • fedora-42-xfce_volatile_rnd4k_q1t1_read 3:read_bandwidth_kb: 8129.00 :small_red_triangle: ( previous job: 8804.00, degradation: 92.33%)
  • debian-13-xfce_dispvm (mean:6.476): 77.72
  • debian-13-xfce_dispvm-gui (mean:7.369): 88.43 🟢 ( previous job: 119.40, improvement: 74.06%)
  • debian-13-xfce_dispvm-concurrent (mean:3.112): 37.35
  • debian-13-xfce_dispvm-gui-concurrent (mean:3.873): 46.47 🟢 ( previous job: 64.59, improvement: 71.94%)
  • debian-13-xfce_dispvm-dom0 (mean:6.818): 81.82
  • debian-13-xfce_dispvm-dom0-gui (mean:8.142): 97.71 🟢 ( previous job: 127.44, improvement: 76.67%)
  • debian-13-xfce_dispvm-dom0-concurrent (mean:3.509): 42.11
  • debian-13-xfce_dispvm-dom0-gui-concurrent (mean:4.151): 49.81 🟢 ( previous job: 65.60, improvement: 75.94%)
  • debian-13-xfce_dispvm-preload (mean:3.605): 43.26
  • debian-13-xfce_dispvm-preload-gui (mean:4.728): 56.74
  • debian-13-xfce_dispvm-preload-concurrent (mean:2.772): 33.27
  • debian-13-xfce_dispvm-preload-gui-concurrent (mean:3.393): 40.71
  • debian-13-xfce_dispvm-preload-dom0 (mean:3.742): 44.90
  • debian-13-xfce_dispvm-preload-dom0-gui (mean:5.435): 65.22
  • debian-13-xfce_dispvm-preload-dom0-concurrent (mean:3.29): 39.48
  • debian-13-xfce_dispvm-preload-dom0-gui-concurrent (mean:3.99): 47.88
  • debian-13-xfce_dispvm-api (mean:7.076): 84.92
  • debian-13-xfce_dispvm-gui-api (mean:7.893): 94.72 🟢 ( previous job: 127.48, improvement: 74.30%)
  • debian-13-xfce_dispvm-concurrent-api (mean:3.473): 41.68
  • debian-13-xfce_dispvm-gui-concurrent-api (mean:4.093): 49.12 🟢 ( previous job: 65.39, improvement: 75.11%)
  • debian-13-xfce_dispvm-preload-api (mean:3.765): 45.18
  • debian-13-xfce_dispvm-preload-less-api (mean:6.178): 74.14
  • debian-13-xfce_dispvm-preload-more-api (mean:3.941): 47.29
  • debian-13-xfce_dispvm-preload-gui-api (mean:5.446): 65.35
  • debian-13-xfce_dispvm-preload-concurrent-api (mean:3.094): 37.13
  • debian-13-xfce_dispvm-preload-gui-concurrent-api (mean:3.808): 45.69
  • debian-13-xfce_vm (mean:0.043): 0.52
  • debian-13-xfce_vm-gui (mean:0.046): 0.55 🟢 ( previous job: 7.40, improvement: 7.47%)
  • debian-13-xfce_vm-concurrent (mean:0.026): 0.31
  • debian-13-xfce_vm-gui-concurrent (mean:0.036): 0.43 🟢 ( previous job: 7.33, improvement: 5.91%)
  • debian-13-xfce_vm-api (mean:0.038): 0.46
  • debian-13-xfce_vm-gui-api (mean:0.042): 0.51 🟢 ( previous job: 2.17, improvement: 23.40%)
  • debian-13-xfce_vm-concurrent-api (mean:0.029): 0.35
  • debian-13-xfce_vm-gui-concurrent-api (mean:0.029): 0.35 🟢 ( previous job: 1.82, improvement: 19.18%)
  • fedora-42-xfce_dispvm (mean:7.041): 84.49 🟢 ( previous job: 111.99, improvement: 75.44%)
  • fedora-42-xfce_dispvm-gui (mean:8.355): 100.26 🟢 ( previous job: 131.63, improvement: 76.17%)
  • fedora-42-xfce_dispvm-concurrent (mean:3.636): 43.63 🟢 ( previous job: 57.25, improvement: 76.21%)
  • fedora-42-xfce_dispvm-gui-concurrent (mean:4.491): 53.89 🟢 ( previous job: 74.72, improvement: 72.12%)
  • fedora-42-xfce_dispvm-dom0 (mean:7.763): 93.15 🟢 ( previous job: 124.92, improvement: 74.57%)
  • fedora-42-xfce_dispvm-dom0-gui (mean:9.041): 108.49 🟢 ( previous job: 147.17, improvement: 73.72%)
  • fedora-42-xfce_dispvm-dom0-concurrent (mean:3.794): 45.53 🟢 ( previous job: 64.09, improvement: 71.04%)
  • fedora-42-xfce_dispvm-dom0-gui-concurrent (mean:4.807): 57.69 🟢 ( previous job: 75.59, improvement: 76.31%)
  • fedora-42-xfce_dispvm-preload (mean:4.106): 49.28 🟢 ( previous job: 69.72, improvement: 70.67%)
  • fedora-42-xfce_dispvm-preload-gui (mean:4.82): 57.84 🟢 ( previous job: 79.21, improvement: 73.03%)
  • fedora-42-xfce_dispvm-preload-concurrent (mean:2.915): 34.98 🟢 ( previous job: 49.89, improvement: 70.12%)
  • fedora-42-xfce_dispvm-preload-gui-concurrent (mean:3.851): 46.22 🟢 ( previous job: 69.08, improvement: 66.90%)
  • fedora-42-xfce_dispvm-preload-dom0 (mean:4.437): 53.24 🟢 ( previous job: 72.35, improvement: 73.59%)
  • fedora-42-xfce_dispvm-preload-dom0-gui (mean:5.622): 67.47 🟢 ( previous job: 91.39, improvement: 73.83%)
  • fedora-42-xfce_dispvm-preload-dom0-concurrent (mean:3.63): 43.56 🟢 ( previous job: 57.13, improvement: 76.26%)
  • fedora-42-xfce_dispvm-preload-dom0-gui-concurrent (mean:4.357): 52.28 🟢 ( previous job: 67.89, improvement: 77.02%)
  • fedora-42-xfce_dispvm-api (mean:7.674): 92.08 🟢 ( previous job: 128.15, improvement: 71.86%)
  • fedora-42-xfce_dispvm-gui-api (mean:8.828): 105.94 🟢 ( previous job: 149.03, improvement: 71.09%)
  • fedora-42-xfce_dispvm-concurrent-api (mean:3.772): 45.26 🟢 ( previous job: 66.32, improvement: 68.25%)
  • fedora-42-xfce_dispvm-gui-concurrent-api (mean:4.557): 54.69 🟢 ( previous job: 77.33, improvement: 70.72%)
  • fedora-42-xfce_dispvm-preload-api (mean:4.346): 52.15 🟢 ( previous job: 73.95, improvement: 70.52%)
  • fedora-42-xfce_dispvm-preload-less-api (mean:7.082): 84.98 🟢 ( previous job: 116.39, improvement: 73.02%)
  • fedora-42-xfce_dispvm-preload-more-api (mean:3.965): 47.59 🟢 ( previous job: 71.33, improvement: 66.71%)
  • fedora-42-xfce_dispvm-preload-gui-api (mean:5.274): 63.29 🟢 ( previous job: 92.06, improvement: 68.74%)
  • fedora-42-xfce_dispvm-preload-concurrent-api (mean:3.343): 40.11 🟢 ( previous job: 61.60, improvement: 65.12%)
  • fedora-42-xfce_dispvm-preload-gui-concurrent-api (mean:4.469): 53.63 🟢 ( previous job: 77.66, improvement: 69.06%)
  • fedora-42-xfce_vm (mean:0.034): 0.41 🟢 ( previous job: 9.19, improvement: 4.50%)
  • fedora-42-xfce_vm-gui (mean:0.037): 0.45 🟢 ( previous job: 9.01, improvement: 4.99%)
  • fedora-42-xfce_vm-concurrent (mean:0.016): 0.20 🟢 ( previous job: 8.88, improvement: 2.22%)
  • fedora-42-xfce_vm-gui-concurrent (mean:0.02): 0.24 🟢 ( previous job: 9.15, improvement: 2.66%)
  • fedora-42-xfce_vm-api (mean:0.038): 0.45 🟢 ( previous job: 2.24, improvement: 20.20%)
  • fedora-42-xfce_vm-gui-api (mean:0.043): 0.51 🟢 ( previous job: 2.33, improvement: 21.95%)
  • fedora-42-xfce_vm-concurrent-api (mean:0.028): 0.33 🟢 ( previous job: 1.62, improvement: 20.66%)
  • fedora-42-xfce_vm-gui-concurrent-api (mean:0.031): 0.38 🟢 ( previous job: 2.20, improvement: 17.08%)
  • whonix-workstation-17_dispvm (mean:7.699): 92.39 🟢 ( previous job: 123.87, improvement: 74.59%)
  • whonix-workstation-17_dispvm-gui (mean:8.935): 107.22 🟢 ( previous job: 148.68, improvement: 72.11%)
  • whonix-workstation-17_dispvm-concurrent (mean:4.152): 49.82 🟢 ( previous job: 77.00, improvement: 64.70%)
  • whonix-workstation-17_dispvm-gui-concurrent (mean:4.986): 59.83 🟢 ( previous job: 89.18, improvement: 67.09%)
  • whonix-workstation-17_dispvm-dom0 (mean:8.407): 100.88 🟢 ( previous job: 135.24, improvement: 74.59%)
  • whonix-workstation-17_dispvm-dom0-gui (mean:9.639): 115.67 🟢 ( previous job: 159.23, improvement: 72.65%)
  • whonix-workstation-17_dispvm-dom0-concurrent (mean:4.66): 55.92 🟢 ( previous job: 76.91, improvement: 72.71%)
  • whonix-workstation-17_dispvm-dom0-gui-concurrent (mean:5.402): 64.83 🟢 ( previous job: 87.45, improvement: 74.13%)
  • whonix-workstation-17_dispvm-preload (mean:7.816): 93.80 🟢 ( previous job: 124.31, improvement: 75.45%)
  • whonix-workstation-17_dispvm-preload-gui (mean:8.345): 100.13 🟢 ( previous job: 138.71, improvement: 72.19%)
  • whonix-workstation-17_dispvm-preload-concurrent (mean:4.003): 48.04 🟢 ( previous job: 66.00, improvement: 72.78%)
  • whonix-workstation-17_dispvm-preload-gui-concurrent (mean:4.765): 57.18 🟢 ( previous job: 77.46, improvement: 73.82%)
  • whonix-workstation-17_dispvm-preload-dom0 (mean:4.639): 55.67 🟢 ( previous job: 81.24, improvement: 68.52%)
  • whonix-workstation-17_dispvm-preload-dom0-gui (mean:6.367): 76.41 🟢 ( previous job: 102.71, improvement: 74.39%)
  • whonix-workstation-17_dispvm-preload-dom0-concurrent (mean:4.021): 48.25 🟢 ( previous job: 72.84, improvement: 66.25%)
  • whonix-workstation-17_dispvm-preload-dom0-gui-concurrent (mean:4.677): 56.13 🟢 ( previous job: 87.14, improvement: 64.41%)
  • whonix-workstation-17_dispvm-api (mean:8.574): 102.89 🟢 ( previous job: 140.50, improvement: 73.23%)
  • whonix-workstation-17_dispvm-gui-api (mean:9.905): 118.86 🟢 ( previous job: 157.40, improvement: 75.52%)
  • whonix-workstation-17_dispvm-concurrent-api (mean:4.385): 52.62 🟢 ( previous job: 76.06, improvement: 69.18%)
  • whonix-workstation-17_dispvm-gui-concurrent-api (mean:5.026): 60.31 🟢 ( previous job: 87.18, improvement: 69.17%)
  • whonix-workstation-17_dispvm-preload-api (mean:4.628): 55.53 🟢 ( previous job: 84.09, improvement: 66.04%)
  • whonix-workstation-17_dispvm-preload-less-api (mean:7.691): 92.29 🟢 ( previous job: 126.04, improvement: 73.23%)
  • whonix-workstation-17_dispvm-preload-more-api (mean:4.811): 57.74 🟢 ( previous job: 89.12, improvement: 64.79%)
  • whonix-workstation-17_dispvm-preload-gui-api (mean:6.217): 74.61 🟢 ( previous job: 101.72, improvement: 73.35%)
  • whonix-workstation-17_dispvm-preload-concurrent-api (mean:3.915): 46.98 🟢 ( previous job: 71.58, improvement: 65.63%)
  • whonix-workstation-17_dispvm-preload-gui-concurrent-api (mean:5.189): 62.27 🟢 ( previous job: 88.24, improvement: 70.57%)
  • whonix-workstation-17_vm (mean:0.026): 0.32 🟢 ( previous job: 9.27, improvement: 3.42%)
  • whonix-workstation-17_vm-gui (mean:0.033): 0.40 🟢 ( previous job: 9.82, improvement: 4.06%)
  • whonix-workstation-17_vm-concurrent (mean:0.014): 0.16 🟢 ( previous job: 8.93, improvement: 1.83%)
  • whonix-workstation-17_vm-gui-concurrent (mean:0.028): 0.33 🟢 ( previous job: 9.38, improvement: 3.53%)
  • whonix-workstation-17_vm-api (mean:0.036): 0.43 🟢 ( previous job: 2.56, improvement: 16.73%)
  • whonix-workstation-17_vm-gui-api (mean:0.039): 0.47 🟢 ( previous job: 2.53, improvement: 18.39%)
  • whonix-workstation-17_vm-concurrent-api (mean:0.035): 0.43 🟢 ( previous job: 1.81, improvement: 23.52%)
  • whonix-workstation-17_vm-gui-concurrent-api (mean:0.031): 0.37 🟢 ( previous job: 2.57, improvement: 14.37%)

Comment on lines 89 to 94
def on_domain_delete(
cls,
subject,
event,
vm,
):
Copy link
Member

Choose a reason for hiding this comment

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

Most (all?) of those reformatting looks bogus (black bug? wrong arguments?) - the line was way under 80 chars, so there is no need for splitting. And black doesn't attempt to do it for me...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Strange indeed. Which black version do you have?

Fedora 42 black from repos:

% git rev-parse HEAD
2249d3871bef5494969c192f44afd7217be4a976

% black --version
black, 24.4.2 (compiled: no)
Python (CPython) 3.13.7

% black -l80 --check qubes/api/internal.py 
All done! ✨ 🍰 ✨
1 file would be left unchanged.

Debian with black installed via pip (latest)

% git rev-parse HEAD
2249d3871bef5494969c192f44afd7217be4a976

% black --version
black, 25.1.0 (compiled: yes)
Python (CPython) 3.11.2

% black -l80 qubes/api/internal.py
All done! ✨ 🍰 ✨
1 file left unchanged.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It passed CI with black 24.4.2 on https://gitlab.com/QubesOS/qubes-core-admin/-/jobs/11051605265.

It is a bogus change indeed..., I will amend the commit with only the relevant chunks of code from qubes/api/internal.py and see what the black from CI throws.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

And last test: https://gitlab.com/QubesOS/qubes-core-admin/-/jobs/11136313453

Why black wanted a reformatted version before I still don't know.

@ben-grande
Copy link
Contributor Author

The openqa timeout is likely due to the global dispvm being set by anaconda. When calling /usr/lib/qubes/preload-dispvm, it doesn't have the patched app or Qubes() object, therefore it also tries to restart qubes outside of the test.

@marmarek
Copy link
Member

it doesn't have the patched app or Qubes() object,

The script communicates with qubesd, which during tests is the patched one (real one is stopped for the duration of tests) - so, I don't think this is the problem. Maybe the script is called before some features are set/cleared?

@ben-grande ben-grande force-pushed the preload-suspend branch 2 times, most recently from 188d0d1 to ac42b4d Compare August 28, 2025 08:14
Affects suspend, which uses this function.

For: QubesOS/qubes-issues#1512
- Easier copy-paste when code duplication is necessary;
- Only fires event if the qube should be really preloaded, which is more
  difficult to do considering the global feature. The prior behavior
  didn't error out, just a warning log;
- Add tests

For: QubesOS/qubes-issues#1512
@ben-grande
Copy link
Contributor Author

Maybe the script is called before some features are set/cleared?

Right... I needed to clear features of qubes outside of the test.

@marmarek
Copy link
Member

system_tests_backup

* TC_00_Backup: [test_010_selective_restore](https://openqa.qubes-os.org/tests/150994#step/TC_00_Backup/5) (failure)
  `: VM test-inst-dvm - property template not properly restored... `

This recently started failing. Last test run on current-testing (no PRs) is green: https://openqa.qubes-os.org/tests/150611, so it's most likely some of the included PRs to blame (not sure which one).

@marmarek
Copy link
Member

marmarek commented Aug 29, 2025

Technically it could be also due to some commits merged into main, but not released yet. Given some are about backups, it's likely.

@ben-grande
Copy link
Contributor Author

Technically it could be also due to some commits merged into main, but not released yet. Given some are about backups, it's likely.

https://openqa.qubes-os.org/tests/150359#step/system_tests/33

#720 (comment)

@ben-grande
Copy link
Contributor Author

Yes, strange, I don't know how that happened. I remember seeing the results all green once, but the comment history does not show that...

Anyway, #726

@marmarek marmarek merged commit ab3f759 into QubesOS:main Aug 30, 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