Skip to content

Change function name #1299

Change function name

Change function name #1299

GitHub Actions / NUnit Tests failed Nov 26, 2024 in 0s

340 passed, 12 failed and 0 skipped

Tests failed

Report Passed Failed Skipped Time
src/DataAccess/test/SIL.DataAccess.Tests/TestResults/test-results.trx 24✅ 3s
src/Machine/test/Serval.Machine.Shared.Tests/TestResults/test-results.trx 90✅ 12❌ 22s
src/Serval/test/Serval.ApiServer.IntegrationTests/TestResults/test-results.trx 159✅ 492s
src/Serval/test/Serval.DataFiles.Tests/TestResults/test-results.trx 11✅ 6s
src/Serval/test/Serval.E2ETests/TestResults/test-results.trx 817ms
src/Serval/test/Serval.Shared.Tests/TestResults/test-results.trx 3✅ 4s
src/Serval/test/Serval.Translation.Tests/TestResults/test-results.trx 47✅ 4s
src/Serval/test/Serval.Webhooks.Tests/TestResults/test-results.trx 5✅ 3s
src/ServiceToolkit/test/SIL.ServiceToolkit.Tests/TestResults/test-results.trx 1✅ 3s

✅ src/DataAccess/test/SIL.DataAccess.Tests/TestResults/test-results.trx

24 tests were completed in 3s with 24 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
SIL.DataAccess.MemoryRepositoryTests 24✅ 274ms

✅ SIL.DataAccess.MemoryRepositoryTests

✅ DeleteAsync_DoesNotExist
✅ DeleteAsync_Exists
✅ GetAsync_DoesNotExist
✅ GetAsync_Exists
✅ InsertAsync_DoesNotExist
✅ InsertAsync_Exists
✅ InsertAsync_ReadOnlyCollectionExpression
✅ UpdateAsync_Add_Array
✅ UpdateAsync_Add_List
✅ UpdateAsync_Add_ReadOnlyCollection
✅ UpdateAsync_Add_ReadOnlyList
✅ UpdateAsync_DoesNotExist
✅ UpdateAsync_Remove_Array
✅ UpdateAsync_Remove_List
✅ UpdateAsync_Remove_ReadOnlyCollection
✅ UpdateAsync_Remove_ReadOnlyList
✅ UpdateAsync_RemoveAll_Array
✅ UpdateAsync_RemoveAll_List
✅ UpdateAsync_RemoveAll_ReadOnlyCollection
✅ UpdateAsync_RemoveAll_ReadOnlyList
✅ UpdateAsync_Set
✅ UpdateAsync_SetOnInsert
✅ UpdateAsync_Unset
✅ UpdateAsync_Upsert

❌ src/Machine/test/Serval.Machine.Shared.Tests/TestResults/test-results.trx

102 tests were completed in 22s with 90 passed, 12 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Serval.Machine.Shared.Services.ClearMLServiceTests 1✅ 217ms
Serval.Machine.Shared.Services.DistributedReaderWriterLockFactoryTests 3✅ 103ms
Serval.Machine.Shared.Services.DistributedReaderWriterLockTests 15✅ 2s
Serval.Machine.Shared.Services.InMemoryStorageTests 5✅ 13ms
Serval.Machine.Shared.Services.LanguageTagServiceTests 19✅ 6s
Serval.Machine.Shared.Services.LocalStorageTests 5✅ 12ms
Serval.Machine.Shared.Services.MessageOutboxDeliveryServiceTests 4✅ 84ms
Serval.Machine.Shared.Services.MessageOutboxServiceTests 4✅ 19ms
Serval.Machine.Shared.Services.ModelCleanupServiceTests 1✅ 24ms
Serval.Machine.Shared.Services.NmtClearMLBuildJobFactoryTests 2✅ 21ms
Serval.Machine.Shared.Services.NmtEngineServiceTests 4✅ 1s
Serval.Machine.Shared.Services.PreprocessBuildJobTests 10✅ 12❌ 7s
Serval.Machine.Shared.Services.ServalPlatformOutboxMessageHandlerTests 2✅ 45ms
Serval.Machine.Shared.Services.SmtTransferEngineServiceTests 15✅ 2s

✅ Serval.Machine.Shared.Services.ClearMLServiceTests

✅ CreateTaskAsync

✅ Serval.Machine.Shared.Services.DistributedReaderWriterLockFactoryTests

✅ InitAsync_ReleaseReaderLocks
✅ InitAsync_ReleaseWriterLocks
✅ InitAsync_RemoveWaiters

✅ Serval.Machine.Shared.Services.DistributedReaderWriterLockTests

✅ ReaderLockAsync_Cancelled
✅ ReaderLockAsync_NoLockAcquired
✅ ReaderLockAsync_ReaderLockAcquired
✅ ReaderLockAsync_WriterLockAcquiredAndExpired
✅ ReaderLockAsync_WriterLockAcquiredAndNotReleased
✅ ReaderLockAsync_WriterLockAcquiredAndReleased
✅ WriterLockAsync_Cancelled
✅ WriterLockAsync_FirstWriterLockHasPriority
✅ WriterLockAsync_NoLockAcquired
✅ WriterLockAsync_ReaderLockAcquiredAndNotReleased
✅ WriterLockAsync_ReaderLockAcquiredAndReleased
✅ WriterLockAsync_WriterLockAcquiredAndExpired
✅ WriterLockAsync_WriterLockAcquiredAndNeverReleased
✅ WriterLockAsync_WriterLockAcquiredAndReleased
✅ WriterLockAsync_WriterLockTakesPriorityOverReaderLock

✅ Serval.Machine.Shared.Services.InMemoryStorageTests

✅ DeleteAsync
✅ ExistsAsync
✅ ListFilesAsync_DoNotRecurse
✅ ListFilesAsync_Recurse
✅ OpenReadAsync

✅ Serval.Machine.Shared.Services.LanguageTagServiceTests

✅ ConvertToFlores200CodeTest("arb","arb_Arab")
✅ ConvertToFlores200CodeTest("cmn-Hant","zho_Hant")
✅ ConvertToFlores200CodeTest("cmn","zho_Hans")
✅ ConvertToFlores200CodeTest("eng-Latn","eng_Latn")
✅ ConvertToFlores200CodeTest("eng","eng_Latn")
✅ ConvertToFlores200CodeTest("es","spa_Latn")
✅ ConvertToFlores200CodeTest("hne","hne_Deva")
✅ ConvertToFlores200CodeTest("kor_Kore","kor_Hang")
✅ ConvertToFlores200CodeTest("kor","kor_Hang")
✅ ConvertToFlores200CodeTest("ks-Arab","kas_Arab")
✅ ConvertToFlores200CodeTest("ms","zsm_Latn")
✅ ConvertToFlores200CodeTest("srp_Cyrl","srp_Cyrl")
✅ ConvertToFlores200CodeTest("zh-Hant","zho_Hant")
✅ ConvertToFlores200CodeTest("zh-TW","zho_Hant")
✅ ConvertToFlores200CodeTest("zh","zho_Hans")
✅ GetLanguageInfoAsync("cmn","zho_Hans",True)
✅ GetLanguageInfoAsync("en","eng_Latn",True)
✅ GetLanguageInfoAsync("ms","zsm_Latn",True)
✅ GetLanguageInfoAsync("xyz","xyz",False)

✅ Serval.Machine.Shared.Services.LocalStorageTests

✅ DeleteFileAsync
✅ ExistsAsync
✅ ListFilesAsync_DoNotRecurse
✅ ListFilesAsync_Recurse
✅ OpenReadAsync

✅ Serval.Machine.Shared.Services.MessageOutboxDeliveryServiceTests

✅ ProcessMessagesAsync
✅ ProcessMessagesAsync_File
✅ ProcessMessagesAsync_Timeout
✅ ProcessMessagesAsync_UnavailableFailure

