Add retry functionality to the CAS client

9 jobs for rkothur/retry-remote-storage in 24 minutes and 18 seconds (queued for 1 second)
Status Job ID Name Coverage
  Test
passed #863679313
cleanup-compose-test

00:07:41

passed #863679314
documentation

00:13:15

passed #863679311
dummy-tests

00:13:53

passed #863679312
e2e-tests

00:21:15

passed #863679307
gemnasium-python-dependency_scanning

00:01:25

failed #863679309
lint

00:03:13

failed #863679310
type-check

00:11:29

failed #863679308
unit-tests

00:24:15

 
  Post
skipped #863679315
coverage
 
Name Stage Failure
failed
lint Test

------------------------------------
Your code has been rated at 10.00/10

ERROR: InvocationError for command /builds/BuildGrid/buildgrid/.tox/lint/bin/pylint buildgrid --rcfile=.pylintrc (exited with code 8)
___________________________________ summary ____________________________________
ERROR: lint: commands failed
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
type-check Test
$ ${PYTHON} -m mypy buildgrid/
buildgrid/client/cas.py:875: error: Argument 1 has incompatible type "str"; expected "Union[bytes, bytearray, memoryview, array[Any], mmap]"
buildgrid/client/cas.py:916: error: Incompatible return value type (got "Digest", expected "str")
buildgrid/client/cas.py:951: error: Incompatible types in assignment (expression has type "str", variable has type "bytes")
buildgrid/client/cas.py:964: error: Argument 1 to "__make_batch_update_request" of "Uploader" has incompatible type "Dict[str, Tuple[str, str]]"; expected "Dict[str, Tuple[str, Digest]]"
buildgrid/client/cas.py:995: error: Argument "digest" to "_send_blob" of "Uploader" has incompatible type "str"; expected "Optional[Digest]"
Found 5 errors in 1 file (checked 167 source files)
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
unit-tests Test
FAILED tests/cas/test_storage.py::test_duplicate_bulk_read[remote-blobs_digests0]
FAILED tests/cas/test_storage.py::test_nonexistent_read[remote-blobs_digests0]
================= 65 failed, 1063 passed in 733.54s (0:12:13) ==================
Running after_script
Running after script...
$ mkdir -p coverage/
$ cp .coverage coverage/coverage."${CI_JOB_NAME}"
Cleaning up file based variables
ERROR: Job failed: exit code 1