Skip to content

Do the tests work? #1394

Do the tests work?

Do the tests work? #1394

Triggered via push December 12, 2024 16:47
Status Failure
Total duration 16m 24s
Artifacts

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

13 errors and 1 warning
Serval.ApiServer.TranslationEngineTests ► CreateEngineAsync(["create:translation_engines"],400,"NotARealKindOfMT"): src/Serval/test/Serval.ApiServer.IntegrationTests/TranslationEngineTests.cs#L287
Failed test found in: src/Serval/test/Serval.ApiServer.IntegrationTests/TestResults/test-results.trx Error: Assert.That(caughtException, expression) Expected: <Serval.Client.ServalApiException> But was: <System.NullReferenceException: Object reference not set to an instance of an object. at Serval.Translation.Services.EngineService.CreateAsync(Engine engine, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Serval/src/Serval.Translation/Services/EngineService.cs:line 167 at Serval.Translation.Services.EngineService.CreateAsync(Engine engine, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Serval/src/Serval.Translation/Services/EngineService.cs:line 198 at Serval.Translation.Controllers.TranslationEnginesController.CreateAsync(TranslationEngineConfigDto engineConfig, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Serval/src/Serval.Translation/Controllers/TranslationEnginesController.cs:line 133 at lambda_method995(Closure, Object) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ExceptionContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Http.Timeouts.RequestTimeoutsMiddleware.<>c__DisplayClass5_0.<<Invoke>g__SetTimeoutAsync|0>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at SIL.ServiceToolkit.Services.BugsnagMiddleware.Invoke(HttpContext context, IClient client) in /home/runner/work/serval/serval/src/ServiceToolkit/src/SIL.ServiceToolkit/Services/BugsnagMiddleware.cs:line 35 at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass23_0.<<SendAsync>g__RunRequestAsync|0>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.TestHost.ClientHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at Microsoft.AspNetCore.Mvc.Testing.Handlers.CookieContainerHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at Microsoft.AspNetCore.Mvc.Testing.Handlers.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) at Serval.Client.TranslationEnginesClient.CreateAsync(TranslationEngineConfig engineConfig, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Serval/src/Serval.Client/Client.g.cs:line 2783 at Serval.ApiServer.TranslationEngineTests.<>c__DisplayClass27_0.<<CreateEngineAsync>b__0>d.MoveNext() in /home/runner/work/serval/serval/src/Serval/test/Serval.ApiServer.IntegrationTests/TranslationEngineTests.cs:line 289 --- End of stack trace from previous location --- at NUnit.Framework.Internal.AsyncToSyncAdapter.Await[TResult](Func`1 invoke) at NUnit.Framework.Assert.ThrowsAsync(IResolveConstraint expression, AsyncTestDelegate code, String message, Object[] args)>
Serval.ApiServer.WordAlignmentEngineTests ► CreateEngineAsync(["create:word_alignment_engines", "read:word_alignment_engines"],201,"EchoWordAlignment"): src/Serval/src/Serval.Client/Client.g.cs#L7574
Failed test found in: src/Serval/test/Serval.ApiServer.IntegrationTests/TestResults/test-results.trx Error: Serval.Client.ServalApiException : The engine does not exist. Status: 404 Response: {"type":"https://tools.ietf.org/html/rfc9110#section-15.5.5","title":"Not Found","status":404,"traceId":"00-e8057b265548b0d3a5b6e8c27d6695f7-25af6cb35f206a1b-01"}
Serval.ApiServer.WordAlignmentEngineTests ► CreateEngineAsync(["create:word_alignment_engines"],400,"NotARealKindOfMT"): src/Serval/test/Serval.ApiServer.IntegrationTests/WordAlignmentEngineTests.cs#L262
Failed test found in: src/Serval/test/Serval.ApiServer.IntegrationTests/TestResults/test-results.trx Error: Assert.That(caughtException, expression) Expected: <Serval.Client.ServalApiException> But was: <System.NullReferenceException: Object reference not set to an instance of an object. at Serval.WordAlignment.Services.EngineService.CreateAsync(Engine engine, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Serval/src/Serval.WordAlignment/Services/EngineService.cs:line 94 at Serval.WordAlignment.Services.EngineService.CreateAsync(Engine engine, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Serval/src/Serval.WordAlignment/Services/EngineService.cs:line 111 at Serval.WordAlignment.Controllers.WordAlignmentEnginesController.CreateAsync(WordAlignmentEngineConfigDto engineConfig, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Serval/src/Serval.WordAlignment/Controllers/WordAlignmentEnginesController.cs:line 120 at lambda_method4099(Closure, Object) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ExceptionContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Http.Timeouts.RequestTimeoutsMiddleware.<>c__DisplayClass5_0.<<Invoke>g__SetTimeoutAsync|0>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at SIL.ServiceToolkit.Services.BugsnagMiddleware.Invoke(HttpContext context, IClient client) in /home/runner/work/serval/serval/src/ServiceToolkit/src/SIL.ServiceToolkit/Services/BugsnagMiddleware.cs:line 35 at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass23_0.<<SendAsync>g__RunRequestAsync|0>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.TestHost.ClientHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at Microsoft.AspNetCore.Mvc.Testing.Handlers.CookieContainerHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at Microsoft.AspNetCore.Mvc.Testing.Handlers.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) at Serval.Client.WordAlignmentEnginesClient.CreateAsync(WordAlignmentEngineConfig engineConfig, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Serval/src/Serval.Client/Client.g.cs:line 7430 at Serval.ApiServer.WordAlignmentEngineTests.<>c__DisplayClass26_0.<<CreateEngineAsync>b__0>d.MoveNext() in /home/runner/work/serval/serval/src/Serval/test/Serval.ApiServer.IntegrationTests/WordAlignmentEngineTests.cs:line 264 --- End of stack trace from previous location --- at NUnit.Framework.Internal.AsyncToSyncAdapter.Await[TResult](Func`1 invoke) at NUnit.Framework.Assert.ThrowsAsync(IResolveConstraint expression, AsyncTestDelegate code, String message, Object[] args)>
Serval.ApiServer.WordAlignmentEngineTests ► DeleteEngineByIdAsync(["delete:word_alignment_engines", "read:word_alignment_engines"],200,"e00000000000000000000001"): src/Serval/test/Serval.ApiServer.IntegrationTests/WordAlignmentEngineTests.cs#L312
Failed test found in: src/Serval/test/Serval.ApiServer.IntegrationTests/TestResults/test-results.trx Error: Assert.That(results, Has.Count.EqualTo(3)) Expected: property Count equal to 3 But was: 2
Serval.ApiServer.WordAlignmentEngineTests ► GetAllAsync(["read:word_alignment_engines"],200): src/Serval/test/Serval.ApiServer.IntegrationTests/WordAlignmentEngineTests.cs#L191
Failed test found in: src/Serval/test/Serval.ApiServer.IntegrationTests/TestResults/test-results.trx Error: Assert.That(results, Has.Count.EqualTo(4)) Expected: property Count equal to 4 But was: 3
Serval.ApiServer.WordAlignmentEngineTests ► GetParallelCorpusByIdForEngineById_NoCorpora: src/Serval/test/Serval.ApiServer.IntegrationTests/WordAlignmentEngineTests.cs#L605
Failed test found in: src/Serval/test/Serval.ApiServer.IntegrationTests/TestResults/test-results.trx Error: Assert.That(ex?.StatusCode, Is.EqualTo(404)) Expected: 404 But was: 403
Serval.ApiServer.WordAlignmentEngineTests ► GetParallelCorpusByIdForEngineById_NoSuchCorpus: src/Serval/test/Serval.ApiServer.IntegrationTests/WordAlignmentEngineTests.cs#L639
Failed test found in: src/Serval/test/Serval.ApiServer.IntegrationTests/TestResults/test-results.trx Error: Assert.That(ex?.StatusCode, Is.EqualTo(404)) Expected: 404 But was: 403
Serval.ApiServer.WordAlignmentEngineTests ► GetParallelCorpusByIdForEngineById_NoSuchEngine: src/Serval/test/Serval.ApiServer.IntegrationTests/WordAlignmentEngineTests.cs#L620
Failed test found in: src/Serval/test/Serval.ApiServer.IntegrationTests/TestResults/test-results.trx Error: Assert.That(ex?.StatusCode, Is.EqualTo(404)) Expected: 404 But was: 403
Serval.ApiServer.WordAlignmentEngineTests ► GetParallelCorpusByIdForEngineByIdAsync: src/Serval/src/Serval.Client/Client.g.cs#L8257
Failed test found in: src/Serval/test/Serval.ApiServer.IntegrationTests/TestResults/test-results.trx Error: Serval.Client.ServalApiException : The authenticated client cannot perform the operation or does not own the engine. Status: 403 Response:
Serval.ApiServer.WordAlignmentEngineTests ► StartBuildAsync_ParallelCorpus_NoFilter: src/Serval/test/Serval.ApiServer.IntegrationTests/WordAlignmentEngineTests.cs#L1285
Failed test found in: src/Serval/test/Serval.ApiServer.IntegrationTests/TestResults/test-results.trx Error: Assert.That(build.TrainOn[0].SourceFilters, Is.Null) Expected: null But was: < <Serval.Client.ParallelCorpusFilter2> >
Serval.ApiServer.WordAlignmentEngineTests ► StartBuildAsync_ParallelCorpus_PretranslateFilterOnMultipleSources: src/Serval/test/Serval.ApiServer.IntegrationTests/WordAlignmentEngineTests.cs#L1334
Failed test found in: src/Serval/test/Serval.ApiServer.IntegrationTests/TestResults/test-results.trx Error: Assert.That(caughtException, expression) Expected: <Serval.Client.ServalApiException> But was: null
Build
Failed test were found and 'fail-on-error' option is set to true
Build
Process completed with exit code 1.
Build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636