✅ Serval.Machine.Shared.Services.MessageOutboxServiceTests

✅ EnqueueMessageAsync_ContentTooLarge
✅ EnqueueMessageAsync_ExistingOutbox
✅ EnqueueMessageAsync_HasContentStream
✅ EnqueueMessageAsync_NoContentStream

✅ Serval.Machine.Shared.Services.ModelCleanupServiceTests

✅ CheckModelsAsync_ValidFiles

✅ Serval.Machine.Shared.Services.NmtClearMLBuildJobFactoryTests

✅ CreateJobScriptAsync_BuildOptions
✅ CreateJobScriptAsync_NoBuildOptions

✅ Serval.Machine.Shared.Services.NmtEngineServiceTests

✅ CancelBuildAsync_Building
✅ CancelBuildAsync_NotBuilding
✅ DeleteAsync_WhileBuilding
✅ StartBuildAsync

❌ Serval.Machine.Shared.Services.PreprocessBuildJobTests

✅ ParallelCorpusAsync
✅ ParallelCorpusAsync_UseKeyTerms
✅ ParallelCorpusAsync_UseKeyTerms_TextIds
✅ RunAsync_DisableKeyTerms
❌ RunAsync_EnableKeyTerms
	  Expected: 5726
	  But was:  0
	
❌ RunAsync_FilterOutEverything
	System.ArgumentException : There must be at least one corpora. (Parameter 'corpora')
✅ RunAsync_MixedSource_Paratext
❌ RunAsync_MixedSource_Text
	System.ArgumentException : There must be at least one corpora. (Parameter 'corpora')
