Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filecopy GUI error message and kdialog progress bar fixes #476

Merged
merged 5 commits into from
Dec 4, 2023

Conversation

rustybird
Copy link
Contributor

In practice kdialog wasn't used, because the package was built without
USE_KDIALOG being defined.

Fixes QubesOS/qubes-issues#8738
A while ago qfile-agent was changed to show graphical error messages (in
addition to stderr messages) only if PROGRESS_TYPE=gui is set.

Set it even if a progress bar window is not being shown, e.g. if the
total estimated size is 0.

Fixes QubesOS/qubes-issues#8738
The estimated total size in bytes can be too large to use as kdialog's
maximum. Use the default 100 instead and calculate a percentage for the
current position, like in progress_zenity().

Fixes QubesOS/qubes-issues#8723
Copy link

codecov bot commented Dec 2, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5a29270) 69.89% compared to head (0ad16b2) 69.89%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #476   +/-   ##
=======================================
  Coverage   69.89%   69.89%           
=======================================
  Files           3        3           
  Lines         475      475           
=======================================
  Hits          332      332           
  Misses        143      143           

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

@rustybird rustybird force-pushed the gui-filecopy-progress-and-errors branch from 14357a2 to 0ad16b2 Compare December 2, 2023 19:03
@qubesos-bot
Copy link

qubesos-bot commented Dec 3, 2023

OpenQA test summary

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

New failures, excluding unstable

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

  • system_tests_basic_vm_qrexec_gui_zfs

  • system_tests_basic_vm_qrexec_gui_btrfs

    • TC_20_AudioVM_Pulse_debian-12-xfce-pool: test_222_audio_rec_unmuted_pulseaudio (error)
      qubes.exc.QubesVMError: Failed to attach audio input from dom0 to t...

    • TC_20_AudioVM_Pulse_fedora-38-xfce-pool: test_223_audio_play_hvm (failure)
      AssertionError: too short audio, expected 10s, got 9.13918367346938...

  • system_tests_basic_vm_qrexec_gui@hw1

  • system_tests_basic_vm_qrexec_gui

    • TC_20_NonAudio_debian-12-xfce: test_000_start_shutdown (error + timed out)
      qubes.exc.QubesVMShutdownTimeoutError: Domain shutdown timed out: '...

Failed tests

7 failures
  • system_tests_splitgpg

  • system_tests_basic_vm_qrexec_gui_zfs

  • system_tests_basic_vm_qrexec_gui_btrfs

    • TC_20_AudioVM_Pulse_debian-12-xfce-pool: test_222_audio_rec_unmuted_pulseaudio (error)
      qubes.exc.QubesVMError: Failed to attach audio input from dom0 to t...

    • TC_20_AudioVM_Pulse_fedora-38-xfce-pool: test_223_audio_play_hvm (failure)
      AssertionError: too short audio, expected 10s, got 9.13918367346938...

  • system_tests_basic_vm_qrexec_gui@hw1

  • system_tests_basic_vm_qrexec_gui

    • TC_20_NonAudio_debian-12-xfce: test_000_start_shutdown (error + timed out)
      qubes.exc.QubesVMShutdownTimeoutError: Domain shutdown timed out: '...

Fixed failures

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

6 fixed
  • system_tests_pvgrub_salt_storage

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

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

  • system_tests_splitgpg

  • system_tests_devices

    • TC_00_List_debian-12-xfce: test_001_list_loop_mounted (failure)
      AssertionError: Device test-inst-vm:loop0 (/tmp/test.img) should no...
  • system_tests_basic_vm_qrexec_gui_zfs

    • TC_20_AudioVM_Pulse_debian-12-xfce-pool: test_223_audio_play_hvm (failure)
      AssertionError: too short audio, expected 10s, got 9.35730158730158...
  • system_tests_basic_vm_qrexec_gui_ext4

