| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
In addition, it changes the "plugins" and "required-versions" fields,
combining them for plugins and adding a new "required-project-version"
field.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Make it explicit that we should not rely on 'finally' clauses to clean
up for us in the event of termination.
|
|
|
|
| |
And also adapted them to remove any occurrences of HAVE_ROOT.
|
|
|
|
|
| |
There is no scenario worth testing where this condition is
not true, removing this.
|
|
|
|
|
| |
We need this now in order to properly test the frontend and
parse logs from stderr or output from stdout.
|
|
|
|
|
|
|
|
|
|
|
| |
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`.
|
|
|
|
|
|
|
|
| |
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).
|
| |
|
|
|
|
| |
A version of the function which can be shared with the frontend too.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This avoid multiple file system traversal when the key is requested multiple
times.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Source plugins typically do not have an accompanying YAML file with
their default settings.
|
| |
|
|
|
|
|
|
|
| |
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`.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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>.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
These are not used anywhere internally and are not really desirable
to use, as usually you need only care about moving a toplevel directory.
|
|
|
|
| |
This fixes #162
|
|
|
|
| |
This fixes #162
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
This seems to be debug print left around in the branch.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
"
|
| |
|
| |
|
|
|
|
|
| |
The information provided by link_files is not sufficient to know which
element had the overlapped file.
|
| |
|