Commits on Source (16)
-
Jürg Billeter authored
This reverts commit 4f168b9b. 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.
-
Jürg Billeter authored
Do not rely on `StopIteration` bubbling up. https://www.python.org/dev/peps/pep-0479/
-
Jürg Billeter authored
Python 3.7 support See merge request !615
-
Chandan Singh authored
-
Chandan Singh authored
.gitlab-ci.yml: Remove unused script "install.sh" See merge request !617
-
Tiago Gomes authored
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
-
Tiago Gomes authored
Fix race condition when calculating disk usage See merge request !600
-
Valentin David authored
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.
-
Valentin David authored
Keep original flags for create in SafeHardlinks. Closes #143 See merge request !624
-
Javier Jardón authored
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.
-
Javier Jardón authored
even if the machine have mores cores available Patch taken from YBD: https://gitlab.com/baserock/ybd/blob/master/ybd/app.py#L227
-
Javier Jardón authored
buildstream/_project.py: Restrict max-jobs See merge request !620
-
Jim MacArthur authored
-
Tristan Van Berkom authored
Pin ruamel.yaml version to <= 0.15 See merge request !630
-
Chandan Singh authored
Source plugin implementations can now specify that they need access to previously staged sources by specifying `requires_previous_sources_track` and/or `requires_previous_sources_fetch`, corresponding to access at `track` and `fetch` times respectively. Fixes #381. Replaces !505. For relevant discussion, see this discussion: !505 (comment 83780747)
-
Chandan Singh authored
`pip` source plugin can stage python packages that are either specified directly in the element definition or picked up from `requirements.txt` from previous sources. In order to support the latter use-case (which is also the primary motivation for this plugin), this plugin requires access to previous sources and hence is an example of a Source Transform source. Also, bump `BST_FORMAT_VERSION` as this patch adds a new core plugin.
Showing
- .gitlab-ci.yml 0 additions, 10 deletions.gitlab-ci.yml
- buildstream/_artifactcache/artifactcache.py 4 additions, 1 deletionbuildstream/_artifactcache/artifactcache.py
- buildstream/_artifactcache/cascache.py 10 additions, 8 deletionsbuildstream/_artifactcache/cascache.py
- buildstream/_artifactcache/casserver.py 1 addition, 1 deletionbuildstream/_artifactcache/casserver.py
- buildstream/_fuse/fuse.py 5 additions, 1 deletionbuildstream/_fuse/fuse.py
- buildstream/_fuse/hardlinks.py 2 additions, 2 deletionsbuildstream/_fuse/hardlinks.py
- buildstream/_loader/loader.py 3 additions, 2 deletionsbuildstream/_loader/loader.py
- buildstream/_project.py 4 additions, 2 deletionsbuildstream/_project.py
- buildstream/_scheduler/queues/fetchqueue.py 3 additions, 1 deletionbuildstream/_scheduler/queues/fetchqueue.py
- buildstream/_versions.py 1 addition, 1 deletionbuildstream/_versions.py
- buildstream/element.py 8 additions, 2 deletionsbuildstream/element.py
- buildstream/plugins/sources/pip.py 202 additions, 0 deletionsbuildstream/plugins/sources/pip.py
- buildstream/source.py 172 additions, 51 deletionsbuildstream/source.py
- doc/source/core_plugins.rst 1 addition, 0 deletionsdoc/source/core_plugins.rst
- setup.py 2 additions, 3 deletionssetup.py
- tests/integration/pip_element.py 0 additions, 0 deletionstests/integration/pip_element.py
- tests/integration/pip_source.py 54 additions, 0 deletionstests/integration/pip_source.py
- tests/integration/project/files/pip-source/myreqs.txt 1 addition, 0 deletionstests/integration/project/files/pip-source/myreqs.txt
- tests/integration/project/files/pypi-repo/app1/App1-0.1.tar.gz 0 additions, 0 deletions.../integration/project/files/pypi-repo/app1/App1-0.1.tar.gz
- tests/integration/project/files/pypi-repo/app1/index.html 8 additions, 0 deletionstests/integration/project/files/pypi-repo/app1/index.html
buildstream/plugins/sources/pip.py
0 → 100644
tests/integration/pip_source.py
0 → 100644
File added