Unstable tests

  • system_tests_splitgpg

    TC_10_Thunderbird_debian-12-xfce/test_000_send_receive_default (1/5 times with errors)
    • job 84710 dogtail.tree.SearchError: descendent of [application | Thunderbird]...
    TC_10_Thunderbird_fedora-38-xfce/test_000_send_receive_default (2/5 times with errors)
    • job 84710 dogtail.tree.SearchError: descendent of [application | Thunderbird]...
    • job 85646 Exception: Failed to send message with error 'unknown'
    TC_10_Thunderbird_whonix-workstation-17/test_000_send_receive_default (1/5 times with errors)
    • job 84710 dogtail.tree.SearchError: descendent of [application | Thunderbird]...
    TC_10_Thunderbird_debian-12-xfce/test_010_send_receive_inline_signed_only (1/5 times with errors)
    • job 84710 dogtail.tree.SearchError: descendent of [application | Thunderbird]...
    TC_10_Thunderbird_fedora-38-xfce/test_010_send_receive_inline_signed_only (1/5 times with errors)
    • job 84710 dogtail.tree.SearchError: descendent of [application | Thunderbird]...
    TC_10_Thunderbird_whonix-workstation-17/test_010_send_receive_inline_signed_only (1/5 times with errors)
    • job 84710 dogtail.tree.SearchError: descendent of [application | Thunderbird]...
    TC_10_Thunderbird_debian-12-xfce/test_020_send_receive_inline_with_attachment (2/5 times with errors)
    • job 84710 dogtail.tree.SearchError: descendent of [application | Thunderbird]...
    • job 85328 Exception: Failed to send message with error 'unknown'
    TC_10_Thunderbird_fedora-38-xfce/test_020_send_receive_inline_with_attachment (3/5 times with errors)
    • job 84710 dogtail.tree.SearchError: descendent of [application | Thunderbird]...
    • job 85117 Exception: Failed to send message with error 'unknown'
    • job 86105 Exception: Failed to send message with error 'unknown'
  • system_tests_usbproxy

    TC_20_USBProxy_core3_debian-12-xfce/test_070_attach_not_installed_front (1/5 times with errors)
    • job 85091 qubesusbproxy.core3ext.QubesUSBException: Device attach failed: 202...
    TC_20_USBProxy_core3_whonix-gateway-17/test_070_attach_not_installed_front (1/5 times with errors)
    • job 85302 qubesusbproxy.core3ext.QubesUSBException: Device attach failed: 202...
    TC_20_USBProxy_core3_whonix-workstation-17/test_070_attach_not_installed_front (1/5 times with errors)
    • job 84684 qubesusbproxy.core3ext.QubesUSBException: Device attach failed: 202...
  • system_tests_devices

    TC_00_List_debian-12-xfce/test_001_list_loop_mounted (3/5 times with errors)
    • job 84700 AssertionError: Device test-inst-vm:loop0 (/tmp/test.img) should no...
    • job 85318 AssertionError: Device test-inst-vm:loop0 (/tmp/test.img) should no...
    • job 85636 AssertionError: Device test-inst-vm:loop0 (/tmp/test.img) should no...
  • system_tests_whonix@hw1

    whonix_torbrowser/ (1/5 times with errors)
    whonix_torbrowser/ (1/5 times with errors)
    whonix_torbrowser/Failed (1/5 times with errors)
    • job 84081 # Test died: no candidate needle with tag(s) 'desktop-clear' matche...
  • system_tests_basic_vm_qrexec_gui_zfs

    TC_00_Basic/test_120_start_standalone_with_cdrom_dom0 (1/5 times with errors)
    • job 85304 AssertionError: 1 != 0 : b'Timeout waiting for dom0:loop4 device to...
    TC_20_AudioVM_Pulse_debian-12-xfce-pool/test_220_audio_play_pulseaudio (1/5 times with errors)
    • job 84686 AssertionError: Command 'paplay --format=float32le --rate=44100 --c...
    TC_20_AudioVM_Pulse_debian-12-xfce-pool/test_223_audio_play_hvm (1/5 times with errors)
    • job 85622 AssertionError: too short audio, expected 10s, got 9.35730158730158...
  • system_tests_basic_vm_qrexec_gui_ext4

    TC_20_AudioVM_Pulse_debian-12-xfce-pool/test_222_audio_rec_unmuted_pulseaudio (1/5 times with errors)
    • job 85648 qubes.exc.QubesVMError: Failed to attach audio input from dom0 to t...
  • system_tests_basic_vm_qrexec_gui_xfs

    TC_20_NonAudio_whonix-gateway-17-pool/test_300_bug_1028_gui_memory_pinning (1/5 times with errors)
    • job 86094 AssertionError: Dom0 window doesn't match VM window content, saved ...
  • system_tests_basic_vm_qrexec_gui@hw1

    TC_20_AudioVM_Pulse_debian-12-xfce/test_220_audio_play_pulseaudio (1/5 times with errors)
    • job 86091 AssertionError: Command 'paplay --format=float32le --rate=44100 --c...
    TC_20_NonAudio_whonix-gateway-17/test_300_bug_1028_gui_memory_pinning (2/5 times with errors)
    • job 85314 AssertionError: Dom0 window doesn't match VM window content, saved ...
    • job 86091 AssertionError: Dom0 window doesn't match VM window content, saved ...
  • system_tests_basic_vm_qrexec_gui

    TC_20_AudioVM_Pulse_debian-12-xfce/test_220_audio_play_pulseaudio (1/5 times with errors)
    • job 86091 AssertionError: Command 'paplay --format=float32le --rate=44100 --c...
    TC_20_NonAudio_whonix-gateway-17/test_300_bug_1028_gui_memory_pinning (2/5 times with errors)
    • job 85314 AssertionError: Dom0 window doesn't match VM window content, saved ...
    • job 86091 AssertionError: Dom0 window doesn't match VM window content, saved ...
  • system_tests_whonix

    whonix_torbrowser/ (1/5 times with errors)
    whonix_torbrowser/ (1/5 times with errors)
    whonix_torbrowser/Failed (1/5 times with errors)
    • job 84081 # Test died: no candidate needle with tag(s) 'desktop-clear' matche...

@marmarek marmarek merged commit 4ec4c79 into QubesOS:main Dec 4, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants