summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* _stream.py: Migrate to Context.artifactcacheJürg Billeter2018-09-271-3/+1
|
* _scheduler: Migrate to Context.artifactcacheJürg Billeter2018-09-274-12/+8
|
* _loader: Migrate to Context.artifactcacheJürg Billeter2018-09-271-3/+1
|
* Move artifact cache creation to ContextJürg Billeter2018-09-275-16/+16
| | | | The artifact cache is no longer platform-specific.
* _artifactcache: Add preflight() methodJürg Billeter2018-09-272-0/+13
|
* _artifactcache/cascache.py: Remove unused enable_push parameterJürg Billeter2018-09-271-5/+2
|
* _platform/linux.py: Do not disable push globallyJürg Billeter2018-09-271-1/+1
| | | | | | On systems without user namespace support, elements with unsupported sandbox config (UID/GID) are now individually tainted, which disables artifact push.
* _platform/linux.py: Remove redundant messageJürg Billeter2018-09-271-7/+2
| | | | Unsupported sandbox config (UID/GID) is now reported by the element.
* element.py: Validate sandbox configJürg Billeter2018-09-271-4/+18
|
* _platform: Add check_sandbox_config() methodJürg Billeter2018-09-273-1/+26
|
* element.py: Add __use_remote_execution() helper methodJürg Billeter2018-09-271-3/+9
|
* Merge branch 'mablanch/668-remote-build-failure' into 'master'Jim MacArthur2018-09-274-6/+337
|\ | | | | | | | | Better handle remote build failures See merge request BuildStream/buildstream!825
| * _sandboxremote.py: Handle remote build execution exit codemablanch/668-remote-build-failureMartin Blanchard2018-09-271-6/+15
| | | | | | | | https://gitlab.com/BuildStream/buildstream/issues/668
| * _protos: Import google.rpc.Code protoMartin Blanchard2018-09-273-0/+322
|/ | | | | | | Imports code.proto from https://github.com/googleapis/googleapis and corresponding modules generated with ./setup.py build_grpc. https://gitlab.com/BuildStream/buildstream/issues/668
* ci: add missing `-p` argumentTiago Gomes2018-09-261-1/+1
|
* Merge branch 'tiagogomes/acme-challenge' into 'master'Tiago Gomes2018-09-261-1/+7
|\ | | | | | | | | ci: add ACME challenge See merge request BuildStream/buildstream!831
| * ci: add ACME challengeTiago Gomes2018-09-261-1/+7
|/ | | | | | To finish the creation of the Let's Encrypt certificate, which will allows us to use https://docs.buildstream.build/ for accessing the documentation.
* ci: update freedesktop-sdk refTiago Gomes2018-09-261-1/+1
| | | | The current one doesn't build due server being down.
* Merge branch 'tiagogomes/issue-514' into 'master'Tiago Gomes2018-09-251-0/+43
|\ | | | | | | | | | | | | CI: test building freedesktop-sdk overnight Closes #514 See merge request BuildStream/buildstream!826
| * CI: test building freedesktop-sdk overnightTiago Gomes2018-09-251-0/+43
|/ | | | Closes #514.
* Merge branch 'jmac/stop-caching-vdirs' into 'master'Jim MacArthur2018-09-252-10/+16
|\ | | | | | | | | Stop caching virtual directories if get_directory is used. See merge request BuildStream/buildstream!818
| * element.py/_assemble(): Call get_virtual_directory later.jmac/stop-caching-vdirsJim MacArthur2018-09-251-3/+1
| |
| * sandbox.py: Stop caching get_virtual_directory if get_directory is usedJim MacArthur2018-09-251-7/+15
|/ | | | | Also update the documentation for get_virtual_directory to make the implications of using both methods clearer.
* Merge branch 'juerg/cas-batch' into 'master'Jürg Billeter2018-09-252-43/+174
|\ | | | | | | | | | | | | _artifactcache/cascache.py: Use BatchReadBlobs Closes #554 See merge request BuildStream/buildstream!813
| * _artifactcache/cascache.py: Use BatchReadBlobsJürg Billeter2018-09-251-12/+137
| | | | | | | | | | | | | | This uses BatchReadBlobs instead of individual blob download to speed up artifact pulling, if the server supports it. Fixes #554.
| * _artifactcache/casserver.py: Harmonize payload size limitJürg Billeter2018-09-251-5/+6
| | | | | | | | | | Use 1 MiB as payload size limit on the server side for both individual downloads and batch uploads.
| * _artifactcache/cascache.py: Increase payload size limit for uploadsJürg Billeter2018-09-251-2/+7
| | | | | | | | | | gRPC can handle 1 MiB payloads. Increase size limit from 64 KiB to speed up uploads.`
| * _artifactcache/cascache.py: Add _ensure_blob helperJürg Billeter2018-09-251-34/+34
|/ | | | | | | | This adds directory objects to the local repository before downloading files in the directory. However, artifact references are still stored only after downloading the complete directory and thus, there won't be dangling references. This will anyway be required for partial download support.
* Merge branch 'juerg/rebuild' into 'master'Jürg Billeter2018-09-243-1/+41
|\ | | | | | | | | | | | | element.py: Fix cache check in non-strict mode Closes #607 See merge request BuildStream/buildstream!822
| * tests/frontend/rebuild.py: Add strict/non-strict rebuild testjuerg/rebuildJürg Billeter2018-09-242-0/+40
| | | | | | | | | | | | Test rebuild that requires staging of weakly cached dependency. This is a regression test for #607.
| * element.py: Fix cache check in non-strict modeJürg Billeter2018-09-241-1/+1
|/ | | | | | | | | The behavior of __assert_cached() was changed when the keystrength parameter was introduced. This restores the previous behavior. Fixes #607. Fixes: 3d308894 ("element.py: Cache the result of checking whether...")
* Merge branch 'chandan/update-project-homepage' into 'master'Chandan Singh2018-09-211-1/+2
|\ | | | | | | | | setup.py: Make website the primary homepage See merge request BuildStream/buildstream!795
| * setup.py: Make website the primary homepageChandan Singh2018-09-211-1/+2
|/
* Merge branch 'chandan/fix-source-bundle' into 'master'Chandan Singh2018-09-214-0/+57
|\ | | | | | | | | | | | | Fix source-bundle command Closes #651 See merge request BuildStream/buildstream!807
| * _stream.py: Ensure source-bundle's source directory existsChandan Singh2018-09-214-0/+57
|/ | | | | | | | | | | | Currently, `source-bundle` command is entirely broken as it tries to stage the sources in a directory that doesn't exist. Fix it by ensuring that we create the necessary directories before calling any methods that try to use those directories. This fix comes with a regression test to ensure that the basic use-case of `source-bundle` continues to work in future. Fixes https://gitlab.com/BuildStream/buildstream/issues/651.
* Merge branch 'jmac/remote_exec_checkout_fix' into 'master'Jim MacArthur2018-09-214-15/+22
|\ | | | | | | | | Remote exec: Remove early warning and check directory is not None See merge request BuildStream/buildstream!800
| * tests/artifactcache/push.py: Ignore return value of push_directoryjmac/remote_exec_checkout_fixJim MacArthur2018-09-211-2/+2
| |
| * cascache.py: make push_remote raise exception if no push remotes existJim MacArthur2018-09-211-3/+13
| | | | | | | | Also add docstring to method and remove return value since it was useless
| * _sandboxremote.py: Ignore return value of push_directoryJim MacArthur2018-09-211-2/+2
| | | | | | | | The return value is always upload_vdir.ref.
| * element.py: Remove early warning and check directory is not NoneJim MacArthur2018-09-211-8/+5
|/ | | | | | The check for directory should have always been here. The early warning test doesn't work for `bst checkout` because caches haven't been configured at the point of the test, so I've had to remove it.
* Merge branch 'tristan/fix-source-reinstantiation' into 'master'Tristan Van Berkom2018-09-211-8/+34
|\ | | | | | | | | | | | | source.py: Fix re-instantiation Closes #666 See merge request BuildStream/buildstream!817
| * source.py: Fix re-instantiationTristan Van Berkom2018-09-211-8/+34
|/ | | | | | | | | | This fixes an issue where the re-instantiated Source used with Source mirroring enabled is not completely initialized. Failing to load the ref from the project.refs file for instance, will result in a crash at `fetch` time. This fixes issue #666
* Merge branch 'adamjones/contributing-links' into 'master'Javier Jardón2018-09-191-3/+2
|\ | | | | | | | | Fix rst link formatting for guideline links See merge request BuildStream/buildstream!811
| * Fix rst links for guideline linksAdam Jones2018-09-191-3/+2
|/
* Merge branch 'tristan/remove-blessings' into 'master'Tristan Van Berkom2018-09-193-9/+77
|\ | | | | | | | | _frontend/status.py: Completely remove the blessings dependency from BuildStream See merge request BuildStream/buildstream!808
| * _frontend/status.py: Completely remove the blessings dependency from BuildStreamTristan Van Berkom2018-09-193-9/+77
|/ | | | | | | | | | | | | | | | | | | | | | | This actually improves reliability of the status bar because we now disable it completely in the case that not all of the terminal escape sequences are supported on the given terminal. This replaces the few functions we were using, to move the cursor up one line, move it to the beginning of the line, and to clear a line, with low level functions provided by the curses module in the standard library. This change makes it easier for downstream distro package maintainers to package BuildStream, particularly on Fedora. Asides from changing _frontend/status.py, this commit includes the following changes: * _frontend/app.py: Use python isatty() function to determine if we are connected to a tty, instead of relying on blessings. * setup.py: Remove the dependency on blessings.
* Merge branch 'Qinusty/skipped-rework' into 'master'Qinusty2018-09-1913-69/+88
|\ | | | | | | | | Add SkipJob for indicating a skipped activity See merge request BuildStream/buildstream!765
| * cascache.py: Modify messaging API callsJosh Smith2018-09-191-10/+4
| | | | | | | | | | | | | | Both pulling and pushing INFO messages are now status messages. Calls to the messaging API through `self.context.message()` have now been switched to `element.info`.
| * cascache.py: Move push/pull messaging to cascacheJosh Smith2018-09-193-9/+7
| | | | | | | | | | | | | | | | Pulled/Pushed messages will no longer be produced from within element.py, instead they will be produced during CasCache push() and pull() appropriately. Message consistency has also been improved.
| * element.py: Remove redundant timed_activityJosh Smith2018-09-191-9/+8
| | | | | | | | | | This removes the timed_activity for an element _push action. This is unnecessary as the job is already being timed elsewhere.