Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | buildelement.py: Fixed doc string link.exceptions-refactor | Tristan Van Berkom | 2017-11-06 | 1 | -1/+1 |
| | |||||
* | doc/source/formatintro.rst: Fixed duplicate link anchor | Tristan Van Berkom | 2017-11-06 | 1 | -1/+1 |
| | |||||
* | Refactoring: Renamed _BstError -> BstError | Tristan Van Berkom | 2017-11-06 | 8 | -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 -> ArtifactError | Tristan Van Berkom | 2017-11-06 | 6 | -34/+34 |
| | | | | This is now part of the already private _exceptions module | ||||
* | Refactoring: Move exceptions module to be private | Tristan Van Berkom | 2017-11-06 | 50 | -109/+118 |
| | | | | Hide all of buildstream's internal exceptions from the API surface. | ||||
* | Refactoring: Move ElementError and SourceError to their respective classes, ↵ | Tristan Van Berkom | 2017-11-06 | 6 | -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 method | Tristan Van Berkom | 2017-11-06 | 1 | -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 data | Tristan Van Berkom | 2017-11-06 | 2 | -8/+0 |
| | |||||
* | tests/sources/zip.py: Adding tests for zip source edge cases | Tristan Van Berkom | 2017-11-06 | 13 | -0/+221 |
| | |||||
* | tests/sources/fixture.py: Removing the old deprecated fixture | Tristan Van Berkom | 2017-11-06 | 1 | -55/+0 |
| | |||||
* | tests/sources/bzr.py: Removing bzr source test | Tristan Van Berkom | 2017-11-06 | 13 | -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 #121 | Tristan Van Berkom | 2017-11-06 | 3 | -2/+2 |
| | |||||
* | plugins/elements/script.py: Issue #121 - Remove traces of pre-/post- commands | Tristan Van Berkom | 2017-11-06 | 1 | -8/+3 |
| | |||||
* | buildelement.py: Issue #121 - Remove traces of pre-/post- commands | Tristan Van Berkom | 2017-11-06 | 1 | -34/+29 |
| | |||||
* | Updating all test cases for the removal of architecture conditionals and options | Tristan Van Berkom | 2017-11-06 | 37 | -201/+53 |
| | |||||
* | _frontend/widget.py: Removing architecture from the reports | Tristan Van Berkom | 2017-11-06 | 1 | -2/+0 |
| | |||||
* | _frontend/main.py: Removing arch related options | Tristan Van Berkom | 2017-11-06 | 1 | -17/+8 |
| | | | | And adding --integrate/--no-integrate option to `bst checkout` | ||||
* | _pipeline.py: Removing arches | Tristan Van Berkom | 2017-11-06 | 1 | -12/+4 |
| | | | | | Also now the integration option to `bst checkout` is explicit, as we dont have knowledge of arches anymore. | ||||
* | _loader.py: Removing arch conditionals | Tristan Van Berkom | 2017-11-05 | 1 | -52/+3 |
| | |||||
* | project.py: Removing arches | Tristan Van Berkom | 2017-11-05 | 1 | -10/+0 |
| | |||||
* | context.py: Removing arches | Tristan Van Berkom | 2017-11-05 | 1 | -11/+2 |
| | |||||
* | tests/sources/git.py: Converted to use newer CLI fixtures | Tristan Van Berkom | 2017-11-05 | 5 | -373/+63 |
| | |||||
* | testutils: Added optional subdir parameter to repo creation | Tristan Van Berkom | 2017-11-05 | 5 | -10/+25 |
| | | | | In case a test wants to create more than one repo. | ||||
* | tests/sources/patch.py: Converted to use CLI fixtures | Tristan Van Berkom | 2017-11-04 | 8 | -103/+82 |
| | |||||
* | tests/sources/local.py: Removed some more unneeded steps in the test | Tristan Van Berkom | 2017-11-04 | 1 | -10/+2 |
| | |||||
* | tests/sources/local.py: Remove one line of deadcode | Tristan Van Berkom | 2017-11-04 | 1 | -1/+0 |
| | |||||
* | Add tests for multiple targets | Tristan Maat | 2017-11-04 | 15 | -0/+103 |
| | |||||
* | Adjust tests to new API | Tristan Maat | 2017-11-04 | 8 | -74/+74 |
| | |||||
* | main.py: Make CLI wording for elements consistent | Tristan Maat | 2017-11-04 | 1 | -29/+30 |
| | |||||
* | Stop using pipeline.target for UI widgets | Tristan Maat | 2017-11-04 | 2 | -3/+3 |
| | |||||
* | Adjust commands to multiple targets | Tristan Maat | 2017-11-04 | 2 | -54/+67 |
| | |||||
* | _pipeline.py: Misc adjustments to multiple targets | Tristan Maat | 2017-11-04 | 1 | -7/+22 |
| | |||||
* | _pipeline.py: Fix metaelement resolution | Tristan Maat | 2017-11-04 | 1 | -9/+7 |
| | |||||
* | _pipeline.py: Adjust to new loader API | Tristan Maat | 2017-11-04 | 1 | -5/+6 |
| | |||||
* | _loader.py: Adjust the loader to support multiple targets | Tristan Maat | 2017-11-04 | 1 | -20/+31 |
| | |||||
* | _pipeline.py: Adjust Planner.plan to multiple targets | Tristan Maat | 2017-11-04 | 1 | -3/+3 |
| | |||||
* | tests/sources/local.py: Migrated test to use frontend fixtures | Tristan Van Berkom | 2017-11-04 | 3 | -40/+45 |
| | |||||
* | plugins/sources/tar.py: Ignore leading ./ in tarball paths | Tristan Van Berkom | 2017-11-03 | 1 | -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 enhanced | Tristan Van Berkom | 2017-11-03 | 14 | -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 index | Tristan Van Berkom | 2017-11-03 | 1 | -0/+1 |
| | |||||
* | Add a new zip sourcezip | Mathieu Bridon | 2017-11-03 | 9 | -1/+205 |
| | | | | This is equivalent to the tar source, but for Zip archives. | ||||
* | tar: Move most of the code to a new base class | Mathieu Bridon | 2017-11-03 | 2 | -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.sha256sum | Mathieu Bridon | 2017-11-03 | 1 | -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 behavior | Tristan Van Berkom | 2017-11-02 | 1 | -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 Berkom | 2017-11-02 | 1 | -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 references | Tristan Maat | 2017-11-01 | 6 | -6/+6 |
| | |||||
* | Make the platform object a singleton | Tristan Maat | 2017-11-01 | 2 | -4/+11 |
| | |||||
* | _artifactcache/ostreecache.py: Allow explicit disabling of pushesuser-namespace-fallback | Tristan Van Berkom | 2017-10-31 | 1 | -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 unavailable | Tristan Van Berkom | 2017-10-31 | 1 | -1/+6 |
| | | | | Part of the fix for #92 | ||||
* | _platform/linux.py: Add preflight check to detect user namespaces | Tristan Van Berkom | 2017-10-31 | 1 | -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 |