summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Element.py: Added stage_sources function to stage the sources in a shell sandboxissue-413-Add_sources_to_bst_shellPhillip Smyth2018-06-112-7/+15
|
* doc: Removed some unused link targetsTristan Van Berkom2018-06-095-14/+0
|
* doc/source/main_using.rst: Reversed ToC hereTristan Van Berkom2018-06-091-2/+2
| | | | | | Seems that the "commands" is taking a lot of space such that we can't see the other sections here easily, that is alright if "commands" remains at the end.
* doc/source/examples.rst: Use a flat ToC hereTristan Van Berkom2018-06-091-1/+1
| | | | | Here we're really listing examples, a ToC with depth is not great here.
* doc/source/examples_flatpak_autotools.rst: Added some links to the example ↵Tristan Van Berkom2018-06-091-5/+9
| | | | project on gitlab.
* doc/examples/flatpak-autotools: Use consistent project nameTristan Van Berkom2018-06-091-1/+1
| | | | This was named autotools-flatpak, changed to flatpak-autotools.
* doc: Stop generating the modules indexTristan Van Berkom2018-06-092-2/+2
| | | | | We still have a few unused artifacts in the docs generation, this is just one less.
* .gitlab-ci.yml: Stop depending on specific version of sphinxTristan Van Berkom2018-06-091-1/+1
| | | | | | This branch fixes #312 by using a hidden toctree to include the buildstream package and reducing the amount of allowed :orphan: pages.
* doc/source/authoring.rst: Removed unneeded link anchor from hereTristan Van Berkom2018-06-091-2/+0
|
* doc: Split out cache keys and sandboxing writings into a sub sectionTristan Van Berkom2018-06-092-4/+11
|
* doc/source/index.rst: Add resources directly at the bottom of the main pageTristan Van Berkom2018-06-092-11/+8
| | | | | This is nice to have on the main page, and is only a few links, dont like having a whole toplevel ToC entry for this.
* doc/source/core_framework.rst: Use a toctree instead of linksTristan Van Berkom2018-06-097-21/+22
|
* doc/source/main_core.rst: Use a hidden toctree to hide away some thingsTristan Van Berkom2018-06-091-0/+10
| | | | | Sphinx generates some library style module index, we just include it in a hidden toctree and avoid using it altogether.
* doc: Added plugins as ToC elements instead of orphaned linksTristan Van Berkom2018-06-0927-81/+108
| | | | | | | | | | | | o Now the page titles are declared in plugins, allowing for a more descriptive ToC o Makefile and plugin.rsttemplate updated to not produce the title, to no longer use `:orphan:` for plugin pages, and to ignore any private modules in the plugin directories. o Interestingly, now the docs will fail to build if you add a new plugin and forget to add it to the documentation.
* doc/source/index.rst: Use only one level depth ToC on main pageTristan Van Berkom2018-06-091-1/+1
| | | | | The main page has too much information on it otherwise, we want a friendly, not overwhelming first page to our docs.
* Allow tracking dependencies within sub-projects.Valentin David2018-06-084-10/+229
| | | | | | | --track-cross-junctions now concerns crossing junctions rather than forbidding elements in sub-project to be tracked. Part of #359.
* Handle cross junction elements in workspaces.Valentin David2018-06-087-30/+154
| | | | | | | | | | | Workspaces are now index by colon separated junction path. This now allows to create workspaces for elements in external projects. Workspaces are owned by context instead of root project. However it is initialized once top-level project is registered as we need to resolve paths relatively to this top-level project. Part of #359.
* Reword uses of project in Workspaces.Valentin David2018-06-081-22/+30
| | | | | Make it clear we expect the top-level project here as we use it to resolve paths relative to project directory.
* Interpret names as colon separated junction path in loader.Valentin David2018-06-087-10/+240
| | | | | | 'a.bst:b.bst' gets interpreted as 'b.bst' from junction 'a.bst'. Part of #359.
* autotools plugin: Dont regenerate existing configure scriptsTristan Van Berkom2018-06-081-4/+6
| | | | This closes #256
* _artifactcache/pushreceive.py: Cleanup reported error when receiving ↵Tristan Van Berkom2018-06-071-3/+2
| | | | | | | oversized artifacts This user facing string was redundantly declared in two places, only the message when catching the error was ever printed.
* pushreceive.py: Abstract the buffer_James Ennis2018-06-071-9/+8
|
* pushreceive.py: Ensure huge artifacts are not pushedJames Ennis2018-06-072-6/+32
|
* pushreceive.py: Add comments to code and name variables more sensiblyJames Ennis2018-06-071-1/+13
|
* push.py: Add tests to test remote cache expiryJames Ennis2018-06-071-1/+184
| | | | | | | | The tests include a new environment variable: BST_CACHE_QUOTA. This variable is used in receive_main() in pushreceive.py. Test names: test_artifact_expires, test_large_artifact_is_not_cached_remotely test_recently_pulled_artifact_does_not_expire: marked as xfail until we implement LRU expiry in remote share
* element_generators.py: Add a utility function to create arbitrary size elementsJames Ennis2018-06-072-0/+41
| | | | | | New file consisting of functions that allow us to generate elements on the fly __init__.py now includes create_element_size()
* pushreceive.py: Remove LRP artifacts from cache, introduce clean_up_cache()James Ennis2018-06-071-3/+54
| | | | This fixes #136
* pushreceive.py: Ensure there is a repopathJames Ennis2018-06-071-0/+3
|
* _ostree.py: Introduce _list_all_refs() and list_artifacts()Tristan Maat2018-06-071-0/+44
| | | | | The unused list_remote_refs() function has also been removed as part of this commit.
* _ostree.py: Reintroduce remove()Tristan Maat2018-06-071-0/+36
|
* tests/completions: Added test case for custom `bst help` completionsTristan Van Berkom2018-06-071-0/+13
|
* _frontend/cli.py: Allow specifying commands in `bst help`Tristan Van Berkom2018-06-072-13/+67
| | | | | | o This supports deeply nested commands as well as shallow commands o Automated support for bash completions included
* Implement bst helpEd Baunton2018-06-072-3/+16
|
* Make `bst help` workEd Baunton2018-06-071-0/+4
|
* _frontend/cli.py: Try to autocomplete element paths when running from a ↵Chandan Singh2018-06-062-5/+24
| | | | | | | | subdirectory The previous commit added support for running bst commands form subdirectories of the project root. Make autocomplete also work in a similar way.
* _project.py: Allow running bst commands from subdirectories of project rootChandan Singh2018-06-065-2/+50
| | | | | | | | When initializing the project, BuildStream will continue searching for project.conf in parent directories in case it is not found in the current directory. Fixes #368.
* _loader/loader.py: Report element-path when failing to load elementsChandan Singh2018-06-061-1/+17
| | | | | | | | | | | | | | | | | It can be confusing, especially to new BuildStream users, that the CLI expects targets to be specified relative to element-path and not the current directory. Previously, the CLI would give a generic message stating that the file could not be found but it was not obvious that it was looking in the `element-path` directory. Explicitly print the element-path in the summary. Also, try to check if the specified element exists in the elements directory and print a hint to use the element-path relative paths if that's the case. Fixes #396. This is is also related to #341. This commit aims to tackle that issue by trying to educate users about element-path.
* make build element: Add support for PREFIXTristan Van Berkom2018-06-061-2/+2
|
* NEWS: Mentioning new `make` build elementTristan Van Berkom2018-06-061-0/+2
|
* make plugin: Ammended documentation to note it's since version.Tristan Van Berkom2018-06-061-0/+4
|
* _versions.py: Bump format version to 9Tristan Van Berkom2018-06-061-1/+1
| | | | For addition of new `make` plugin
* doc/source/authoring.rst: Adding `make` element to the docsTristan Van Berkom2018-06-061-0/+1
|
* Add a kind for MakeEd Baunton2018-06-065-0/+141
|
* _frontend/app.py: Remove unused variable at global scopeTristan Van Berkom2018-06-061-1/+0
|
* _artifactcache/pushreceive.py: Add Click type for CLI argument 'repo'Chandan Singh2018-06-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The CLI for `bst-artifact-receive` expects a `repo` argument, which is supposed to be a directory, but Click currently expects it to be just any string. This results in stack traces like the one below when the argument provided is not a directory: $ ~/.local/bin/bst-artifact-receive --pull-url http://foo foobaz Traceback (most recent call last): File "/root/.local/bin/bst-artifact-receive", line 8, in <module> sys.exit(receive_main()) ... File "/src/buildstream/buildstream/_artifactcache/pushreceive.py", line 581, in __init__ self.repo.open(None) GLib.Error: g-io-error-quark: /src/buildstream/43fref: opendir(/src/buildstream/foobaz): No such file or directory (1) Add types for this argument such that it throws better error messages when it receives bad arguments. With the Click types added, it will instead fail with messages like these: $ ~/.local/bin/bst-artifact-receive --pull-url http://foo foobaz Usage: bst-artifact-receive [OPTIONS] REPO Error: Invalid value for "repo": Directory "foobaz" does not exist. $ ~/.local/bin/bst-artifact-receive --pull-url http://foo setup.py Usage: bst-artifact-receive [OPTIONS] REPO Error: Invalid value for "repo": Directory "setup.py" is a file. Fixes #409.
* utils.py: Correcting a typo in safe_remove's commentPhillip Smyth2018-06-051-1/+1
|
* _sandboxbwrap.py: Fix post-bwrap cleanup behaviourGökçen Nurlu2018-06-051-1/+1
| | | | | | | | | The cleanup was supposed not to remove folders (`/dev`, `/tmp`, `/proc`) if they already existed before bwrap but it did the opposite: it tried to remove them if they existed before, and didn't remove them if they were created during bwrap. This was caused by a `not` clause, and this removes it. Fixes #379
* Add test to verify cleanup behaviour after bwrapGökçen Nurlu2018-06-054-0/+51
| | | | | | This adds `sandbox-bwrap/test-cleanup.bst` to test the cleanup behaviour in `sandbox/_sandboxbwrap.py`: There already exists a non-empty `/tmp` folder and BuildStream should not try to remove it after a command is executed with bwrap.
* tests/context/context.py: Test setting XDG_CACHE_HOMETristan Maat2018-06-051-0/+17
|
* _context.py: Normalize user-defined pathsTristan Maat2018-06-051-0/+1
|