Skip to content

RNET-1159: Flexible-schema POC #292

RNET-1159: Flexible-schema POC

RNET-1159: Flexible-schema POC #292

GitHub Actions / Results net6.0, osx-x64 failed Jun 18, 2024 in 0s

5509 passed, 6 failed and 637 skipped

Tests failed

❌ TestResults.xml

6152 tests were completed in 430s with 5509 passed, 6 failed and 637 skipped.

Test suite Passed Failed Skipped Time
Realm.Tests.dll.Realms.Tests.Database.InstanceTests. 52✅ 2❌ 9s
Realm.Tests.dll.Realms.Tests.Database.InstanceTests.Compact_ShouldReduceSize. 2✅ 2❌ 4s
Realm.Tests.dll.Realms.Tests.Sync.SynchronizedInstanceTests.Compact_ShouldReduceSize. 2✅ 2❌ 2s

❌ 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() in /Users/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Database/InstanceTests.cs:line 1117
  ✅ GetInstance_WithMixOfManualAndTypedSchema_CanReadAndWrite
  ❌ GetInstance_WithTypedSchemaWithMissingProperties_ThrowsException
	at Realms.Tests.Database.InstanceTests.GetInstance_WithTypedSchemaWithMissingProperties_ThrowsException() in /Users/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Database/InstanceTests.cs:line 1219
  ✅ 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

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

Realms.Tests.Database.InstanceTests
  ✅ Compact_ShouldReduceSize(False,True)
  ✅ Compact_ShouldReduceSize(False,False)
  ❌ Compact_ShouldReduceSize(True,True)
	at Realms.RealmConfiguration.CreateHandle(Configuration& configuration)
  ❌ Compact_ShouldReduceSize(True,False)
	at Realms.RealmConfiguration.CreateHandle(Configuration& configuration)

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

Realms.Tests.Sync.SynchronizedInstanceTests
  ❌ Compact_ShouldReduceSize(True,True)
	at Realms.Sync.SyncConfigurationBase.CreateHandle(Configuration& configuration)
  ❌ Compact_ShouldReduceSize(True,False)
	at Realms.Sync.SyncConfigurationBase.CreateHandle(Configuration& configuration)
  ✅ 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 net6.0, osx-x64

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() in /Users/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Database/InstanceTests.cs:line 1117
Raw output
   at Realms.Tests.Database.InstanceTests.<>c__DisplayClass49_0.<GetInstance_WithManualSchema_CanReadAndWrite>b__0() in /Users/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Database/InstanceTests.cs:line 1117
   at Realms.Realm.<>c__DisplayClass68_0.<Write>b__0()
   at Realms.Realm.Write[T](Func`1 function)
   at Realms.Realm.Write(Action action)
   at Realms.Tests.Database.InstanceTests.GetInstance_WithManualSchema_CanReadAndWrite() in /Users/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Database/InstanceTests.cs:line 1098

Check failure on line 0 in TestResults.xml

See this annotation in the file changed.

@github-actions github-actions / Results net6.0, osx-x64

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() in /Users/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Database/InstanceTests.cs:line 1219
Raw output
   at Realms.Tests.Database.InstanceTests.GetInstance_WithTypedSchemaWithMissingProperties_ThrowsException() in /Users/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Database/InstanceTests.cs:line 1219

Check failure on line 0 in TestResults.xml

See this annotation in the file changed.

@github-actions github-actions / Results net6.0, osx-x64

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.RealmConfiguration.CreateHandle(Configuration& configuration)
Raw output
   at Realms.RealmConfiguration.CreateHandle(Configuration& configuration)
   at Realms.RealmConfigurationBase.CreateRealm()
   at Realms.Tests.RealmTest.GetRealm(RealmConfigurationBase config) in /Users/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/RealmTest.cs:line 143
   at Realms.Tests.Database.InstanceTests.Compact_ShouldReduceSize(Boolean encrypt, Boolean populate) in /Users/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Database/InstanceTests.cs:line 350

Check failure on line 0 in TestResults.xml

See this annotation in the file changed.

@github-actions github-actions / Results net6.0, osx-x64

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.RealmConfiguration.CreateHandle(Configuration& configuration)
Raw output
   at Realms.RealmConfiguration.CreateHandle(Configuration& configuration)
   at Realms.RealmConfigurationBase.CreateRealm()
   at Realms.Tests.RealmTest.GetRealm(RealmConfigurationBase config) in /Users/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/RealmTest.cs:line 143
   at Realms.Tests.Database.InstanceTests.Compact_ShouldReduceSize(Boolean encrypt, Boolean populate) in /Users/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Database/InstanceTests.cs:line 350

Check failure on line 0 in TestResults.xml

See this annotation in the file changed.

@github-actions github-actions / Results net6.0, osx-x64

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.Sync.SyncConfigurationBase.CreateHandle(Configuration& configuration)
Raw output
   at Realms.Sync.SyncConfigurationBase.CreateHandle(Configuration& configuration)
   at Realms.RealmConfigurationBase.CreateRealm()
   at Realms.Tests.RealmTest.GetRealm(RealmConfigurationBase config) in /Users/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/RealmTest.cs:line 143
   at Realms.Tests.Sync.SynchronizedInstanceTests.<>c__DisplayClass2_0.<<Compact_ShouldReduceSize>b__0>d.MoveNext() in /Users/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Sync/SynchronizedInstanceTests.cs:line 72
--- End of stack trace from previous location ---
   at TaskExtensions.Timeout(Task task, Int32 millisecondTimeout, Task errorTask, String detail)
   at Realms.Tests.TestHelpers.<>c__DisplayClass34_0.<<RunAsyncTest>b__0>d.MoveNext() in /Users/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/TestHelpers.cs:line 301
--- End of stack trace from previous location ---
   at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task)
   at Nito.AsyncEx.AsyncContext.Run(Func`1 action)
   at Realms.Tests.Sync.SynchronizedInstanceTests.Compact_ShouldReduceSize(Boolean encrypt, Boolean populate) in /Users/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Sync/SynchronizedInstanceTests.cs:line 45

Check failure on line 0 in TestResults.xml

See this annotation in the file changed.

@github-actions github-actions / Results net6.0, osx-x64

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.Sync.SyncConfigurationBase.CreateHandle(Configuration& configuration)
Raw output
   at Realms.Sync.SyncConfigurationBase.CreateHandle(Configuration& configuration)
   at Realms.RealmConfigurationBase.CreateRealm()
   at Realms.Tests.RealmTest.GetRealm(RealmConfigurationBase config) in /Users/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/RealmTest.cs:line 143
   at Realms.Tests.Sync.SynchronizedInstanceTests.<>c__DisplayClass2_0.<<Compact_ShouldReduceSize>b__0>d.MoveNext() in /Users/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Sync/SynchronizedInstanceTests.cs:line 72
--- End of stack trace from previous location ---
   at TaskExtensions.Timeout(Task task, Int32 millisecondTimeout, Task errorTask, String detail)
   at Realms.Tests.TestHelpers.<>c__DisplayClass34_0.<<RunAsyncTest>b__0>d.MoveNext() in /Users/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/TestHelpers.cs:line 301
--- End of stack trace from previous location ---
   at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task)
   at Nito.AsyncEx.AsyncContext.Run(Func`1 action)
   at Realms.Tests.Sync.SynchronizedInstanceTests.Compact_ShouldReduceSize(Boolean encrypt, Boolean populate) in /Users/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Sync/SynchronizedInstanceTests.cs:line 45