sillsdev / languageforge-lexbox

Lexbox, SIL linguistic data hub
MIT License
7 stars 2 forks source link

Run playwright tests in our gha integration test workflow #1132

Closed hahn-kev closed 1 week ago

hahn-kev commented 1 month ago

previously only S&R tests were running on each PR, now playwright tests are included

github-actions[bot] commented 1 month ago

UI unit Tests

12 tests   12 :white_check_mark:  0s :stopwatch:  4 suites   0 :zzz:  1 files     0 :x:

Results for commit caf03281.

:recycle: This comment has been updated with latest results.

github-actions[bot] commented 1 month ago

C# Unit Tests

90 tests  ±0   90 :white_check_mark: ±0   5s :stopwatch: ±0s 14 suites ±0    0 :zzz: ±0   1 files   ±0    0 :x: ±0 

Results for commit caf03281. ± Comparison against base commit 022f8b53.

:recycle: This comment has been updated with latest results.

myieye commented 1 week ago

Currently 3 Playwright tests are failing with this request. I'm not sure why:

{
  "errors": [
    {
      "message": "Unexpected Execution Error",
      "locations": [{ "line": 2, "column": 3 }],
      "path": ["updateProjectRepoSizeInKb"],
      "extensions": {
        "message": "Response status code does not indicate success: 400 (Bad Request).",
        "stackTrace": "   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at LexBoxApi.Services.HgService.ExecuteHgCommandServerCommand(ProjectCode code, String command, CancellationToken token) in /LexBoxApi/Services/HgService.cs:line 488
   at LexBoxApi.Services.HgService.GetRepoSizeInKb(ProjectCode code, CancellationToken token) in /LexBoxApi/Services/HgService.cs:line 431
   at LexBoxApi.Services.ProjectService.UpdateRepoSizeInKb(String projectCode) in /LexBoxApi/Services/ProjectService.cs:line 251
   at LexBoxApi.GraphQL.ProjectMutations.UpdateProjectRepoSizeInKb(String code, IPermissionService permissionService, ProjectService projectService, LexBoxDbContext dbContext) in /LexBoxApi/GraphQL/ProjectMutations.cs:line 372
   at HotChocolate.Resolvers.Expressions.ExpressionHelper.AwaitTaskHelper[T](Task`1 task)
   at HotChocolate.Types.Helpers.FieldMiddlewareCompiler.<>c__DisplayClass9_0.<<CreateResolverMiddleware>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at HotChocolate.Types.UnwrapFieldMiddlewareHelper.<>c__DisplayClass0_1.<<CreateDataMiddleware>b__1>d.MoveNext()
--- End of stack trace from previous location ---
   at HotChocolate.Data.Projections.FirstOrDefaultMiddleware`1.InvokeAsync(IMiddlewareContext context)
   at HotChocolate.Utilities.MiddlewareCompiler`1.ExpressionHelper.AwaitTaskHelper(Task task)
   at HotChocolate.Types.MutationConventionTypeInterceptor.<>c__DisplayClass16_0.<<ApplyResultMiddleware>b__1>d.MoveNext()
--- End of stack trace from previous location ---
   at HotChocolate.Types.MutationConventionMiddleware.InvokeAsync(IMiddlewareContext context)
   at HotChocolate.Types.ErrorMiddleware.InvokeAsync(IMiddlewareContext context)
   at DataAnnotatedModelValidations.Middleware.ValidatorMiddleware.InvokeAsync(IMiddlewareContext context)
   at HotChocolate.Utilities.MiddlewareCompiler`1.ExpressionHelper.AwaitTaskHelper(Task task)
   at HotChocolate.Execution.Processing.Tasks.ResolverTask.ExecuteResolverPipelineAsync(CancellationToken cancellationToken)
   at HotChocolate.Execution.Processing.Tasks.ResolverTask.TryExecuteAsync(CancellationToken cancellationToken)"
      }
    }
  ],
  "data": null
}
hahn-kev commented 1 week ago

@myieye looks like our gha tests were using the latest version of the hgweb image, and not the develop version, and fw-headless wasn't even in the kustomize file, so I fixed those.

hahn-kev commented 1 week ago

wow, they passed twice, I'm going to merge it while it's green lol

myieye commented 1 week ago

Could it really be?! Green tests!!! 💚💚 Oh, well done!!!! 😎