Skip to content

Running e2e STAGE NUA tests #685

Running e2e STAGE NUA tests

Running e2e STAGE NUA tests #685

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

228 tests run, 74 passed, 152 skipped, 2 failed.

Annotations

Check failure on line 32 in nua/e2e/regional/test_processor.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_processor.test_pptx[europe-1.stashify.cloud]

FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/e2e/e2e/nua/e2e/assets/sample.pptx'
Raw output
nua_config = 'europe-1.stashify.cloud'

    @pytest.mark.timeout(660)
    def test_pptx(nua_config):
        nc = NucliaProcessing()
        path = define_path("sample.pptx")
>       payload = nc.process_file(path, kbid="kbid", timeout=300)

nua/e2e/regional/test_processor.py:32: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/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/process.py:23: in process_file
    response = nc.process_file(path, kbid)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <nuclia.lib.nua.NuaClient object at 0x7fe126e0a6d0>
path = '/home/runner/work/e2e/e2e/nua/e2e/assets/sample.pptx', kbid = 'kbid'

    def process_file(self, path: str, kbid: str = "default") -> PushResponseV2:
        filename = path.split("/")[-1]
        upload_endpoint = f"{self.url}{UPLOAD_PROCESS}"
    
        headers = self.headers.copy()
        headers["X-FILENAME"] = base64.b64encode(filename.encode()).decode()
>       with open(path, "rb") as file_to_upload:
E       FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/e2e/e2e/nua/e2e/assets/sample.pptx'

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

Check failure on line 44 in nua/e2e/regional/test_processor.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_processor.test_manual_split[europe-1.stashify.cloud]

TypeError: process_file() got an unexpected keyword argument 'timeout'
Raw output
nua_config = 'europe-1.stashify.cloud'

    @pytest.mark.timeout(660)
    def test_manual_split(nua_config):
        auth = get_auth()
        nua_id = auth._config.get_default_nua()
        nua_obj = auth._config.get_nua(nua_id)
        nc = NuaClient(region=nua_obj.region, account=nua_obj.account, token=nua_obj.token)
        path = define_path("plaintext_manual_split.txt")
>       payload = nc.process_file(path, kbid="kbid", timeout=300)
E       TypeError: process_file() got an unexpected keyword argument 'timeout'

nua/e2e/regional/test_processor.py:44: TypeError