❌ RunAsync_OnlyParseSelectedBooks_NoBadBooks
	  Expected: No Exception to be thrown
	  But was:  <System.ArgumentException: There must be at least one corpora. (Parameter 'corpora')
	   at SIL.Machine.Corpora.NParallelTextCorpus..ctor(IEnumerable`1 corpora, IComparer`1 rowRefComparer)
	   at SIL.Machine.Corpora.MergedTextCorpus..ctor(IEnumerable`1 corpora, MergeRule mergeRule, Nullable`1 seed)
	   at SIL.Machine.Corpora.CorporaExtensions.ChooseRandom(IEnumerable`1 corpora, Nullable`1 seed)
	   at SIL.ServiceToolkit.Services.ParallelCorpusPreprocessingService.Preprocess(IReadOnlyList`1 corpora, Action`1 train, Action`2 pretranslate, Boolean useKeyTerms) in /home/runner/work/serval/serval/src/ServiceToolkit/src/SIL.ServiceToolkit/Services/ParallelCorpusPreprocessingService.cs:line 93
	   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 110
	   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
	   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
	   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
	   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
	   at Serval.Machine.Shared.Services.PreprocessBuildJob.DoWorkAsync(String engineId, String buildId, IReadOnlyList`1 data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 44
	   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 54
	   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 118
	   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 123
	   at Serval.Machine.Shared.Services.PreprocessBuildJobTests.<>c__DisplayClass16_0.<<RunAsync_OnlyParseSelectedBooks_NoBadBooks>b__0>d.MoveNext() in /home/runner/work/serval/serval/src/Machine/test/Serval.Machine.Shared.Tests/Services/PreprocessBuildJobTests.cs:line 313
	--- End of stack trace from previous location ---
	   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
	   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
	   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
	   at NUnit.Framework.Internal.ExceptionHelper.RecordException(Delegate parameterlessDelegate, String parameterName)>
	
✅ RunAsync_OnlyParseSelectedBooks_PretranslateOnBadBook
✅ RunAsync_OnlyParseSelectedBooks_TrainOnBadBook
❌ RunAsync_PretranslateAll
	System.ArgumentException : There must be at least one corpora. (Parameter 'corpora')
✅ RunAsync_PretranslateChapters
❌ RunAsync_PretranslateTextIds
	System.ArgumentException : There must be at least one corpora. (Parameter 'corpora')
❌ RunAsync_PretranslateTextIdsOverlapWithTrainOnTextIds
	System.ArgumentException : There must be at least one corpora. (Parameter 'corpora')
✅ RunAsync_RemoveFreestandingEllipses
❌ RunAsync_TrainAndPretranslateAll
	System.ArgumentException : There must be at least one corpora. (Parameter 'corpora')
❌ RunAsync_TrainOnAll
	System.ArgumentException : There must be at least one corpora. (Parameter 'corpora')
✅ RunAsync_TrainOnChapters
❌ RunAsync_TrainOnTextIds
	System.ArgumentException : There must be at least one corpora. (Parameter 'corpora')
❌ RunAsync_UnknownLanguageTagsNoData
	  Expected: <System.InvalidOperationException>
	  But was:  <System.ArgumentException: There must be at least one corpora. (Parameter 'corpora')
	   at SIL.Machine.Corpora.NParallelTextCorpus..ctor(IEnumerable`1 corpora, IComparer`1 rowRefComparer)
	   at SIL.Machine.Corpora.MergedTextCorpus..ctor(IEnumerable`1 corpora, MergeRule mergeRule, Nullable`1 seed)
	   at SIL.Machine.Corpora.CorporaExtensions.ChooseRandom(IEnumerable`1 corpora, Nullable`1 seed)
	   at SIL.ServiceToolkit.Services.ParallelCorpusPreprocessingService.Preprocess(IReadOnlyList`1 corpora, Action`1 train, Action`2 pretranslate, Boolean useKeyTerms) in /home/runner/work/serval/serval/src/ServiceToolkit/src/SIL.ServiceToolkit/Services/ParallelCorpusPreprocessingService.cs:line 93
	   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 110
	   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
	   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
	   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
	   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
	   at Serval.Machine.Shared.Services.PreprocessBuildJob.DoWorkAsync(String engineId, String buildId, IReadOnlyList`1 data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 44
	   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 54
	   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 118
	   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 123
	   at Serval.Machine.Shared.Services.PreprocessBuildJobTests.<>c__DisplayClass13_0.<<RunAsync_UnknownLanguageTagsNoData>b__0>d.MoveNext() in /home/runner/work/serval/serval/src/Machine/test/Serval.Machine.Shared.Tests/Services/PreprocessBuildJobTests.cs:line 243
	--- End of stack trace from previous location ---
	   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
	   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
	   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
	   at NUnit.Framework.Assert.ThrowsAsync(IResolveConstraint expression, AsyncTestDelegate code, String message, Object[] args)>
	
❌ RunAsync_UnknownLanguageTagsNoDataSmtTransfer
	System.ArgumentException : There must be at least one corpora. (Parameter 'corpora')

✅ Serval.Machine.Shared.Services.ServalPlatformOutboxMessageHandlerTests

✅ HandleMessageAsync_BuildStarted
✅ HandleMessageAsync_InsertPretranslations

✅ Serval.Machine.Shared.Services.SmtTransferEngineServiceTests

✅ CancelBuildAsync_Building(ClearML)
✅ CancelBuildAsync_Building(Hangfire)
✅ CancelBuildAsync_NotBuilding
✅ CommitAsync_LoadedActive
✅ CommitAsync_LoadedInactive
✅ CreateAsync
✅ DeleteAsync_WhileBuilding(ClearML)
✅ DeleteAsync_WhileBuilding(Hangfire)
✅ GetWordGraphAsync
✅ StartBuildAsync_RestartUnfinishedBuild
✅ StartBuildAsync(ClearML)
✅ StartBuildAsync(Hangfire)
✅ TrainSegmentPairAsync(ClearML)
✅ TrainSegmentPairAsync(Hangfire)
✅ TranslateAsync

✅ src/Serval/test/Serval.ApiServer.IntegrationTests/TestResults/test-results.trx

159 tests were completed in 492s with 159 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Serval.ApiServer.AssessmentEngineTests 3✅ 9s
Serval.ApiServer.DataFilesTests 23✅ 62s
Serval.ApiServer.StatusTests 4✅ 10s
Serval.ApiServer.TranslationEngineTests 118✅ 380s
Serval.ApiServer.WebhooksTests 11✅ 25s

✅ Serval.ApiServer.AssessmentEngineTests

✅ CreateAsync
✅ GetAllResultsAsync
✅ StartJobAsync

✅ Serval.ApiServer.DataFilesTests

✅ CreateAsync(["create:files", "read:files"],201)
✅ CreateAsync(["create:files", "read:files"],400)
✅ CreateAsync(["read:files"],403)
✅ DeleteAsync(["delete:files", "read:files"],200,"000000000000000000000001")
✅ DeleteAsync(["delete:files", "read:files"],403,"000000000000000000000003")
✅ DeleteAsync(["delete:files", "read:files"],404,"000000000000000000000004")
✅ DeleteAsync(["read:files"],403,"000000000000000000000001")
✅ DownloadAsync(["create:files", "read:files"],200,"")
✅ DownloadAsync(["create:files", "read:files"],403,"000000000000000000000003")
✅ DownloadAsync(["create:files", "read:files"],404,"000000000000000000000004")
✅ DownloadAsync(["create:files", "update:files"],403,"")
✅ GetAllAsync(["create:translation_engines"],403)
✅ GetAllAsync(["read:files"],200)
✅ GetByIDAsync(["create:translation_engines"],403,"000000000000000000000001")
✅ GetByIDAsync(["read:files"],200,"000000000000000000000001")
✅ GetByIDAsync(["read:files"],403,"000000000000000000000003")
✅ GetByIDAsync(["read:files"],404,"000000000000000000000004")
✅ GetByIDAsync(["read:files"],404,"phony_id")
✅ UpdateAsync(["read:files"],403,"000000000000000000000001")
✅ UpdateAsync(["update:files", "read:files"],200,"000000000000000000000001")
✅ UpdateAsync(["update:files", "read:files"],400,"000000000000000000000001")
✅ UpdateAsync(["update:files", "read:files"],403,"000000000000000000000003")
✅ UpdateAsync(["update:files", "read:files"],404,"000000000000000000000004")

✅ Serval.ApiServer.StatusTests

✅ GetDeploymentAsync(["create:translation_engines"],403)
✅ GetDeploymentAsync(["read:status"],200)
✅ GetHealthAsync(["create:translation_engines"],403)
✅ GetHealthAsync(["read:status"],200)

✅ Serval.ApiServer.TranslationEngineTests

✅ AddCorpusToEngineByIdAsync(["read:files"],403,"e00000000000000000000001")
✅ AddCorpusToEngineByIdAsync(["update:translation_engines"],201,"e00000000000000000000001")
✅ AddCorpusToEngineByIdAsync(["update:translation_engines"],404,"e00000000000000000000004")
✅ AddParallelCorpusToEngineById_NotAuthorized
✅ AddParallelCorpusToEngineByIdAsync
✅ CancelCurrentBuildForEngineByIdAsync(["read:files"],403,"e00000000000000000000001",False)
✅ CancelCurrentBuildForEngineByIdAsync(["update:translation_engines"],200,"e00000000000000000000001")
✅ CancelCurrentBuildForEngineByIdAsync(["update:translation_engines"],204,"e00000000000000000000001",False)
✅ CancelCurrentBuildForEngineByIdAsync(["update:translation_engines"],404,"e00000000000000000000004",False)
✅ CreateEngineAsync(["create:translation_engines", "read:translation_engines"],201,"Echo")
✅ CreateEngineAsync(["create:translation_engines"],400,"NotARealKindOfMT")
✅ CreateEngineAsync(["read:files"],403,"Echo")
✅ DeleteCorpusAndFilesAsync
✅ DeleteCorpusButNotFilesAsync
✅ DeleteCorpusByIdForEngineByIdAsync(["read:files"],403,"e00000000000000000000001")
✅ DeleteCorpusByIdForEngineByIdAsync(["update:translation_engines", "read:translation_engines"],200,"e00000000000000000000001")
✅ DeleteCorpusByIdForEngineByIdAsync(["update:translation_engines", "read:translation_engines"],404,"e00000000000000000000001")
✅ DeleteCorpusByIdForEngineByIdAsync(["update:translation_engines", "read:translation_engines"],404,"e00000000000000000000004")
✅ DeleteEngineByIdAsync(["delete:translation_engines", "read:translation_engines"],200,"e00000000000000000000001")
✅ DeleteEngineByIdAsync(["delete:translation_engines"],404,"e00000000000000000000004")
✅ DeleteEngineByIdAsync(["read:translation_engines"],403,"e00000000000000000000001")
✅ DeleteParallelCorpusByIdForEngineById_NoSuchCorpus
✅ DeleteParallelCorpusByIdForEngineById_NoSuchEngine
✅ DeleteParallelCorpusByIdForEngineById_NotAuthorized
✅ DeleteParallelCorpusByIdForEngineByIdAsync
✅ GetAllAsync(["read:files"],403)
✅ GetAllAsync(["read:translation_engines"],200)
✅ GetAllBuildsForEngineByIdAsync(["read:files"],403,"e00000000000000000000001")
✅ GetAllBuildsForEngineByIdAsync(["read:translation_engines"],200,"be0000000000000000000001")
✅ GetAllBuildsForEngineByIdAsync(["read:translation_engines"],404,"e00000000000000000000004",False)
✅ GetAllCorporaForEngineByIdAsync(["read:files"],403,"e00000000000000000000001")
✅ GetAllCorporaForEngineByIdAsync(["update:translation_engines", "create:translation_engines", "read:translation_engines"],200,"e00000000000000000000001")
✅ GetAllCorporaForEngineByIdAsync(["update:translation_engines", "create:translation_engines", "read:translation_engines"],404,"e00000000000000000000004")
✅ GetAllParallelCorporaForEngineById_NoSuchEngine
✅ GetAllParallelCorporaForEngineById_NotAuthorized
✅ GetAllParallelCorporaForEngineByIdAsync
✅ GetAllPretranslationsAsync_CorpusDoesNotExist
✅ GetAllPretranslationsAsync_EngineDoesNotExist
✅ GetAllPretranslationsAsync_EngineNotBuilt
✅ GetAllPretranslationsAsync_Exists
✅ GetAllPretranslationsAsync_TextIdDoesNotExist
✅ GetAllPretranslationsAsync_TextIdExists
✅ GetBuildByIdForEngineByIdAsync(["read:files"],403,"e00000000000000000000001")
✅ GetBuildByIdForEngineByIdAsync(["read:translation_engines"],200,"be0000000000000000000001")
✅ GetBuildByIdForEngineByIdAsync(["read:translation_engines"],404,"be0000000000000000000001",False)
✅ GetBuildByIdForEngineByIdAsync(["read:translation_engines"],404,"e00000000000000000000004",False)
✅ GetBuildByIdForEngineByIdAsync(["read:translation_engines"],408,"be0000000000000000000001",True)
✅ GetByIdAsync(["read:files"],403,"e00000000000000000000001")
✅ GetByIdAsync(["read:translation_engines"],200,"e00000000000000000000001")
✅ GetByIdAsync(["read:translation_engines"],403,"e00000000000000000000003")
✅ GetByIdAsync(["read:translation_engines"],404,"e00000000000000000000004")
✅ GetByIdAsync(["read:translation_engines"],404,"phony_id")
✅ GetCorpusByIdForEngineByIdAsync(["read:files"],403,"e00000000000000000000001")
✅ GetCorpusByIdForEngineByIdAsync(["update:translation_engines", "read:translation_engines"],200,"e00000000000000000000001",True)
✅ GetCorpusByIdForEngineByIdAsync(["update:translation_engines", "read:translation_engines"],404,"e00000000000000000000001",True)
✅ GetCorpusByIdForEngineByIdAsync(["update:translation_engines", "read:translation_engines"],404,"e00000000000000000000001")
✅ GetCorpusByIdForEngineByIdAsync(["update:translation_engines", "read:translation_engines"],404,"e00000000000000000000004")
✅ GetCurrentBuildForEngineByIdAsync(["read:files"],403,"e00000000000000000000001",False)
✅ GetCurrentBuildForEngineByIdAsync(["read:translation_engines"],200,"e00000000000000000000001")
✅ GetCurrentBuildForEngineByIdAsync(["read:translation_engines"],204,"e00000000000000000000001",False)
✅ GetCurrentBuildForEngineByIdAsync(["read:translation_engines"],404,"e00000000000000000000004",False)
✅ GetCurrentBuildForEngineByIdAsync(["read:translation_engines"],408,"e00000000000000000000001")
✅ GetDownloadableUrl(["read:files"],403,"e00000000000000000000001")
✅ GetDownloadableUrl(["read:translation_engines"],200,"e00000000000000000000001")
✅ GetDownloadableUrl(["read:translation_engines"],404,"e00000000000000000000004")
✅ GetLanguageInfo_Error
✅ GetLanguageInfoAsync
✅ GetParallelCorpusByIdForEngineById_NoCorpora
✅ GetParallelCorpusByIdForEngineById_NoSuchCorpus
✅ GetParallelCorpusByIdForEngineById_NoSuchEngine
✅ GetParallelCorpusByIdForEngineById_NotAuthorized
✅ GetParallelCorpusByIdForEngineByIdAsync
✅ GetPretranslatedUsfmAsync_BookDoesNotExist
✅ GetPretranslatedUsfmAsync_BookExists
✅ GetPretranslationsByTextId
✅ GetPretranslationsByTextId_EngineDoesNotExist
✅ GetQueueAsync_NotAuthorized
✅ GetQueueAsync("Echo")
✅ GetQueueAsync("Nmt")
✅ GetWordGraphForSegmentByIdAsync(["read:files"],403,"e00000000000000000000001")
✅ GetWordGraphForSegmentByIdAsync(["read:translation_engines", "update:translation_engines"],200,"e00000000000000000000001")
✅ GetWordGraphForSegmentByIdAsync(["read:translation_engines", "update:translation_engines"],404,"e00000000000000000000004")
✅ GetWordGraphForSegmentByIdAsync(["read:translation_engines", "update:translation_engines"],409,"e00000000000000000000001")
✅ StartBuild_ParallelCorpus
✅ StartBuildAsync_Corpus_NoFilter
✅ StartBuildAsync_ParallelCorpus
✅ StartBuildAsync_ParallelCorpus_NoFilter
✅ StartBuildAsync_ParallelCorpus_PretranslateFilterOnMultipleSources
✅ StartBuildAsync_ParallelCorpus_PretranslateNoCorpusSpecified
✅ StartBuildAsync_ParallelCorpus_PretranslateParallelAndNormalCorpus
✅ StartBuildAsync_ParallelCorpus_TrainOnNoCorpusSpecified
✅ StartBuildAsync_ParallelCorpus_TrainOnParallelAndNormalCorpus
✅ StartBuildForEngineAsync_UnparsableOptions()
✅ StartBuildForEngineByIdAsync(["read:files"],403,"e00000000000000000000001")
✅ StartBuildForEngineByIdAsync(["update:translation_engines", "create:translation_engines", "read:translation_engines"],201,"e00000000000000000000001")
✅ StartBuildForEngineByIdAsync(["update:translation_engines", "create:translation_engines", "read:translation_engines"],400,"e00000000000000000000001")
✅ StartBuildForEngineByIdAsync(["update:translation_engines", "create:translation_engines", "read:translation_engines"],404,"e00000000000000000000004")
✅ TrainEngineByIdOnSegmentPairAsync(["read:files"],403,"e00000000000000000000001")
✅ TrainEngineByIdOnSegmentPairAsync(["update:translation_engines"],200,"e00000000000000000000001")
✅ TrainEngineByIdOnSegmentPairAsync(["update:translation_engines"],404,"e00000000000000000000004")
✅ TrainEngineByIdOnSegmentPairAsync(["update:translation_engines"],409,"e00000000000000000000001")
✅ TranslateNSegmentWithEngineByIdAsync(["read:files"],403,"e00000000000000000000001")
✅ TranslateNSegmentWithEngineByIdAsync(["read:translation_engines", "update:translation_engines"],200,"e00000000000000000000001")
✅ TranslateNSegmentWithEngineByIdAsync(["read:translation_engines", "update:translation_engines"],409,"e00000000000000000000001")
✅ TranslateNSegmentWithEngineByIdAsync(["read:translation_engines"],404,"e00000000000000000000004")
✅ TranslateSegmentWithEngineByIdAsync(["read:files"],403,"e00000000000000000000001")
✅ TranslateSegmentWithEngineByIdAsync(["read:translation_engines", "update:translation_engines"],200,"e00000000000000000000001")
✅ TranslateSegmentWithEngineByIdAsync(["read:translation_engines", "update:translation_engines"],404,"e00000000000000000000004")
✅ TranslateSegmentWithEngineByIdAsync(["read:translation_engines", "update:translation_engines"],409,"e00000000000000000000001")
✅ TryToQueueMultipleBuildsPerSingleUser
✅ UpdateCorpusByIdForEngineByIdAsync(["read:files"],403,"e00000000000000000000001")
✅ UpdateCorpusByIdForEngineByIdAsync(["update:translation_engines", "create:translation_engines", "read:translation_engines"],200,"e00000000000000000000001")
✅ UpdateCorpusByIdForEngineByIdAsync(["update:translation_engines", "create:translation_engines", "read:translation_engines"],404,"e00000000000000000000001")
✅ UpdateCorpusByIdForEngineByIdAsync(["update:translation_engines", "create:translation_engines", "read:translation_engines"],404,"e00000000000000000000004")
✅ UpdateParallelCorpusByIdForEngineById_NoSuchCorpus
✅ UpdateParallelCorpusByIdForEngineById_NoSuchEngine
✅ UpdateParallelCorpusByIdForEngineById_NotAuthorized
✅ UpdateParallelCorpusByIdForEngineByIdAsync

✅ Serval.ApiServer.WebhooksTests

✅ CreateWebhookAsync(["read:files"],403)
✅ CreateWebhookAsync(null,201)
✅ DeleteWebhookByIdAsync(["read:files"],403,"000000000000000000000000")
✅ DeleteWebhookByIdAsync(null,200,"000000000000000000000000")
✅ DeleteWebhookByIdAsync(null,404,"000000000000000000000001")
✅ GetAllWebhooksAsync(["read:files"],403)
✅ GetAllWebhooksAsync(null,200)
✅ GetWebhookByIdAsync(["read:files"],403,"000000000000000000000000")
✅ GetWebhookByIdAsync(null,200,"000000000000000000000000")
✅ GetWebhookByIdAsync(null,404,"000000000000000000000001")
✅ GetWebhookByIdAsync(null,404,"phony_id")

✅ src/Serval/test/Serval.DataFiles.Tests/TestResults/test-results.trx

11 tests were completed in 6s with 11 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Serval.DataFiles.Services.CorpusServiceTests 2✅ 91ms
Serval.DataFiles.Services.DataFileServiceTests 8✅ 193ms
Serval.DataFiles.Services.DeletedFileCleanerTests 1✅ 2s

✅ Serval.DataFiles.Services.CorpusServiceTests

✅ CreateAsync
✅ UpdateAsync

✅ Serval.DataFiles.Services.DataFileServiceTests

✅ CreateAsync_Error
✅ CreateAsync_NoError
✅ DeleteAsync_DoesNotExist
✅ DeleteAsync_Exists
✅ DownloadAsync_DoesNotExists
✅ DownloadAsync_Exists
✅ UpdateAsync_DoesNotExist
✅ UpdateAsync_Exists

✅ Serval.DataFiles.Services.DeletedFileCleanerTests

✅ Clean

✅ src/Serval/test/Serval.E2ETests/TestResults/test-results.trx

No tests found

✅ src/Serval/test/Serval.Shared.Tests/TestResults/test-results.trx

3 tests were completed in 4s with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Serval.Shared.Services.ScriptureDataFileServiceTests 2✅ 242ms
Serval.Shared.Utils.ObjectToInferredTypesConverterTest 1✅ 76ms

✅ Serval.Shared.Services.ScriptureDataFileServiceTests

✅ GetParatextProjectSettings
✅ GetZipParatextProjectTextUpdater

✅ Serval.Shared.Utils.ObjectToInferredTypesConverterTest

✅ Convert

✅ src/Serval/test/Serval.Translation.Tests/TestResults/test-results.trx

47 tests were completed in 4s with 47 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Serval.Translation.Services.BuildServiceTests 4✅ 77ms
Serval.Translation.Services.EngineServiceTests 29✅ 529ms
Serval.Translation.Services.PlatformServiceTests 3✅ 85ms
Serval.Translation.Services.PretranslationServiceTests 11✅ 229ms

✅ Serval.Translation.Services.BuildServiceTests

✅ GetActiveNewerRevisionAsync_Insert
✅ GetNewerRevisionAsync_Delete
✅ GetNewerRevisionAsync_DoesNotExist
✅ GetNewerRevisionAsync_Update

✅ Serval.Translation.Services.EngineServiceTests

✅ CancelBuildAsync_EngineExistsNotBuilding
✅ CreateAsync
✅ DeleteAsync_EngineExists
✅ DeleteAsync_ProjectDoesNotExist
✅ GetWordGraphAsync_EngineDoesNotExist
✅ GetWordGraphAsync_EngineExists
✅ StartBuildAsync_MixedSourceAndTarget_ParallelCorpus
✅ StartBuildAsync_NoFilters_ParallelCorpus
✅ StartBuildAsync_NoTargetFilter_ParallelCorpus
✅ StartBuildAsync_OneOfMultipleCorpora
✅ StartBuildAsync_ParallelCorpus_OneOfMultipleCorpora
✅ StartBuildAsync_ParallelCorpus_TextFiles
✅ StartBuildAsync_ParallelCorpus_TrainOnOnePretranslateTheOther
✅ StartBuildAsync_ScriptureRange_ParallelCorpus
✅ StartBuildAsync_ScriptureRangeEmptyString
✅ StartBuildAsync_ScriptureRangeSpecified
✅ StartBuildAsync_TextFilesScriptureRangeSpecified
✅ StartBuildAsync_TextIds_ParallelCorpus
✅ StartBuildAsync_TextIdsEmpty
✅ StartBuildAsync_TextIdsNotSpecified
✅ StartBuildAsync_TextIdsPopulated
✅ StartBuildAsync_TrainOnNotSpecified
✅ StartBuildAsync_TrainOnNotSpecified_ParallelCorpus
✅ StartBuildAsync_TrainOnOnePretranslateTheOther
✅ TrainSegmentAsync_EngineDoesNotExist
✅ TrainSegmentAsync_EngineExists
✅ TranslateAsync_EngineDoesNotExist
✅ TranslateAsync_EngineExists
✅ UpdateCorpusAsync

✅ Serval.Translation.Services.PlatformServiceTests

✅ IncrementCorpusSizeAsync
✅ TestBuildStateTransitionsAsync
✅ UpdateBuildStatusAsync

✅ Serval.Translation.Services.PretranslationServiceTests

✅ GetUsfmAsync_Auto_TargetBookDoesNotExist
✅ GetUsfmAsync_Auto_TargetBookExists
✅ GetUsfmAsync_Source_OnlyExisting
✅ GetUsfmAsync_Source_OnlyPretranslated
✅ GetUsfmAsync_Source_PreferExisting
✅ GetUsfmAsync_Source_PreferPretranslated
✅ GetUsfmAsync_Target_OnlyExisting
✅ GetUsfmAsync_Target_OnlyPretranslated
✅ GetUsfmAsync_Target_PreferExisting
✅ GetUsfmAsync_Target_PreferPretranslated
✅ GetUsfmAsync_Target_TargetBookDoesNotExist

✅ src/Serval/test/Serval.Webhooks.Tests/TestResults/test-results.trx

5 tests were completed in 3s with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Serval.Webhooks.Services.WebhookJobTests 5✅ 155ms

✅ Serval.Webhooks.Services.WebhookJobTests

✅ RunAsync_Exception
✅ RunAsync_MatchingHook
✅ RunAsync_NoHooks
✅ RunAsync_NoMatchingHook
✅ RunAsync_RequestTimeout

✅ src/ServiceToolkit/test/SIL.ServiceToolkit.Tests/TestResults/test-results.trx

1 tests were completed in 3s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
SIL.ServiceToolkit.Services.ParallelCorpusPreprocessingServiceTests 1✅ 72ms

✅ SIL.ServiceToolkit.Services.ParallelCorpusPreprocessingServiceTests

✅ TestParallelCorpusPreprocessor

Annotations

Check failure on line 119 in src/Machine/test/Serval.Machine.Shared.Tests/Services/PreprocessBuildJobTests.cs

See this annotation in the file changed.

@github-actions github-actions / NUnit Tests

Serval.Machine.Shared.Services.PreprocessBuildJobTests ► RunAsync_EnableKeyTerms

Failed test found in:
  src/Machine/test/Serval.Machine.Shared.Tests/TestResults/test-results.trx
Error:
    Expected: 5726
    But was:  0
  
Raw output
  Expected: 5726
  But was:  0

   at Serval.Machine.Shared.Services.PreprocessBuildJobTests.RunAsync_EnableKeyTerms() in /home/runner/work/serval/serval/src/Machine/test/Serval.Machine.Shared.Tests/Services/PreprocessBuildJobTests.cs:line 119
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)

1)    at Serval.Machine.Shared.Services.PreprocessBuildJobTests.<>c__DisplayClass7_0.<RunAsync_EnableKeyTerms>b__0() in /home/runner/work/serval/serval/src/Machine/test/Serval.Machine.Shared.Tests/Services/PreprocessBuildJobTests.cs:line 124
   at NUnit.Framework.Assert.Multiple(TestDelegate testDelegate)
   at Serval.Machine.Shared.Services.PreprocessBuildJobTests.RunAsync_EnableKeyTerms() in /home/runner/work/serval/serval/src/Machine/test/Serval.Machine.Shared.Tests/Services/PreprocessBuildJobTests.cs:line 119

