testIT-500

mail@pastecode.io avatar
unknown
python
2 months ago
10 kB
7
Indexable
Never
INTERNALERROR> def worker_internal_error(self, node, formatted_error):
INTERNALERROR>         """
INTERNALERROR>         pytest_internalerror() was called on the worker.
INTERNALERROR>     
INTERNALERROR>         pytest_internalerror() arguments are an excinfo and an excrepr, which can't
INTERNALERROR>         be serialized, so we go with a poor man's solution of raising an exception
INTERNALERROR>         here ourselves using the formatted message.
INTERNALERROR>         """
INTERNALERROR>         self._active_nodes.remove(node)
INTERNALERROR>         try:
INTERNALERROR> >           assert False, formatted_error
INTERNALERROR> E           AssertionError: Traceback (most recent call last):
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/_pytest/main.py", line 271, in wrap_session
INTERNALERROR> E                 session.exitstatus = doit(config, session) or 0
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/_pytest/main.py", line 325, in _main
INTERNALERROR> E                 config.hook.pytest_runtestloop(session=session)
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/pluggy/_hooks.py", line 493, in __call__
INTERNALERROR> E                 return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/pluggy/_manager.py", line 115, in _hookexec
INTERNALERROR> E                 return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/pluggy/_callers.py", line 152, in _multicall
INTERNALERROR> E                 return outcome.get_result()
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/pluggy/_result.py", line 114, in get_result
INTERNALERROR> E                 raise exc.with_traceback(exc.__traceback__)
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/pluggy/_callers.py", line 77, in _multicall
INTERNALERROR> E                 res = hook_impl.function(*args)
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/xdist/remote.py", line 91, in pytest_runtestloop
INTERNALERROR> E                 self.run_one_test(torun)
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/xdist/remote.py", line 110, in run_one_test
INTERNALERROR> E                 self.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/pluggy/_hooks.py", line 493, in __call__
INTERNALERROR> E                 return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/pluggy/_manager.py", line 115, in _hookexec
INTERNALERROR> E                 return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/pluggy/_callers.py", line 152, in _multicall
INTERNALERROR> E                 return outcome.get_result()
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/pluggy/_result.py", line 114, in get_result
INTERNALERROR> E                 raise exc.with_traceback(exc.__traceback__)
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/pluggy/_callers.py", line 77, in _multicall
INTERNALERROR> E                 res = hook_impl.function(*args)
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/pytest_rerunfailures.py", line 549, in pytest_runtest_protocol
INTERNALERROR> E                 item.ihook.pytest_runtest_logfinish(nodeid=item.nodeid, location=item.location)
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/pluggy/_hooks.py", line 493, in __call__
INTERNALERROR> E                 return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/pluggy/_manager.py", line 115, in _hookexec
INTERNALERROR> E                 return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/pluggy/_callers.py", line 113, in _multicall
INTERNALERROR> E                 raise exception.with_traceback(exception.__traceback__)
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/pluggy/_callers.py", line 77, in _multicall
INTERNALERROR> E                 res = hook_impl.function(*args)
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/testit_adapter_pytest/listener.py", line 193, in pytest_runtest_logfinish
INTERNALERROR> E                 self.__adapter_manager.write_test(
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/testit_python_commons/services/logger.py", line 22, in wrapper
INTERNALERROR> E                 result = function(*args, **kwargs)
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/testit_python_commons/services/adapter_manager.py", line 43, in write_test
INTERNALERROR> E                 self.__api_client.write_test(test_result)
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/testit_python_commons/services/logger.py", line 22, in wrapper
INTERNALERROR> E                 result = function(*args, **kwargs)
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/testit_python_commons/client/api_client.py", line 113, in write_test
INTERNALERROR> E                 test_run_api.set_auto_test_results_for_test_run(
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/testit_api_client/api/test_runs_api.py", line 1959, in set_auto_test_results_for_test_run
INTERNALERROR> E                 return self.set_auto_test_results_for_test_run_endpoint.call_with_http_info(**kwargs)
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/testit_api_client/api_client.py", line 881, in call_with_http_info
INTERNALERROR> E                 return self.api_client.call_api(
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/testit_api_client/api_client.py", line 423, in call_api
INTERNALERROR> E                 return self.__call_api(resource_path, method,
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/testit_api_client/api_client.py", line 205, in __call_api
INTERNALERROR> E                 raise e
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/testit_api_client/api_client.py", line 198, in __call_api
INTERNALERROR> E                 response_data = self.request(
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/testit_api_client/api_client.py", line 469, in request
INTERNALERROR> E                 return self.rest_client.POST(url,
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/testit_api_client/rest.py", line 274, in POST
INTERNALERROR> E                 return self.request("POST", url,
INTERNALERROR> E               File "/builds/vhs/cached_venv/lib/python3.9/site-packages/testit_api_client/rest.py", line 231, in request
INTERNALERROR> E                 raise ServiceException(http_resp=r)
INTERNALERROR> E             testit_api_client.exceptions.ServiceException: Status Code: 500
INTERNALERROR> E             Reason: Internal Server Error
INTERNALERROR> E             HTTP response headers: HTTPHeaderDict({'Date': 'Mon, 15 Jan 2024 06:13:57 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Access-Control-Allow-Origin': '*', 'X-Correlation-Id': '07201c33-1003-401f-9349-c975972e47d4', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains'})
INTERNALERROR> E             HTTP response body: {"error":{"type":"InvalidOperationException","key":"InternalServerError (report to a program administrator)","stack":["   at Microsoft.EntityFrameworkCore.Infrastructure.Internal.ConcurrencyDetector.EnterCriticalSection()\n   at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync()\n   at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken)\n   at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken)\n   at WebApi.Infrastructure.Authentication.Permissions.CommonPolicyHandler.GetSelectedFieldByEntityId[TEntity](Expression`1 fieldSelector, Nullable`1 entityId)\n   at WebApi.Infrastructure.Authentication.Permissions.Policies.TestRuns.TestRunTesterRequirementHandler.HandleRequirementAsync(AuthorizationHandlerContext context, TestRunTesterRequirement requirement)\n   at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\n   at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\n   at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, Object resource)\n   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n   at Sentry.AspNetCore.SentryTracingMiddleware.InvokeAsync(HttpContext context)\n   at Sentry.AspNetCore.SentryTracingMiddleware.InvokeAsync(HttpContext context)\n   at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)\n   at WebApi.Infrastructure.Middleware.GlobalExceptionsMiddleware.Invoke(HttpContext httpContext)"],"path":"/api/v2/testRuns/abd173dc-8141-4f35-b64e-20df4411454f/testResults","context":{}}}
Leave a Comment