Running e2e tests #2984
GitHub Actions / JUnit Test Report
failed
Feb 18, 2024 in 0s
75 tests run, 23 passed, 50 skipped, 2 failed.
Annotations
Check failure on line 26 in nua/e2e/regional/test_llm_generate.py
github-actions / JUnit Test Report
test_llm_generate.test_llm_generate_palm[europe-1.stashify.cloud]
httpx.RemoteProtocolError: peer closed connection without sending complete message body (incomplete chunked read)
Raw output
map = {<class 'h11._util.RemoteProtocolError'>: <class 'httpcore.RemoteProtocolError'>}
@contextlib.contextmanager
def map_exceptions(map: ExceptionMapping) -> Iterator[None]:
try:
> yield
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpcore/_exceptions.py:10:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpcore/_sync/http11.py:209: in _receive_event
event = self._h11_state.next_event()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/h11/_connection.py:469: in next_event
event = self._extract_next_receive_event()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/h11/_connection.py:419: in _extract_next_receive_event
event = self._reader.read_eof() # type: ignore[attr-defined]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <h11._readers.ChunkedReader object at 0x7f74e29e70d0>
def read_eof(self) -> NoReturn:
> raise RemoteProtocolError(
"peer closed connection without sending complete message body "
"(incomplete chunked read)"
)
E h11._util.RemoteProtocolError: peer closed connection without sending complete message body (incomplete chunked read)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/h11/_readers.py:204: RemoteProtocolError
The above exception was the direct cause of the following exception:
@contextlib.contextmanager
def map_httpcore_exceptions() -> typing.Iterator[None]:
try:
> yield
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpx/_transports/default.py:66:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpx/_transports/default.py:110: in __iter__
for part in self._httpcore_stream:
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpcore/_sync/connection_pool.py:347: in __iter__
for part in self._stream:
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpcore/_sync/http11.py:337: in __iter__
raise exc
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpcore/_sync/http11.py:329: in __iter__
for chunk in self._connection._receive_response_body(**kwargs):
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpcore/_sync/http11.py:198: in _receive_response_body
event = self._receive_event(timeout=timeout)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpcore/_sync/http11.py:209: in _receive_event
event = self._h11_state.next_event()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/contextlib.py:137: in __exit__
self.gen.throw(typ, value, traceback)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
map = {<class 'h11._util.RemoteProtocolError'>: <class 'httpcore.RemoteProtocolError'>}
@contextlib.contextmanager
def map_exceptions(map: ExceptionMapping) -> Iterator[None]:
try:
yield
except Exception as exc: # noqa: PIE786
for from_exc, to_exc in map.items():
if isinstance(exc, from_exc):
> raise to_exc(exc) from exc
E httpcore.RemoteProtocolError: peer closed connection without sending complete message body (incomplete chunked read)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpcore/_exceptions.py:14: RemoteProtocolError
The above exception was the direct cause of the following exception:
nua_config = 'europe-1.stashify.cloud'
def test_llm_generate_palm(nua_config):
np = NucliaPredict()
> generated = np.generate("Which is the capital of Catalonia?", model="gemini-pro")
nua/e2e/regional/test_llm_generate.py:26:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/nuclia/decorators.py:144: in wrapper_checkout_nua
return func(*args, **kwargs)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/nuclia/sdk/predict.py:54: in generate
return nc.generate_predict(text, model)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/nuclia/lib/nua.py:132: in generate_predict
return self._request(
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/nuclia/lib/nua.py:69: in _request
resp = self.client.request(method, url, json=json, timeout=timeout)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpx/_client.py:814: in request
return self.send(request, auth=auth, follow_redirects=follow_redirects)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpx/_client.py:915: in send
raise exc
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpx/_client.py:909: in send
response.read()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpx/_models.py:810: in read
self._content = b"".join(self.iter_bytes())
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpx/_models.py:828: in iter_bytes
for raw_bytes in self.iter_raw():
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpx/_models.py:886: in iter_raw
for raw_stream_bytes in self.stream:
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpx/_client.py:123: in __iter__
for chunk in self._stream:
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpx/_transports/default.py:111: in __iter__
yield part
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/contextlib.py:137: in __exit__
self.gen.throw(typ, value, traceback)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
@contextlib.contextmanager
def map_httpcore_exceptions() -> typing.Iterator[None]:
try:
yield
except Exception as exc:
mapped_exc = None
for from_exc, to_exc in HTTPCORE_EXC_MAP.items():
if not isinstance(exc, from_exc):
continue
# We want to map to the most specific exception we can find.
# Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to
# `httpx.ReadTimeout`, not just `httpx.TimeoutException`.
if mapped_exc is None or issubclass(to_exc, mapped_exc):
mapped_exc = to_exc
if mapped_exc is None: # pragma: no cover
raise
message = str(exc)
> raise mapped_exc(message) from exc
E httpx.RemoteProtocolError: peer closed connection without sending complete message body (incomplete chunked read)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpx/_transports/default.py:83: RemoteProtocolError
Check failure on line 47 in nua/e2e/regional/test_llm_rag.py
github-actions / JUnit Test Report
test_llm_rag.test_llm_rag_palm[europe-1.stashify.cloud]
httpx.RemoteProtocolError: peer closed connection without sending complete message body (incomplete chunked read)
Raw output
map = {<class 'h11._util.RemoteProtocolError'>: <class 'httpcore.RemoteProtocolError'>}
@contextlib.contextmanager
def map_exceptions(map: ExceptionMapping) -> Iterator[None]:
try:
> yield
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpcore/_exceptions.py:10:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpcore/_sync/http11.py:209: in _receive_event
event = self._h11_state.next_event()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/h11/_connection.py:469: in next_event
event = self._extract_next_receive_event()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/h11/_connection.py:419: in _extract_next_receive_event
event = self._reader.read_eof() # type: ignore[attr-defined]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <h11._readers.ChunkedReader object at 0x7f74e28fa670>
def read_eof(self) -> NoReturn:
> raise RemoteProtocolError(
"peer closed connection without sending complete message body "
"(incomplete chunked read)"
)
E h11._util.RemoteProtocolError: peer closed connection without sending complete message body (incomplete chunked read)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/h11/_readers.py:204: RemoteProtocolError
The above exception was the direct cause of the following exception:
@contextlib.contextmanager
def map_httpcore_exceptions() -> typing.Iterator[None]:
try:
> yield
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpx/_transports/default.py:66:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpx/_transports/default.py:110: in __iter__
for part in self._httpcore_stream:
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpcore/_sync/connection_pool.py:347: in __iter__
for part in self._stream:
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpcore/_sync/http11.py:337: in __iter__
raise exc
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpcore/_sync/http11.py:329: in __iter__
for chunk in self._connection._receive_response_body(**kwargs):
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpcore/_sync/http11.py:198: in _receive_response_body
event = self._receive_event(timeout=timeout)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpcore/_sync/http11.py:209: in _receive_event
event = self._h11_state.next_event()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/contextlib.py:137: in __exit__
self.gen.throw(typ, value, traceback)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
map = {<class 'h11._util.RemoteProtocolError'>: <class 'httpcore.RemoteProtocolError'>}
@contextlib.contextmanager
def map_exceptions(map: ExceptionMapping) -> Iterator[None]:
try:
yield
except Exception as exc: # noqa: PIE786
for from_exc, to_exc in map.items():
if isinstance(exc, from_exc):
> raise to_exc(exc) from exc
E httpcore.RemoteProtocolError: peer closed connection without sending complete message body (incomplete chunked read)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpcore/_exceptions.py:14: RemoteProtocolError
The above exception was the direct cause of the following exception:
nua_config = 'europe-1.stashify.cloud'
def test_llm_rag_palm(nua_config):
np = NucliaPredict()
> generated = np.rag(
question="Which is the CEO of Nuclia?",
context=[
"Nuclia CTO is leo",
"Luis is CEO at the same company as leo",
],
model="gemini-pro",
)
nua/e2e/regional/test_llm_rag.py:47:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/nuclia/decorators.py:144: in wrapper_checkout_nua
return func(*args, **kwargs)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/nuclia/sdk/predict.py:73: in rag
return nc.generate_retrieval(question, context, model)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/nuclia/lib/nua.py:168: in generate_retrieval
return self._request("POST", endpoint, json=body.dict(), output=ChatResponse)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/nuclia/lib/nua.py:69: in _request
resp = self.client.request(method, url, json=json, timeout=timeout)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpx/_client.py:814: in request
return self.send(request, auth=auth, follow_redirects=follow_redirects)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpx/_client.py:915: in send
raise exc
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpx/_client.py:909: in send
response.read()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpx/_models.py:810: in read
self._content = b"".join(self.iter_bytes())
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpx/_models.py:828: in iter_bytes
for raw_bytes in self.iter_raw():
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpx/_models.py:886: in iter_raw
for raw_stream_bytes in self.stream:
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpx/_client.py:123: in __iter__
for chunk in self._stream:
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpx/_transports/default.py:111: in __iter__
yield part
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/contextlib.py:137: in __exit__
self.gen.throw(typ, value, traceback)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
@contextlib.contextmanager
def map_httpcore_exceptions() -> typing.Iterator[None]:
try:
yield
except Exception as exc:
mapped_exc = None
for from_exc, to_exc in HTTPCORE_EXC_MAP.items():
if not isinstance(exc, from_exc):
continue
# We want to map to the most specific exception we can find.
# Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to
# `httpx.ReadTimeout`, not just `httpx.TimeoutException`.
if mapped_exc is None or issubclass(to_exc, mapped_exc):
mapped_exc = to_exc
if mapped_exc is None: # pragma: no cover
raise
message = str(exc)
> raise mapped_exc(message) from exc
E httpx.RemoteProtocolError: peer closed connection without sending complete message body (incomplete chunked read)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/httpx/_transports/default.py:83: RemoteProtocolError
Loading