Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | project: Export the name as a variableproject-name | Mathieu Bridon | 2017-12-20 | 1 | -0/+3 |
| | | | | | This is often useful, for example when the main element needs to do something with a path like /etc/%{project-name}/ . | ||||
* | Fix a "TypeError: 'dict' object is not callable" in _plugincontext.py | Valentin David | 2017-12-20 | 1 | -1/+1 |
| | |||||
* | doc: Add cache key documentationjuerg/cache-key-doc | Jürg Billeter | 2017-12-20 | 2 | -0/+100 |
| | |||||
* | project: Rename required-project-version to format-version | Jonathan Maw | 2017-12-14 | 3 | -5/+5 |
| | |||||
* | project: Reduce code duplication when storing origins | Jonathan Maw | 2017-12-14 | 1 | -25/+33 |
| | |||||
* | doc: Remove stray documentation of obsolete required-versions fields | Jonathan Maw | 2017-12-14 | 1 | -18/+0 |
| | |||||
* | _plugincontext.py: Let plugins not have YAML defaults | Mathieu Bridon | 2017-12-14 | 1 | -4/+8 |
| | | | | | Source plugins typically do not have an accompanying YAML file with their default settings. | ||||
* | element.py: Removing the exclamation mark from the overlaps warning | Tristan Van Berkom | 2017-12-13 | 1 | -1/+1 |
| | |||||
* | integration-tests: Use bst_checkout() everywhereintegration-tests-hardlinks | Tristan Van Berkom | 2017-12-13 | 10 | -11/+11 |
| | |||||
* | integration-tests/lib.sh: Added bst_checkout() | Tristan Van Berkom | 2017-12-13 | 1 | -0/+17 |
| | | | | | | This calls bst_with_flags checkout in a uniform way, we use it for now to pass `--hardlinks` to all checkouts potentially speeding up the test runs. | ||||
* | tests: Test whether a plugin is allowed to be loadedfix-132-rebased | Jonathan Maw | 2017-12-13 | 11 | -1/+62 |
| | |||||
* | Update tests for changed plugin loading | Jonathan Maw | 2017-12-13 | 17 | -103/+225 |
| | | | | | | Checking for plugins with the same name no longer happens in the plugincontext, it happens in project, so the old test was removed and a new one added. | ||||
* | Make external plugin loading require explicit configuration in project.conf | Jonathan Maw | 2017-12-13 | 6 | -146/+216 |
| | | | | | | In addition, it changes the "plugins" and "required-versions" fields, combining them for plugins and adding a new "required-project-version" field. | ||||
* | _signals: always pop handlers, and restore states | Angelos Evripiotis | 2017-12-13 | 1 | -19/+23 |
| | |||||
* | utils._tempdir: don't leak on exceptions | Angelos Evripiotis | 2017-12-13 | 1 | -4/+5 |
| | |||||
* | source: clarify note on why to use this tmpdir() | Angelos Evripiotis | 2017-12-13 | 1 | -3/+4 |
| | |||||
* | _signals: note os._exit() on terminate | Angelos Evripiotis | 2017-12-13 | 1 | -0/+4 |
| | | | | | Make it explicit that we should not rely on 'finally' clauses to clean up for us in the event of termination. | ||||
* | Adapting test cases to expect logs in stderr | Tristan Van Berkom | 2017-12-13 | 9 | -38/+27 |
| | | | | And also adapted them to remove any occurrences of HAVE_ROOT. | ||||
* | tests/testutils/site.py: Removed HAVE_ROOT | Tristan Van Berkom | 2017-12-13 | 1 | -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 separately | Tristan Van Berkom | 2017-12-13 | 1 | -11/+64 |
| | | | | | We need this now in order to properly test the frontend and parse logs from stderr or output from stdout. | ||||
* | _frontend: Enable logging right away, fixes issue #168 | Tristan Van Berkom | 2017-12-13 | 3 | -149/+54 |
| | | | | | | | | | | | Now we just assume that logging is turned on all the time, any messages must now always go through the central context messaging APIs. As a side effect, we now send all output messages that buildstream generates to stderr, leaving stdout only to payload types of output, such as parsible `bst show` output, the output of `bst workspace list` or `bst shell`. | ||||
* | _pipeline.py: Removed tickers, use timed activities instead | Tristan Van Berkom | 2017-12-13 | 1 | -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 Berkom | 2017-12-13 | 1 | -33/+5 |
| | |||||
* | _context.py: Added _timed_activity() method | Tristan Van Berkom | 2017-12-13 | 1 | -1/+53 |
| | | | | A version of the function which can be shared with the frontend too. | ||||
* | _frontend/main.py: Rewording `--track-all` build option | Tristan Van Berkom | 2017-12-13 | 1 | -2/+2 |
| | |||||
* | Fix tests | Tristan Maat | 2017-12-13 | 8 | -2/+357 |
| | |||||
* | main.py: Add `bst build --track-all` | Tristan Maat | 2017-12-13 | 1 | -1/+6 |
| | |||||
* | Add `bst build --track-except` | Tristan Maat | 2017-12-13 | 2 | -4/+8 |
| | |||||
* | Issue #117: Add `bst build --track` | Tristan Maat | 2017-12-13 | 2 | -65/+121 |
| | |||||
* | Issue #113: Split tracking and saving in `bst build` | Tristan Maat | 2017-12-13 | 3 | -13/+24 |
| | |||||
* | plugins/sources/local.py: Cache the local element's unique key | Antoine Wacheux | 2017-12-13 | 1 | -10/+18 |
| | | | | | This avoid multiple file system traversal when the key is requested multiple times. | ||||
* | source.py: Cache the workspace key | Antoine Wacheux | 2017-12-13 | 1 | -11/+26 |
| | | | | | | In order to avoid multiple traversals of the file system when the workspace key is requested multiple times, it is now cached in the source element. The cache is invalidated if the workspace is deleted or moved. | ||||
* | plugins/elements/script.py: Remove check for 'commands' | Angelos Evripiotis | 2017-12-13 | 1 | -4/+0 |
| | | | | | This isn't reachable as there's a default value in script.yaml, also it has an error in it - ElementError hasn't been declared in this scope. | ||||
* | _plugincontext.py: Let plugins not have YAML defaults | Mathieu Bridon | 2017-12-12 | 1 | -4/+8 |
| | | | | | Source plugins typically do not have an accompanying YAML file with their default settings. | ||||
* | _pipeline.py: Fix makedirs exception handling | Angelos Evripiotis | 2017-12-12 | 1 | -1/+1 |
| | |||||
* | plugins/sources/git.py: Fix potential NameError | Gökçen Nurlu | 2017-12-12 | 1 | -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_path | Antoine Wacheux | 2017-12-12 | 1 | -3/+8 |
| | |||||
* | tests/testutils/artifactshare.py: Always create summary file for test caches | Sam Thursfield | 2017-12-12 | 1 | -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 specifications | Sam Thursfield | 2017-12-12 | 2 | -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 Thursfield | 2017-12-12 | 1 | -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 variables | Gökçen Nurlu | 2017-12-11 | 2 | -3/+0 |
| | |||||
* | _fuse/mount.py: Fix missing import of ImplError | Gökçen Nurlu | 2017-12-11 | 1 | -0/+1 |
| | |||||
* | plugins/sources/bzr.py: Fix variable name typos | Gökçen Nurlu | 2017-12-11 | 1 | -3/+4 |
| | |||||
* | _profile.py: Fix missing 'self.' keyword | Gökçen Nurlu | 2017-12-11 | 1 | -1/+1 |
| | |||||
* | Remove unused imports in test files | Gökçen Nurlu | 2017-12-07 | 17 | -22/+2 |
| | |||||
* | Remove unused imports | Gökçen Nurlu | 2017-12-07 | 28 | -83/+42 |
| | |||||
* | tests/frontend/buildcheckout.py: Adding `bst checkout` tests | Tristan Van Berkom | 2017-12-05 | 1 | -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() APIs | Tristan Van Berkom | 2017-12-05 | 1 | -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 Berkom | 2017-12-05 | 1 | -2/+4 |
| | | | | This fixes #162 | ||||
* | _pipeline.py: Added hardlinks option to Pipeline.checkout() | Tristan Van Berkom | 2017-12-05 | 1 | -5/+29 |
| | | | | This fixes #162 |