How to file a helpful issue
Qubes OS release
R4.3
Brief summary
Attempting to run the run-tests script under Fedora 43 results in a massive flood of RuntimeError: There is no current event loop in thread 'MainThread' errors. Every single test either fails, errors out, or is skipped.
Steps to reproduce
- In a Fedora 43 template, install the dependencies listed in the
install_rpm_deps function of qubes-core-admin/run-tests.
- Shut down the template.
- Shut down the AppVM you intend to run the tests in.
- Boot the AppVM.
- Clone
qubes-core-admin.
- Run
cd qubes-core-admin; ./run-tests.
Expected behavior
All tests either pass or are skipped.
Actual behavior
All tests fail, error out, or are skipped. Part of the failure log looks like this:
ubes.tests.selftest/TC_00_SelfTest/test_000_ignore_never_awaited ... ERROR (RuntimeError: RuntimeError("There is no current event loop in thread 'MainThread'."))
ERROR (RuntimeError: There is no current event loop in thread 'MainThread'.)
started
qubes.tests.selftest/TC_00_SelfTest/test_001_raise_never_awaited_by_default ... ERROR (RuntimeError: RuntimeError("There is no current event loop in thread 'MainThread'."))
ERROR (RuntimeError: There is no current event loop in thread 'MainThread'.)
started
qubes.tests.events/TC_00_Emitter/test_000_add_handler ... ERROR (RuntimeError: RuntimeError("There is no current event loop in thread 'MainThread'."))
ERROR (RuntimeError: There is no current event loop in thread 'MainThread'.)
started
qubes.tests.events/TC_00_Emitter/test_001_decorator ... ERROR (RuntimeError: RuntimeError("There is no current event loop in thread 'MainThread'."))
ERROR (RuntimeError: There is no current event loop in thread 'MainThread'.)
started
qubes.tests.events/TC_00_Emitter/test_002_fire_for_effect ... ERROR (RuntimeError: RuntimeError("There is no current event loop in thread 'MainThread'."))
ERROR (RuntimeError: There is no current event loop in thread 'MainThread'.)
started
qubes.tests.events/TC_00_Emitter/test_004_catch_all ... ERROR (RuntimeError: RuntimeError("There is no current event loop in thread 'MainThread'."))
ERROR (RuntimeError: There is no current event loop in thread 'MainThread'.)
started
qubes.tests.events/TC_00_Emitter/test_005_fire_for_effect_async ... ERROR (RuntimeError: RuntimeError("There is no current event loop in thread 'MainThread'."))
ERROR (RuntimeError: There is no current event loop in thread 'MainThread'.)
started
qubes.tests.events/TC_00_Emitter/test_005_instance_handlers ... ERROR (RuntimeError: RuntimeError("There is no current event loop in thread 'MainThread'."))
ERROR (RuntimeError: There is no current event loop in thread 'MainThread'.)
started
qubes.tests.events/TC_00_Emitter/test_006_wildcard ... ERROR (RuntimeError: RuntimeError("There is no current event loop in thread 'MainThread'."))
ERROR (RuntimeError: There is no current event loop in thread 'MainThread'.)
started
qubes.tests.devices/TC_00_DeviceCollection/test_000_init ... ERROR (RuntimeError: RuntimeError("There is no current event loop in thread 'MainThread'."))
ERROR (RuntimeError: There is no current event loop in thread 'MainThread'.)
started
qubes.tests.devices/TC_00_DeviceCollection/test_001_attach ... ERROR (RuntimeError: RuntimeError("There is no current event loop in thread 'MainThread'."))
ERROR (RuntimeError: There is no current event loop in thread 'MainThread'.)
started
qubes.tests.devices/TC_00_DeviceCollection/test_002_attach_to_halted ... ERROR (RuntimeError: RuntimeError("There is no current event loop in thread 'MainThread'."))
ERROR (RuntimeError: There is no current event loop in thread 'MainThread'.)
started
qubes.tests.devices/TC_00_DeviceCollection/test_003_detach ... ERROR (RuntimeError: RuntimeError("There is no current event loop in thread 'MainThread'."))
ERROR (RuntimeError: There is no current event loop in thread 'MainThread'.)
started
qubes.tests.devices/TC_00_DeviceCollection/test_004_detach_from_halted ... ERROR (RuntimeError: RuntimeError("There is no current event loop in thread 'MainThread'."))
ERROR (RuntimeError: There is no current event loop in thread 'MainThread'.)
started
qubes.tests.devices/TC_00_DeviceCollection/test_010_empty_detach ... ERROR (RuntimeError: RuntimeError("There is no current event loop in thread 'MainThread'."))
ERROR (RuntimeError: There is no current event loop in thread 'MainThread'.)
started
qubes.tests.devices/TC_00_DeviceCollection/test_011_empty_unassign ... ERROR (RuntimeError: RuntimeError("There is no current event loop in thread 'MainThread'."))
ERROR (RuntimeError: There is no current event loop in thread 'MainThread'.)
started
qubes.tests.devices/TC_00_DeviceCollection/test_012_double_attach ... ERROR (RuntimeError: RuntimeError("There is no current event loop in thread 'MainThread'."))
ERROR (RuntimeError: There is no current event loop in thread 'MainThread'.)
started
qubes.tests.devices/TC_00_DeviceCollection/test_013_double_detach ... ERROR (RuntimeError: RuntimeError("There is no current event loop in thread 'MainThread'."))
ERROR (RuntimeError: There is no current event loop in thread 'MainThread'.)
started
qubes.tests.devices/TC_00_DeviceCollection/test_014_double_assign ... ERROR (RuntimeError: RuntimeError("There is no current event loop in thread 'MainThread'."))
ERROR (RuntimeError: There is no current event loop in thread 'MainThread'.)
started
qubes.tests.devices/TC_00_DeviceCollection/test_015_double_unassign ... ERROR (RuntimeError: RuntimeError("There is no current event loop in thread 'MainThread'."))
ERROR (RuntimeError: There is no current event loop in thread 'MainThread'.)
started
qubes.tests.devices/TC_00_DeviceCollection/test_016_list_assigned ... ERROR (RuntimeError: RuntimeError("There is no current event loop in thread 'MainThread'."))
ERROR (RuntimeError: There is no current event loop in thread 'MainThread'.)
started
qubes.tests.devices/TC_00_DeviceCollection/test_017_list_attached ... ERROR (RuntimeError: RuntimeError("There is no current event loop in thread 'MainThread'."))
ERROR (RuntimeError: There is no current event loop in thread 'MainThread'.)
started
qubes.tests.devices/TC_00_DeviceCollection/test_018_list_available ... ERROR (RuntimeError: RuntimeError("There is no current event loop in thread 'MainThread'."))
ERROR (RuntimeError: There is no current event loop in thread 'MainThread'.)
started
qubes.tests.devices/TC_00_DeviceCollection/test_020_update_mode_to_auto ... ERROR (RuntimeError: RuntimeError("There is no current event loop in thread 'MainThread'."))
ERROR (RuntimeError: There is no current event loop in thread 'MainThread'.)
Additional information
Fedora 42 goes end-of-life in less than two months, so this may count as time-sensitive.
How to file a helpful issue
Qubes OS release
R4.3
Brief summary
Attempting to run the
run-testsscript under Fedora 43 results in a massive flood ofRuntimeError: There is no current event loop in thread 'MainThread'errors. Every single test either fails, errors out, or is skipped.Steps to reproduce
install_rpm_depsfunction ofqubes-core-admin/run-tests.qubes-core-admin.cd qubes-core-admin; ./run-tests.Expected behavior
All tests either pass or are skipped.
Actual behavior
All tests fail, error out, or are skipped. Part of the failure log looks like this:
Additional information
Fedora 42 goes end-of-life in less than two months, so this may count as time-sensitive.