summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Adapting test cases to expect logs in stderrearly-loggingTristan Van Berkom2017-12-139-38/+27
| | | | And also adapted them to remove any occurrences of HAVE_ROOT.
* tests/testutils/site.py: Removed HAVE_ROOTTristan Van Berkom2017-12-131-2/+0
| | | | | There is no scenario worth testing where this condition is not true, removing this.
* tests/testutils/runcli.py: Enhanced to capture stdout/stderr separatelyTristan Van Berkom2017-12-131-11/+64
| | | | | We need this now in order to properly test the frontend and parse logs from stderr or output from stdout.
* _frontend: Send all logging materials to stderrTristan Van Berkom2017-12-133-50/+50
|
* _frontend: Enable logging right awayTristan Van Berkom2017-12-122-99/+4
| | | | | | Now we just assume that logging is turned on all the time, any messages must now always go through the central context messaging APIs.
* _pipeline.py: Removed tickers, use timed activities insteadTristan Van Berkom2017-12-121-54/+38
| | | | | | | | Currently this does not update the task list, and is for timing groups of activities from the frontend, or for timing long standing tasks which run directly in the frontend and not in a child task (like downloading the refs from a remote at load time before a build commences).
* plugin.py: Implement Plugin.timed_activity() using Context._timed_activity()Tristan Van Berkom2017-12-121-33/+5
|
* _context.py: Added _timed_activity() methodTristan Van Berkom2017-12-121-1/+53
| | | | A version of the function which can be shared with the frontend too.
* _frontend/main.py: Rewording `--track-all` build optiontracking-changes-rebasedTristan Van Berkom2017-12-121-2/+2
|
* Fix testsTristan Maat2017-12-128-2/+357
|
* main.py: Add `bst build --track-all`Tristan Maat2017-12-121-1/+6
|
* Add `bst build --track-except`Tristan Maat2017-12-122-4/+8
|
* Issue #117: Add `bst build --track`Tristan Maat2017-12-122-65/+121
|
* Issue #113: Split tracking and saving in `bst build`Tristan Maat2017-12-123-13/+24
|
* _plugincontext.py: Let plugins not have YAML defaultsMathieu Bridon2017-12-121-4/+8
| | | | | Source plugins typically do not have an accompanying YAML file with their default settings.
* _pipeline.py: Fix makedirs exception handlingAngelos Evripiotis2017-12-121-1/+1
|
* plugins/sources/git.py: Fix potential NameErrorGökçen Nurlu2017-12-121-1/+1
| | | | | | | The residual `from e` was probably left there after a refactoring from try-catch to exit-code-checking. While this could prevent the expected `SourceError` being thrown, I couldn't find a proper way to trigger it since `git show` has no documented return codes other than `0` and `128`.
* source.py: Implement _get_workspace_pathAntoine Wacheux2017-12-121-3/+8
|
* tests/testutils/artifactshare.py: Always create summary file for test cachesSam Thursfield2017-12-121-0/+1
| | | | | | | | Pulls will fail from the cache if there's no summary file, so we should always create one. If you need a cache that breaks when pulled from, pass an empty directory that hasn't been initialized as a repo at all.
* tests/frontend: Reverse ordering of cache specificationsSam Thursfield2017-12-122-14/+14
| | | | | | | | | | | The cache parameters are now in highest-to-lowest precidence order corresponding to left-to-right along the line where they are specified. Once we make it possible to specify a list of URLs for each of these parameters, the precidence will continue to always read from highest to lowest corresponding to left-to-right since each list of URLs will also read left-to-right.
* _ostree.py: Avoid raising GLib.Error from configure_remote()Sam Thursfield2017-12-121-6/+9
| | | | | | | | | | This call can fail (if we pass an invalid remote name, for example) so we should wrap the GLib.Error with OSTreeException. In the case of GLib.Error this is especially important as GLib.Error can't be pickled and so such exceptions disappear completely when we try to propagate them back from multiprocessing subprocesses. See <https://bugzilla.gnome.org/show_bug.cgi?id=791265>.
* Remove unused variablesGökçen Nurlu2017-12-112-3/+0
|
* _fuse/mount.py: Fix missing import of ImplErrorGökçen Nurlu2017-12-111-0/+1
|
* plugins/sources/bzr.py: Fix variable name typosGökçen Nurlu2017-12-111-3/+4
|
* _profile.py: Fix missing 'self.' keywordGökçen Nurlu2017-12-111-1/+1
|
* Remove unused imports in test filesGökçen Nurlu2017-12-0717-22/+2
|
* Remove unused importsGökçen Nurlu2017-12-0728-83/+42
|
* tests/frontend/buildcheckout.py: Adding `bst checkout` testsTristan Van Berkom2017-12-051-5/+91
| | | | | | | | | o Test that we fail gracefully when there is already data in the checkout target o Test that we still checkout into dirty directories with --force o Test hardlink checkouts
* utils.py: Removing safe_move() and move_files() APIsTristan Van Berkom2017-12-051-65/+0
| | | | | These are not used anywhere internally and are not really desirable to use, as usually you need only care about moving a toplevel directory.
* _frontend/main.py: Adding --hardlinks option to `bst checkout`Tristan Van Berkom2017-12-051-2/+4
| | | | This fixes #162
* _pipeline.py: Added hardlinks option to Pipeline.checkout()Tristan Van Berkom2017-12-051-5/+29
| | | | This fixes #162
* tests/testutils/runcli.py: Always run with --no-colorsSam Thursfield2017-12-051-1/+1
| | | | | | | | | | Pytest defaults to capturing stdout, which has the side effect of making BuildStream realise it's not outputting to a terminal and disabling its ANSI colour code output. If you pass `--capture=no` then BuildStream detects the terminal and the colour codes are emitted, which breaks all of the tests which match on specific output from `bst`. Forcefully disable colours to fix that.
* HACKING.rst: the setup.py --addopts flag can only be given onceSam Thursfield2017-12-051-1/+1
|
* element.py: Removing unconditional INFO message when stagingTristan Van Berkom2017-12-051-1/+0
| | | | This seems to be debug print left around in the branch.
* buildstream/plugins/elements/cmake.yaml: Always create build folderjjardon/cmake_buildJavier Jardón2017-12-052-5/+7
| | | | | | | | | | | | | This is the common practice with cmake Actually, some modules will fail to build if this is not follow. For example for llvm you wil get this error when configuring: " CMake would overwrite the makefiles distributed with LLVM. Please create a directory and run cmake from there, passing the path to this source directory as the last argument. "
* update install instructions for Debian (fix #159)Abderrahim Kitouni2017-12-041-8/+9
|
* Add a test for overlaps114-give-better-warnings-on-overlapsJonathan Maw2017-12-0113-0/+62
|
* Produce a more in-depth report of overlaps when stagingJonathan Maw2017-12-011-9/+23
| | | | | The information provided by link_files is not sufficient to know which element had the overlapped file.
* utils: Expand file copying to optionally report files writtenJonathan Maw2017-12-011-7/+23
|
* buildstream/plugins/elements: Add *-global and *-local configuration variablesJavier Jardón2017-11-303-3/+9
| | | | | | | | | This will allow to define: - global configuration parameters that will be used to all the elements using that build system - local configuration parameters that will override the global ones Left *-extra for compatibility
* Issue #142: Ensure we don't append provenances twiceTristan Maat2017-11-302-5/+10
|
* Add a test for tar lzipValentin David2017-11-303-0/+58
|
* Add support for lzip in tar source. Fix #158.Valentin David2017-11-301-1/+32
|
* Allow stdout and stderr to be overriden in Plugin.callValentin David2017-11-301-5/+4
|
* _options/optionpool.py: Split load_valuesJürg Billeter2017-11-302-6/+14
| | | | | Split load_values into load_yaml_values and load_cli_values to allow independent loading from multiple YAML nodes.
* _pipeline.py: Load platform before creating Loader instanceJürg Billeter2017-11-301-5/+5
| | | | This allows platform access in Loader code.
* _loader.py: Remove historic distinction between element name and filenameJürg Billeter2017-11-301-8/+6
| | | | They have been the same for a long time.
* _loader.py: Remove unused basedir attribute from LoadElementJürg Billeter2017-11-301-5/+2
|
* _loader.py: Remove unused owner attribute from DependencyJürg Billeter2017-11-301-7/+6
|
* _loader.py: Create Dependency objects for dummy targetJürg Billeter2017-11-301-1/+1
| | | | Match the structure of real targets.