Skip to content

Add test for syncing complex forms twice #435

Add test for syncing complex forms twice

Add test for syncing complex forms twice #435

Triggered via pull request November 22, 2024 09:00
Status Failure
Total duration 7m 57s
Artifacts

fw-lite.yaml

on: pull_request
Build FW Lite and run tests
7m 42s
Build FW Lite and run tests
Publish FW Lite app for Mac
0s
Publish FW Lite app for Mac
Publish FW Lite app for Linux
0s
Publish FW Lite app for Linux
Publish FW Lite app for Windows
0s
Publish FW Lite app for Windows
Create Release
0s
Create Release
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 13 warnings
FwLiteProjectSync.Tests.Sena3SyncTests.SecondSena3SyncDoesNothing
System.IO.InvalidDataException : Central Directory corrupt. ---- System.IO.IOException : An attempt was made to move the position before the beginning of the stream.
FwLiteProjectSync.Tests.Sena3SyncTests.FirstSena3SyncJustDoesAnImport
System.IO.InvalidDataException : Central Directory corrupt. ---- System.IO.IOException : An attempt was made to move the position before the beginning of the stream.
FwLiteProjectSync.Tests.SyncTests.CanSyncAnyEntryWithDeletedComplexForm
CommonServiceLocator.ActivationException : Activation error occurred while trying to get instance of type IDataSetup, key "" ---- StructureMap.Building.StructureMapBuildException : Error while building type SIL.LCModel.Infrastructure.Impl.LcmMetaDataCache. See the inner exception for details 1.) new LcmMetaDataCache() 2.) SIL.LCModel.Infrastructure.Impl.LcmMetaDataCache 3.) Instance of SIL.LCModel.Infrastructure.IFwMetaDataCacheManaged (SIL.LCModel.Infrastructure.Impl.LcmMetaDataCache) 4.) new IdentityMap(*Default of IFwMetaDataCacheManaged*) 5.) SIL.LCModel.Infrastructure.Impl.IdentityMap 6.) Instance of SIL.LCModel.Infrastructure.Impl.IdentityMap 7.) new MemoryOnlyBackendProvider(*Default of LcmCache*, *Default of IdentityMap*, *Default of ICmObjectSurrogateFactory*, *Default of IFwMetaDataCacheManagedInternal*, *Default of IDataMigrationManager*, *Default of ILcmUI*, *Default of ILcmDirectories*, *Default of LcmSettings*) 8.) SIL.LCModel.Infrastructure.Impl.MemoryOnlyBackendProvider 9.) Instance of SIL.LCModel.Infrastructure.IDataSetup (SIL.LCModel.Infrastructure.Impl.MemoryOnlyBackendProvider) 10.) Container.GetInstance(SIL.LCModel.Infrastructure.IDataSetup) -------- System.ArgumentException : An item with the same key has already been added. Key: CmFilter
FwLiteProjectSync.Tests.SyncTests.SyncFailsWithMismatchedProjectIds
CommonServiceLocator.ActivationException : Activation error occurred while trying to get instance of type IDataSetup, key "" ---- StructureMap.Building.StructureMapBuildException : Error while building type SIL.LCModel.Infrastructure.Impl.LcmMetaDataCache. See the inner exception for details 1.) new LcmMetaDataCache() 2.) SIL.LCModel.Infrastructure.Impl.LcmMetaDataCache 3.) Instance of SIL.LCModel.Infrastructure.IFwMetaDataCacheManaged (SIL.LCModel.Infrastructure.Impl.LcmMetaDataCache) 4.) new IdentityMap(*Default of IFwMetaDataCacheManaged*) 5.) SIL.LCModel.Infrastructure.Impl.IdentityMap 6.) Instance of SIL.LCModel.Infrastructure.Impl.IdentityMap 7.) new MemoryOnlyBackendProvider(*Default of LcmCache*, *Default of IdentityMap*, *Default of ICmObjectSurrogateFactory*, *Default of IFwMetaDataCacheManagedInternal*, *Default of IDataMigrationManager*, *Default of ILcmUI*, *Default of ILcmDirectories*, *Default of LcmSettings*) 8.) SIL.LCModel.Infrastructure.Impl.MemoryOnlyBackendProvider 9.) Instance of SIL.LCModel.Infrastructure.IDataSetup (SIL.LCModel.Infrastructure.Impl.MemoryOnlyBackendProvider) 10.) Container.GetInstance(SIL.LCModel.Infrastructure.IDataSetup) -------- System.ArgumentException : An item with the same key has already been added. Key: CmFilter
FwLiteProjectSync.Tests.SyncTests.CreatingAnEntryInEachProjectSyncsAcrossBoth
CommonServiceLocator.ActivationException : Activation error occurred while trying to get instance of type IDataSetup, key "" ---- StructureMap.Building.StructureMapBuildException : Error while building type SIL.LCModel.Infrastructure.Impl.LcmMetaDataCache. See the inner exception for details 1.) new LcmMetaDataCache() 2.) SIL.LCModel.Infrastructure.Impl.LcmMetaDataCache 3.) Instance of SIL.LCModel.Infrastructure.IFwMetaDataCacheManaged (SIL.LCModel.Infrastructure.Impl.LcmMetaDataCache) 4.) new IdentityMap(*Default of IFwMetaDataCacheManaged*) 5.) SIL.LCModel.Infrastructure.Impl.IdentityMap 6.) Instance of SIL.LCModel.Infrastructure.Impl.IdentityMap 7.) new MemoryOnlyBackendProvider(*Default of LcmCache*, *Default of IdentityMap*, *Default of ICmObjectSurrogateFactory*, *Default of IFwMetaDataCacheManagedInternal*, *Default of IDataMigrationManager*, *Default of ILcmUI*, *Default of ILcmDirectories*, *Default of LcmSettings*) 8.) SIL.LCModel.Infrastructure.Impl.MemoryOnlyBackendProvider 9.) Instance of SIL.LCModel.Infrastructure.IDataSetup (SIL.LCModel.Infrastructure.Impl.MemoryOnlyBackendProvider) 10.) Container.GetInstance(SIL.LCModel.Infrastructure.IDataSetup) -------- System.ArgumentException : An item with the same key has already been added. Key: CmFilter
FwLiteProjectSync.Tests.SyncTests.SemanticDomainsSyncInEntries
CommonServiceLocator.ActivationException : Activation error occurred while trying to get instance of type IDataSetup, key "" ---- StructureMap.Building.StructureMapBuildException : Error while building type SIL.LCModel.Infrastructure.Impl.LcmMetaDataCache. See the inner exception for details 1.) new LcmMetaDataCache() 2.) SIL.LCModel.Infrastructure.Impl.LcmMetaDataCache 3.) Instance of SIL.LCModel.Infrastructure.IFwMetaDataCacheManaged (SIL.LCModel.Infrastructure.Impl.LcmMetaDataCache) 4.) new IdentityMap(*Default of IFwMetaDataCacheManaged*) 5.) SIL.LCModel.Infrastructure.Impl.IdentityMap 6.) Instance of SIL.LCModel.Infrastructure.Impl.IdentityMap 7.) new MemoryOnlyBackendProvider(*Default of LcmCache*, *Default of IdentityMap*, *Default of ICmObjectSurrogateFactory*, *Default of IFwMetaDataCacheManagedInternal*, *Default of IDataMigrationManager*, *Default of ILcmUI*, *Default of ILcmDirectories*, *Default of LcmSettings*) 8.) SIL.LCModel.Infrastructure.Impl.MemoryOnlyBackendProvider 9.) Instance of SIL.LCModel.Infrastructure.IDataSetup (SIL.LCModel.Infrastructure.Impl.MemoryOnlyBackendProvider) 10.) Container.GetInstance(SIL.LCModel.Infrastructure.IDataSetup) -------- System.ArgumentException : An item with the same key has already been added. Key: CmFilter
FwLiteProjectSync.Tests.SyncTests.SemanticDomainsSyncBothWays
CommonServiceLocator.ActivationException : Activation error occurred while trying to get instance of type IDataSetup, key "" ---- StructureMap.Building.StructureMapBuildException : Error while building type SIL.LCModel.Infrastructure.Impl.LcmMetaDataCache. See the inner exception for details 1.) new LcmMetaDataCache() 2.) SIL.LCModel.Infrastructure.Impl.LcmMetaDataCache 3.) Instance of SIL.LCModel.Infrastructure.IFwMetaDataCacheManaged (SIL.LCModel.Infrastructure.Impl.LcmMetaDataCache) 4.) new IdentityMap(*Default of IFwMetaDataCacheManaged*) 5.) SIL.LCModel.Infrastructure.Impl.IdentityMap 6.) Instance of SIL.LCModel.Infrastructure.Impl.IdentityMap 7.) new MemoryOnlyBackendProvider(*Default of LcmCache*, *Default of IdentityMap*, *Default of ICmObjectSurrogateFactory*, *Default of IFwMetaDataCacheManagedInternal*, *Default of IDataMigrationManager*, *Default of ILcmUI*, *Default of ILcmDirectories*, *Default of LcmSettings*) 8.) SIL.LCModel.Infrastructure.Impl.MemoryOnlyBackendProvider 9.) Instance of SIL.LCModel.Infrastructure.IDataSetup (SIL.LCModel.Infrastructure.Impl.MemoryOnlyBackendProvider) 10.) Container.GetInstance(SIL.LCModel.Infrastructure.IDataSetup) -------- System.ArgumentException : An item with the same key has already been added. Key: CmFilter
FwLiteProjectSync.Tests.SyncTests.FirstSyncJustDoesAnImport
CommonServiceLocator.ActivationException : Activation error occurred while trying to get instance of type IDataSetup, key "" ---- StructureMap.Building.StructureMapBuildException : Error while building type SIL.LCModel.Infrastructure.Impl.LcmMetaDataCache. See the inner exception for details 1.) new LcmMetaDataCache() 2.) SIL.LCModel.Infrastructure.Impl.LcmMetaDataCache 3.) Instance of SIL.LCModel.Infrastructure.IFwMetaDataCacheManaged (SIL.LCModel.Infrastructure.Impl.LcmMetaDataCache) 4.) new IdentityMap(*Default of IFwMetaDataCacheManaged*) 5.) SIL.LCModel.Infrastructure.Impl.IdentityMap 6.) Instance of SIL.LCModel.Infrastructure.Impl.IdentityMap 7.) new MemoryOnlyBackendProvider(*Default of LcmCache*, *Default of IdentityMap*, *Default of ICmObjectSurrogateFactory*, *Default of IFwMetaDataCacheManagedInternal*, *Default of IDataMigrationManager*, *Default of ILcmUI*, *Default of ILcmDirectories*, *Default of LcmSettings*) 8.) SIL.LCModel.Infrastructure.Impl.MemoryOnlyBackendProvider 9.) Instance of SIL.LCModel.Infrastructure.IDataSetup (SIL.LCModel.Infrastructure.Impl.MemoryOnlyBackendProvider) 10.) Container.GetInstance(SIL.LCModel.Infrastructure.IDataSetup) -------- System.ArgumentException : An item with the same key has already been added. Key: CmFilter
FwLiteProjectSync.Tests.SyncTests.UpdatingAnEntryInEachProjectSyncsAcrossBoth
CommonServiceLocator.ActivationException : Activation error occurred while trying to get instance of type IDataSetup, key "" ---- StructureMap.Building.StructureMapBuildException : Error while building type SIL.LCModel.Infrastructure.Impl.LcmMetaDataCache. See the inner exception for details 1.) new LcmMetaDataCache() 2.) SIL.LCModel.Infrastructure.Impl.LcmMetaDataCache 3.) Instance of SIL.LCModel.Infrastructure.IFwMetaDataCacheManaged (SIL.LCModel.Infrastructure.Impl.LcmMetaDataCache) 4.) new IdentityMap(*Default of IFwMetaDataCacheManaged*) 5.) SIL.LCModel.Infrastructure.Impl.IdentityMap 6.) Instance of SIL.LCModel.Infrastructure.Impl.IdentityMap 7.) new MemoryOnlyBackendProvider(*Default of LcmCache*, *Default of IdentityMap*, *Default of ICmObjectSurrogateFactory*, *Default of IFwMetaDataCacheManagedInternal*, *Default of IDataMigrationManager*, *Default of ILcmUI*, *Default of ILcmDirectories*, *Default of LcmSettings*) 8.) SIL.LCModel.Infrastructure.Impl.MemoryOnlyBackendProvider 9.) Instance of SIL.LCModel.Infrastructure.IDataSetup (SIL.LCModel.Infrastructure.Impl.MemoryOnlyBackendProvider) 10.) Container.GetInstance(SIL.LCModel.Infrastructure.IDataSetup) -------- System.ArgumentException : An item with the same key has already been added. Key: CmFilter
FwLiteProjectSync.Tests.SyncTests.AddingASenseToAnEntryInEachProjectSyncsAcrossBoth
CommonServiceLocator.ActivationException : Activation error occurred while trying to get instance of type IDataSetup, key "" ---- StructureMap.Building.StructureMapBuildException : Error while building type SIL.LCModel.Infrastructure.Impl.LcmMetaDataCache. See the inner exception for details 1.) new LcmMetaDataCache() 2.) SIL.LCModel.Infrastructure.Impl.LcmMetaDataCache 3.) Instance of SIL.LCModel.Infrastructure.IFwMetaDataCacheManaged (SIL.LCModel.Infrastructure.Impl.LcmMetaDataCache) 4.) new IdentityMap(*Default of IFwMetaDataCacheManaged*) 5.) SIL.LCModel.Infrastructure.Impl.IdentityMap 6.) Instance of SIL.LCModel.Infrastructure.Impl.IdentityMap 7.) new MemoryOnlyBackendProvider(*Default of LcmCache*, *Default of IdentityMap*, *Default of ICmObjectSurrogateFactory*, *Default of IFwMetaDataCacheManagedInternal*, *Default of IDataMigrationManager*, *Default of ILcmUI*, *Default of ILcmDirectories*, *Default of LcmSettings*) 8.) SIL.LCModel.Infrastructure.Impl.MemoryOnlyBackendProvider 9.) Instance of SIL.LCModel.Infrastructure.IDataSetup (SIL.LCModel.Infrastructure.Impl.MemoryOnlyBackendProvider) 10.) Container.GetInstance(SIL.LCModel.Infrastructure.IDataSetup) -------- System.ArgumentException : An item with the same key has already been added. Key: CmFilter
Build FW Lite and run tests: backend/FwLite/FwDataMiniLcmBridge/LcmUtils/LcmThreadedProgress.cs#L10
The event 'LcmThreadedProgress.Canceling' is never used
Build FW Lite and run tests: backend/FwLite/FwDataMiniLcmBridge/Api/UpdateProxy/UpdateSenseProxy.cs#L121
Observe the awaitable result of this method call by awaiting it, assigning to a variable, or passing it to another method (https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD110.md)
Build FW Lite and run tests: backend/FwLite/FwDataMiniLcmBridge/Api/UpdateProxy/UpdateEntryProxy.cs#L53
Observe the awaitable result of this method call by awaiting it, assigning to a variable, or passing it to another method (https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD110.md)
Build FW Lite and run tests: backend/FwLite/LcmCrdt/CrdtMiniLcmApi.cs#L16
Parameter 'dbContext' is unread.
Build FW Lite and run tests: backend/FwLite/LcmCrdt/Changes/RemoveSemanticDomainChange.cs#L11
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
Build FW Lite and run tests: backend/FwLite/LcmCrdt/RemoteSync/CrdtHttpSyncService.cs#L53
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
Build FW Lite and run tests: backend/FwLite/LcmCrdt/CrdtMiniLcmApi.cs#L308
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
Build FW Lite and run tests: backend/FwLite/FwLiteProjectSync/DryRunMiniLcmApi.cs#L30
The switch expression does not handle some values of its input type (it is not exhaustive) involving an unnamed enum value. For example, the pattern '(MiniLcm.Models.WritingSystemType)2' is not covered.
Build FW Lite and run tests: backend/FwLite/LocalWebApp/Routes/HistoryRoutes.cs#L45
The result of the expression is always 'true' since a value of type 'Guid' is never equal to 'null' of type 'Guid?'
Build FW Lite and run tests: backend/FwLite/FwDataMiniLcmBridge.Tests/Fixtures/MockFwProjectList.cs#L6
Parameter 'IOptions<FwDataBridgeConfig> config' is captured into the state of the enclosing type and its value is also passed to the base constructor. The value might be captured by the base class as well.
Build FW Lite and run tests: backend/FwLite/FwLiteProjectSync.Tests/Sena3SyncTests.cs#L17
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
Build FW Lite and run tests: backend/FwLite/FwLiteProjectSync.Tests/Sena3SyncTests.cs#L21
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.