summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* _casbaseddirectory.py: Use CASCache.checkout() in export_files()juerg/directoryJürg Billeter2019-02-251-35/+2
| | | | This eliminates code duplication.
* cascache.py: Add can_link parameter to checkout()Jürg Billeter2019-02-251-4/+8
|
* cascache.py: Make _checkout() publicJürg Billeter2019-02-251-29/+37
|
* _casbaseddirectory.py: Use lazy instantiation for subdirectoriesJürg Billeter2019-02-251-11/+20
| | | | | This avoids creation of directory objects for the whole tree, if only a part of the tree is used.
* _casbaseddirectory.py: Replace isinstance() with _FileType checksJürg Billeter2019-02-251-28/+25
| | | | | Using isinstance() with concrete classes should typically be avoided, and it's also more expensive than necessary.
* _casbaseddirectory.py: Add type field to IndexEntry classJürg Billeter2019-02-251-9/+12
|
* storage/directory.py: Add _FileType enumJürg Billeter2019-02-251-0/+25
|
* _casbaseddirectory.py: _add_directory(): Drop unused code pathJürg Billeter2019-02-251-10/+3
| | | | | The code path in _add_directory() where the entry already exists was unused. Drop it and add assertion.
* _casbaseddirectory.py: Populate files_written in CAS-to-CAS importJürg Billeter2019-02-251-0/+1
|
* _filebaseddirectory.py: Drop indexJürg Billeter2019-02-251-45/+16
| | | | | It's used very sparingly. The overhead of populating the index is likely higher than the benefit of using it.
* storage: Rename update_utimes parameter to update_mtimeJürg Billeter2019-02-254-10/+10
| | | | utime is short for 'update time' and only the mtime is significant.
* tests/internals/storage_vdir_import.py: Use public API in testJürg Billeter2019-02-251-5/+1
|
* Merge branch 'bschubert/allow-no-cov' into 'master'bst-marge-bot2019-02-251-2/+2
|\ | | | | | | | | Make code coverage reporting optional See merge request BuildStream/buildstream!1179
| * Make code coverage reporting optionalbschubert/allow-no-covBenjamin Schubert2019-02-251-2/+2
|/ | | | | | Previously, without a coverage file, the tests would fail if combined with "--no-cov". This makes the coverage reporting optional and allows the usage of "--no-cov"
* Merge branch 'laurence/update-readme' into 'master'bst-marge-bot2019-02-222-0/+20
|\ | | | | | | | | Update CONTRIBUTING.rst to add paragraph on new MR policy See merge request BuildStream/buildstream!1171
| * CONTRIBUTING.rst: Clarify WIP MR closure policyLaurence Urhegyi2019-02-222-0/+20
|/ | | | Adds section to readme detailing the WIP MR closure policy.
* Merge branch 'mablanch/823-action-cache-instance-name' into 'master'Jim MacArthur2019-02-224-16/+47
|\ | | | | | | | | Fix and improve instances support for remote-execution. See merge request BuildStream/buildstream!1174
| * doc: Update configuration examples with 'instance-name'Martin Blanchard2019-02-222-4/+7
| |
| * casremote.py: Honor instance name configurationMartin Blanchard2019-02-221-3/+28
| | | | | | | | | | | | | | The remote-execution configuration allows to specify the remote instance to query by giving its name. That instance name should be attached to every requests submitted to the remote server. This patch ensures it.
| * Use 'instance-name' everywhere in remote execution config.Martin Blanchard2019-02-222-8/+8
| | | | | | | | | | | | | | Currently the 'artifacts' section expects 'instance_name', the 'remote-execution' section expects 'instance' and documentation mentions 'instance-name'... This patch changes this to use 'instance-name' everywhere.
| * _sandboxremote.py: Support instance names for action-cacheMartin Blanchard2019-02-221-4/+7
|/ | | | https://gitlab.com/BuildStream/buildstream/issues/823
* Merge branch 'tristan/fix-overlap-subproject-policy' into 'master'Tristan Van Berkom2019-02-227-7/+60
|\ | | | | | | | | tests/frontend/overlaps.py: Added regression test for cross project overlaps See merge request BuildStream/buildstream!1173
| * tests/frontend/overlaps.py: Added regression test for cross project overlapsTristan Van Berkom2019-02-227-7/+60
|/ | | | | | | | | This test ensures the overlap failure vs warning policy in one project only ever affects the artifacts created for the project which declares it and does not force it's policy onto another consuming project. A regression test against issue #926
* Merge branch 'phil/tox-vev-environment' into 'master'Phil Dawson2019-02-202-0/+20
|\ | | | | | | | | tox.ini: Add 'venv' environment to run arbitrary commands in a venv See merge request BuildStream/buildstream!1168
| * tox.ini: Add 'venv' environment to run arbitrary commands in a venvphil/tox-vev-environmentPhil Dawson2019-02-202-0/+20
|/ | | | | This is a handy way for developers to make use of the venvs we're constructing for our test suite to run in.
* Merge branch 'aevri/doc_arch_deps' into 'master'Angelos Evripiotis2019-02-204-20/+24
|\ | | | | | | | | Architecture docs: minor corrections, clarifications, and nitpicks See merge request BuildStream/buildstream!1170
| * doc/./arch_sandboxing: no OSTree artifact cacheaevri/doc_arch_depsAngelos Evripiotis2019-02-201-6/+6
| | | | | | | | | | As of commit 1f8b4aa290a908a697f008a29ea143a9320dd639, we're no longer using the OSTree artifact cache. Update accordingly.
| * doc/./arch_sandboxing: reword 'user provided user'Angelos Evripiotis2019-02-201-1/+1
| |
| * doc/./arch_sandboxing: 'read only'->'read-only'Angelos Evripiotis2019-02-201-1/+1
| | | | | | | | I read this wrong initially, the hyphen would have helped me here.
| * doc/./arch_cachekeys: note no direct runtime depsAngelos Evripiotis2019-02-201-0/+3
| | | | | | | | | | | | | | | | I was mistaken on this point in my first reading. The sentence on strong and weak key equivalency made me check my assumptions. Help others with the same misunderstanding by explicitly calling this out in a new paragraph.
| * doc/./arch_cachekeys: consistent full-stopsAngelos Evripiotis2019-02-201-5/+5
| |
| * doc/./arch_cachekeys: JSON now, not dict pickleAngelos Evripiotis2019-02-201-1/+1
| |
| * doc/./arch_scheduler: fix 'imerative' typoAngelos Evripiotis2019-02-201-1/+1
| |
| * doc/./arch_scheduler: fixup "it's" typosAngelos Evripiotis2019-02-201-3/+3
| | | | | | | | | | | | "it's" is always short for "it is" or "it has". The possesive pronoun for "it" is "its", like "his".
| * doc/../arch_dependency_model: transient/transitiveAngelos Evripiotis2019-02-201-2/+3
|/
* Merge branch 'juerg/ci' into 'master'Jürg Billeter2019-02-201-1/+1
|\ | | | | | | | | .gitlab-ci.yml: Enable parallel testing with 2 CPUs See merge request BuildStream/buildstream!1169
| * .gitlab-ci.yml: Enable parallel testing with 2 CPUsJürg Billeter2019-02-201-1/+1
|/
* Merge branch 'phil/848-plugin-deprecation-warnings' into 'master'Phil Dawson2019-02-207-1/+130
|\ | | | | | | | | | | | | plugin.py: Add API to allow plugins to raise deprecation warnings Closes #848 See merge request BuildStream/buildstream!1057
| * plugin.py: Add API to allow plugins to raise deprecation warningsphil/848-plugin-deprecation-warningsPhil Dawson2019-02-207-1/+130
|/ | | | | | A plugin's deprecation warning may be silenced by a project by adding the plugin to the list 'supress-deprecation-warnings' in the project's project.conf
* Merge branch 'juerg/cachedfail' into 'master'Jürg Billeter2019-02-201-2/+5
|\ | | | | | | | | tests/integration/cachedfail.py: Fix test_push_cached_fail See merge request BuildStream/buildstream!1167
| * tests/integration/cachedfail.py: Fix test_push_cached_failJürg Billeter2019-02-201-2/+5
|/ | | | | | | | Ensure that a unique cache key is used for different test variants. This revealed that the test actually fails with --on-error=quit. Marking that test variant as expected failure until this is fixed. https://gitlab.com/BuildStream/buildstream/issues/534
* Merge branch 'aevri/doc_arch_tweaks' into 'master'Jürg Billeter2019-02-201-15/+16
|\ | | | | | | | | doc/../arch_data_model: minor tweaks See merge request BuildStream/buildstream!1166
| * doc/./arch_data_model:edit comp stages for clarityAngelos Evripiotis2019-02-201-3/+4
| |
| * doc/./arch_data_model: add some missing full-stopsAngelos Evripiotis2019-02-201-11/+11
| |
| * doc/./arch_data_model: fixup affect/effectAngelos Evripiotis2019-02-201-3/+3
|/
* Merge branch 'raoul/870-root-cache-dir' into 'master'Jürg Billeter2019-02-1927-434/+499
|\ | | | | | | | | | | | | root cache directory Closes #870 See merge request BuildStream/buildstream!1100
| * CASQuota: Move cache check methods into new Classraoul/870-root-cache-dirRaoul Hidalgo Charman2019-02-1911-304/+339
| | | | | | | | | | | | | | | | | | This sits in Context allowing artifact cache to check the cas quota while not being used for CASServer. A lot of code that checks cache quota has been touched. Part of #870
| * context: remove artifactdirRaoul Hidalgo Charman2019-02-1912-53/+58
| | | | | | | | | | | | | | Will check and move old artifact directory if it exists, and create symlink linking old directory to new. Part of #870
| * cachedir: add new dir option that's default root to other dirsRaoul Hidalgo Charman2019-02-1915-91/+116
|/ | | | | | Makes artifactdir and builddir obsolete. Fixes #870
* Merge branch 'phil/additional-linting-excludes' into 'master'Phil Dawson2019-02-192-1/+4
|\ | | | | | | | | setup.cfg: exclude tmp/**, .eggs/** and build/** from pycodestyle linting See merge request BuildStream/buildstream!1165