Skip to content

⚡ Waypoint start time (#1137) #3545

⚡ Waypoint start time (#1137)

⚡ Waypoint start time (#1137) #3545

GitHub Actions / JUnit Test Report Regression failed Oct 25, 2024 in 0s

835 tests run, 794 passed, 40 skipped, 1 failed.

Annotations

Check failure on line 1 in app/tests/e2e/test_did_exchange.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report Regression

test_did_exchange.test_create_did_exchange_request[reuse-reuse-None-did:peer:4-False]

failed on setup with "fastapi.exceptions.HTTPException: 503: upstream connect error or disconnect/reset before headers. reset reason: connection termination"
Raw output
self = <shared.util.rich_async_client.RichAsyncClient object at 0x7f1ede54ed20>
url = '/v1/tenants'
kwargs = {'params': {'group_id': 'RegressionTests-RegressionHolderAlice'}}
response = <Response [503 Service Unavailable]>, code = 503
message = 'upstream connect error or disconnect/reset before headers. reset reason: connection termination'
log_message = 'Tenant Admin - HTTP GET `/v1/tenants` failed. Status code: 503. Response: `upstream connect error or disconnect/reset before headers. reset reason: connection termination`.'

    async def get(self, url: str, **kwargs) -> Response:
        try:
            response = await super().get(url, **kwargs)
            if self.raise_status_error:
>               response.raise_for_status()

shared/util/rich_async_client.py:47: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <Response [503 Service Unavailable]>

    def raise_for_status(self) -> Response:
        """
        Raise the `HTTPStatusError` if one occurred.
        """
        request = self._request
        if request is None:
            raise RuntimeError(
                "Cannot call `raise_for_status` as the request "
                "instance has not been set on this response."
            )
    
        if self.is_success:
            return self
    
        if self.has_redirect_location:
            message = (
                "{error_type} '{0.status_code} {0.reason_phrase}' for url '{0.url}'\n"
                "Redirect location: '{0.headers[location]}'\n"
                "For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/{0.status_code}"
            )
        else:
            message = (
                "{error_type} '{0.status_code} {0.reason_phrase}' for url '{0.url}'\n"
                "For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/{0.status_code}"
            )
    
        status_class = self.status_code // 100
        error_types = {
            1: "Informational response",
            3: "Redirect response",
            4: "Client error",
            5: "Server error",
        }
        error_type = error_types.get(status_class, "Invalid status code")
        message = message.format(self, error_type=error_type)
>       raise HTTPStatusError(message, request=request, response=self)
E       httpx.HTTPStatusError: Server error '503 Service Unavailable' for url 'https://governance-multitenant-web.cloudapi.dev.didxtech.com/tenant-admin/v1/tenants?group_id=RegressionTests-RegressionHolderAlice'
E       For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503

/usr/local/lib/python3.12/site-packages/httpx/_models.py:763: HTTPStatusError

The above exception was the direct cause of the following exception:

anyio_backend = 'asyncio'
request = <SubRequest 'alice_tenant' for <Function test_create_did_exchange_request[reuse-reuse-None-did:peer:4-False]>>
args = ()
kwargs = {'request': <SubRequest 'alice_tenant' for <Function test_create_did_exchange_request[reuse-reuse-None-did:peer:4-False]>>}
local_func = <function alice_tenant at 0x7f1ee17e0540>, backend_name = 'asyncio'
backend_options = {}
runner = <anyio._backends._asyncio.TestRunner object at 0x7f1edf991d00>

    def wrapper(
        *args: Any, anyio_backend: Any, request: SubRequest, **kwargs: Any
    ) -> Any:
        # Rebind any fixture methods to the request instance
        if (
            request.instance
            and ismethod(func)
            and type(func.__self__) is type(request.instance)
        ):
            local_func = func.__func__.__get__(request.instance)
        else:
            local_func = func
    
        backend_name, backend_options = extract_backend_and_options(anyio_backend)
        if has_backend_arg:
            kwargs["anyio_backend"] = anyio_backend
    
        if has_request_arg:
            kwargs["request"] = request
    
        with get_runner(backend_name, backend_options) as runner:
            if isasyncgenfunction(local_func):
>               yield from runner.run_asyncgen_fixture(local_func, kwargs)

/usr/local/lib/python3.12/site-packages/anyio/pytest_plugin.py:98: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:2215: in run_asyncgen_fixture
    fixturevalue: T_Retval = self.get_loop().run_until_complete(
/usr/local/lib/python3.12/asyncio/base_events.py:687: in run_until_complete
    return future.result()
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:2207: in _call_in_runner_task
    return await future
/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:2174: in _run_tests_and_fixtures
    retval = await coro
app/tests/fixtures/member_wallets.py:30: in alice_tenant
    tenant = await get_or_create_tenant(
app/tests/util/regression_testing.py:44: in get_or_create_tenant
    await admin_client.get(TENANT_BASE_PATH, params={"group_id": group_id})
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <shared.util.rich_async_client.RichAsyncClient object at 0x7f1ede54ed20>
url = '/v1/tenants'
kwargs = {'params': {'group_id': 'RegressionTests-RegressionHolderAlice'}}
response = <Response [503 Service Unavailable]>, code = 503
message = 'upstream connect error or disconnect/reset before headers. reset reason: connection termination'
log_message = 'Tenant Admin - HTTP GET `/v1/tenants` failed. Status code: 503. Response: `upstream connect error or disconnect/reset before headers. reset reason: connection termination`.'

    async def get(self, url: str, **kwargs) -> Response:
        try:
            response = await super().get(url, **kwargs)
            if self.raise_status_error:
                response.raise_for_status()
        except HTTPStatusError as e:
            code = e.response.status_code
            message = e.response.text
            log_message = f"{self.name} GET `{url}` failed. Status code: {code}. Response: `{message}`."
            logger.error(log_message)
    
>           raise HTTPException(status_code=code, detail=message) from e
E           fastapi.exceptions.HTTPException: 503: upstream connect error or disconnect/reset before headers. reset reason: connection termination

shared/util/rich_async_client.py:54: HTTPException