summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix a double unmount in chroot sandboxvalentindavid/chroot_fixesValentin David2019-07-112-5/+6
| | | | | It appears the hack that was used to not double-unmount did not work. The error was just ignored but an error message would be printed.
* Catch unhandled exception when shell is not executable on chroot sandboxValentin David2019-07-113-0/+34
|
* src/buildstream/testing/_utils/site.py: Disable bwrap when not using sanboxValentin David2019-07-111-0/+4
| | | | | | | | In order to test locally the code for chroot, one needs to define `BST_FORCE_BACKEND`. But many tests use HAVE_BWRAP only to test whether a test is made for bwrap, even if BuildStream will ignore bwrap. To simplify, we disable bwrap when not using Linux backend so one does not have to uninstall bwrap.
* Merge branch 'raoul/1043-disabling-blob-fetching' into 'master'bst-marge-bot2019-07-115-12/+43
|\ | | | | | | | | | | | | Configuration option for disabling blob fetching with RE Closes #1043 See merge request BuildStream/buildstream!1402
| * doc/source/using_config.rst: Add pull-artifact-files optionRaoul Hidalgo Charman2019-07-111-2/+6
| | | | | | | | Part of #1043
| * tests/remoteexecution/partial.py: Parametrize for pull artifact filesRaoul Hidalgo Charman2019-07-111-5/+12
| | | | | | | | Part of #1043
| * Add pull-artifact-files configuration option for remote executionRaoul Hidalgo Charman2019-07-112-3/+21
| | | | | | | | | | | | | | This decides whether to fetch the file blobs of remote execution built artifacts. Part of #1043
| * _stream.py: Use build_all to determine required artifact files with RERaoul Hidalgo Charman2019-07-111-1/+3
| | | | | | | | Part of #1043
| * element.py: Add scope to _set_artifact_files_requiredRaoul Hidalgo Charman2019-07-111-3/+3
|/ | | | Part of #1043
* Merge branch 'tristan/exit-on-nonblock-terminal' into 'master'bst-marge-bot2019-07-101-0/+12
|\ | | | | | | | | | | | | _frontend/cli.py: Exit with error if output streams are set to nonblocking Closes #929 See merge request BuildStream/buildstream!1411
| * _frontend/cli.py: Exit with error if output streams are set to nonblockingTristan Van Berkom2019-07-101-0/+12
|/ | | | | | | This is better than raising a stack trace later on when logging gets intense with a BlockingIOError. This fixes #929
* Merge branch 'aevri/vulture' into 'master'bst-marge-bot2019-07-0913-139/+21
|\ | | | | | | | | Remove some unused code See merge request BuildStream/buildstream!1455
| * Option: rm unused self.descriptionAngelos Evripiotis2019-07-091-2/+5
| |
| * _casbaseddirectory: rm unused methodsAngelos Evripiotis2019-07-091-26/+0
| |
| * _casbaseddirectory: fix '_mark_changed' spellingAngelos Evripiotis2019-07-091-1/+1
| | | | | | | | | | Override the base-class method '_mark_changed', instead of declaring a new unused method that only raises NotImplementedError.
| * _casbaseddirectory: rm unused exception classesAngelos Evripiotis2019-07-091-29/+0
| |
| * source: rm unused _cache(), __source_cacheAngelos Evripiotis2019-07-091-6/+0
| |
| * element: rm unused __tracking_doneAngelos Evripiotis2019-07-091-2/+0
| |
| * _stream: rm unused _collect_sources()Angelos Evripiotis2019-07-091-11/+0
| |
| * _sourcecache: rm unused required_sourcesAngelos Evripiotis2019-07-091-12/+0
| |
| * scheduler: rm unused _exclusive_* membersAngelos Evripiotis2019-07-091-9/+0
| | | | | | | | The {,un}register_exclusive_interest() mechanism is used for this now.
| * _plugincontext: rm unused self._dependenciesAngelos Evripiotis2019-07-091-3/+3
| | | | | | | | Also document the pre-existing format_versions parameter.
| * _plugincontext: simplify if statementAngelos Evripiotis2019-07-091-3/+4
| | | | | | | | | | Add shortened local vars to make this statement easier to read and fit onto one line.
| * _loader/loadelement: rm unused 'deps' memberAngelos Evripiotis2019-07-091-1/+0
| |
| * _frontend: rm unused _line_length and Space widgetAngelos Evripiotis2019-07-092-10/+0
| |
| * _exceptions: rm unused OSTREE ErrorDomain entryAngelos Evripiotis2019-07-091-9/+8
| |
| * cascache: rm unused link_ref(), available_spaceAngelos Evripiotis2019-07-091-15/+0
|/
* Merge branch 'jonathan/frontend-separation' into 'master'bst-marge-bot2019-07-0913-155/+548
|\ | | | | | | | | Separate frontend state handling from core state See merge request BuildStream/buildstream!1409
| * Store core state for the frontend separatelyJonathan Maw2019-07-0912-143/+503
| |
| * Pipeline: Add a helper for adding lists of elements togetherJonathan Maw2019-07-092-1/+18
| | | | | | | | | | | | | | Lists of elements should never contain duplicate elements. This commit also uses the helper to calculate the list of elements when pulling missing elements in `bst shell`
| * Stream: Fix the existence of duplicate queuesJonathan Maw2019-07-092-8/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was possible for multiple Queues of the same type to exist. Currently, there is no desired reason for this to happen. These changes add an explicit function call to the Scheduler that destroys the queues, to be used before constructing the next list of queues to pass into the Scheduler. It also calls this in all the places before we construct the queues. Further, it alters Stream.fetch_subprojects because there is currently no reason why we'd want to preserve the Stream's list of queues before running.
| * Queue: Make queues store counts of the number of skipped/processed elementsJonathan Maw2019-07-093-15/+15
|/ | | | | | | | We only seen to generate the list so we can get its length, so it is more efficient to only store a count of skipped/processed elements. failed_elements needs to remain a list for the moment, as it's used to retry a failed element job.
* Merge branch 'aevri/rm_artifacts' into 'master'bst-marge-bot2019-07-091-1/+0
|\ | | | | | | | | _artifact: rm unused _artifacts member See merge request BuildStream/buildstream!1454
| * _artifact: rm unused _artifacts memberaevri/rm_artifactsAngelos Evripiotis2019-07-091-1/+0
|/
* Merge branch 'aevri/win32_tempfilename' into 'master'bst-marge-bot2019-07-092-6/+65
|\ | | | | | | | | _artifact: use win32-compatible named temp file See merge request BuildStream/buildstream!1440
| * _artifact.py: use utils._tempnamedfile_nameAngelos Evripiotis2019-07-091-4/+3
| | | | | | | | | | We are only using the filename of the temporary file here, so use the wrapper for this use-case.
| * utils: add _tempnamedfile_name for win32 happinessAngelos Evripiotis2019-07-091-0/+60
| | | | | | | | | | | | | | | | Avoid a restriction of Windows that prevents us from using both the file descriptor and the file name of tempfile.NamedTemporaryFile. Provide a wrapper that only returns the temporary filename, and makes it easier to be windows-compatible.
| * utils: fix yield type of _tempnamedfileAngelos Evripiotis2019-07-091-1/+1
| |
| * utils: indent 'with' continuation lineAngelos Evripiotis2019-07-091-1/+1
|/
* Merge branch 'jjardon/aarch64_fedora30' into 'master'bst-marge-bot2019-07-091-8/+2
|\ | | | | | | | | .gitlab-ci.yml: Use fedora30 for aarch64 overnigth tests See merge request BuildStream/buildstream!1327
| * .gitlab-ci.yml: Use fedora30 for aarch overnigth testsjjardon/aarch64_fedora30Javier Jardón2019-07-091-8/+2
|/
* Merge branch 'juerg/yaml-synthetic-file-index' into 'master'bst-marge-bot2019-07-081-2/+2
|\ | | | | | | | | | | | | _yaml.pyx: Fix file index checks for synthetic nodes Closes #1051 See merge request BuildStream/buildstream!1457
| * _yaml.pyx: Fix file index checks for synthetic nodesjuerg/yaml-synthetic-file-indexJürg Billeter2019-07-081-2/+2
|/ | | | Fixes #1051.
* Merge branch 'raoul/1038-source-cache-proto' into 'master'bst-marge-bot2019-07-0813-66/+662
|\ | | | | | | | | | | | | Proto based source cache service Closes #1038 See merge request BuildStream/buildstream!1435
| * Source cache uses new proto methodsRaoul Hidalgo Charman2019-07-087-56/+212
| | | | | | | | | | | | | | | | | | This changes the location of source refs from `cache/cas/refs` to `cache/sources_protos` and fixes tests that looked in the old reference place. Source cache now uses the new protocol buffer and grpc methods defined, for storing locally, and pushing and pulling to remotes. Part of #1038
| * capabilities: Expand to include source serviceRaoul Hidalgo Charman2019-07-083-9/+66
| | | | | | | | Part of #1038
| * casserver.py: Add source serviceRaoul Hidalgo Charman2019-07-081-1/+39
| | | | | | | | Part of #1038
| * protos: Update generated grpc filesRaoul Hidalgo Charman2019-07-082-0/+284
| | | | | | | | Part of #1038
| * Add new source protoRaoul Hidalgo Charman2019-07-081-0/+61
|/ | | | Part of #1038
* Merge branch 'shashwatdalal/make-magic-timestamp-public' into 'master'bst-marge-bot2019-07-084-11/+10
|\ | | | | | | | | `utils.py`: Make `magic_timestamp` a public variable See merge request BuildStream/buildstream!1369