Skip to content
Snippets Groups Projects
  1. Mar 10, 2023
  2. Jan 31, 2023
  3. Oct 27, 2022
  4. Sep 01, 2022
  5. Aug 19, 2022
  6. Aug 16, 2022
  7. Jul 27, 2022
  8. Jul 26, 2022
  9. Jan 07, 2022
  10. Oct 20, 2021
  11. Sep 23, 2021
    • Simon McVittie's avatar
      tests: Disable D-Bus activation · aaec38ff
      Simon McVittie authored
      
      If we allow D-Bus activation to occur on a private instance of the
      session bus, checking xdg-desktop-portal can result in it starting all
      sorts of random desktop services (AT-SPI, gvfsd, gnome-keyring...)
      which really shouldn't be sharing a home directory with their "real"
      instances.
      
      Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
      aaec38ff
  12. Aug 06, 2021
  13. Aug 03, 2021
  14. Jul 28, 2021
  15. Apr 30, 2021
    • Simon McVittie's avatar
      pressure-vessel: Add code to parse and apply a mtree(5) manifest · 1bdf777d
      Simon McVittie authored
      
      This can be used to create directories, symlinks and zero-byte files,
      create files as a clone (hard-link or copy) of files in a reference
      directory, assert that files exist, set executable/non-executable
      permissions, and set files' modification times.
      
      When cloning files from a reference directory, the default is to use
      the same filename as the destination, but that can be overridden
      (for example to deal with inconvenient/non-Windows-friendly filenames).
      This is also actually slightly faster than pv_cheap_tree_copy(),
      presumably because the manifest is contiguous on-disk and the
      directories are not necessarily.
      
      Setting directories' modification times is implemented, but probably
      won't work in practice, because any files we create in the directory
      will alter its mtime.
      
      Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
      1bdf777d
  16. Apr 22, 2021
  17. Oct 02, 2020
  18. Sep 28, 2020
  19. Sep 21, 2020
  20. Sep 09, 2020
  21. Aug 25, 2020
  22. Aug 18, 2020
  23. Aug 04, 2020
  24. Jul 29, 2020
  25. Jun 16, 2020
  26. Jun 12, 2020
    • Simon McVittie's avatar
      tests: Add an integration test for running in a container · 1a9769dd
      Simon McVittie authored
      
      This requires resources external to pressure-vessel, and makes some
      assumptions about the container - but that's OK, because the first
      significant user of pressure-vessel is Steam Runtime 1 'scout', which
      is not exactly a moving target. We also do some of these checks in
      various OSs' virtual machines when we build Steam Runtime releases, but
      having this in-tree with the pressure-vessel source should shorten the
      testing cycle.
      
      See the doc-comment in tests/containers.py for usage.
      
      At the moment all tests require a working version of bubblewrap, but
      current/future work in the direction of pre-preparing a modified
      runtime on disk should mean that we can do a subset of these tests
      even if we cannot run bubblewrap. In particular, if we can do that
      inside a Docker container, that will make it a lot easier for CI to
      validate our assumptions on non-Debian-derived host operating systems.
      
      Attentive reviewers will notice that there's infrastructure here to
      be able to skip generating locales, but it isn't yet used. It will
      be used when we have more variations on the theme of "enter a scout
      container and run inside-scout.py", to avoid the time cost of
      generating locales every time - but at the moment we only have two
      runs, so the time taken to generate locales is not problematic.
      
      This test is a bit slow, and it's going to get slower as we add more
      thorough testing, so increase its timeout away from the Meson default.
      
      Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
      1a9769dd
    • Simon McVittie's avatar
      tests/invocation: Test running p-v-wrap without entering a container · efd65ce3
      Simon McVittie authored
      
      In particular this detects the mishandling of an invalid --env-if-host
      option.
      
      Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
      efd65ce3
    • Simon McVittie's avatar
      tests: Add a helper to check for fd leaks · 7d93d724
      Simon McVittie authored
      
      As we move towards using dirfds for path resolution inside runtimes,
      the risk of leaking a significant number of fds increases, so we should
      make sure our tests check for that.
      
      Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
      7d93d724
  27. Jun 10, 2020
  28. May 21, 2020
  29. May 19, 2020
    • Simon McVittie's avatar
      populate-depot: New script to download one or more runtimes · e3ebf1b9
      Simon McVittie authored
      
      As we start to add more runtimes, we need to decouple the
      SteamLinuxRuntime depot from any individual runtime. Instead of producing
      a pre-populated depot as part of a scout build, we can clone this git
      repository in some convenient place and run ./populate-depot.py to
      download the necessary files.
      
      Also add convenience Makefile targets to download scout and optionally
      soldier - these are mostly here as manual tests and as executable
      examples.
      
      This partially resolves T17590 and T20721.
      
      Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
      e3ebf1b9
  30. Jan 03, 2020
Loading