Commits on Source (4)
-
Decrease uncertainty around whether unit tests are welcome in the project or not.
-
Jürg Billeter authored
contributing: add guidance on unit tests See merge request !943
-
_context.py: Add pull_buildtrees global user context, the default of which is set to False via the addition of pull-buildtrees to userconfig.yaml cache group. _frontend/app.py & cli.py: Add --pull-buildtrees as a bst main option, which when passed will override the default or user defined context for pull_buildtrees. tests/completions/completions.py: Update for the added flag.
-
The addition of cached build trees being included in element artifacts has led to mostly redundant download overheads when pulling from a remote artifact server. As such the default behaviour of pull shouldn't fetch the build tree object if available. element.py: extend relevant pull logic for specified subdir consideration and ensure push logic does not lead to partial artifact pushes. Change assumption that the buildtree can be extracted if artifact is cached. __cached_buildtree() and __pull_directories() helpers added. _artifactcache/: artifactcache.py & cascache.py inclusion of helper functions for subdir artifact checking & fetching, fetch logic extended to only pull required artifact directories. extract & checkout updated to handle full/partial operation. tests/: addition of integration test pullbuildtrees.py, buildtrees.py adapted cli options, testutils/artifactshare.py has_artifact changed to return artifact digest on true condition.
Showing
- CONTRIBUTING.rst 18 additions, 0 deletionsCONTRIBUTING.rst
- NEWS 12 additions, 2 deletionsNEWS
- buildstream/_artifactcache/artifactcache.py 28 additions, 4 deletionsbuildstream/_artifactcache/artifactcache.py
- buildstream/_artifactcache/cascache.py 61 additions, 12 deletionsbuildstream/_artifactcache/cascache.py
- buildstream/_context.py 7 additions, 1 deletionbuildstream/_context.py
- buildstream/_frontend/app.py 2 additions, 1 deletionbuildstream/_frontend/app.py
- buildstream/_frontend/cli.py 2 additions, 0 deletionsbuildstream/_frontend/cli.py
- buildstream/data/userconfig.yaml 3 additions, 0 deletionsbuildstream/data/userconfig.yaml
- buildstream/element.py 125 additions, 37 deletionsbuildstream/element.py
- tests/completions/completions.py 1 addition, 0 deletionstests/completions/completions.py
- tests/integration/build-tree.py 2 additions, 2 deletionstests/integration/build-tree.py
- tests/integration/pullbuildtrees.py 147 additions, 0 deletionstests/integration/pullbuildtrees.py
- tests/testutils/artifactshare.py 3 additions, 3 deletionstests/testutils/artifactshare.py
tests/integration/pullbuildtrees.py
0 → 100644