Skip to content

qubes-core-admin tests are broken when running in a Fedora 43 AppVM #10820

Description

@ArrayBolt3

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

  1. In a Fedora 43 template, install the dependencies listed in the install_rpm_deps function of qubes-core-admin/run-tests.
  2. Shut down the template.
  3. Shut down the AppVM you intend to run the tests in.
  4. Boot the AppVM.
  5. Clone qubes-core-admin.
  6. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

C: FedoraThis issue pertains to Fedora Linux templates or standalones.C: testsThis issue pertains to tests for the codebase and infrastructure.P: defaultPriority: default. Default priority for new issues, to be replaced given sufficient information.affects-4.3This issue affects Qubes OS 4.3.diagnosedTechnical diagnosis of this issue has been performed.pr submittedA pull request has been submitted for this issue.

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions