Skip to content

fix integration tests depending on the home button. #378

fix integration tests depending on the home button.

fix integration tests depending on the home button. #378

GitHub Actions / Integration Tests ubuntu-latest for Mercurial 3 failed Jul 8, 2024 in 0s

9 fail, 65 pass in 17m 17s

74 tests  +13   65 ✅ +12   17m 17s ⏱️ + 5m 45s
 3 suites + 1    0 💤 ± 0 
 3 files   + 1    9 ❌ + 1 

Results for commit 62e5eec. ± Comparison against earlier commit 8ac21a5.

Annotations

Check warning on line 0 in Testing.SyncReverseProxy.SendReceiveServiceTests

See this annotation in the file changed.

@github-actions github-actions / Integration Tests ubuntu-latest for Mercurial 3

CanCloneSendReceiveWithJwtOverBasicAuth(hgProtocol: Hgweb, user: "manager") (Testing.SyncReverseProxy.SendReceiveServiceTests) failed

./test-results/_fv-az530-21_2024-07-08_06_24_08.trx [took 0s]
Raw output
System.Net.Http.HttpRequestException : Response status code does not indicate success: 502 (Bad Gateway).   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at Testing.Services.JwtHelper.ExecuteLogin(SendReceiveAuth auth, HttpClient httpClient) in /home/runner/work/languageforge-lexbox/languageforge-lexbox/backend/Testing/Services/JwtHelper.cs:line 43
   at Testing.Services.JwtHelper.GetJwtForUser(SendReceiveAuth auth) in /home/runner/work/languageforge-lexbox/languageforge-lexbox/backend/Testing/Services/JwtHelper.cs:line 16
   at Testing.Services.JwtHelper.GetProjectJwtForUser(SendReceiveAuth auth, String projectCode) in /home/runner/work/languageforge-lexbox/languageforge-lexbox/backend/Testing/Services/JwtHelper.cs:line 24
   at Testing.SyncReverseProxy.SendReceiveServiceTests.CanCloneSendReceiveWithJwtOverBasicAuth(HgProtocol hgProtocol, String user) in /home/runner/work/languageforge-lexbox/languageforge-lexbox/backend/Testing/SyncReverseProxy/SendReceiveServiceTests.cs:line 69
--- End of stack trace from previous location ---

Check warning on line 0 in Testing.ApiTests.OrgPermissionTests

See this annotation in the file changed.

@github-actions github-actions / Integration Tests ubuntu-latest for Mercurial 3

NonMembersOnlySeePublicProjects (Testing.ApiTests.OrgPermissionTests) failed

./test-results/_fv-az530-21_2024-07-08_06_24_08.trx [took 0s]
Raw output
Shouldly.ShouldAssertException : projects
    should not be empty but was   at Testing.ApiTests.OrgPermissionTests.MustNotShowConfidentialProjects(JsonNode org) in /home/runner/work/languageforge-lexbox/languageforge-lexbox/backend/Testing/ApiTests/OrgPermissionTests.cs:line 206
   at Testing.ApiTests.OrgPermissionTests.NonMembersOnlySeePublicProjects() in /home/runner/work/languageforge-lexbox/languageforge-lexbox/backend/Testing/ApiTests/OrgPermissionTests.cs:line 231
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task, ConfigureAwaitOptions options)
--- End of stack trace from previous location ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task, ConfigureAwaitOptions options)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task, ConfigureAwaitOptions options)

Check warning on line 0 in Testing.SyncReverseProxy.SendReceiveServiceTests

See this annotation in the file changed.

@github-actions github-actions / Integration Tests ubuntu-latest for Mercurial 3

SendReceiveAfterProjectReset(protocol: Hgweb) (Testing.SyncReverseProxy.SendReceiveServiceTests) failed

./test-results/_fv-az530-21_2024-07-08_06_24_08.trx [took 0s]
Raw output
System.Text.Json.JsonException : 'e' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0.
---- System.Text.Json.JsonReaderException : 'e' is an invalid start of a value. LineNumber: 0 | BytePositionInLine: 0.   at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& state, JsonReaderException ex)
   at System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
   at System.Text.Json.Serialization.Metadata.JsonTypeInfo`1.ContinueDeserialize(ReadBufferState& bufferState, JsonReaderState& jsonReaderState, ReadStack& readStack)
   at System.Text.Json.Serialization.Metadata.JsonTypeInfo`1.DeserializeAsync(Stream utf8Json, CancellationToken cancellationToken)
   at System.Net.Http.Json.HttpContentJsonExtensions.ReadFromJsonAsyncCore[T](HttpContent content, JsonSerializerOptions options, CancellationToken cancellationToken)
   at Testing.ApiTests.ApiTestBase.ExecuteGql(String gql, Boolean expectGqlError, Boolean expectSuccessCode) in /home/runner/work/languageforge-lexbox/languageforge-lexbox/backend/Testing/ApiTests/ApiTestBase.cs:line 40
   at Testing.Services.Utils.RegisterProjectInLexBox(ProjectConfig config, ApiTestBase apiTester) in /home/runner/work/languageforge-lexbox/languageforge-lexbox/backend/Testing/Services/Utils.cs:line 39
   at Testing.SyncReverseProxy.SendReceiveServiceTests.SendReceiveAfterProjectReset(HgProtocol protocol) in /home/runner/work/languageforge-lexbox/languageforge-lexbox/backend/Testing/SyncReverseProxy/SendReceiveServiceTests.cs:line 112
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
   at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)
   at System.Text.Json.Utf8JsonReader.ConsumeValue(Byte marker)
   at System.Text.Json.Utf8JsonReader.ReadFirstToken(Byte first)
   at System.Text.Json.Utf8JsonReader.ReadSingleSegment()
   at System.Text.Json.Utf8JsonReader.Read()
   at System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)

Check warning on line 0 in Testing.SyncReverseProxy.SendReceiveServiceTests

See this annotation in the file changed.

@github-actions github-actions / Integration Tests ubuntu-latest for Mercurial 3

CanCloneSendReceiveWithJwtOverBasicAuth(hgProtocol: Resumable, user: "manager") (Testing.SyncReverseProxy.SendReceiveServiceTests) failed

./test-results/_fv-az530-21_2024-07-08_06_24_08.trx [took 0s]
Raw output
System.Net.Http.HttpRequestException : Response status code does not indicate success: 502 (Bad Gateway).   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at Testing.Services.JwtHelper.ExecuteLogin(SendReceiveAuth auth, HttpClient httpClient) in /home/runner/work/languageforge-lexbox/languageforge-lexbox/backend/Testing/Services/JwtHelper.cs:line 43
   at Testing.Services.JwtHelper.GetJwtForUser(SendReceiveAuth auth) in /home/runner/work/languageforge-lexbox/languageforge-lexbox/backend/Testing/Services/JwtHelper.cs:line 16
   at Testing.Services.JwtHelper.GetProjectJwtForUser(SendReceiveAuth auth, String projectCode) in /home/runner/work/languageforge-lexbox/languageforge-lexbox/backend/Testing/Services/JwtHelper.cs:line 24
   at Testing.SyncReverseProxy.SendReceiveServiceTests.CanCloneSendReceiveWithJwtOverBasicAuth(HgProtocol hgProtocol, String user) in /home/runner/work/languageforge-lexbox/languageforge-lexbox/backend/Testing/SyncReverseProxy/SendReceiveServiceTests.cs:line 69
--- End of stack trace from previous location ---

Check warning on line 0 in Testing.SyncReverseProxy.SendReceiveServiceTests

See this annotation in the file changed.

@github-actions github-actions / Integration Tests ubuntu-latest for Mercurial 3

SendReceiveAfterProjectReset(protocol: Resumable) (Testing.SyncReverseProxy.SendReceiveServiceTests) failed

./test-results/_fv-az530-21_2024-07-08_06_24_08.trx [took 6s]
Raw output
System.Net.Http.HttpRequestException : Response status code does not indicate success: 502 (Bad Gateway).   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at Testing.Services.LexboxProject.DisposeAsync() in /home/runner/work/languageforge-lexbox/languageforge-lexbox/backend/Testing/Services/Utils.cs:line 115
   at Testing.SyncReverseProxy.SendReceiveServiceTests.SendReceiveAfterProjectReset(HgProtocol protocol) in /home/runner/work/languageforge-lexbox/languageforge-lexbox/backend/Testing/SyncReverseProxy/SendReceiveServiceTests.cs:line 167
--- End of stack trace from previous location ---

Check warning on line 0 in Testing.SyncReverseProxy.SendReceiveServiceTests

See this annotation in the file changed.

@github-actions github-actions / Integration Tests ubuntu-latest for Mercurial 3

InvalidPassOnCloneHgWeb (Testing.SyncReverseProxy.SendReceiveServiceTests) failed

./test-results/_fv-az530-21_2024-07-08_06_24_08.trx [took 3s]
Raw output
Shouldly.ShouldAssertException : `act()`
    should throw
Chorus.VcsDrivers.Mercurial.RepositoryAuthorizationException
    but threw
