Skip to content

RNET-1159: Flexible-schema POC #292

RNET-1159: Flexible-schema POC

RNET-1159: Flexible-schema POC #292

GitHub Actions / Results Unity linux Mono-Net4 failed Jun 18, 2024 in 1s

5434 passed, 6 failed and 681 skipped

Tests failed

❌ TestResults.xml

6121 tests were completed in 187s with 5434 passed, 6 failed and 681 skipped.

Test suite Passed Failed Skipped Time
Tests.Unity.Realm.Tests.dll.Realms.Tests.Database.InstanceTests. 50✅ 2❌ 2⚪ 12s
Tests.Unity.Realm.Tests.dll.Realms.Tests.Database.InstanceTests.Compact_ShouldReduceSize. 2✅ 2❌ 699ms
Tests.Unity.Realm.Tests.dll.Realms.Tests.Sync.SynchronizedInstanceTests.Compact_ShouldReduceSize. 2✅ 2❌ 462ms

❌ Tests.Unity.Realm.Tests.dll.Realms.Tests.Database.InstanceTests.

Realms.Tests.Database.InstanceTests
  ✅ BeginWrite_CalledMultipleTimes_Throws
  ✅ Compact_WhenInTransaction_ShouldThrow
  ✅ Compact_WhenOpenOnDifferentThread_ShouldReturnFalse
  ✅ Compact_WhenOpenOnSameThread_ShouldReturnTrue
  ✅ Compact_WhenResultsAreOpen_ShouldReturnFalse
  ✅ Compact_WhenShouldDeleteIfMigrationNeeded_PreservesObjects
  ✅ DeleteRealmFailsIfOpenSameThread
  ✅ DeleteRealmWorksIfCalledMultipleTimes
  ✅ DeleteRealmWorksIfClosed
  ✅ DeleteRealmWorksIfFolderDoesntExist
  ✅ Dispose_WhenCalledMultipletimes_ShouldNotInvalidateOtherInstances
  ✅ Dispose_WhenOnDifferentThread_ShouldNotInvalidateOtherInstances
  ✅ Dispose_WhenOnTheSameThread_ShouldNotInvalidateOtherInstances
  ✅ Freeze_FreezesTheRealm
  ✅ FrozenRealm_CannotSubscribeForNotifications
  ✅ FrozenRealm_CannotWrite
  ✅ FrozenRealm_DoesntUpdate
  ✅ FrozenRealms_CanBeUsedAcrossThreads
  ⚪ FrozenRealms_GetGarbageCollected
  ✅ FrozenRealms_ReuseParentSchemaAndMetadata
  ✅ GetCachedInstancesSameThread
  ✅ GetInstance_WhenDynamic_ReadsSchemaFromDisk
  ✅ GetInstance_WhenDynamicAndDoesntExist_ReturnsEmptySchema
  ✅ GetInstance_WhenIsDynamic_AndOSSchemaHasEmptyTable_DoesntThrow
  ✅ GetInstance_WhenReadonly_TreatsAdditionalTablesAsEmpty
  ❌ GetInstance_WithManualSchema_CanReadAndWrite
	at Realms.Tests.Database.InstanceTests+<>c__DisplayClass49_0.<GetInstance_WithManualSchema_CanReadAndWrite>b__0 () [0x001dc] in <014c7a66568e4e5eacb760184e6f5904>:0
  ✅ GetInstance_WithMixOfManualAndTypedSchema_CanReadAndWrite
  ❌ GetInstance_WithTypedSchemaWithMissingProperties_ThrowsException
	at Realms.Tests.Database.InstanceTests.GetInstance_WithTypedSchemaWithMissingProperties_ThrowsException () [0x00082] in <014c7a66568e4e5eacb760184e6f5904>:0
  ✅ GetInstanceAsync_ExecutesMigrationsInBackground
  ✅ GetInstanceShouldThrowWithBadPath
  ✅ GetInstanceTest
  ✅ GetInstanceWithJustFilenameTest
  ✅ GetTwice_ReadOnlyInstance_DoesNotThrow
  ✅ GetUniqueInstancesDifferentThreads
  ✅ InstanceIsClosedByDispose
  ✅ InstancesHaveDifferentHashes
  ✅ IsInTransaction_WhenInvokedOnADifferentThread_Throws
  ✅ Logger_ChangeLevel_ReflectedImmediately
  ✅ ParallelOpen_DoesNotThrow
  ✅ ReadOnlyInstance_ThrowsOnRefresh
  ✅ Realm_Freeze_ReadOnly
  ✅ Realm_Freeze_WhenFrozen_ReturnsSameInstance
  ✅ Realm_HittingMaxNumberOfVersions_Throws
  ✅ RealmChangedShouldFireForEveryInstance
  ✅ RealmDispose_DisposesActiveTransaction
  ✅ RealmObjectClassesOnlyAllowRealmObjects
  ⚪ RealmState_GetsGarbageCollected
  ✅ RealmWithFrozenObjects_WhenDeleted_DoesNotThrow
  ✅ RealmWithOneClassThrowsIfUseOther
  ✅ RealmWithOneClassWritesDesiredClass
  ✅ Transaction_PerformAction_WhenDisposed_Throws
  ✅ TransactionStateIsCorrect
  ✅ TransactionStateIsCorrectAsync
  ✅ UsingDisposedRealm_ShouldThrowObjectDisposedException

