[Bug 1855898] Re: Cache results of detecting X and PulseAudio when starting environment

Balint Reczey balint.reczey at canonical.com
Wed Dec 18 21:52:50 UTC 2019


Verified with all versions without running servers.

** Attachment added: "wslu-cache-no-servers.png"
   https://bugs.launchpad.net/ubuntu/+source/wslu/+bug/1855898/+attachment/5313709/+files/wslu-cache-no-servers.png

** Tags removed: verification-needed verification-needed-bionic verification-needed-disco verification-needed-eoan verification-needed-xenial
** Tags added: verification-done verification-done-bionic verification-done-disco verification-done-eoan verification-done-xenial

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to wslu in Ubuntu.
https://bugs.launchpad.net/bugs/1855898

Title:
  Cache results of detecting X and PulseAudio when starting environment

Status in wslu package in Ubuntu:
  Fix Released
Status in wslu source package in Xenial:
  Fix Committed
Status in wslu source package in Bionic:
  Fix Committed
Status in wslu source package in Disco:
  Fix Committed
Status in wslu source package in Eoan:
  Fix Committed

Bug description:
  [Impact]

   * Detecting X and PulseAudio takes some time when starting every shell even when it is unlikely that those servers go away between opening new shells.
   * The fix is reusing cached info when starting new shells.

  [ Test Case ]

   * Start X server and PulseAudio server on Windows, the host WSL system
   * run:

  rm -f $HOME/.cache/wslu/integration
  unset DISPLAY
  unset PULSE_SERVER
  time . /etc/profile.d/wsl-integration.sh
  echo $DISPLAY $PULSE_SERVER
  cat $HOME/.cache/wslu/integration
  time . /etc/profile.d/wsl-integration.sh

   * Ran all of that again with X server and PulseAudio server turned
  off

  [Regression Potential]

   * Wrong implementation of  caching logic may break auto detection or
  cache a wrong result. The test case ensures that auto detection is
  still working and also checks the cache content.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/wslu/+bug/1855898/+subscriptions



More information about the foundations-bugs mailing list