summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* buildelement.py: Fixed doc string link.exceptions-refactorTristan Van Berkom2017-11-061-1/+1
|
* doc/source/formatintro.rst: Fixed duplicate link anchorTristan Van Berkom2017-11-061-1/+1
|
* Refactoring: Renamed _BstError -> BstErrorTristan Van Berkom2017-11-068-50/+52
| | | | | | Base class for exceptions is now a part of the already private _exceptions module Also moved PipelineError from _pipeline -> _exceptions module
* Refactoring: Rename _ArtifactError -> ArtifactErrorTristan Van Berkom2017-11-066-34/+34
| | | | This is now part of the already private _exceptions module
* Refactoring: Move exceptions module to be privateTristan Van Berkom2017-11-0650-109/+118
| | | | Hide all of buildstream's internal exceptions from the API surface.
* Refactoring: Move ElementError and SourceError to their respective classes, ↵Tristan Van Berkom2017-11-066-40/+47
| | | | | | | | | | create SandboxError These errors are a part of public facing API, and the exceptions module contains a lot of internal details to be hidden from public API. This move required creating SandboxError because sandbox related code had previously been hijacking the ElementError and raising that.
* plugins/sources/zip.py: Dont depend on python 3.6 methodTristan Van Berkom2017-11-061-8/+10
| | | | | | Also, restructured a bit to match tar source, there was never any need for the `dirs_only` parameter for listing the archive paths, the source is only interested in directories anyway.
* tests/sources/tar.py: Removing some unused test dataTristan Van Berkom2017-11-062-8/+0
|
* tests/sources/zip.py: Adding tests for zip source edge casesTristan Van Berkom2017-11-0613-0/+221
|
* tests/sources/fixture.py: Removing the old deprecated fixtureTristan Van Berkom2017-11-061-55/+0
|
* tests/sources/bzr.py: Removing bzr source testTristan Van Berkom2017-11-0613-238/+0
| | | | | | | | This does not test much more than the regular frontend tests against the bzr source, and was presenting difficulty to migrate to the proper new CLI fixtures. This was also the last source test using the older deprecated fixture.
* Updating cache key test for recent changes related to issue #121Tristan Van Berkom2017-11-063-2/+2
|
* plugins/elements/script.py: Issue #121 - Remove traces of pre-/post- commandsTristan Van Berkom2017-11-061-8/+3
|
* buildelement.py: Issue #121 - Remove traces of pre-/post- commandsTristan Van Berkom2017-11-061-34/+29
|
* Updating all test cases for the removal of architecture conditionals and optionsTristan Van Berkom2017-11-0637-201/+53
|
* _frontend/widget.py: Removing architecture from the reportsTristan Van Berkom2017-11-061-2/+0
|
* _frontend/main.py: Removing arch related optionsTristan Van Berkom2017-11-061-17/+8
| | | | And adding --integrate/--no-integrate option to `bst checkout`
* _pipeline.py: Removing archesTristan Van Berkom2017-11-061-12/+4
| | | | | Also now the integration option to `bst checkout` is explicit, as we dont have knowledge of arches anymore.
* _loader.py: Removing arch conditionalsTristan Van Berkom2017-11-051-52/+3
|
* project.py: Removing archesTristan Van Berkom2017-11-051-10/+0
|
* context.py: Removing archesTristan Van Berkom2017-11-051-11/+2
|
* tests/sources/git.py: Converted to use newer CLI fixturesTristan Van Berkom2017-11-055-373/+63
|
* testutils: Added optional subdir parameter to repo creationTristan Van Berkom2017-11-055-10/+25
| | | | In case a test wants to create more than one repo.
* tests/sources/patch.py: Converted to use CLI fixturesTristan Van Berkom2017-11-048-103/+82
|
* tests/sources/local.py: Removed some more unneeded steps in the testTristan Van Berkom2017-11-041-10/+2
|
* tests/sources/local.py: Remove one line of deadcodeTristan Van Berkom2017-11-041-1/+0
|
* Add tests for multiple targetsTristan Maat2017-11-0415-0/+103
|
* Adjust tests to new APITristan Maat2017-11-048-74/+74
|
* main.py: Make CLI wording for elements consistentTristan Maat2017-11-041-29/+30
|
* Stop using pipeline.target for UI widgetsTristan Maat2017-11-042-3/+3
|
* Adjust commands to multiple targetsTristan Maat2017-11-042-54/+67
|
* _pipeline.py: Misc adjustments to multiple targetsTristan Maat2017-11-041-7/+22
|
* _pipeline.py: Fix metaelement resolutionTristan Maat2017-11-041-9/+7
|
* _pipeline.py: Adjust to new loader APITristan Maat2017-11-041-5/+6
|
* _loader.py: Adjust the loader to support multiple targetsTristan Maat2017-11-041-20/+31
|
* _pipeline.py: Adjust Planner.plan to multiple targetsTristan Maat2017-11-041-3/+3
|
* tests/sources/local.py: Migrated test to use frontend fixturesTristan Van Berkom2017-11-043-40/+45
|
* plugins/sources/tar.py: Ignore leading ./ in tarball pathsTristan Van Berkom2017-11-031-9/+18
| | | | | | | This makes buildstream behave the same way with tarballs which were encoded with a leading `.` and those encoded without one. This fixes issue #145
* tests/sources/tar.py: Converted tar test to use the CLI and enhancedTristan Van Berkom2017-11-0314-107/+134
| | | | | | Now test to also ensure that base-dir expressions always behave the same way regardless of whether the tarball was created with a leading '.' or not.
* doc/source/pluginindex.rst: Added zip source to the plugins indexTristan Van Berkom2017-11-031-0/+1
|
* Add a new zip sourcezipMathieu Bridon2017-11-039-1/+205
| | | | This is equivalent to the tar source, but for Zip archives.
* tar: Move most of the code to a new base classMathieu Bridon2017-11-032-91/+114
| | | | | | | | | | | The new DownloadableFileSource will be used as a base for all sources which just download a file to use as source. The existing TarSource just keeps the code responsible to manage a Tar archive. This will help implemeting other types of single file downloaded sources, for example Zip archives.
* tests: Reuse utils.sha256sumMathieu Bridon2017-11-031-8/+2
| | | | | The utility function was added in 08da7cc7, but it never was removed from here.
* tests/testutils/repo/tar.py: Fixed for changed tar behaviorTristan Van Berkom2017-11-021-2/+2
| | | | | | This test was encoding tarballs with '.', so the change of ignoring '.' breaks this - now we just make the tar test scaffolding use an empty string for the base-dir.
* plugins/sources/tar.py: Ignore possible leading '.' directory.Tristan Van Berkom2017-11-021-0/+6
| | | | | | | | | | | | | | | To extract the full tarball, one should set base-dir to an empty string. By ignoring the leading '.' in any archive, we make the 'base-dir' API more predictable and reliable - the default behavior of '*' is to pickup the first directory in the tarball (usually source code tarballs are encoded with one leading directory) - in the off chance that a source tarball has a leading '.' in it; that would cause the 'base-dir' default '*' glob to extract the whole thing. It seems undesirable to behave differently depending on whether a tarball was encoded with, or without a leading '.'
* Clean old Platform.get_platform referencesTristan Maat2017-11-016-6/+6
|
* Make the platform object a singletonTristan Maat2017-11-012-4/+11
|
* _artifactcache/ostreecache.py: Allow explicit disabling of pushesuser-namespace-fallbackTristan Van Berkom2017-10-311-1/+14
| | | | | | This is used by the platform to disable pushing explicitly in the case that we're falling back to not using user namespaces, in which case we dont entirely trust the artifacts we create.
* sandbox/_sandboxbwrap.py: Dont use user namespaces if they are unavailableTristan Van Berkom2017-10-311-1/+6
| | | | Part of the fix for #92
* _platform/linux.py: Add preflight check to detect user namespacesTristan Van Berkom2017-10-311-1/+40
| | | | | | | | | | | | Here we check if `bwrap --ro-bind / / --unshare-user --uid 0 --gid 0 whoami` returns successfully and prints 'root', to check if we are indeed capable of creating user namespaces on the host. If we are unable, then we save that state in the platform allowing buildstream to behave differently, and print an informative startup warning about this. This fixes issue #92