summaryrefslogtreecommitdiff
path: root/src/buildstream/_remote.py
Commit message (Collapse)AuthorAgeFilesLines
* Return names of grpc errorstraveltissues/grpccodesDarius Makovsky2020-05-111-1/+1
|
* exceptions: Expose ErrorDomain, ErrorLoadReasonThomas Coldrick2020-01-231-1/+2
| | | | | | | Plugin tests are already accessing this API, but using imports from private modules. For motivation for this to be exposed publicly, note that ErrorDomain is an argument for most things in runcli.py, and LoadErrorReason may be another.
* _remote: ignore unused argsDarius Makovsky2019-12-091-1/+1
|
* Reformat code using BlackChandan Singh2019-11-141-32/+34
| | | | | | | As discussed over the mailing list, reformat code using Black. This is a one-off change to reformat all our codebase. Moving forward, we shouldn't expect such blanket reformats. Rather, we expect each change to already comply with the Black formatting style.
* _remote: Ensure checks done in the subclasses are propagatedBenjamin Schubert2019-11-121-3/+3
| | | | | | | | | | | Currently, the `BaseRemote` would call `_check()` on the children, which states that errors should be sent back as a string. However, `BaseRemote` doesn't check the return of `_check()`. This changes the contract so that subclasses throw `RemoteError` themselves. This also fixes the `ArtifactShare` and add a test.
* _remote.py: Expand user in certificates pathsBenjamin Schubert2019-11-111-2/+6
| | | | This ensures we correctly expand "~" in paths to certificates
* _remote.py: Do not use subprocess to check remoteJürg Billeter2019-10-151-37/+6
| | | | This is no longer required as gRPC connections are closed before fork.
* _remote.py: Reset _initialized in close()Jürg Billeter2019-10-151-0/+2
|
* _remote.py: Remove unused bytestreamJürg Billeter2019-09-191-5/+0
|
* Allow splitting artifact cachesTristan Maat2019-09-061-35/+86
| | | | | | | This is now split into storage/index remotes, where the former is expected to be a CASRemote and the latter a BuildStream-specific remote with the extensions required to store BuildStream artifact protos.
* Remove cache-specifc spec classesTristan Maat2019-09-061-2/+4
| | | | This was almost entirely just historical code duplication.
* Create BaseRemote base classTristan Maat2019-09-061-0/+241