| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|/
|
|
|
|
|
| |
Before this option was listed in help but was ignored when
creating the source-bundle.
Issue #468
|
|\
| |
| |
| |
| |
| |
| | |
'bst-1.2'
_stream.py: Added functionality for workspace open -f
See merge request BuildStream/buildstream!651
|
|/
|
|
| |
tests/frontend/workspace.py: Added tests
|
|\
| |
| |
| |
| | |
Python 3.7 support
See merge request BuildStream/buildstream!649
|
|/
|
|
|
|
| |
Do not rely on `StopIteration` bubbling up.
https://www.python.org/dev/peps/pep-0479/
|
|\
| |
| |
| |
| | |
Fix crash when --debug is passed
See merge request BuildStream/buildstream!648
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I hit the following backtrace running `bst --debug push` and `bst
--debug build`:
pid:16736 id:000[--:--:--][][] START Push
pid:16736 id:000[--:--:--][][] START Loading pipeline
pid:16736 id:000[00:00:00][][] SUCCESS Loading pipeline
pid:16736 id:000[--:--:--][][] START Resolving pipeline
pid:16736 id:000[--:--:--][][] BUG 'MesonElement' object has no attribute '_Element__cache_key'
Traceback (most recent call last):
File "/home/sam/.local/bin/bst", line 8, in <module>
sys.exit(cli())
File "/home/sam/.local/lib/python3.6/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/home/sam/.local/lib/python3.6/site-packages/buildstream/_frontend/cli.py", line 162, in override_main
standalone_mode=standalone_mode, **extra)
File "/home/sam/.local/lib/python3.6/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/home/sam/.local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/sam/.local/lib/python3.6/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/sam/.local/lib/python3.6/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/home/sam/.local/lib/python3.6/site-packages/click/decorators.py", line 27, in new_func
return f(get_current_context().obj, *args, **kwargs)
File "/home/sam/.local/lib/python3.6/site-packages/buildstream/_frontend/cli.py", line 471, in push
app.stream.push(elements, selection=deps, remote=remote)
File "/home/sam/.local/lib/python3.6/site-packages/buildstream/_stream.py", line 341, in push
fetch_subprojects=True)
File "/home/sam/.local/lib/python3.6/site-packages/buildstream/_stream.py", line 814, in _load
fetch_subprojects=fetch_subprojects)
File "/home/sam/.local/lib/python3.6/site-packages/buildstream/_pipeline.py", line 119, in load
for meta in meta_elements
File "/home/sam/.local/lib/python3.6/site-packages/buildstream/_pipeline.py", line 119, in <listcomp>
for meta in meta_elements
File "/home/sam/.local/lib/python3.6/site-packages/buildstream/element.py", line 894, in _new_from_meta
element = project.create_element(artifacts, meta)
File "/home/sam/.local/lib/python3.6/site-packages/buildstream/_project.py", line 184, in create_element
element = self._element_factory.create(self._context, self, artifacts, meta)
File "/home/sam/.local/lib/python3.6/site-packages/buildstream/_elementfactory.py", line 57, in create
return element_type(context, project, artifacts, meta, default_config)
File "/home/sam/.local/lib/python3.6/site-packages/buildstream/element.py", line 196, in __init__
super().__init__(meta.name, context, project, meta.provenance, "element")
File "/home/sam/.local/lib/python3.6/site-packages/buildstream/plugin.py", line 171, in __init__
self.debug("Created: {}".format(self))
File "/home/sam/.local/lib/python3.6/site-packages/buildstream/plugin.py", line 407, in debug
self.__message(MessageType.DEBUG, brief, detail=detail)
File "/home/sam/.local/lib/python3.6/site-packages/buildstream/plugin.py", line 652, in __message
self.__context.message(message)
File "/home/sam/.local/lib/python3.6/site-packages/buildstream/_context.py", line 338, in message
self._message_handler(message, context=self)
File "/home/sam/.local/lib/python3.6/site-packages/buildstream/_frontend/app.py", line 665, in _message_handler
text = self.logger.render(message)
File "/home/sam/.local/lib/python3.6/site-packages/buildstream/_frontend/widget.py", line 585, in render
return self._render(message)
File "/home/sam/.local/lib/python3.6/site-packages/buildstream/_frontend/widget.py", line 620, in _render
text += widget.render(message)
File "/home/sam/.local/lib/python3.6/site-packages/buildstream/_frontend/widget.py", line 228, in render
_, key, missing = plugin._get_display_key()
File "/home/sam/.local/lib/python3.6/site-packages/buildstream/element.py", line 1138, in _get_display_key
cache_key = self._get_cache_key()
File "/home/sam/.local/lib/python3.6/site-packages/buildstream/element.py", line 991, in _get_cache_key
return self.__cache_key
AttributeError: 'MesonElement' object has no attribute '_Element__cache_key'
The issue here is that when `--debug` is enabled, Plugin.__init__()
tries to log a message like this:
pid:16929 id:001[--:--:--][????????][ main:tracker.bst ] DEBUG Created: meson element at tracker.bst [line 1 column 0]
The log formatter is trying to get the cache key of the element in
order to show it in the log, but the attribute hasn't yet been set
because we've not got to the Element() constructor.
|
|\
| |
| |
| |
| | |
Set version of ruaml.yaml to at least 0.15.41 but strictly less than 0.15.52.
See merge request BuildStream/buildstream!647
|
|/
|
|
|
|
|
| |
This allows to use version 0.15.51 rather than 0.15.0 which is
required for Python 3.
Fixes #571.
|
|\
| |
| |
| |
| | |
Fix tracking of junctions used in project.conf.
See merge request BuildStream/buildstream!645
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
| |
Stream._load() now returns early without resolving build pipeline when
only tracking. Resolving track pipelines does not require to fully
load project configurations when when elements to track are only
junctions.
However build pipelines require to fully load project
configurations. This might not be possible in the case a project
configuration includes a file from a junction that yet needs to be
tracked.
Fixes #565.
|
|\
| |
| |
| |
| | |
Deterministic staging
See merge request BuildStream/buildstream!634
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Staging could end-up with file with different rights depending on the
umask. The extracted files need to get their access rights fixed.
|
| |
| |
| |
| |
| |
| | |
This fix is applied to plugins bzr, git, patch.
Fixes #543 #544 #555.
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
| |
Instead of copying metadata on files staged by local, we manually set
mode to 0755 or 0644 depending on whether user execution was enabled
on source file.
This makes file modes deterministic independently on the way source
was distributed.
Non-deterministic mode copying all metadata can still be enabled by
disable 'deterministic' Boolean configuration on the plugin.
Fixes #527.
|
| |
|
|
|
|
|
| |
This also fixes an error with pylint in setup.py:
setup.py:226:19: R1718: Consider using a set comprehension (consider-using-set-comprehension)
|
|
|
|
|
|
| |
This causes the new artifact tests to pass (unless you happened
to already have a recent enough version of pytest-cov, in which case
you didn't notice the breakage).
|
|
|
|
|
|
|
|
|
| |
This reverts commit 4f168b9b6a02216e2fae24d758ae6b778e545869.
The latest version of pytest_pylint works fine with pylint 2, which
means there is no longer a reason to restrict the pylint version.
pylint 2 is required for Python 3.7.
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| | |
Move development reqirements to dev-requirements.txt
See merge request BuildStream/buildstream!642
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is backport of !637 to bst-1.2.
There were a couple of differences between the requirements listed in
the `master` branch and the `bst-1.2` branch so I have left them
untouched.
For reference, here are the differences between them:
```diff
--- a/dev-requirements.txt
+++ b/dev-requirements.txt
@@ -2,8 +2,9 @@
# random crashes with 4.4.2
coverage == 4.4.0
pep8
+pylint >= 1.8 , < 2
pytest >= 3.1.0
-pytest-cov >= 2.5.0
+pytest-cov
pytest-datafiles
pytest-env
pytest-pep8
```
|
|\
| |
| |
| |
| | |
Set environment in bwrap command line instead of its environment
See merge request BuildStream/buildstream!632
|
|/
|
|
| |
Fixes #498
|
|\
| |
| |
| |
| | |
Backport fix for ruamel.yaml version to 1.2
See merge request BuildStream/buildstream!631
|
|/ |
|
|\
| |
| |
| |
| | |
[1.2] Backport of !620: Restrict max-jobs
See merge request BuildStream/buildstream!629
|
| |
| |
| |
| |
| |
| | |
even if the machine have mores cores available
Patch taken from YBD: https://gitlab.com/baserock/ybd/blob/master/ybd/app.py#L227
|
|/
|
|
|
|
|
|
|
| |
Multiprocessing with n_jobs given by multiprocessing.cpu_count() is not optimal for
systems where not all CPU can be used (in particular, Docker, CI etc).
As suggested in the multiprocessing docs
(http://docs.python.org/3/library/multiprocessing.html#multiprocessing.cpu_count)
using len(os.sched_getaffinity(0)) might be better.
|
|\
| |
| |
| |
| | |
Keep original flags for create in SafeHardlinks.
See merge request BuildStream/buildstream!625
|
|/
|
|
|
|
|
|
|
|
| |
When open(2) is used with flags O_CREAT|O_RDWR, the file descriptor
must be readable. Unfortunately O_RDWR was not passed which made
read fail with EBADF and mmap to signal SIGBUS.
This issue happened with man-db for example.
Fixes #143.
|
|\
| |
| |
| |
| | |
cascache: move tmp directory one level up
See merge request BuildStream/buildstream!623
|
|/
|
|
|
|
|
|
|
|
|
|
|
| |
The CAS uses a temp directory while manipulating the cache, temporary
files can be added and removed while adding artifacts to the cache here.
Since calculation of the cache size happens in parallel to artifact
cache additions, this causes race conditions in the size calculation
job, as we end up calling `stat` on temporary files which are being
removed in parallel.
Handle this by moving the temporary directory out of the way, and avoid
considering the tmp directory when calculating the cache size
|
|\
| |
| |
| |
| | |
PullQueue: fix resource used
See merge request BuildStream/buildstream!612
|
|/
|
|
|
|
| |
Improve fetchers, builders and pushers documentation.
Closes #550.
|
|\
| |
| |
| |
| | |
Backport SKIPPED MessageType and duplicate skipped message fix
See merge request BuildStream/buildstream!609
|
| | |
|
|/ |
|
|\
| |
| |
| |
| | |
Backport cascache push/pull messages
See merge request BuildStream/buildstream!608
|
| |
| |
| |
| | |
Work towards fixing issue #275
|
| |
| |
| |
| | |
Work towards fixing issue #275
|
|/
|
|
|
| |
This change will allow for more detailed info messages throughout
the CASCache.
|
| |
|
| |
|
|\
| |
| |
| |
| | |
Backport cache quota restriction to 1.2
See merge request BuildStream/buildstream!607
|