Skip to content

Commits on Source 3

  • Tom Pollard's avatar
    Add cli main and user config option for 'pull-buildtrees' context. · 199bfff1
    Tom Pollard authored and Jürg Billeter's avatar Jürg Billeter committed
    _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.
    199bfff1
  • Tom Pollard's avatar
    Don't pull artifact build trees by default. · 454dcaf1
    Tom Pollard authored and Jürg Billeter's avatar Jürg Billeter committed
    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.
    454dcaf1
  • Jürg Billeter's avatar
    Merge branch 'tpollard/494' into 'master' · 0d309478
    Jürg Billeter authored
    Don't pull artifact buildtrees by default
    
    See merge request !786
    0d309478
Loading