Chorus.VcsDrivers.Mercurial.ServerErrorException
---- Chorus.VcsDrivers.Mercurial.ServerErrorException : The internet server reported that it is having problems. There isn't anything you can do about that except try again later.   at Testing.SyncReverseProxy.SendReceiveServiceTests.InvalidPassOnCloneHgWeb() in /home/runner/work/languageforge-lexbox/languageforge-lexbox/backend/Testing/SyncReverseProxy/SendReceiveServiceTests.cs:line 226
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
----- Inner Stack Trace -----
   at Chorus.VcsDrivers.Mercurial.HgRepository.CloneFromSource(String sourceLabel, String sourceUri)
   at Chorus.VcsDrivers.Mercurial.HgNormalTransport.Clone()
   at Chorus.VcsDrivers.Mercurial.HgRepository.Clone(RepositoryAddress source, String targetPath, IProgress progress)
   at LfMergeBridge.LanguageForgeMakeCloneActionHandler.LibTriboroughBridgeChorusPlugin.Infrastructure.IBridgeActionTypeHandler.StartWorking(IProgress progress, Dictionary`2 options, String& somethingForClient)
   at LfMergeBridge.LfMergeBridge.Execute(String actionType, IProgress progress, Dictionary`2 options, String& somethingForClient)
   at Testing.Services.SendReceiveService.CloneProject(SendReceiveParams sendReceiveParams, SendReceiveAuth auth, Boolean validateOutput) in /home/runner/work/languageforge-lexbox/languageforge-lexbox/backend/Testing/Services/SendReceiveService.cs:line 139
   at Testing.SyncReverseProxy.SendReceiveServiceTests.<>c__DisplayClass15_0.<InvalidPassOnCloneHgWeb>b__0() in /home/runner/work/languageforge-lexbox/languageforge-lexbox/backend/Testing/SyncReverseProxy/SendReceiveServiceTests.cs:line 224
   at Shouldly.Should.ThrowInternal[TException](Func`1 actual, String customMessage, String shouldlyMethod) in /_/src/Shouldly/ShouldStaticClasses/ShouldThrow.cs:line 81

Check warning on line 0 in Testing.ApiTests.ResetPojectRaceCondition

See this annotation in the file changed.

@github-actions github-actions / Integration Tests ubuntu-latest for Mercurial 3

SimultaneousResetsDontResultIn404s (Testing.ApiTests.ResetPojectRaceCondition) failed

./test-results/_fv-az530-21_2024-07-08_06_24_08.trx [took 6s]
Raw output
System.Net.Http.HttpRequestException : Response status code does not indicate success: 502 (Bad Gateway).   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at Testing.Services.LexboxProject.DisposeAsync() in /home/runner/work/languageforge-lexbox/languageforge-lexbox/backend/Testing/Services/Utils.cs:line 115
   at Testing.ApiTests.ResetPojectRaceCondition.SimultaneousResetsDontResultIn404s() in /home/runner/work/languageforge-lexbox/languageforge-lexbox/backend/Testing/ApiTests/ResetProjectRaceConditions.cs:line 64
--- End of stack trace from previous location ---

Check warning on line 0 in Testing.ApiTests.OrgPermissionTests

See this annotation in the file changed.

@github-actions github-actions / Integration Tests ubuntu-latest for Mercurial 3

MembersSeePublicAndTheirProjects (Testing.ApiTests.OrgPermissionTests) failed

./test-results/_fv-az530-21_2024-07-08_06_24_08.trx [took 0s]
Raw output
Shouldly.ShouldAssertException : projects
    should not be empty but was   at Testing.ApiTests.OrgPermissionTests.MustContainProject(JsonNode org, Guid projectId) in /home/runner/work/languageforge-lexbox/languageforge-lexbox/backend/Testing/ApiTests/OrgPermissionTests.cs:line 215
   at Testing.ApiTests.OrgPermissionTests.MembersSeePublicAndTheirProjects() in /home/runner/work/languageforge-lexbox/languageforge-lexbox/backend/Testing/ApiTests/OrgPermissionTests.cs:line 239
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task, ConfigureAwaitOptions options)
--- End of stack trace from previous location ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task, ConfigureAwaitOptions options)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task, ConfigureAwaitOptions options)

Check warning on line 0 in Testing.ApiTests.OrgPermissionTests

See this annotation in the file changed.

@github-actions github-actions / Integration Tests ubuntu-latest for Mercurial 3

ManagersSeeAllProjects (Testing.ApiTests.OrgPermissionTests) failed

./test-results/_fv-az530-21_2024-07-08_06_24_08.trx [took 0s]
Raw output
Shouldly.ShouldAssertException : projects
    should not be empty but was   at Testing.ApiTests.OrgPermissionTests.MustContainProject(JsonNode org, Guid projectId) in /home/runner/work/languageforge-lexbox/languageforge-lexbox/backend/Testing/ApiTests/OrgPermissionTests.cs:line 215
   at Testing.ApiTests.OrgPermissionTests.ManagersSeeAllProjects() in /home/runner/work/languageforge-lexbox/languageforge-lexbox/backend/Testing/ApiTests/OrgPermissionTests.cs:line 249
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task, ConfigureAwaitOptions options)
--- End of stack trace from previous location ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task, ConfigureAwaitOptions options)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task, ConfigureAwaitOptions options)