Check failure on line 93 in src/ServiceToolkit/src/SIL.ServiceToolkit/Services/ParallelCorpusPreprocessingService.cs

See this annotation in the file changed.

@github-actions github-actions / NUnit Tests

Serval.Machine.Shared.Services.PreprocessBuildJobTests ► RunAsync_FilterOutEverything

Failed test found in:
  src/Machine/test/Serval.Machine.Shared.Tests/TestResults/test-results.trx
Error:
  System.ArgumentException : There must be at least one corpora. (Parameter 'corpora')
Raw output
System.ArgumentException : There must be at least one corpora. (Parameter 'corpora')
   at SIL.Machine.Corpora.NParallelTextCorpus..ctor(IEnumerable`1 corpora, IComparer`1 rowRefComparer)
   at SIL.Machine.Corpora.MergedTextCorpus..ctor(IEnumerable`1 corpora, MergeRule mergeRule, Nullable`1 seed)
   at SIL.Machine.Corpora.CorporaExtensions.ChooseRandom(IEnumerable`1 corpora, Nullable`1 seed)
   at SIL.ServiceToolkit.Services.ParallelCorpusPreprocessingService.Preprocess(IReadOnlyList`1 corpora, Action`1 train, Action`2 pretranslate, Boolean useKeyTerms) in /home/runner/work/serval/serval/src/ServiceToolkit/src/SIL.ServiceToolkit/Services/ParallelCorpusPreprocessingService.cs:line 93
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 110
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.DoWorkAsync(String engineId, String buildId, IReadOnlyList`1 data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 44
   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 54
   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 118
   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 123
   at Serval.Machine.Shared.Services.PreprocessBuildJobTests.RunAsync_FilterOutEverything() in /home/runner/work/serval/serval/src/Machine/test/Serval.Machine.Shared.Tests/Services/PreprocessBuildJobTests.cs:line 12
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()

Check failure on line 93 in src/ServiceToolkit/src/SIL.ServiceToolkit/Services/ParallelCorpusPreprocessingService.cs

See this annotation in the file changed.

@github-actions github-actions / NUnit Tests

Serval.Machine.Shared.Services.PreprocessBuildJobTests ► RunAsync_MixedSource_Text

Failed test found in:
  src/Machine/test/Serval.Machine.Shared.Tests/TestResults/test-results.trx
Error:
  System.ArgumentException : There must be at least one corpora. (Parameter 'corpora')
Raw output
System.ArgumentException : There must be at least one corpora. (Parameter 'corpora')
   at SIL.Machine.Corpora.NParallelTextCorpus..ctor(IEnumerable`1 corpora, IComparer`1 rowRefComparer)
   at SIL.Machine.Corpora.MergedTextCorpus..ctor(IEnumerable`1 corpora, MergeRule mergeRule, Nullable`1 seed)
   at SIL.Machine.Corpora.CorporaExtensions.ChooseRandom(IEnumerable`1 corpora, Nullable`1 seed)
   at SIL.ServiceToolkit.Services.ParallelCorpusPreprocessingService.Preprocess(IReadOnlyList`1 corpora, Action`1 train, Action`2 pretranslate, Boolean useKeyTerms) in /home/runner/work/serval/serval/src/ServiceToolkit/src/SIL.ServiceToolkit/Services/ParallelCorpusPreprocessingService.cs:line 93
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 110
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.DoWorkAsync(String engineId, String buildId, IReadOnlyList`1 data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 44
   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 54
   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 118
   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 123
   at Serval.Machine.Shared.Services.PreprocessBuildJobTests.RunAsync_MixedSource_Text() in /home/runner/work/serval/serval/src/Machine/test/Serval.Machine.Shared.Tests/Services/PreprocessBuildJobTests.cs:line 222
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()

Check failure on line 311 in src/Machine/test/Serval.Machine.Shared.Tests/Services/PreprocessBuildJobTests.cs

See this annotation in the file changed.

@github-actions github-actions / NUnit Tests

Serval.Machine.Shared.Services.PreprocessBuildJobTests ► RunAsync_OnlyParseSelectedBooks_NoBadBooks

Failed test found in:
  src/Machine/test/Serval.Machine.Shared.Tests/TestResults/test-results.trx
Error:
    Expected: No Exception to be thrown
    But was:  <System.ArgumentException: There must be at least one corpora. (Parameter 'corpora')
     at SIL.Machine.Corpora.NParallelTextCorpus..ctor(IEnumerable`1 corpora, IComparer`1 rowRefComparer)
     at SIL.Machine.Corpora.MergedTextCorpus..ctor(IEnumerable`1 corpora, MergeRule mergeRule, Nullable`1 seed)
     at SIL.Machine.Corpora.CorporaExtensions.ChooseRandom(IEnumerable`1 corpora, Nullable`1 seed)
     at SIL.ServiceToolkit.Services.ParallelCorpusPreprocessingService.Preprocess(IReadOnlyList`1 corpora, Action`1 train, Action`2 pretranslate, Boolean useKeyTerms) in /home/runner/work/serval/serval/src/ServiceToolkit/src/SIL.ServiceToolkit/Services/ParallelCorpusPreprocessingService.cs:line 93
     at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 110
     at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
     at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
     at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
     at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
     at Serval.Machine.Shared.Services.PreprocessBuildJob.DoWorkAsync(String engineId, String buildId, IReadOnlyList`1 data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 44
     at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 54
     at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 118
     at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 123
     at Serval.Machine.Shared.Services.PreprocessBuildJobTests.<>c__DisplayClass16_0.<<RunAsync_OnlyParseSelectedBooks_NoBadBooks>b__0>d.MoveNext() in /home/runner/work/serval/serval/src/Machine/test/Serval.Machine.Shared.Tests/Services/PreprocessBuildJobTests.cs:line 313
  --- End of stack trace from previous location ---
     at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
     at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
     at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
     at NUnit.Framework.Internal.ExceptionHelper.RecordException(Delegate parameterlessDelegate, String parameterName)>
  
Raw output
  Expected: No Exception to be thrown
  But was:  <System.ArgumentException: There must be at least one corpora. (Parameter 'corpora')
   at SIL.Machine.Corpora.NParallelTextCorpus..ctor(IEnumerable`1 corpora, IComparer`1 rowRefComparer)
   at SIL.Machine.Corpora.MergedTextCorpus..ctor(IEnumerable`1 corpora, MergeRule mergeRule, Nullable`1 seed)
   at SIL.Machine.Corpora.CorporaExtensions.ChooseRandom(IEnumerable`1 corpora, Nullable`1 seed)
   at SIL.ServiceToolkit.Services.ParallelCorpusPreprocessingService.Preprocess(IReadOnlyList`1 corpora, Action`1 train, Action`2 pretranslate, Boolean useKeyTerms) in /home/runner/work/serval/serval/src/ServiceToolkit/src/SIL.ServiceToolkit/Services/ParallelCorpusPreprocessingService.cs:line 93
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 110
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.DoWorkAsync(String engineId, String buildId, IReadOnlyList`1 data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 44
   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 54
   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 118
   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 123
   at Serval.Machine.Shared.Services.PreprocessBuildJobTests.<>c__DisplayClass16_0.<<RunAsync_OnlyParseSelectedBooks_NoBadBooks>b__0>d.MoveNext() in /home/runner/work/serval/serval/src/Machine/test/Serval.Machine.Shared.Tests/Services/PreprocessBuildJobTests.cs:line 313
--- End of stack trace from previous location ---
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.ExceptionHelper.RecordException(Delegate parameterlessDelegate, String parameterName)>

   at Serval.Machine.Shared.Services.PreprocessBuildJobTests.RunAsync_OnlyParseSelectedBooks_NoBadBooks() in /home/runner/work/serval/serval/src/Machine/test/Serval.Machine.Shared.Tests/Services/PreprocessBuildJobTests.cs:line 311

1)    at Serval.Machine.Shared.Services.PreprocessBuildJobTests.RunAsync_OnlyParseSelectedBooks_NoBadBooks() in /home/runner/work/serval/serval/src/Machine/test/Serval.Machine.Shared.Tests/Services/PreprocessBuildJobTests.cs:line 311

Check failure on line 93 in src/ServiceToolkit/src/SIL.ServiceToolkit/Services/ParallelCorpusPreprocessingService.cs

See this annotation in the file changed.

@github-actions github-actions / NUnit Tests

Serval.Machine.Shared.Services.PreprocessBuildJobTests ► RunAsync_PretranslateAll

Failed test found in:
  src/Machine/test/Serval.Machine.Shared.Tests/TestResults/test-results.trx
Error:
  System.ArgumentException : There must be at least one corpora. (Parameter 'corpora')
Raw output
System.ArgumentException : There must be at least one corpora. (Parameter 'corpora')
   at SIL.Machine.Corpora.NParallelTextCorpus..ctor(IEnumerable`1 corpora, IComparer`1 rowRefComparer)
   at SIL.Machine.Corpora.MergedTextCorpus..ctor(IEnumerable`1 corpora, MergeRule mergeRule, Nullable`1 seed)
   at SIL.Machine.Corpora.CorporaExtensions.ChooseRandom(IEnumerable`1 corpora, Nullable`1 seed)
   at SIL.ServiceToolkit.Services.ParallelCorpusPreprocessingService.Preprocess(IReadOnlyList`1 corpora, Action`1 train, Action`2 pretranslate, Boolean useKeyTerms) in /home/runner/work/serval/serval/src/ServiceToolkit/src/SIL.ServiceToolkit/Services/ParallelCorpusPreprocessingService.cs:line 93
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 110
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.DoWorkAsync(String engineId, String buildId, IReadOnlyList`1 data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 44
   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 54
   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 118
   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 123
   at Serval.Machine.Shared.Services.PreprocessBuildJobTests.RunAsync_PretranslateAll() in /home/runner/work/serval/serval/src/Machine/test/Serval.Machine.Shared.Tests/Services/PreprocessBuildJobTests.cs:line 77
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()

Check failure on line 93 in src/ServiceToolkit/src/SIL.ServiceToolkit/Services/ParallelCorpusPreprocessingService.cs

See this annotation in the file changed.

@github-actions github-actions / NUnit Tests

Serval.Machine.Shared.Services.PreprocessBuildJobTests ► RunAsync_PretranslateTextIds

Failed test found in:
  src/Machine/test/Serval.Machine.Shared.Tests/TestResults/test-results.trx
Error:
  System.ArgumentException : There must be at least one corpora. (Parameter 'corpora')
Raw output
System.ArgumentException : There must be at least one corpora. (Parameter 'corpora')
   at SIL.Machine.Corpora.NParallelTextCorpus..ctor(IEnumerable`1 corpora, IComparer`1 rowRefComparer)
   at SIL.Machine.Corpora.MergedTextCorpus..ctor(IEnumerable`1 corpora, MergeRule mergeRule, Nullable`1 seed)
   at SIL.Machine.Corpora.CorporaExtensions.ChooseRandom(IEnumerable`1 corpora, Nullable`1 seed)
   at SIL.ServiceToolkit.Services.ParallelCorpusPreprocessingService.Preprocess(IReadOnlyList`1 corpora, Action`1 train, Action`2 pretranslate, Boolean useKeyTerms) in /home/runner/work/serval/serval/src/ServiceToolkit/src/SIL.ServiceToolkit/Services/ParallelCorpusPreprocessingService.cs:line 93
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 110
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.DoWorkAsync(String engineId, String buildId, IReadOnlyList`1 data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 44
   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 54
   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 118
   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 123
   at Serval.Machine.Shared.Services.PreprocessBuildJobTests.RunAsync_PretranslateTextIds() in /home/runner/work/serval/serval/src/Machine/test/Serval.Machine.Shared.Tests/Services/PreprocessBuildJobTests.cs:line 88
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()

Check failure on line 93 in src/ServiceToolkit/src/SIL.ServiceToolkit/Services/ParallelCorpusPreprocessingService.cs

See this annotation in the file changed.

@github-actions github-actions / NUnit Tests

Serval.Machine.Shared.Services.PreprocessBuildJobTests ► RunAsync_PretranslateTextIdsOverlapWithTrainOnTextIds

Failed test found in:
  src/Machine/test/Serval.Machine.Shared.Tests/TestResults/test-results.trx
Error:
  System.ArgumentException : There must be at least one corpora. (Parameter 'corpora')
Raw output
System.ArgumentException : There must be at least one corpora. (Parameter 'corpora')
   at SIL.Machine.Corpora.NParallelTextCorpus..ctor(IEnumerable`1 corpora, IComparer`1 rowRefComparer)
   at SIL.Machine.Corpora.MergedTextCorpus..ctor(IEnumerable`1 corpora, MergeRule mergeRule, Nullable`1 seed)
   at SIL.Machine.Corpora.CorporaExtensions.ChooseRandom(IEnumerable`1 corpora, Nullable`1 seed)
   at SIL.ServiceToolkit.Services.ParallelCorpusPreprocessingService.Preprocess(IReadOnlyList`1 corpora, Action`1 train, Action`2 pretranslate, Boolean useKeyTerms) in /home/runner/work/serval/serval/src/ServiceToolkit/src/SIL.ServiceToolkit/Services/ParallelCorpusPreprocessingService.cs:line 93
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 110
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.DoWorkAsync(String engineId, String buildId, IReadOnlyList`1 data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 44
   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 54
   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 118
   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 123
   at Serval.Machine.Shared.Services.PreprocessBuildJobTests.RunAsync_PretranslateTextIdsOverlapWithTrainOnTextIds() in /home/runner/work/serval/serval/src/Machine/test/Serval.Machine.Shared.Tests/Services/PreprocessBuildJobTests.cs:line 102
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()

Check failure on line 93 in src/ServiceToolkit/src/SIL.ServiceToolkit/Services/ParallelCorpusPreprocessingService.cs

See this annotation in the file changed.

@github-actions github-actions / NUnit Tests

Serval.Machine.Shared.Services.PreprocessBuildJobTests ► RunAsync_TrainAndPretranslateAll

Failed test found in:
  src/Machine/test/Serval.Machine.Shared.Tests/TestResults/test-results.trx
Error:
  System.ArgumentException : There must be at least one corpora. (Parameter 'corpora')
Raw output
System.ArgumentException : There must be at least one corpora. (Parameter 'corpora')
   at SIL.Machine.Corpora.NParallelTextCorpus..ctor(IEnumerable`1 corpora, IComparer`1 rowRefComparer)
   at SIL.Machine.Corpora.MergedTextCorpus..ctor(IEnumerable`1 corpora, MergeRule mergeRule, Nullable`1 seed)
   at SIL.Machine.Corpora.CorporaExtensions.ChooseRandom(IEnumerable`1 corpora, Nullable`1 seed)
   at SIL.ServiceToolkit.Services.ParallelCorpusPreprocessingService.Preprocess(IReadOnlyList`1 corpora, Action`1 train, Action`2 pretranslate, Boolean useKeyTerms) in /home/runner/work/serval/serval/src/ServiceToolkit/src/SIL.ServiceToolkit/Services/ParallelCorpusPreprocessingService.cs:line 93
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 110
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.DoWorkAsync(String engineId, String buildId, IReadOnlyList`1 data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 44
   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 54
   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 118
   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 123
   at Serval.Machine.Shared.Services.PreprocessBuildJobTests.RunAsync_TrainAndPretranslateAll() in /home/runner/work/serval/serval/src/Machine/test/Serval.Machine.Shared.Tests/Services/PreprocessBuildJobTests.cs:line 66
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()

Check failure on line 93 in src/ServiceToolkit/src/SIL.ServiceToolkit/Services/ParallelCorpusPreprocessingService.cs

See this annotation in the file changed.

@github-actions github-actions / NUnit Tests

Serval.Machine.Shared.Services.PreprocessBuildJobTests ► RunAsync_TrainOnAll

Failed test found in:
  src/Machine/test/Serval.Machine.Shared.Tests/TestResults/test-results.trx
Error:
  System.ArgumentException : There must be at least one corpora. (Parameter 'corpora')
Raw output
System.ArgumentException : There must be at least one corpora. (Parameter 'corpora')
   at SIL.Machine.Corpora.NParallelTextCorpus..ctor(IEnumerable`1 corpora, IComparer`1 rowRefComparer)
   at SIL.Machine.Corpora.MergedTextCorpus..ctor(IEnumerable`1 corpora, MergeRule mergeRule, Nullable`1 seed)
   at SIL.Machine.Corpora.CorporaExtensions.ChooseRandom(IEnumerable`1 corpora, Nullable`1 seed)
   at SIL.ServiceToolkit.Services.ParallelCorpusPreprocessingService.Preprocess(IReadOnlyList`1 corpora, Action`1 train, Action`2 pretranslate, Boolean useKeyTerms) in /home/runner/work/serval/serval/src/ServiceToolkit/src/SIL.ServiceToolkit/Services/ParallelCorpusPreprocessingService.cs:line 93
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 110
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.DoWorkAsync(String engineId, String buildId, IReadOnlyList`1 data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 44
   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 54
   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 118
   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 123
   at Serval.Machine.Shared.Services.PreprocessBuildJobTests.RunAsync_TrainOnAll() in /home/runner/work/serval/serval/src/Machine/test/Serval.Machine.Shared.Tests/Services/PreprocessBuildJobTests.cs:line 30
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()

Check failure on line 93 in src/ServiceToolkit/src/SIL.ServiceToolkit/Services/ParallelCorpusPreprocessingService.cs

See this annotation in the file changed.

@github-actions github-actions / NUnit Tests

Serval.Machine.Shared.Services.PreprocessBuildJobTests ► RunAsync_TrainOnTextIds

Failed test found in:
  src/Machine/test/Serval.Machine.Shared.Tests/TestResults/test-results.trx
Error:
  System.ArgumentException : There must be at least one corpora. (Parameter 'corpora')
Raw output
System.ArgumentException : There must be at least one corpora. (Parameter 'corpora')
   at SIL.Machine.Corpora.NParallelTextCorpus..ctor(IEnumerable`1 corpora, IComparer`1 rowRefComparer)
   at SIL.Machine.Corpora.MergedTextCorpus..ctor(IEnumerable`1 corpora, MergeRule mergeRule, Nullable`1 seed)
   at SIL.Machine.Corpora.CorporaExtensions.ChooseRandom(IEnumerable`1 corpora, Nullable`1 seed)
   at SIL.ServiceToolkit.Services.ParallelCorpusPreprocessingService.Preprocess(IReadOnlyList`1 corpora, Action`1 train, Action`2 pretranslate, Boolean useKeyTerms) in /home/runner/work/serval/serval/src/ServiceToolkit/src/SIL.ServiceToolkit/Services/ParallelCorpusPreprocessingService.cs:line 93
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 110
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.DoWorkAsync(String engineId, String buildId, IReadOnlyList`1 data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 44
   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 54
   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 118
   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 123
   at Serval.Machine.Shared.Services.PreprocessBuildJobTests.RunAsync_TrainOnTextIds() in /home/runner/work/serval/serval/src/Machine/test/Serval.Machine.Shared.Tests/Services/PreprocessBuildJobTests.cs:line 48
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()

Check failure on line 241 in src/Machine/test/Serval.Machine.Shared.Tests/Services/PreprocessBuildJobTests.cs

See this annotation in the file changed.

@github-actions github-actions / NUnit Tests

Serval.Machine.Shared.Services.PreprocessBuildJobTests ► RunAsync_UnknownLanguageTagsNoData

Failed test found in:
  src/Machine/test/Serval.Machine.Shared.Tests/TestResults/test-results.trx
Error:
    Expected: <System.InvalidOperationException>
    But was:  <System.ArgumentException: There must be at least one corpora. (Parameter 'corpora')
     at SIL.Machine.Corpora.NParallelTextCorpus..ctor(IEnumerable`1 corpora, IComparer`1 rowRefComparer)
     at SIL.Machine.Corpora.MergedTextCorpus..ctor(IEnumerable`1 corpora, MergeRule mergeRule, Nullable`1 seed)
     at SIL.Machine.Corpora.CorporaExtensions.ChooseRandom(IEnumerable`1 corpora, Nullable`1 seed)
     at SIL.ServiceToolkit.Services.ParallelCorpusPreprocessingService.Preprocess(IReadOnlyList`1 corpora, Action`1 train, Action`2 pretranslate, Boolean useKeyTerms) in /home/runner/work/serval/serval/src/ServiceToolkit/src/SIL.ServiceToolkit/Services/ParallelCorpusPreprocessingService.cs:line 93
     at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 110
     at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
     at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
     at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
     at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
     at Serval.Machine.Shared.Services.PreprocessBuildJob.DoWorkAsync(String engineId, String buildId, IReadOnlyList`1 data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 44
     at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 54
     at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 118
     at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 123
     at Serval.Machine.Shared.Services.PreprocessBuildJobTests.<>c__DisplayClass13_0.<<RunAsync_UnknownLanguageTagsNoData>b__0>d.MoveNext() in /home/runner/work/serval/serval/src/Machine/test/Serval.Machine.Shared.Tests/Services/PreprocessBuildJobTests.cs:line 243
  --- End of stack trace from previous location ---
     at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
     at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
     at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
     at NUnit.Framework.Assert.ThrowsAsync(IResolveConstraint expression, AsyncTestDelegate code, String message, Object[] args)>
  
Raw output
  Expected: <System.InvalidOperationException>
  But was:  <System.ArgumentException: There must be at least one corpora. (Parameter 'corpora')
   at SIL.Machine.Corpora.NParallelTextCorpus..ctor(IEnumerable`1 corpora, IComparer`1 rowRefComparer)
   at SIL.Machine.Corpora.MergedTextCorpus..ctor(IEnumerable`1 corpora, MergeRule mergeRule, Nullable`1 seed)
   at SIL.Machine.Corpora.CorporaExtensions.ChooseRandom(IEnumerable`1 corpora, Nullable`1 seed)
   at SIL.ServiceToolkit.Services.ParallelCorpusPreprocessingService.Preprocess(IReadOnlyList`1 corpora, Action`1 train, Action`2 pretranslate, Boolean useKeyTerms) in /home/runner/work/serval/serval/src/ServiceToolkit/src/SIL.ServiceToolkit/Services/ParallelCorpusPreprocessingService.cs:line 93
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 110
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.WriteDataFilesAsync(String buildId, IReadOnlyList`1 corpora, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 143
   at Serval.Machine.Shared.Services.PreprocessBuildJob.DoWorkAsync(String engineId, String buildId, IReadOnlyList`1 data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs:line 44
   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 54
   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 118
   at Serval.Machine.Shared.Services.HangfireBuildJob`1.RunAsync(String engineId, String buildId, T data, String buildOptions, CancellationToken cancellationToken) in /home/runner/work/serval/serval/src/Machine/src/Serval.Machine.Shared/Services/HangfireBuildJob.cs:line 123
   at Serval.Machine.Shared.Services.PreprocessBuildJobTests.<>c__DisplayClass13_0.<<RunAsync_UnknownLanguageTagsNoData>b__0>d.MoveNext() in /home/runner/work/serval/serval/src/Machine/test/Serval.Machine.Shared.Tests/Services/PreprocessBuildJobTests.cs:line 243
--- End of stack trace from previous location ---
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Assert.ThrowsAsync(IResolveConstraint expression, AsyncTestDelegate code, String message, Object[] args)>

   at Serval.Machine.Shared.Services.PreprocessBuildJobTests.RunAsync_UnknownLanguageTagsNoData() in /home/runner/work/serval/serval/src/Machine/test/Serval.Machine.Shared.Tests/Services/PreprocessBuildJobTests.cs:line 241

1)    at Serval.Machine.Shared.Services.PreprocessBuildJobTests.RunAsync_UnknownLanguageTagsNoData() in /home/runner/work/serval/serval/src/Machine/test/Serval.Machine.Shared.Tests/Services/PreprocessBuildJobTests.cs:line 241