summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Allow test to pass on file systems with only 1 second of mtime resolutionwillsalmon/hotfix-cache-testsWilliam Salmon2019-06-281-0/+6
| | | | | This Fix should not be kept long turm as there seems to be a underlying bug.
* Add missing wait_for_granularity functionsWilliam Salmon2019-06-282-1/+17
| | | | | The bst sulution to allow test to pass on file systems that only recored mtime with 1 second resoultion had not been applied to some new tests.
* Merge branch 'aevri/cascache_nits' into 'master'bst-marge-bot2019-06-271-2/+5
|\ | | | | | | | | cascache.py: pick some nits See merge request BuildStream/buildstream!1433
| * cascache: add_object, assert path if link_directlyAngelos Evripiotis2019-06-271-0/+3
| |
| * cascache: refactor, rm some unused exception varsAngelos Evripiotis2019-06-271-2/+2
|/
* Merge branch 'juerg/source-checkout' into 'master'bst-marge-bot2019-06-2726-60/+74
|\ | | | | | | | | Fetch sources as needed for bst source checkout See merge request BuildStream/buildstream!1427
| * Regenerate man pagesJürg Billeter2019-06-2722-31/+65
| |
| * Fetch sources as needed for bst source checkoutJürg Billeter2019-06-274-29/+9
|/ | | | | This removes the --fetch option of bst source checkout, always enabling fetch support. This is in line with fetching subprojects as needed.
* Merge branch 'raoul/915-capabilities-service' into 'master'bst-marge-bot2019-06-2616-120/+252
|\ | | | | | | | | | | | | Capabilities service Closes #915 See merge request BuildStream/buildstream!1410
| * artifact.proto: Remove ArtifactStatus methodraoul/915-capabilities-serviceRaoul Hidalgo Charman2019-06-263-111/+4
| | | | | | | | | | | | Not needed now that capabilities service is used. Part of #915
| * _artifactcache.py: Use capabilities serviceRaoul Hidalgo Charman2019-06-261-6/+11
| | | | | | | | | | | | | | | | This is used in the remote initialisation to check that artifact service is supported. This should allow us to seperate the endpoints of different services more easily in future. Part of #915
| * casserver.py: Add buildstream capabilities serviceRaoul Hidalgo Charman2019-06-261-0/+17
| | | | | | | | Part of #915
| * protos: Update generated grpc filesRaoul Hidalgo Charman2019-06-2611-3/+197
| | | | | | | | Part of #915
| * buildstream.proto: Add capabilities serviceRaoul Hidalgo Charman2019-06-261-0/+23
|/ | | | Part of #915
* Merge branch 'chandan/fix-readme-badges' into 'master'alexfazakas/add-bst-init-argumentbst-marge-bot2019-06-261-2/+2
|\ | | | | | | | | | | | | README.rst: Fix path for badge images Closes #1056 See merge request BuildStream/buildstream!1422
| * README.rst: Fix path for badge imageschandan/fix-readme-badgesChandan Singh2019-06-261-2/+2
|/ | | | | | | | | | | These badges are not committed to `bst-1.2` branch and hence are not available on docs.buildstream.build website. As it was mentioned in the issue comments, the correct place to obtain these badges is always from the `master` branch, which is what the buildstream.gitlab.io/buildstream website corresponds to. Fixes #1056.
* Merge branch 'chandan/fix-egg-info-gitignore' into 'master'bst-marge-bot2019-06-261-1/+1
|\ | | | | | | | | .gitignore: Fix path of .egg-info See merge request BuildStream/buildstream!1420
| * .gitignore: Fix path of .egg-infochandan/fix-egg-info-gitignoreChandan Singh2019-06-261-1/+1
|/ | | | | | .egg-info directory is created next to setup.py and not inside the src directory, so restore its original path. This line was incorrectly modified as part of !1322.
* Merge branch 'jennis/do_not_leak_project_specific_remotes' into 'master'bst-marge-bot2019-06-2616-76/+42
|\ | | | | | | | | Do not leak subproject remotes See merge request BuildStream/buildstream!1416
| * _basecache.py: Remove duplicate logicJames Ennis2019-06-261-5/+1
| | | | | | | | | | | | project_overrides and project_extra_specs were moved in 24c0de16. However, their removal was accidentally reverted in f4dbce44. This patch removes the unnecessary code.
| * tests/artifactcache/junctions.py: Assert the default behaviourJames Ennis2019-06-261-1/+9
| | | | | | | | | | Assert that junction elements are pushed to a parent project's cache. This is the current default behaviour in BuildStream.
| * _basecache.py: Don't leak the project specific remote cachesJames Ennis2019-06-261-2/+2
| | | | | | | | | | | | | | | | | | Make a copy of the global list rather than using the global list. This was originally addressed by: e1420437a2d82af099bdb3d273823effbea35ce4 and then again by 1ee4a4ba3a91e27515967d5e2daaedf664f10c78.
| * testutils: Move assert_shared and assert_not_shared to testutilsJames Ennis2019-06-265-61/+23
| |
| * tests/artifactcache/junctions.py: Rename 'foo' to 'parent' for clarityJames Ennis2019-06-2611-4/+4
| |
| * tests/artifactcache/junctions.py: Rename misleading 'target' elementJames Ennis2019-06-264-6/+6
|/
* Merge branch 'chandan/misc-gitignore' into 'master'bst-marge-bot2019-06-251-6/+1
|\ | | | | | | | | .gitignore: Remove redundant pycache entries See merge request BuildStream/buildstream!1421
| * .gitignore: Remove redundant pycache entriesChandan Singh2019-06-251-6/+1
|/ | | | | Python 3 only ever creates .pyc files inside the __pycache__ directory so ignoring just __pycache__ directory is sufficient.
* Merge branch 'bschubert/remove-useless-sanitize' into 'master'bst-marge-bot2019-06-2512-24/+23
|\ | | | | | | | | _yaml: Remove useless calls to '_yaml.node_sanitize' See merge request BuildStream/buildstream!1412
| * _yaml: Remove useless calls to '_yaml.node_sanitize'Benjamin Schubert2019-06-2512-24/+23
|/ | | | | | Calling '_yaml.dump' will itself call '_yaml.node_sanitize', therefore we can remove all calls to it in places where we directly after call dump.
* Merge branch 'juerg/fetch-subprojects' into 'master'bst-marge-bot2019-06-259-122/+98
|\ | | | | | | | | Improve subproject fetching See merge request BuildStream/buildstream!1414
| * _stream.py: Use scheduler to fetch subprojectsJürg Billeter2019-06-251-2/+8
| |
| * Handle subproject fetching in the Stream classJürg Billeter2019-06-254-8/+23
| |
| * app.py: Create stream before loading projectJürg Billeter2019-06-252-26/+39
| | | | | | | | | | | | This is in preparation for moving subproject fetching to the Stream class. Project loading may require subproject fetching as part of processing include directives.
| * Always fetch subprojects as neededJürg Billeter2019-06-258-90/+32
|/ | | | | | Treat junction element sources the same as sources of any other element and always fetch subprojects as needed. Do not ask the user to manually fetch subprojects.
* Merge branch 'jennis/notify_reverse_deps' into 'master'bst-marge-bot2019-06-242-24/+93
|\ | | | | | | | | Notify direct reverse dependencies when an Element becomes ready for runtime and cached See merge request BuildStream/buildstream!1406
| * element.py: Notify reverse deps when ready for runtime and cachedjennis/notify_reverse_depsJames Ennis2019-06-242-23/+86
| | | | | | | | | | | | | | | | | | | | | | | | An Element becomes ready for runtime and cached when: 1. It has a strong cache key 2. It is cached 3. Its runtime dependencies are ready for runtime and cached (this ensures the runtimes of runtimes are also cached). This patch introduces the method attempt_to_notify_reverse_dependencies which will notify all direct reverse dependencies of an Element once said Element becomes ready for runtime and cached.
| * element.py: cache key should be set in __update_cache_keysJames Ennis2019-06-241-1/+6
| |
| * element.py: Set can_query_cache_callback to None when calledJames Ennis2019-06-241-0/+1
|/ | | | | Each other callback callsite immediately sets the callback to None once invoked. We should be consistent.
* Merge branch 'raoul/1044-blobs-on-demand' into 'master'bst-marge-bot2019-06-248-27/+229
|\ | | | | | | | | | | | | CLI options for on demand blob fetching Closes #1044 See merge request BuildStream/buildstream!1400
| * tests: Add case for using pull and use buildtreesRaoul Hidalgo Charman2019-06-241-0/+29
| | | | | | | | Part of #1044
| * tests: Add shell test with pull optionRaoul Hidalgo Charman2019-06-241-0/+50
| | | | | | | | Part of #1044
| * _stream/cli: Add pull option to shellRaoul Hidalgo Charman2019-06-242-15/+30
| | | | | | | | | | | | This will fetch artifacts if they're not local or are incomplete. Part of #1044
| * tests: Add tests to buildcheckout for pullingRaoul Hidalgo Charman2019-06-241-1/+63
| | | | | | | | | | | | | | | | One test to check that artifacts are pulled and a checkout is successful when the --pull option is specified. Another to check that it attempts to pull but fails gracefully if the artifact isn't present. Part of #1044
| * cli.py/_stream.py: Add pull option to checkoutRaoul Hidalgo Charman2019-06-242-6/+24
| | | | | | | | | | | | | | This will set up a pull queue and pull relevant artifacts if not present or incomplete. Part of #1044
| * tests/partial: Add test to cover find_missing_blobsRaoul Hidalgo Charman2019-06-211-0/+25
| | | | | | | | Add test that ensures method is actually covered now and it works.
| * _artifactcache.py: fix find_missing_blobs methodRaoul Hidalgo Charman2019-06-212-5/+8
|/ | | | | | | This never will have worked because digests aren't hashable, and this method wasn't being covered in any tests. Also changed `remote_missing_blobs` to ensure the blobs list is an iterator and updated its docs.
* .gitlab-ci.yml: Use up-to-date bst-plugins-experimentalJavier Jardón2019-06-201-1/+1
| | | | Fixes #1046
* Merge branch 'tpollard/shellbuildtree' into 'master'bst-marge-bot2019-06-193-17/+29
|\ | | | | | | | | _frontend/cli.py: Tweak 'try' & 'always' bst shell buildtree handling See merge request BuildStream/buildstream!1392
| * _frontend/cli.py: Tweak 'try' & 'always' bst shell buildtree handlingTom Pollard2019-06-193-17/+29
|/ | | | | | | | | | | If the cached Artifact wasn't originally generated with a buildtree, then there's no need to attempt to find it in remotes by entering Stream(). In interactive mode we only present the user the option to attempt the pull with the above assumption on buildtree_exists, so apply the same to applicable non interactive choices. This also includes some tweaks in integration/shellbuildtrees.py to reflect changes and cover cases that were missing.
* Merge branch 'juerg/grpc' into 'master'Jürg Billeter2019-06-192-0/+6
|\ | | | | | | | | Guard against gRPC channels in the main process See merge request BuildStream/buildstream!1405