summaryrefslogtreecommitdiff
path: root/buildstream/sandbox/_sandboxremote.py
Commit message (Collapse)AuthorAgeFilesLines
* cas: move remote only functions to CASRemoteRaoul Hidalgo Charman2019-01-161-3/+3
| | | | | | | | | | | | List of methods moved * Initialization check: made it a class method that is run in a subprocess, for when checking in the main buildstream process. * fetch_blobs * send_blobs * verify_digest_on_remote * push_method Part of #802
* _cas: Rename artifactcache folder and move that to a root moduleRaoul Hidalgo Charman2019-01-161-1/+1
| | | | | | | | | Other components will start to reply on cas modules, and not the artifact cache modules so it should be organized to reflect this. All relevant imports have been changed. Part #802
* Add support for https channel to remote execution and actions serversvalentindavid/remote_execution_configurationValentin David2019-01-091-8/+35
| | | | Fixes #780.
* Add support for user remote execution configurationValentin David2019-01-091-1/+1
| | | | Fixes #631.
* Use relative path to project directory for remote execution certificates/keysValentin David2019-01-091-0/+10
|
* 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.
* _sandboxremote.py: Add action-cache-service endpointRaoul Hidalgo Charman2018-12-051-6/+37
| | | | | | The endpoint may not necessarily be the same as execution-service endpoint. Part of #628
* _sandboxremote.py: Add checks to action cache before attempting to push.Raoul Hidalgo Charman2018-12-051-67/+93
| | | | | | | Stops unneccesary pushing of builds that have already been built, just checks the action cache to begin with. Fixes #628
* _sandboxremote.py: Add os and arch to command uploadedRaoul Hidalgo Charman2018-12-051-1/+8
| | | | These are contained within the platform field.
* _sandboxremote.py: Remove unnecessary tests.Jim MacArthur2018-11-291-8/+1
| | | | | | | push_message and push_directory will both raise assertion failures if they fail to send the digest to the server. Checking the digest returned by each only tests that the content was hashed locally, which cannot reasonably fail.
* _sandboxremote: Remove references to artifact cache.Jim MacArthur2018-11-271-24/+100
| | | | | Uses the new config options introduced earlier to specify remote exec storage and execution service.
* sandbox/_sandboxremote.py: Implement command batchingJürg Billeter2018-11-271-1/+69
| | | | Execute batched commands in a single shell script.
* sandbox: Deduplicate code to process cwd, env, and command argumentsJürg Billeter2018-11-271-11/+1
|
* _sandboxremote.py: Add sigterm handler that sends CancelOperation725-job-cancellation-on-remote-buildsRaoul Hidalgo Charman2018-11-201-2/+29
|
* CasBasedDirectory: Change constructor to take a CASCache instead of a ContextRichard Maw2018-11-191-2/+2
| | | | | The Context was only used to obtain a reference to the CASCache and set the unused cas_directory field.
* _sandboxremote.py: Use the standard SandboxError.jmac/remote-sandbox-errorsJim MacArthur2018-11-061-4/+1
| | | | | Replaces the custom one which was erroneously added during development. Fixes #746.
* _sandboxremote.py: Try to reopen operation steam on failuremablanch/630-remote-execution-reconnMartin Blanchard2018-10-231-15/+43
| | | | | | | | The REAPI allows a client to reconnect to an ongoing operation stream by providing a WaitExecution(). If implemented on server side, BuildStream will try to recover from connection errors using it. https://gitlab.com/BuildStream/buildstream/issues/630
* sandbox/_sandboxremote.py: Use helpers to set up cwd and envJürg Billeter2018-10-021-9/+5
| | | | This matches the other sandbox implementations.
* sandbox/_sandboxremote.py: Migrate to Context.artifactcacheJürg Billeter2018-09-271-7/+6
|
* _sandboxremote.py: Handle remote build execution exit codemablanch/668-remote-build-failureMartin Blanchard2018-09-271-6/+15
| | | | https://gitlab.com/BuildStream/buildstream/issues/668
* _sandboxremote.py: Ignore return value of push_directoryJim MacArthur2018-09-211-2/+2
| | | | The return value is always upload_vdir.ref.
* sandbox/_sandboxremote.py: Acquire artifact cache via PlatformDaniel Silverstone2018-09-181-12/+7
| | | | | | | | | The SandboxRemote used to construct its own CASCache which was considered dangerous. This patch replaces that with acquisition of the cache via the Platform singleton, hopefully eliminating issues from having more than one artifact cache object in a single process. Signed-off-by: Daniel Silverstone <daniel.silverstone@codethink.co.uk>
* _sandboxremote.py: Implement the REAPI clientJim MacArthur2018-09-071-0/+226
The remote execution client is implemented as a remote sandbox that sends sources and build commands to a REAPI server and fetches results once remotely executed. New file. https://gitlab.com/BuildStream/buildstream/issues/454