❌ Tests.Unity.Realm.Tests.dll.Realms.Tests.Database.InstanceTests.Compact_ShouldReduceSize.

Realms.Tests.Database.InstanceTests
  ❌ Compact_ShouldReduceSize(True,True)
	at Realms.NativeException.ThrowIfNecessary () [0x0000f] in <c8ab468664db486da16535df7bd0fa43>:0
  ✅ Compact_ShouldReduceSize(False,True)
  ❌ Compact_ShouldReduceSize(True,False)
	at Realms.NativeException.ThrowIfNecessary () [0x0000f] in <c8ab468664db486da16535df7bd0fa43>:0
  ✅ Compact_ShouldReduceSize(False,False)

❌ Tests.Unity.Realm.Tests.dll.Realms.Tests.Sync.SynchronizedInstanceTests.Compact_ShouldReduceSize.

Realms.Tests.Sync.SynchronizedInstanceTests
  ❌ Compact_ShouldReduceSize(True,True)
	at Realms.NativeException.ThrowIfNecessary () [0x0000f] in <c8ab468664db486da16535df7bd0fa43>:0
  ❌ Compact_ShouldReduceSize(True,False)
	at Realms.NativeException.ThrowIfNecessary () [0x0000f] in <c8ab468664db486da16535df7bd0fa43>:0
  ✅ Compact_ShouldReduceSize(False,True)
  ✅ Compact_ShouldReduceSize(False,False)

Annotations

Check failure on line 0 in TestResults.xml

See this annotation in the file changed.

@github-actions github-actions / Results Unity linux Mono-Net4

Tests.Unity.Realm.Tests.dll.Realms.Tests.Database.InstanceTests. ► Realms.Tests.Database.InstanceTests ► GetInstance_WithManualSchema_CanReadAndWrite

Failed test found in:
  TestResults.xml
Error:
  at Realms.Tests.Database.InstanceTests+<>c__DisplayClass49_0.<GetInstance_WithManualSchema_CanReadAndWrite>b__0 () [0x001dc] in <014c7a66568e4e5eacb760184e6f5904>:0
