1. 04 Apr, 2019 1 commit
  2. 27 Mar, 2019 2 commits
  3. 21 Mar, 2019 1 commit
    • Angelos Evripiotis's avatar
      tests: str(datafiles) instead of a longer thing · f2b15d86
      Angelos Evripiotis authored
      Replace some popular copypasta.
      
      This important-looking invocation:
      
          os.path.join(datafiles.dirname, datafiles.basename)
      
      is equivalent to this shorter invocation:
      
          project = str(datafiles)
      
      It seems like it's very popular copypasta, replace it with the shorter
      one thus:
      
          # Use 'gsed' or 'sed' etc. as appropriate for your system.
          git config --global alias.sub '!f() { git grep --name-only --null "$1" | gxargs --null gsed --in-place --expression "s/$1/$2/g" ; }; f'
          git sub 'os.path.join(datafiles.dirname, datafiles.basename)' 'str(datafiles)'
      f2b15d86
  4. 20 Mar, 2019 8 commits
  5. 14 Mar, 2019 2 commits
    • James Ennis's avatar
      _yaml.py: Rip out ChainMap(), node_chain_copy(), node_list_copy() · 05359616
      James Ennis authored
      This class and these two functions exist as they were intended to
      bring efficiency. Benchmarking this patch against the debian-stack.bst
      element in the debian-like project [0] showed that although this
      took 15M more RAM (peak usage), there was a ~20s gain in the time taken
      to 'show' the stack. Thus the class and functions have been removed.
      
      This also has the advantage of removing a lot of duplicate and unnecessary
      code.
      
      [0] https://gitlab.com/jennis/debian-stretch-bst
      05359616
    • Raoul Hidalgo Charman's avatar
      Integrate source cache with rest of buildstream · 6a1e7461
      Raoul Hidalgo Charman authored
      This involve introducing new Consistency states `STAGED` and `BOTH` that
      represent when the source is just in the local CAS and in both the local
      CAS and unstaged in the source directory.
      
      Sources are staged for each element into the local CAS during the fetch
      stage. If the sources are in the local consistency state `STAGED` when
      wanting to open a workspace, the original sources are fetched.
      
      Relavant tests this affects have been changed.
      
      Part of #440
      6a1e7461
  6. 01 Mar, 2019 4 commits
  7. 26 Feb, 2019 1 commit
  8. 19 Feb, 2019 1 commit
  9. 14 Feb, 2019 1 commit
    • Jürg Billeter's avatar
      _casbaseddirectory.py: Do not resolve symlinks · c0570871
      Jürg Billeter authored
      This matches the change in utils._process_list().
      
      This also removes the _Resolver class as it is now unused. We may want
      to support controlled symlink resolution in the future, in which case
      the _Resolver class can be resurrected from this commit.
      c0570871
  10. 08 Feb, 2019 1 commit
    • Phil Dawson's avatar
      Expose basic api for testing external plugins. · b4d4c4f5
      Phil Dawson authored
      We want external plugins to be able to make use of the core testing utils.
      This commit exposes the basic utilities which are currently in use in
      bst-external plugins. If necessary, more utilities could be exposed in the
      future.
      
      Moves the following files from tests/testutils/ to
      buildstream/plugintestingutils/:
      o runcli.py
      o integration.py
      
      As part of this, this commit makes the following changes to runcli.py
      and integration.py:
      o runcli.py: Fix linting errors
      o runcli.py: Add user facing documentation
      o Integration.py: Add user facing documentation
      b4d4c4f5
  11. 23 Jan, 2019 1 commit
  12. 16 Jan, 2019 8 commits