summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Ensure there are no duplicates in Elements.dependencies()chandan/duplicate-format-depsChandan Singh2020-05-143-8/+32
| | | | | | | | | | | | | | When we are not recursing, `Element.dependencies()` uses a much more light weight codepath since it just needs to print the direct dependencies. However, this simple codepath was not accounting for duplicates, in case something is both a build time and run time dependency. One way this manifested itself was in `bst show --format %{deps}`, but it would also affect anything that was using this method to iterate on the dependencies. Fixes #1308.
* Merge branch 'chandan/cli-deps-2' into 'master'bst-marge-bot2020-05-1436-54/+196
|\ | | | | | | | | CLI: Add support for `--deps build` and `--deps run` in more commands See merge request BuildStream/buildstream!1904
| * Regenerate man pageschandan/cli-deps-2Chandan Singh2020-05-1324-30/+37
| |
| * _frontend/cli: Support "build" and "run" values for `artifact push --deps`Chandan Singh2020-05-133-13/+30
| |
| * _frontend/cli: Support "build" and "run" values for `artifact pull --deps`Chandan Singh2020-05-133-9/+27
| |
| * _frontend/cli: Support "build" and "run" values for `source fetch --deps`Chandan Singh2020-05-139-1/+81
| |
| * _frontend/cli: Support "build" value for `bst build --deps`Chandan Singh2020-05-133-1/+21
|/ | | | | | This can be quite handy when one is preparing to open a build shell. This originally came up in https://gitlab.com/BuildStream/buildstream/-/issues/685#note_105460896.
* Merge branch 'tristan/plugin-min-version-fault-tolerance' into 'master'bst-marge-bot2020-05-1310-7/+74
|\ | | | | | | | | Improve fault tolerance for plugin defined BST_MIN_VERSION See merge request BuildStream/buildstream!1928
| * tests/plugins/loading.py: Added tests for various malformed BST_MIN_VERSIONTristan Van Berkom2020-05-139-3/+70
| |
| * utils.py: Improve error handling of _parse_version().Tristan Van Berkom2020-05-131-4/+4
|/ | | | | | | This was not reporting errors if not given a string, since we don't only pass strings parsed from project.conf but also pass plugin defined Plugin.BST_MIN_VERSION definitions, we should be more fault tolerant here.
* Merge branch 'juerg/no-logs-capture' into 'master'Jürg Billeter2020-05-131-0/+4
|\ | | | | | | | | _sandboxbuildboxrun.py: Pass --no-logs-capture to buildbox-run See merge request BuildStream/buildstream!1927
| * _sandboxbuildboxrun.py: Pass --no-logs-capture to buildbox-runjuerg/no-logs-captureJürg Billeter2020-05-121-0/+4
|/ | | | | | buildbox-common master no longer forwards stdout/stderr of the action command by default. The buildbox-run capabilities mechanism is used to support old and new versions.
* Merge branch 'bschubert/allow-source-variables-access' into 'master'bst-marge-bot2020-05-1212-21/+78
|\ | | | | | | | | | | | | Resolve source's config with the element's variable Closes #1127 See merge request BuildStream/buildstream!1924
| * source.py: Allow access to element's variableBenjamin Schubert2020-05-1210-7/+71
| | | | | | | | | | This automatically expands the variables from the element into the sources config
| * source.py: Don't re-declare __init__ in source implementationsBenjamin Schubert2020-05-122-14/+7
|/ | | | | | | We explicitely ask plugin authors not to do this in our documentation, we should therefore also not do it unless there is a real need. For this cases, just pass the default values as class variables.
* Merge branch 'chandan/builddir-cachekey' into 'master'bst-marge-bot2020-05-125-4/+65
|\ | | | | | | | | | | | | buildelement: Ensure command-subdir is part of the cache key Closes #1295 See merge request BuildStream/buildstream!1920
| * NEWS: Add note about breaking cache key changechandan/builddir-cachekeyChandan Singh2020-05-121-0/+4
| |
| * buildelement: Ensure command-subdir is part of the cache keyChandan Singh2020-05-124-4/+61
|/ | | | | | | | | | `command-subdir` was previously missing from the cache key. This patch makes it a part of the cache key _if_ it was specified. It means that the cache key will not change for elements that had not defined a `command-subdir`. However, it will change for every element that did define it. Fixes #1295.
* Merge branch 'bschubert/resolve-variables' into 'master'bst-marge-bot2020-05-1213-72/+68
|\ | | | | | | | | Always resolve variables in elements See merge request BuildStream/buildstream!1919
| * option.py: Remove 'transform' flag. It is not needed anymoreBenjamin Schubert2020-05-126-21/+10
| | | | | | | | | | Now that we handle variable transformation more globally, we don't need the transform value anymore
| * element.py: Always expand all variables at element creationBenjamin Schubert2020-05-128-52/+59
|/ | | | | This will allow all users to not have to care about whether the option is expanded or not, making it easier to use variables everywhere
* Merge branch 'bschubert/cache-key-helper' into 'master'bst-marge-bot2020-05-126-179/+243
|\ | | | | | | | | Add a new helper function to test cache key stability See merge request BuildStream/buildstream!1915
| * testing.py: Add a new `check_cache_key_stability` helperbschubert/cache-key-helperBenjamin Schubert2020-05-126-179/+243
|/ | | | | This allows plugin authors to implement cache keys tests more easily
* Merge branch 'chandan/fix-manual-test' into 'master'bst-marge-bot2020-05-121-3/+3
|\ | | | | | | | | tests/integration/manual.py: Fix assertion for CLI invocation See merge request BuildStream/buildstream!1921
| * tests/integration/manual.py: Fix assertion for CLI invocationchandan/fix-manual-testChandan Singh2020-05-111-3/+3
|/ | | | | | | The result of `bst artifact checkout` invocation was not correctly assigned to the result object in a few places. Hence the assertion on the next line was really testing the same thing as the previous assertion, i.e. the result of `bst build`.
* Merge branch 'bschubert/update-requirements' into 'master'bst-marge-bot2020-05-1117-55/+62
|\ | | | | | | | | Update packages requirements See merge request BuildStream/buildstream!1906
| * Update all packages requirementsBenjamin Schubert2020-05-1113-48/+52
| | | | | | | | Also fix linting errors coming with new version of pylint
| * lint: Stop using mutable objects for default argumentsBenjamin Schubert2020-05-114-7/+10
|/
* Merge branch 'bschubert/remove-pip-element' into 'master'bst-marge-bot2020-05-115-205/+6
|\ | | | | | | | | pip.py: Remove the pip element, it is in experimental See merge request BuildStream/buildstream!1911
| * pip.py: Remove the pip element, it is in experimentalBenjamin Schubert2020-05-115-205/+6
|/ | | | | The pip element was copied already to bst-plugins-experimental. We don't need to have two copies of it.
* Merge branch 'traveltissues/grpccodes' into 'master'Darius Makovsky2020-05-113-11/+15
|\ | | | | | | | | Return names of grpc errors See merge request BuildStream/buildstream!1916
| * Return names of grpc errorstraveltissues/grpccodesDarius Makovsky2020-05-113-11/+15
|/
* Merge branch 'bschubert/fix-node-docs' into 'master'bst-marge-bot2020-05-112-2/+2
|\ | | | | | | | | element.py: Fix documentation around `node` usage See merge request BuildStream/buildstream!1905
| * element.py: Fix documentation around `node` usagebschubert/fix-node-docsBenjamin Schubert2020-05-112-2/+2
|/
* Merge branch 'bschubert/make-downloadable-filesource-public' into 'master'Benjamin Schubert2020-05-116-11/+40
|\ | | | | | | | | | | | | downloadablefilesource.py: Make it publicly accessible Closes #610 See merge request BuildStream/buildstream!1908
| * downloadablefilesource.py: Make it publicly accessiblebschubert/make-downloadable-filesource-publicBenjamin Schubert2020-05-096-11/+40
|/ | | | | This is now part of the BuildStream public API and can be used to implement new plugins
* Merge branch 'bschubert/fix-template-scanning' into 'master'bst-marge-bot2020-05-081-1/+1
|\ | | | | | | | | .gitlab-ci.yml: Move from license-management to license-scanning See merge request BuildStream/buildstream!1910
| * .gitlab-ci.yml: Move from license-management to license-scanningbschubert/fix-template-scanningBenjamin Schubert2020-05-081-1/+1
|/ | | | | | The former is removed in gitlab 13.0. Effective now. More info at https://docs.gitlab.com/ee/user/compliance/license_compliance/#migration-from-license_management-to-license_scanning
* Merge branch 'bschubert/pylint-setup-py' into 'master'bst-marge-bot2020-05-082-124/+117
|\ | | | | | | | | setup.py: Also run pylint on this file See merge request BuildStream/buildstream!1902
| * setup.py: Also run blackbschubert/pylint-setup-pyBenjamin Schubert2020-05-072-116/+111
| |
| * setup.py: Also run pylint on this fileBenjamin Schubert2020-05-072-8/+6
|/ | | | Also fix the various errors in the file
* Merge branch 'tristan/validate-junction-config' into 'master'bst-marge-bot2020-05-061-0/+3
|\ | | | | | | | | junction.py: Call node.validate_keys() in Plugin.configure() See merge request BuildStream/buildstream!1899
| * junction.py: Call node.validate_keys() in Plugin.configure()Tristan Van Berkom2020-05-061-0/+3
|/
* Merge branch 'willsalmon/useragnet' into 'master'William Salmon2020-05-051-0/+1
|\ | | | | | | | | | | | | _downloadablefilesource.py: Set user agent Closes #1285 See merge request BuildStream/buildstream!1897
| * _downloadablefilesource.py: Set user agentWilliam Salmon2020-05-051-0/+1
|/ | | | | | | The default user-agnet for urllib is widely used for many bots and so is blocked by many servers. Buy using our own then we we are not blocked by gitlab.com etc and are also able to identify buildstream request to servers.
* Merge branch 'ctolentino/casd-timeout' into 'master'bst-marge-bot2020-05-051-4/+15
|\ | | | | | | | | | | | | Relax buildbox-casd timeout Closes #1222 See merge request BuildStream/buildstream!1889
| * casdprocessmanager.py: Check if buildbox-casd process is alive while waiting ↵ctolentino/casd-timeoutctolentino82020-05-051-2/+12
| | | | | | | | for connection
| * casdprocessmanager.py: Relax timeout for establishing buildbox-casd connectionctolentino82020-05-051-2/+3
|/
* Merge branch 'chandan/venv-install-link' into 'master'Tristan Van Berkom2020-05-051-3/+7
|\ | | | | | | | | doc/format_project: Add links related to virtual environments See merge request BuildStream/buildstream!1896
| * doc/format_project: Add links related to virtual environmentschandan/venv-install-linkChandan Singh2020-05-041-3/+7
|/ | | | | Add links to Python's official virtual environment tutorial and our BuildStream virtual environment instructions.