| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
This ensures we correctly expand "~" in paths to certificates
|
|\
| |
| |
| |
| | |
app.py: Also catch SystemError with click.Abort
See merge request BuildStream/buildstream!1690
|
|/
|
|
|
|
|
|
|
| |
This is to catch an error when sometimes the readline buffer of stdin
gets corrupted during the second CTRL-C we send, and leads to having
BuildStream hand and throw a SystemError.
Catching the SystemError and treating as a click.Abort doesn't seem
to have adverse effects.
|
|\
| |
| |
| |
| |
| |
| | |
Remove ignore_workspaces kwarg
Closes #1190
See merge request BuildStream/buildstream!1688
|
| | |
|
|/
|
|
|
|
| |
Attempting to open a workspace for the same element without closing it
now raises. This makes this kwarg unnecessary and tests should close
workspaces between attempts to open.
|
|\
| |
| |
| |
| |
| |
| | |
Remove `commit`ting sources inside `Source()._generate_key`
Closes #1182
See merge request BuildStream/buildstream!1686
|
|/
|
|
|
|
|
|
| |
`Stream.shell()` should check that the element's sources are cached
before calling the shell. If the sources are not cached raise a
StreamError and recommend a fetch.
closes #1182
|
|\
| |
| |
| |
| | |
_context.py: Improve reporting of incorrect user config
See merge request BuildStream/buildstream!1687
|
|/
|
|
|
|
| |
This fixes a case where, in project overrides, if a user specified
a scalar/sequence instead of a mapping for a given project, the
user would receive an ugly stacktrace instead of an invalid format.
|
|\
| |
| |
| |
| | |
tests/artifactshare: safer cleanup_on_sigterm use
See merge request BuildStream/buildstream!1673
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Use the documented path [1] to `pytest_cov.embed.cleanup_on_sigterm()`,
to avoid crashing on some versions.
It turns out that pytest_cov v2.6.1 on my machine doesn't like the way
that we were accessing cleanup_on_sigterm(). Access it in such a way
that we will either get the function or an ImportError, as per the
documentation.
[1]: https://pytest-cov.readthedocs.io/en/latest/subprocess-support.html
|
|/
|
|
|
|
|
|
| |
Remove a couple of cases where it's possible to make the main test
process hang, waiting for something to appear on a queue.
Raise a friendlier exception, earlier, if there was a problem starting
the server process.
|
|\
| |
| |
| |
| | |
Reimplement contains_directory() with FetchTree()
See merge request BuildStream/buildstream!1642
|
| | |
|
| |
| |
| |
| | |
This is required for LRU cache expiry.
|
|/
|
|
|
| |
If the sources of an element are cached, they will stay cached for the
duration of the bst session.
|
|\
| |
| |
| |
| | |
fix broken user guide link in README.rst
See merge request BuildStream/buildstream!1685
|
|/ |
|
|\
| |
| |
| |
| | |
cascache.py: Defer attempt to connect to casd until socket file exists
See merge request BuildStream/buildstream!1667
|
|/
|
|
|
|
| |
gRPC delays reconnect attempts by at least a second. We don't want to
wait that long. Wait for socket file to appear to avoid the need for
multiple connect attempts.
|
|\
| |
| |
| |
| | |
Replace flag name
See merge request BuildStream/buildstream!1681
|
| | |
|
|/
|
|
| |
Correct version number for BST_KEY_REQUIRES_STAGE
|
|\
| |
| |
| |
| | |
.gitlab-ci.yml: Update docker images for buildbox-casd 0.0.4
See merge request BuildStream/buildstream!1683
|
|/ |
|
|\
| |
| |
| |
| | |
frontend: Remove tracking options from `bst build`
See merge request BuildStream/buildstream!1671
|
| | |
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
|
| |
BREAKING CHANGE: Remove all tracking related options and flags from
`bst build` command, as discussed on mailing list previously.
See
https://mail.gnome.org/archives/buildstream-list/2019-October/msg00009.html
for the original proposal, and
https://mail.gnome.org/archives/buildstream-list/2019-October/msg00024.html
for a summary.
At the same time, remove use of the removed options from our test suite.
|
|\
| |
| |
| |
| | |
_gitsourcebase.py: Return 'None' when the ref is unset
See merge request BuildStream/buildstream!1680
|
|/
|
|
|
| |
As per the documentation, sources are required to return 'None'
when their ref is unset.
|
|\
| |
| |
| |
| |
| |
| | |
buildgrid-compose.yml: reduce log level to WARN
Closes #1184
See merge request BuildStream/buildstream!1677
|
|/
|
|
| |
closes #1184
|
|\
| |
| |
| |
| |
| |
| | |
Add native windows CI configuration
Closes #1163
See merge request BuildStream/buildstream!1678
|
|/
|
|
| |
i.e. `bst help` and `bst init`
|
|\
| |
| |
| |
| | |
spawn tests: enable most non-integration
See merge request BuildStream/buildstream!1676
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Enable artifactcache and frontend. This is most of the tests that aren't
marked as being integration, as we ratchet up the required support for
spawn mode.
Note that this also doesn't include tests that aren't under the `tests/`
directory.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Symlink `git` into the separate tools bin directory. BuildStream needs
`git` in order to be able to determine its version.
This missing dependency is revealed when you run these tests in `spawn`
mode, as it will re-run the base __init__.__version__ logic in a new
process.
Also take the opportunity to extract _symlink_host_tools_to_dir(), to
re-use some code.
|
|/
|
|
|
|
|
|
|
|
|
|
|
| |
Use the 'identifier' argument of PluginBase's make_plugin_source(), to
ensure that the plugins have a consistent namespace when pickled and
then unpickled in another process.
This means that we can pickle plugins that are more than an entrypoint,
e.g. ones that have multiple classes in the same file.
This enables the `tests/frontend/mirror.py::test_mirror_fetch_multi`
test to pass, which uses `fetch_source` plugin. That plugin has more
than one class in it's file.
|
|\
| |
| |
| |
| |
| |
| | |
extend source api and remove private use from workspace plugin
Closes #1161
See merge request BuildStream/buildstream!1651
|
| |
| |
| |
| |
| |
| |
| | |
tests:
* local sources are cached
* use git sources instead of local when removing objects
* update expected cache keys
|
| |
| |
| |
| |
| | |
Ensure that sources advertising BST_NO_PRESTAGE_KEY have keys after
tracking.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Extend Source API
Add `_stage_into_cas()` private method. Calls `self.stage` on
a `CasBasedDirectory`.
If the source sets BST_NO_PRESTAGE_KEY then the casdir is recreated from
a stored digest and imported directly in `_stage`.
|
|/ |
|
|\
| |
| |
| |
| | |
_fuse/mount: make mount() and unmount() private
See merge request BuildStream/buildstream!1674
|
|/
|
|
|
| |
These aren't used by anything else, so make them private. This will make
it easier to later reason about some spawn mode fixes.
|