Skip to content

Running e2e STAGE NUA tests #631

Running e2e STAGE NUA tests

Running e2e STAGE NUA tests #631

GitHub Actions / JUnit Test Report failed Nov 11, 2024 in 0s

231 tests run, 75 passed, 154 skipped, 2 failed.

Annotations

Check failure on line 52 in nua/e2e/regional/test_predict.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_predict.test_predict_rephrase[europe-1.stashify.cloud-gemini-1-5-pro]

nuclia.exceptions.NuaAPIException: Exception calling NUA API: 500 Internal Server Error
Raw output
nua_config = 'europe-1.stashify.cloud', model = 'gemini-1-5-pro'

    @pytest.mark.parametrize("model", ALL_LLMS)
    def test_predict_rephrase(nua_config, model):
        # Check that rephrase is working for all models
        np = NucliaPredict()
        # TODO: Test that custom rephrase prompt works once SDK supports it
>       rephrased = np.rephrase(question="Barcelona best coffe", model=model)

nua/e2e/regional/test_predict.py:52: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/site-packages/nuclia/decorators.py:167: in wrapper_checkout_nua
    return func(*args, **kwargs)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/site-packages/nuclia/sdk/predict.py:129: in rephrase
    return nc.rephrase(question, user_context, context, model, prompt).root
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/site-packages/nuclia/lib/nua.py:281: in rephrase
    return self._request(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <nuclia.lib.nua.NuaClient object at 0x7fbf4778a700>, method = 'POST'
url = 'https://europe-1.stashify.cloud/api/v1/predict/rephrase?model=gemini-1-5-pro'
output = <class 'nuclia.lib.nua_responses.RephraseModel'>
payload = {'question': 'Barcelona best coffe', 'user_context': None, 'user_id': 'USER'}
timeout = 60

    def _request(
        self,
        method: str,
        url: str,
        output: Type[ConvertType],
        payload: Optional[Dict[Any, Any]] = None,
        timeout: int = 60,
    ) -> ConvertType:
        resp = self.client.request(method, url, json=payload, timeout=timeout)
        if resp.status_code != 200:
>           raise NuaAPIException(code=resp.status_code, detail=resp.content.decode())
E           nuclia.exceptions.NuaAPIException: Exception calling NUA API: 500 Internal Server Error

/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/site-packages/nuclia/lib/nua.py:117: NuaAPIException

Check failure on line 52 in nua/e2e/regional/test_predict.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_predict.test_predict_rephrase[europe-1.stashify.cloud-gemini-1-5-pro-vision]

nuclia.exceptions.NuaAPIException: Exception calling NUA API: 500 Internal Server Error
Raw output
nua_config = 'europe-1.stashify.cloud', model = 'gemini-1-5-pro-vision'

    @pytest.mark.parametrize("model", ALL_LLMS)
    def test_predict_rephrase(nua_config, model):
        # Check that rephrase is working for all models
        np = NucliaPredict()
        # TODO: Test that custom rephrase prompt works once SDK supports it
>       rephrased = np.rephrase(question="Barcelona best coffe", model=model)

nua/e2e/regional/test_predict.py:52: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/site-packages/nuclia/decorators.py:167: in wrapper_checkout_nua
    return func(*args, **kwargs)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/site-packages/nuclia/sdk/predict.py:129: in rephrase
    return nc.rephrase(question, user_context, context, model, prompt).root
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/site-packages/nuclia/lib/nua.py:281: in rephrase
    return self._request(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <nuclia.lib.nua.NuaClient object at 0x7fbf484dadf0>, method = 'POST'
url = 'https://europe-1.stashify.cloud/api/v1/predict/rephrase?model=gemini-1-5-pro-vision'
output = <class 'nuclia.lib.nua_responses.RephraseModel'>
payload = {'question': 'Barcelona best coffe', 'user_context': None, 'user_id': 'USER'}
timeout = 60

    def _request(
        self,
        method: str,
        url: str,
        output: Type[ConvertType],
        payload: Optional[Dict[Any, Any]] = None,
        timeout: int = 60,
    ) -> ConvertType:
        resp = self.client.request(method, url, json=payload, timeout=timeout)
        if resp.status_code != 200:
>           raise NuaAPIException(code=resp.status_code, detail=resp.content.decode())
E           nuclia.exceptions.NuaAPIException: Exception calling NUA API: 500 Internal Server Error

/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/site-packages/nuclia/lib/nua.py:117: NuaAPIException