This bug was fixed in the package ubuntu-drivers-common -
1:0.9.6.2~0.22.04.7

---------------
ubuntu-drivers-common (1:0.9.6.2~0.22.04.7) jammy; urgency=medium

  * share/hybrid/71-u-d-c-gpu-detection.rules
    - Remove SimpleDRM device when nvidia-drm loads (LP: #2060268)
  * share/hybrid/gpu-manager.c
    - Wait for nvidia-drm to settle before opening /dev/dri/card*
    (LP: #2060268)
  * tests/test_ubuntu_drivers.py
   - Split a test to fix a race condition
    (LP: #2077654)
   - revert RLIMIT_NOFILE set and test (LP: #2077646)

 -- Kuba Pawlak <kuba.paw...@canonical.com>  Wed, 07 Aug 2024 13:45:38
+0200

** Changed in: ubuntu-drivers-common (Ubuntu Jammy)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to ubuntu-drivers-common in Ubuntu.
https://bugs.launchpad.net/bugs/2077654

Title:
  Race condition on builders result in 100% fail rate

Status in ubuntu-drivers-common package in Ubuntu:
  Invalid
Status in ubuntu-drivers-common source package in Jammy:
  Fix Released

Bug description:
  [ Impact ]
  ADT testing fails on arm builders due to a racy test

  [Fix]

  Split the test avoiding the race.

  [ Test Plan ]
  Run ADT tests in PPA or locally with:
  PYTHONPATH=. python3 tests/run 
test_ubuntu_drivers.DetectTest.test_system_driver_packages_force_install_nvidia

  The error message to look for is:
  ======================================================================
  FAIL: test_system_driver_packages_force_install_nvidia 
(test_ubuntu_drivers.DetectTest)
  system_driver_packages() force install config points to an older version.
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/usr/lib/python3.10/unittest/mock.py", line 1379, in patched
      return func(*newargs, **newkeywargs)
    File 
"/home/ubuntu/ubuntu-drivers-common-0.9.6.2~0.22.04.6~ppa0/tests/test_ubuntu_drivers.py",
 line 1479, in test_system_driver_packages_force_install_nvidia
      self.assertFalse('nvidia-driver-510' in res_wrong_json)
  AssertionError: True is not false

  [ Where problems could occur ]
  during ADT testing on builders

  [ Other Info ]
  Cause unknown. It sometimes fails when locally on x86 machine but only in 
Jammy container. Jammy package ran in Noble container does not fail.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-drivers-common/+bug/2077654/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to