testit-500

mail@pastecode.io avatar
unknown
python
8 months ago
13 kB
5
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/antaresapi/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/antaresapi/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/antaresapi/cached_venv/lib/python3.9/site-packages/pluggy/hooks.py", line 286, in __call__
INTERNALERROR> E                 return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR> E               File "/builds/antaresapi/cached_venv/lib/python3.9/site-packages/pluggy/manager.py", line 93, in _hookexec
INTERNALERROR> E                 return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> E               File "/builds/antaresapi/cached_venv/lib/python3.9/site-packages/pluggy/manager.py", line 84, in <lambda>
INTERNALERROR> E                 self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
INTERNALERROR> E               File "/builds/antaresapi/cached_venv/lib/python3.9/site-packages/pluggy/callers.py", line 208, in _multicall
INTERNALERROR> E                 return outcome.get_result()
INTERNALERROR> E               File "/builds/antaresapi/cached_venv/lib/python3.9/site-packages/pluggy/callers.py", line 80, in get_result
INTERNALERROR> E                 raise ex[1].with_traceback(ex[2])
INTERNALERROR> E               File "/builds/antaresapi/cached_venv/lib/python3.9/site-packages/pluggy/callers.py", line 187, in _multicall
INTERNALERROR> E                 res = hook_impl.function(*args)
INTERNALERROR> E               File "/builds/antaresapi/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/antaresapi/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/antaresapi/cached_venv/lib/python3.9/site-packages/pluggy/hooks.py", line 286, in __call__
INTERNALERROR> E                 return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR> E               File "/builds/antaresapi/cached_venv/lib/python3.9/site-packages/pluggy/manager.py", line 93, in _hookexec
INTERNALERROR> E                 return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> E               File "/builds/antaresapi/cached_venv/lib/python3.9/site-packages/pluggy/manager.py", line 84, in <lambda>
INTERNALERROR> E                 self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
INTERNALERROR> E               File "/builds/antaresapi/cached_venv/lib/python3.9/site-packages/pluggy/callers.py", line 208, in _multicall
INTERNALERROR> E                 return outcome.get_result()
INTERNALERROR> E               File "/builds/antaresapi/cached_venv/lib/python3.9/site-packages/pluggy/callers.py", line 80, in get_result
INTERNALERROR> E                 raise ex[1].with_traceback(ex[2])
INTERNALERROR> E               File "/builds/antaresapi/cached_venv/lib/python3.9/site-packages/pluggy/callers.py", line 187, in _multicall
INTERNALERROR> E                 res = hook_impl.function(*args)
INTERNALERROR> E               File "/builds/antaresapi/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/antaresapi/cached_venv/lib/python3.9/site-packages/pluggy/hooks.py", line 286, in __call__
INTERNALERROR> E                 return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR> E               File "/builds/antaresapi/cached_venv/lib/python3.9/site-packages/pluggy/manager.py", line 93, in _hookexec
INTERNALERROR> E                 return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> E               File "/builds/antaresapi/cached_venv/lib/python3.9/site-packages/pluggy/manager.py", line 84, in <lambda>
INTERNALERROR> E                 self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
INTERNALERROR> E               File "/builds/antaresapi/cached_venv/lib/python3.9/site-packages/pluggy/callers.py", line 208, in _multicall
INTERNALERROR> E                 return outcome.get_result()
INTERNALERROR> E               File "/builds/antaresapi/cached_venv/lib/python3.9/site-packages/pluggy/callers.py", line 80, in get_result
INTERNALERROR> E                 raise ex[1].with_traceback(ex[2])
INTERNALERROR> E               File "/builds/antaresapi/cached_venv/lib/python3.9/site-packages/pluggy/callers.py", line 187, in _multicall
INTERNALERROR> E                 res = hook_impl.function(*args)
INTERNALERROR> E               File "/builds/antaresapi/cached_venv/lib/python3.9/site-packages/testit_adapter_pytest/listener.py", line 237, in pytest_runtest_logfinish
INTERNALERROR> E                 self.__test_result_ids[self.__executable_test['externalID']] = self.__adapter_manager.write_test(
INTERNALERROR> E               File "/builds/antaresapi/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/antaresapi/cached_venv/lib/python3.9/site-packages/testit_python_commons/services/adapter_manager.py", line 46, in write_test
INTERNALERROR> E                 return self.__api_client.write_test(test_result)
INTERNALERROR> E               File "/builds/antaresapi/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/antaresapi/cached_venv/lib/python3.9/site-packages/testit_python_commons/client/api_client.py", line 83, in write_test
INTERNALERROR> E                 self.__autotest_api.update_auto_test(update_auto_test_request=model)
INTERNALERROR> E               File "/builds/antaresapi/cached_venv/lib/python3.9/site-packages/testit_api_client/api/auto_tests_api.py", line 2995, in update_auto_test
INTERNALERROR> E                 return self.update_auto_test_endpoint.call_with_http_info(**kwargs)
INTERNALERROR> E               File "/builds/antaresapi/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/antaresapi/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/antaresapi/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/antaresapi/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/antaresapi/cached_venv/lib/python3.9/site-packages/testit_api_client/api_client.py", line 477, in request
INTERNALERROR> E                 return self.rest_client.PUT(url,
INTERNALERROR> E               File "/builds/antaresapi/cached_venv/lib/python3.9/site-packages/testit_api_client/rest.py", line 284, in PUT
INTERNALERROR> E                 return self.request("PUT", url,
INTERNALERROR> E               File "/builds/antaresapi/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': 'Wed, 07 Feb 2024 09:06:20 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Access-Control-Allow-Origin': '*', 'X-Correlation-Id': '557c4566-327b-40f7-b592-61b901376149', 'api-supported-versions': '1.0, 2.0', '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.SingleAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken)\n   at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken)\n   at AppServices.Services.AutoTestService.UpdateMultiple(List`1 autoTestPutModels)\n   at WebApi.Controllers.v2.AutoTestsController.Update(AutoTestPutModel autoTest)\n   at lambda_method9770(Closure , Object )\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)\n   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)\n   at Microsoft.AspNetCore.Authorization.Policy.AuthorizationMiddlewareResultHandler.HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult)\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/autoTests","context":{}}}
Leave a Comment