summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* _stream.py: fix _buildtree_pull_required logictpollard/fixbuildtreereqTom Pollard2018-12-201-1/+1
|
* Merge branch 'chandan/fix-warning' into 'master'Chandan Singh2018-12-202-4/+4
|\ | | | | | | | | Fix Deprecation warnings from regex module See merge request BuildStream/buildstream!1010
| * buildstream/utils.py: Fix regex Deprecation WarningChandan Singh2018-12-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Specify flags at the start of the expression as per the recommendation of the standard library. Without this patch, we currently get the following warning: ``` tests/examples/junctions.py::test_open_cross_junction_workspace /builds/BuildStream/buildstream/dist/buildstream/buildstream/utils.py:213: DeprecationWarning: Flags not at the start of the expression '\\/[^/]*\\Z(?ms)' regexer = re.compile(expression) ```
| * tests/frontend/logging.py: Fix regex Deprecation WarningChandan Singh2018-12-201-2/+2
|/ | | | | | | | | | | | | | | | | Use raw strings for regex searches, which is the preferred way to do regular expressions in Python. Without this patch, currently we get the following warnings: ``` tests/frontend/logging.py:44 /builds/BuildStream/buildstream/dist/buildstream/tests/frontend/logging.py:44: DeprecationWarning: invalid escape sequence \[ m = re.search("\[\d\d:\d\d:\d\d\]\[\]\[\] SUCCESS Checking sources", result.stderr) tests/frontend/logging.py:80 /builds/BuildStream/buildstream/dist/buildstream/tests/frontend/logging.py:80: DeprecationWarning: invalid escape sequence \d m = re.search("\d\d:\d\d:\d\d,\d\d:\d\d:\d\d.\d{6},\d\d:\d\d:\d\d,,,SUCCESS,Checking sources", result.stderr) ```
* Merge branch 'aevri/rm-autoinit' into 'master'Angelos Evripiotis2018-12-205-27/+20
|\ | | | | | | | | | | | | BREAK: remove auto-init behaviour Closes #826 See merge request BuildStream/buildstream!1015
| * BREAK: remove auto-init behaviourAngelos Evripiotis2018-12-204-24/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the event that the project could not be found, stop BuildStream from asking if the user would like to create a new project. Exit with error instead, and give a hint to the user in case they're new. As proposed on the mailing list here: https://mail.gnome.org/archives/buildstream-list/2018-December/msg00082.html The new interaction looks like this: $ bst show nonsuch.bst No project found. You can create a new project like so: bst init Error loading project: None of ['project.conf', '.bstproject.yaml'] found in '/src/temp/blah' or any of its parent directories Fixes #826
| * _project::_find_project_dir: fix error messageAngelos Evripiotis2018-12-201-3/+4
|/ | | | | | | | | | | | Now that we are also looking for WORKSPACE_PROJECT_FILE, we should add it to the error message. While we're there, also mention the directory we are looking in - this could help scripters be clear about what went wrong. The new error message looks like this: Error loading project: None of ['project.conf', '.bstproject.yaml'] found in '/src/temp/blah' or any of its parent directories
* Merge branch 'chandan/abstract-git-source' into 'master'Chandan Singh2018-12-203-644/+678
|\ | | | | | | | | | | | | Expose base class for Git source plugins Closes #739 See merge request BuildStream/buildstream!1019
| * Expose base class for Git source pluginsChandan Singh2018-12-203-644/+678
|/ | | | | | | | | | | | | | | | | | | Add a `_GitSourceBase` class to act as the base class for deriving source plugins that work with Git. The first user of this base class is the `git` source plugin that's in core at the moment. The contents of this base class is almost identical to the existing `GitSource` class. The two notable differences are: - the private methods now have leading underscores, as some were missing it originally - the name of the class Note that we are exposing a private member here as we expect it to move to a separate package soon. See the following discussion for more details: https://gitlab.com/BuildStream/buildstream/issues/739#note_124819869 Fixes #739.
* Merge branch 'juerg/fetch' into 'master'Jürg Billeter2018-12-206-4/+113
|\ | | | | | | | | Do not call fetch() for cached sources See merge request BuildStream/buildstream!992
| * tests/sources: Test that fetch() is not called for cached sourcesJürg Billeter2018-12-204-0/+98
| |
| * element.py: Do not call fetch() for cached sourcesJürg Billeter2018-12-201-1/+2
| |
| * Move fetch logic from FetchQueue to ElementJürg Billeter2018-12-202-4/+14
|/ | | | | The queue shouldn't need to know about individual sources. This is in line with _track() and _get_consistency().
* Merge branch 'jjardon/license_badge' into 'master'716-add-example-with-build-directory-outside-of-source-directoryJavier Jardón2018-12-191-0/+3
|\ | | | | | | | | README.rst: Add license badge See merge request BuildStream/buildstream!1014
| * README.rst: Add license badgeJavier Jardón2018-12-191-0/+3
|/
* Merge branch 'willsalmon/shellBuildTrees' into 'master'Will Salmon2018-12-196-16/+174
|\ | | | | | | | | | | | | Shell --build has optional buildtrees Closes #740 See merge request BuildStream/buildstream!986
| * Basic options for shell --build to use buildtreesWilliam Salmon2018-12-196-16/+174
|/ | | | Fixes issue #740
* Merge branch 'raoul/627-RE-instance-config' into 'master'Jim MacArthur2018-12-183-25/+53
|\ | | | | | | | | | | | | Remote-execution instance configuration support Closes #627 See merge request BuildStream/buildstream!952
| * Documentation: Include instance-name in remote execution documentationraoul/627-RE-instance-configJim MacArthur2018-12-181-1/+10
| |
| * _cascache.py: Add instance names to GRPC callsJim MacArthur2018-12-181-18/+31
| | | | | | | | | | | | | | | | | | Adds the 'instance_name' parameter, which may be None, to most GRPC calls in the CASCache object. ByteStream requests already have instance_name supplied in the resource name, so do not need the parameter. Closes #627.
| * sandboxremote: Add server/storage config with defaultsJim MacArthur2018-12-181-9/+7
| | | | | | | | Adds instance name support for the remote execution storage service.
| * Add remote execution instance optionRaoul Hidalgo Charman2018-12-181-2/+10
|/ | | | | | | This is used when sending execution requests, to specify which instance of the execution server to use. Partial fix for #627.
* Merge branch 'chandan/source-subgroup' into 'master'Chandan Singh2018-12-1428-259/+325
|\ | | | | | | | | | | | | Introduce new "source" command group Closes #814 See merge request BuildStream/buildstream!1003
| * NEWS: Add entry for new source command groupChandan Singh2018-12-141-2/+6
| | | | | | | | | | | | Also, change the existing entry about `source-checkout` to be `source checkout` instead. And, while we are there, move it near the other announcements about the source command group.
| * Introduce new "source" command groupChandan Singh2018-12-1427-257/+319
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Following the message thread https://mail.gnome.org/archives/buildstream-list/2018-November/msg00106.html, implement a new command group called `source`. Move existing `track`, `fetch`, and the recently added `source-checkout` commands under this group. For `track` and `fetch`, this is a BREAKING change, as the old commands have been marked as obsolete. Using them will result in an error message that refers people to use the new versions, like `bst source fetch` instead of old `bst fetch`. `source-checkout` will now become `source checkout` (the dash has turned into a space), and is not a breaking change as it was added in the current development cycle. Note that the functionality to hide commands from help output was added only recently in Click, so the minimum version of Click that we now require is 7.0. Summary of changes: * _frontend/cli.py: Add `source` command group, mark previous versions as obsolete and hide them from the help output. * _frontend/complete.py: Fix completion for hidden commands. * setup.py: Bump Click minimum version to 7.0. * tests: Update to cope with the new command names. Fixes #814.
* Merge branch 'aevri/contributing_e2e_tests' into 'master'Angelos Evripiotis2018-12-131-17/+44
|\ | | | | | | | | contributing: more clarity on testing See merge request BuildStream/buildstream!973
| * contributing: mandate end-to-end tests, allow othersAngelos Evripiotis2018-12-131-17/+44
|/ | | | | | | | | | | | | | | Update the section on adding tests, to fulfill these broad points: - Mandate end-to-end testing, with rationale. - Mention internal APIs as endpoints for testing. - Warn against pitfalls of unit-testing. It's more text than I would have liked, perhaps in later work we'll be able to say it with less. This change integrates feedback from the mailing list 'Guidance on Unit Tests' thread: https://mail.gnome.org/archives/buildstream-list/2018-November/msg00045.html
* Merge branch 'tristan/dont-batch-prepare-assemble-by-default' into 'master'Tristan Van Berkom2018-12-1311-19/+80
|\ | | | | | | | | | | | | Dont batch prepare assemble by default Closes #800 See merge request BuildStream/buildstream!1009
| * BuildElement: Don't enable batching of prepare and assemble by defaultTristan Van Berkom2018-12-1311-14/+70
| | | | | | | | | | | | | | | | | | | | Some external plugins depend derive from BuildElement and are broken by BuildElement enabling this batching by default. Instead, enable it in all of the individual build element plugin implementations. This fixes issue #800
| * distutils plugin: Support virtual directoriesTristan Van Berkom2018-12-131-1/+2
| |
| * modulebuild plugin: Support virtual directoriesTristan Van Berkom2018-12-131-1/+2
| |
| * pip element plugin: Support virtual directoriesTristan Van Berkom2018-12-131-1/+2
| |
| * makemaker plugin: Support virtual directoriesTristan Van Berkom2018-12-131-1/+2
| |
| * manual plugin: Support virtual directoriesTristan Van Berkom2018-12-131-1/+2
|/
* Merge branch 'bschubert/fix-unbound-variable-exception' into 'master'Benjamin Schubert2018-12-131-2/+2
|\ | | | | | | | | element.py: fix unbounded variable in nested python exception See merge request BuildStream/buildstream!1006
| * element.py: fix unbounded variable in nested python exceptionBenjamin Schubert2018-12-131-2/+2
|/ | | | | | | | | | | As per https://docs.python.org/3.7/reference/compound_stmts.html#except variables used in the "except" clause are erased at the end of the block. We had a conflict with a nested exception using the same variable as before. This renames the nested variable to avoid the clash
* Merge branch 'BenjaminSchubert/fix-quota-tests' into 'master'Tristan Van Berkom2018-12-134-57/+59
|\ | | | | | | | | | | | | Mock storage space checks for tests. Closes #530 See merge request BuildStream/buildstream!702
| * Mock storage space checks for tests.BenjaminSchubert/fix-quota-testsBenjamin Schubert2018-12-134-57/+59
|/ | | | | | | | | | | Fix #530 - Extract free space computation in a function for easier mocking - Mock space computation during cache quota tests - Mock cache size during cachque quota tests - Add two more tests when the configuration would require to much storage space
* Merge branch 'richardmaw/artifact-log' into 'master'richardmaw-codethink2018-12-124-7/+198
|\ | | | | | | | | Add artifact log command See merge request BuildStream/buildstream!920
| * NEWS: Mention `bst artifact log`Richard Maw2018-12-121-0/+2
| |
| * tests: Add tests for artifact group commandsRichard Maw2018-12-121-0/+68
| |
| * cli: Add artifact log commandRichard Maw2018-12-121-0/+59
| |
| * cli: Add artifact command groupRichard Maw2018-12-122-0/+43
| |
| * cli: Add support for auto-completing artifact ref namesRichard Maw2018-12-121-7/+26
|/
* Merge branch 'phil/source-checkout-options' into 'master'Phil Dawson2018-12-128-179/+167
|\ | | | | | | | | | | | | Retire bst source bundle command Closes #672 See merge request BuildStream/buildstream!959
| * NEWS: Add entry about the removal of source-bundle commandphil/source-checkout-optionsPhil Dawson2018-12-121-0/+6
| |
| * Remove source bundle commandPhil Dawson2018-12-126-169/+0
| | | | | | | | This is part of the work towards #672
| * Add option to source-checkout command to generate build scriptsPhil Dawson2018-12-123-9/+57
| |
| * Add --force / -f option to source-checkout commandPhil Dawson2018-12-123-6/+28
| |
| * Add --tar option to source-checkout commandPhil Dawson2018-12-123-8/+89
|/ | | | This commit is part of the work towards #672