Raw output
at Realms.Tests.Database.InstanceTests+<>c__DisplayClass49_0.<GetInstance_WithManualSchema_CanReadAndWrite>b__0 () [0x001dc] in <014c7a66568e4e5eacb760184e6f5904>:0
at Realms.Realm+<>c__DisplayClass68_0.<Write>b__0 () [0x00000] in <c8ab468664db486da16535df7bd0fa43>:0
at Realms.Realm.Write[T] (System.Func`1[TResult] function) [0x00018] in <c8ab468664db486da16535df7bd0fa43>:0
at Realms.Realm.Write (System.Action action) [0x0001d] in <c8ab468664db486da16535df7bd0fa43>:0
at Realms.Tests.Database.InstanceTests.GetInstance_WithManualSchema_CanReadAndWrite () [0x00141] in <014c7a66568e4e5eacb760184e6f5904>:0

Check failure on line 0 in TestResults.xml

See this annotation in the file changed.

@github-actions github-actions / Results Unity linux Mono-Net4

Tests.Unity.Realm.Tests.dll.Realms.Tests.Database.InstanceTests. ► Realms.Tests.Database.InstanceTests ► GetInstance_WithTypedSchemaWithMissingProperties_ThrowsException

Failed test found in:
  TestResults.xml
Error:
  at Realms.Tests.Database.InstanceTests.GetInstance_WithTypedSchemaWithMissingProperties_ThrowsException () [0x00082] in <014c7a66568e4e5eacb760184e6f5904>:0
Raw output
at Realms.Tests.Database.InstanceTests.GetInstance_WithTypedSchemaWithMissingProperties_ThrowsException () [0x00082] in <014c7a66568e4e5eacb760184e6f5904>:0

Check failure on line 0 in TestResults.xml

See this annotation in the file changed.

@github-actions github-actions / Results Unity linux Mono-Net4

Tests.Unity.Realm.Tests.dll.Realms.Tests.Database.InstanceTests.Compact_ShouldReduceSize. ► Realms.Tests.Database.InstanceTests ► Compact_ShouldReduceSize(True,True)

Failed test found in:
  TestResults.xml
Error:
    at Realms.NativeException.ThrowIfNecessary () [0x0000f] in <c8ab468664db486da16535df7bd0fa43>:0 
Raw output
  at Realms.NativeException.ThrowIfNecessary () [0x0000f] in <c8ab468664db486da16535df7bd0fa43>:0 
  at Realms.SharedRealmHandle.Compact () [0x00008] in <c8ab468664db486da16535df7bd0fa43>:0 
  at Realms.Realm.Compact (Realms.RealmConfigurationBase config) [0x0001b] in <c8ab468664db486da16535df7bd0fa43>:0 
  at Realms.Tests.Database.InstanceTests.Compact_ShouldReduceSize (System.Boolean encrypt, System.Boolean populate) [0x0004b] in <014c7a66568e4e5eacb760184e6f5904>:0 
  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <12d27ebfb46146b18b40876234894c77>:0 

Check failure on line 0 in TestResults.xml

See this annotation in the file changed.

@github-actions github-actions / Results Unity linux Mono-Net4

Tests.Unity.Realm.Tests.dll.Realms.Tests.Database.InstanceTests.Compact_ShouldReduceSize. ► Realms.Tests.Database.InstanceTests ► Compact_ShouldReduceSize(True,False)

Failed test found in:
  TestResults.xml
Error:
    at Realms.NativeException.ThrowIfNecessary () [0x0000f] in <c8ab468664db486da16535df7bd0fa43>:0 
Raw output
  at Realms.NativeException.ThrowIfNecessary () [0x0000f] in <c8ab468664db486da16535df7bd0fa43>:0 
  at Realms.SharedRealmHandle.Compact () [0x00008] in <c8ab468664db486da16535df7bd0fa43>:0 
  at Realms.Realm.Compact (Realms.RealmConfigurationBase config) [0x0001b] in <c8ab468664db486da16535df7bd0fa43>:0 
  at Realms.Tests.Database.InstanceTests.Compact_ShouldReduceSize (System.Boolean encrypt, System.Boolean populate) [0x0004b] in <014c7a66568e4e5eacb760184e6f5904>:0 
  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <12d27ebfb46146b18b40876234894c77>:0 

Check failure on line 0 in TestResults.xml

See this annotation in the file changed.

@github-actions github-actions / Results Unity linux Mono-Net4

Tests.Unity.Realm.Tests.dll.Realms.Tests.Sync.SynchronizedInstanceTests.Compact_ShouldReduceSize. ► Realms.Tests.Sync.SynchronizedInstanceTests ► Compact_ShouldReduceSize(True,True)

Failed test found in:
  TestResults.xml
Error:
    at Realms.NativeException.ThrowIfNecessary () [0x0000f] in <c8ab468664db486da16535df7bd0fa43>:0 
Raw output
  at Realms.NativeException.ThrowIfNecessary () [0x0000f] in <c8ab468664db486da16535df7bd0fa43>:0 
  at Realms.SharedRealmHandle.Compact () [0x00008] in <c8ab468664db486da16535df7bd0fa43>:0 
  at Realms.Realm.Compact (Realms.RealmConfigurationBase config) [0x0001b] in <c8ab468664db486da16535df7bd0fa43>:0 
  at Realms.Tests.Sync.SynchronizedInstanceTests+<>c__DisplayClass2_1.<Compact_ShouldReduceSize>b__1 () [0x00000] in <014c7a66568e4e5eacb760184e6f5904>:0 
  at Realms.Tests.TestHelpers+<>c__DisplayClass31_0`1[T].<WaitForConditionAsync>b__0 () [0x00000] in <014c7a66568e4e5eacb760184e6f5904>:0 
  at Realms.Tests.TestHelpers.WaitForConditionAsync[T] (System.Func`1[TResult] producer, System.Func`2[T,TResult] tester, System.Int32 retryDelay, System.Int32 attempts, System.String errorMessage) [0x00021] in <014c7a66568e4e5eacb760184e6f5904>:0 
  at Realms.Tests.Sync.SynchronizedInstanceTests+<>c__DisplayClass2_0.<Compact_ShouldReduceSize>b__0 () [0x0013e] in <014c7a66568e4e5eacb760184e6f5904>:0 
  at TaskExtensions.Timeout (System.Threading.Tasks.Task task, System.Int32 millisecondTimeout, System.Threading.Tasks.Task errorTask, System.String detail) [0x00140] in <c8ab468664db486da16535df7bd0fa43>:0 
  at Realms.Tests.TestHelpers+<>c__DisplayClass34_0.<RunAsyncTest>b__0 () [0x00079] in <014c7a66568e4e5eacb760184e6f5904>:0 
  at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException (System.Threading.Tasks.Task task) [0x00015] in <014c7a66568e4e5eacb760184e6f5904>:0 
  at Nito.AsyncEx.AsyncContext+<>c__DisplayClass15_0.<Run>b__0 (System.Threading.Tasks.Task t) [0x0000b] in <014c7a66568e4e5eacb760184e6f5904>:0 
  at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke () [0x00024] in <12d27ebfb46146b18b40876234894c77>:0 
  at System.Threading.Tasks.Task.Execute () [0x00000] in <12d27ebfb46146b18b40876234894c77>:0 
--- End of stack trace from previous location where exception was thrown ---

  at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException (System.Threading.Tasks.Task task) [0x00015] in <014c7a66568e4e5eacb760184e6f5904>:0 
  at Nito.AsyncEx.AsyncContext.Run (System.Func`1[TResult] action) [0x0006c] in <014c7a66568e4e5eacb760184e6f5904>:0 
  at Realms.Tests.TestHelpers.RunAsyncTest (System.Func`1[TResult] testFunc, System.Int32 timeout, System.Threading.Tasks.Task errorTask) [0x00005] in <014c7a66568e4e5eacb760184e6f5904>:0 
  at Realms.Tests.Sync.SynchronizedInstanceTests.Compact_ShouldReduceSize (System.Boolean encrypt, System.Boolean populate) [0x00005] in <014c7a66568e4e5eacb760184e6f5904>:0 
  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <12d27ebfb46146b18b40876234894c77>:0 

Check failure on line 0 in TestResults.xml

See this annotation in the file changed.

@github-actions github-actions / Results Unity linux Mono-Net4

Tests.Unity.Realm.Tests.dll.Realms.Tests.Sync.SynchronizedInstanceTests.Compact_ShouldReduceSize. ► Realms.Tests.Sync.SynchronizedInstanceTests ► Compact_ShouldReduceSize(True,False)

Failed test found in:
  TestResults.xml
Error:
    at Realms.NativeException.ThrowIfNecessary () [0x0000f] in <c8ab468664db486da16535df7bd0fa43>:0 
Raw output
  at Realms.NativeException.ThrowIfNecessary () [0x0000f] in <c8ab468664db486da16535df7bd0fa43>:0 
  at Realms.SharedRealmHandle.Compact () [0x00008] in <c8ab468664db486da16535df7bd0fa43>:0 
  at Realms.Realm.Compact (Realms.RealmConfigurationBase config) [0x0001b] in <c8ab468664db486da16535df7bd0fa43>:0 
  at Realms.Tests.Sync.SynchronizedInstanceTests+<>c__DisplayClass2_1.<Compact_ShouldReduceSize>b__1 () [0x00000] in <014c7a66568e4e5eacb760184e6f5904>:0 
  at Realms.Tests.TestHelpers+<>c__DisplayClass31_0`1[T].<WaitForConditionAsync>b__0 () [0x00000] in <014c7a66568e4e5eacb760184e6f5904>:0 
  at Realms.Tests.TestHelpers.WaitForConditionAsync[T] (System.Func`1[TResult] producer, System.Func`2[T,TResult] tester, System.Int32 retryDelay, System.Int32 attempts, System.String errorMessage) [0x00021] in <014c7a66568e4e5eacb760184e6f5904>:0 
  at Realms.Tests.Sync.SynchronizedInstanceTests+<>c__DisplayClass2_0.<Compact_ShouldReduceSize>b__0 () [0x0013e] in <014c7a66568e4e5eacb760184e6f5904>:0 
  at TaskExtensions.Timeout (System.Threading.Tasks.Task task, System.Int32 millisecondTimeout, System.Threading.Tasks.Task errorTask, System.String detail) [0x00140] in <c8ab468664db486da16535df7bd0fa43>:0 
  at Realms.Tests.TestHelpers+<>c__DisplayClass34_0.<RunAsyncTest>b__0 () [0x00079] in <014c7a66568e4e5eacb760184e6f5904>:0 
  at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException (System.Threading.Tasks.Task task) [0x00015] in <014c7a66568e4e5eacb760184e6f5904>:0 
  at Nito.AsyncEx.AsyncContext+<>c__DisplayClass15_0.<Run>b__0 (System.Threading.Tasks.Task t) [0x0000b] in <014c7a66568e4e5eacb760184e6f5904>:0 
  at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke () [0x00024] in <12d27ebfb46146b18b40876234894c77>:0 
  at System.Threading.Tasks.Task.Execute () [0x00000] in <12d27ebfb46146b18b40876234894c77>:0 
--- End of stack trace from previous location where exception was thrown ---

  at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException (System.Threading.Tasks.Task task) [0x00015] in <014c7a66568e4e5eacb760184e6f5904>:0 
  at Nito.AsyncEx.AsyncContext.Run (System.Func`1[TResult] action) [0x0006c] in <014c7a66568e4e5eacb760184e6f5904>:0 
  at Realms.Tests.TestHelpers.RunAsyncTest (System.Func`1[TResult] testFunc, System.Int32 timeout, System.Threading.Tasks.Task errorTask) [0x00005] in <014c7a66568e4e5eacb760184e6f5904>:0 
  at Realms.Tests.Sync.SynchronizedInstanceTests.Compact_ShouldReduceSize (System.Boolean encrypt, System.Boolean populate) [0x00005] in <014c7a66568e4e5eacb760184e6f5904>:0 
  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <12d27ebfb46146b18b40876234894c77>:0