summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* artifactcache.py: Remove unused verify_digest_pushedjmac/remote_execution_splitJim MacArthur2018-11-261-28/+0
|
* tests/sandboxes/remote-exec-config.py: New test.Jim MacArthur2018-11-264-0/+102
| | | | | Tests that we get a sensible error message when we specify incomplete or wrong information in the configuration for remote execution.
* Documentation: Update to show new config optionsJim MacArthur2018-11-261-3/+17
|
* _sandboxremote: Remove references to artifact cache.Jim MacArthur2018-11-264-37/+109
| | | | | Uses the new config options introduced earlier to specify remote exec storage and execution service.
* artifactcache.py, _context.py: Move CASCache object into contextJim MacArthur2018-11-222-2/+9
| | | | | | Since the artifact cache and remote execution share the same local CAS store, they should share the same CASCache object. Moving this into context allows us to do this.
* artifactcache: Move ArtifactCacheSpec code into CASRemoteSpec.Jim MacArthur2018-11-222-45/+50
| | | | | | There is nothing in ArtifactCacheSpec that's actually specific to artifacts, so I've made it a CAS class so we can use the same spec for remote execution.
* Merge branch 'valentindavid/overnight-tests-bump-fdo-sdk-version' into 'master'778-bst-example-html-in-the-doc-s-is-out-of-date-and-is-hard-to-maintainJavier Jardón2018-11-221-2/+2
|\ | | | | | | | | Bump version of fd.o SDK and bst_external in overnight tests See merge request BuildStream/buildstream!962
| * .gitlab-ci.yml: Bump version of fd.o SDK and bst_external in overnight testsValentin David2018-11-221-2/+2
|/
* Merge branch 'willsalmon/defaultWorkspaces' into 'master'Will Salmon2018-11-2115-136/+371
|\ | | | | | | | | Updated Workspace CLI See merge request BuildStream/buildstream!897
| * Added a news item for workspace open changesWilliam Salmon2018-11-211-0/+4
| |
| * Workspace CLI updateWilliam Salmon2018-11-2114-86/+263
| | | | | | | | | | | | | | This is to update the workspace CLI to as agreed on the mailing list https://mail.gnome.org/archives/buildstream-list/2018-September/msg00046.html This patch also introduces the default workspace directory.
| * tests/frontend/workspace.py: Refactor support functionWilliam Salmon2018-11-211-51/+105
|/ | | | | The Refactor now makes it possible to test for the forth coming multi element workspace open commands and to test for failure.
* Merge branch 'tpollard/pipelinehostconfig' into 'master'Jürg Billeter2018-11-211-1/+1
|\ | | | | | | | | tests/plugin/pipeline.py: Avoid using host user conf See merge request BuildStream/buildstream!961
| * tests/plugin/pipeline.py: Avoid using host user conftpollard/pipelinehostconfigTom Pollard2018-11-211-1/+1
|/ | | | | | create_pipeline was passing no config parameter to context.load, leading to _context.py loading in the host's buildstream user conf when running tests locally, potentially leading to unwanted errors.
* Merge branch 'bschubert/mr938-comments' into 'master'Benjamin Schubert2018-11-211-3/+9
|\ | | | | | | | | Followup on MR 938, addressing additional comments See merge request BuildStream/buildstream!958
| * utils.py: improve documentation of move_atomicBenjamin Schubert2018-11-211-2/+8
| |
| * utils.py: Ensure move_atomic booleans are keyword only argumentsBenjamin Schubert2018-11-211-1/+1
|/ | | | This is to be coherent with the rest of the codebase
* Merge branch 'bschubert/add-fedora-nobwrap-tests' into 'master'Benjamin Schubert2018-11-2025-74/+151
|\ | | | | | | | | Add tests for fedora with no bubblewrap available See merge request BuildStream/buildstream!949
| * gitlab-ci.yml: Extract test command as a variableBenjamin Schubert2018-11-201-3/+4
| | | | | | | | This removes the need of having it synchronized in multiple places
| * gitlab-ci.yml: Add linux without brwap/ostree to ensure tests behaveBenjamin Schubert2018-11-201-0/+18
| | | | | | | | | | This allows us to make sure that tests behave nicely while missing brwap and ostree.
| * Ensure tests requiring bubblewrap are correctly markedBenjamin Schubert2018-11-2024-26/+98
| |
| * gitlab-ci.yml: use template for unix testsBenjamin Schubert2018-11-201-29/+12
| | | | | | | | | | This makes all tests use the same template, which makes reasoning about them simpler
| * gitlab-ci.yml: remove unused artifacts for unix testsBenjamin Schubert2018-11-201-1/+0
| | | | | | | | | | The unix-logs is always empty, there is therefore no reasons of keeping it there
| * gitlab-cy.yml: make linux-tests-template more composable.Benjamin Schubert2018-11-201-11/+16
| | | | | | | | This will allow for further de-duplication of work.
| * Export variables globally for less repetition.Benjamin Schubert2018-11-201-5/+5
| | | | | | | | | | This doesn't change the test behavior and enable for better composability of tests
| * gitlab-ci.yml: Use CI_PROJECT_DIR instead of $(pwd) for cacheBenjamin Schubert2018-11-201-4/+3
|/
* Merge branch 'jennis/less_restrictive_pathways' into 'master'Jürg Billeter2018-11-201-1/+7
|\ | | | | | | | | Fix warning when using an absolute path which exists inside the project See merge request BuildStream/buildstream!956
| * _yaml.py: Fix incorrect error messageJames Ennis2018-11-201-1/+7
|/ | | | | | This patch ensures that we receive an appropriate error message if we specify an absolute path that leads within the project.
* Merge branch '725-job-cancellation-on-remote-builds' into 'master'Jürg Billeter2018-11-201-2/+29
|\ | | | | | | | | | | | | _sandboxremote.py: Add sigterm handler that sends CancelOperation Closes #725 See merge request BuildStream/buildstream!900
| * _sandboxremote.py: Add sigterm handler that sends CancelOperation725-job-cancellation-on-remote-buildsRaoul Hidalgo Charman2018-11-201-2/+29
|/
* Merge branch 'aevri/prompt-config' into 'master'Angelos Evripiotis2018-11-206-14/+108
|\ | | | | | | | | Add 'prompt.*' config options to buildstream.conf See merge request BuildStream/buildstream!887
| * Add prompt.workspace-... optionsAngelos Evripiotis2018-11-204-6/+39
| | | | | | | | | | | | | | | | | | | | Provide options in project.conf to disable the 'Are you sure ...' prompts when making destructive changes: - Add prompt.really-workspace-close-remove-dir - Add prompt.really-workspace-reset-hard Add a NEWS item for these.
| * Add prompt.auto-init buildstream.conf optionAngelos Evripiotis2018-11-204-4/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide an option in buildstream.conf to disable the 'Would you like to ...' prompt when we cannot resolve a project. Some users prefer not to be interrupted by such prompts, so pave the way to creating options to disable all those that might get in the way. Follow the example of the advice.* options 'git-config', and create a namespace for these UI options grouped by behaviour, rather than an over-reaching 'ui.*' namespace. In later work perhaps we'll also add 'advice.*' options. Add a NEWS item for this.
| * _context: refactor, extract _node_get_option_strAngelos Evripiotis2018-11-201-8/+29
| | | | | | | | | | | | | | | | | | Use a new helper function to simplify working with nodes that can only accept certain strings. This will be used when adding the prompt.* config options. In later work we can see if this function would be useful elsewhere, and could be added to '_yaml.py'.
| * _context: allow 'terminate' for scheduler.on-errorAngelos Evripiotis2018-11-201-1/+1
| | | | | | | | | | | | | | | | | | Enable this option of 'terminate', which is mentioned in userconfig.yaml and handled in _frontend/app.py:_handle_failure(). It appears to have been left out of the valid_actions as an oversight. Originally introduced in https://gitlab.com/BuildStream/buildstream/commit/2622d5da9bd9fefd87436613d6e3e9770fdd0f28
| * _yaml: document node_get()'s default_value argAngelos Evripiotis2018-11-201-0/+1
|/
* Merge branch 'juerg/context-default-values' into 'master'Jürg Billeter2018-11-199-55/+38
|\ | | | | | | | | _context.py: Drop duplicated default values for user configuration See merge request BuildStream/buildstream!953
| * _context.py: Drop duplicated default values for user configurationJürg Billeter2018-11-191-13/+15
| | | | | | | | | | | | The default values are in userconfig.yaml, together with the documentation. The default values should not be duplicated in _context.py.
| * tests/plugins/pipeline.py: Load context default valuesJürg Billeter2018-11-191-1/+2
| |
| * tests/testutils/artifactshare.py: Do not create a fake contextJürg Billeter2018-11-191-5/+2
| | | | | | | | | | | | The fake context did not set the cache quota, triggering an error. With CASCache now separate from ArtifactCache, we can instantiate a CASCache without context.
| * CasBasedDirectory: Change constructor to take a CASCache instead of a ContextRichard Maw2018-11-196-36/+19
|/ | | | | The Context was only used to obtain a reference to the CASCache and set the unused cas_directory field.
* Merge branch 'chandan/source-checkout-news' into 'master'Chandan Singh2018-11-191-0/+2
|\ | | | | | | | | NEWS: Add entry for the new source-checkout command See merge request BuildStream/buildstream!960
| * NEWS: Add entry for the new source-checkout commandChandan Singh2018-11-191-0/+2
|/ | | | | | `bst source-checkout` command was recently added in https://gitlab.com/BuildStream/buildstream/merge_requests/820. Add a NEWS entry for the new command.
* Merge branch 'bschubert/dont-cache-errors-from-host-tools' into 'master'Benjamin Schubert2018-11-193-97/+141
|\ | | | | | | | | | | | | Don't cache sandbox failures Closes #727 See merge request BuildStream/buildstream!895
| * element.py: Only cache on element error or successBenjamin Schubert2018-11-191-19/+6
| | | | | | | | | | | | Reverse the way we were handling caching by only caching when we know it's a problem with the build or the build is a success in order not to cache transient errors.
| * Don't cache sandbox errorsBenjamin Schubert2018-11-193-90/+147
|/ | | | | | | | | | Sandbox errors (like missing host tools) are dependent on the host system and rarely on what is actually done. It is therefore better to not cache them as they are subject to change between two runs. Also add test to ensure sandbox failure are not cached
* Merge branch 'abderrahim/cmake-variable-types' into 'master'Valentin David2018-11-192-3/+3
|\ | | | | | | | | | | | | plugins/elements/cmake.yaml: always specify variable types Closes #761 See merge request BuildStream/buildstream!947
| * plugins/elements/cmake.yaml: always specify variable typesAbderrahim Kitouni2018-11-192-3/+3
|/ | | | | | | cmake sometimes misinterprets relative paths as relative to the current directory if this is not specified. See freedesktop-sdk/freedesktop-sdk#431 adjust tests/format/variables.py accordingly.
* Merge branch 'chandan/source-checkout' into 'master'Chandan Singh2018-11-197-28/+285
|\ | | | | | | | | Add `bst source-checkout` command See merge request BuildStream/buildstream!820
| * Add `bst source-checkout` commandChandan Singh2018-11-197-27/+284
| | | | | | | | | | | | | | | | | | | | | | | | As discussed in https://mail.gnome.org/archives/buildstream-list/2018-September/msg00064.html, add `bst source-checkout` command. This will allow users to checkout sources for a given target. * _frontend/cli.py: Add source-checkout command * _pipeline.py: Add assert_sources_cached() method * _stream.py: Add source_checkout method, abstract out __check_location_writable() method that used to part of checkout()