Skip to content

RNET-1145, RNET-1143: Fix reading schema from native (#3601)

Sign in for the full log view
GitHub Actions / Results Xamarin.iOS failed May 21, 2024 in 1s

Results Xamarin.iOS ❌

Tests failed

❌ TestResults.iOS.xml

6074 tests were completed in 1481s with 6043 passed, 4 failed and 27 skipped.

Test suite Passed Failed Skipped Time
Realm.Tests.dll.Realms.Tests.Sync.StaticQueriesTests.RealmObjectAPI_Object_RealmToAtlas. 1❌ 2s
Realm.Tests.dll.Realms.Tests.Sync.SyncMigrationTests. 2✔️ 3❌ 5s

❌ Realm.Tests.dll.Realms.Tests.Sync.StaticQueriesTests.RealmObjectAPI_Object_RealmToAtlas.

Realms.Tests.Sync.StaticQueriesTests
  ❌ RealmObjectAPI_Object_RealmToAtlas(All values)
	Realms.Exceptions.RealmDuplicatePrimaryKeyValueException : A IntPropertyObject object already exists with primary key property _id == 'oid(664d11542d2eab2da8ebd16e)'

❌ Realm.Tests.dll.Realms.Tests.Sync.SyncMigrationTests.

Realms.Tests.Sync.SyncMigrationTests
  ✔️ Migration_FailsWithFutureVersion
  ❌ Model_CanMigratePropertyOptionality
	Realms.Sync.Exceptions.SessionException : Invalid schema change (UPLOAD): non-breaking schema change: adding schema for Realm table "Nullables", schema changes from clients are restricted when developer mode is disabled Logs: http://52.91.245.93:56485/groups/664d0a45c341a38c27ad1bfd/apps/664d0a57c341a38c27ad1d42/logs?co_id=664d16d2c341a38c27aee7c1
  ✔️ Model_CanRemoveField
  ❌ SameRealm_CanBeMigratedSkippingVersions
	Realms.Sync.Exceptions.SessionException : Invalid schema change (UPLOAD): non-breaking schema change: adding schema for Realm table "Nullables", schema changes from clients are restricted when developer mode is disabled Logs: http://52.91.245.93:56485/groups/664d0a45c341a38c27ad1bfd/apps/664d0a57c341a38c27ad1d42/logs?co_id=664d16d4c341a38c27aee87c
  ❌ SameRealm_CanBeMigratedThroughConsecutiveVersions
	Realms.Sync.Exceptions.SessionException : Invalid schema change (UPLOAD): non-breaking schema change: adding schema for Realm table "Nullables", schema changes from clients are restricted when developer mode is disabled Logs: http://52.91.245.93:56485/groups/664d0a45c341a38c27ad1bfd/apps/664d0a57c341a38c27ad1d42/logs?co_id=664d16d5c341a38c27aee8a2

Annotations

Check failure on line -1 in No path available

See this annotation in the file changed.

@github-actions github-actions / Results Xamarin.iOS

Realm.Tests.dll.Realms.Tests.Sync.StaticQueriesTests.RealmObjectAPI_Object_RealmToAtlas. ► Realms.Tests.Sync.StaticQueriesTests ► RealmObjectAPI_Object_RealmToAtlas(All values)

Failed test found in:
  TestResults.iOS.xml
Error:
  Realms.Exceptions.RealmDuplicatePrimaryKeyValueException : A IntPropertyObject object already exists with primary key property _id == 'oid(664d11542d2eab2da8ebd16e)'
Raw output
  at Realms.NativeException.ThrowIfNecessary () [0x0000f] in <8bbf24d750aa414c9c19ee32971921aa>:0 
  at Realms.SharedRealmHandle.CreateObjectWithPrimaryKey (Realms.Schema.Property pkProperty, Realms.RealmValue& primaryKey, Realms.Native.TableKey tableKey, System.String parentType, System.Boolean update, System.Boolean& isNew) [0x000aa] in <8bbf24d750aa414c9c19ee32971921aa>:0 
  at Realms.Realm.AddInternal[T] (T obj, System.Type objectType, System.Boolean update) [0x00081] in <8bbf24d750aa414c9c19ee32971921aa>:0 
  at Realms.Realm.Add[T] (T obj, System.Boolean update) [0x00041] in <8bbf24d750aa414c9c19ee32971921aa>:0 
  at Realms.Tests.SyncAllTypesObject.Realms.ISettableManagedAccessor.SetManagedAccessor (Realms.IRealmAccessor managedAccessor, Realms.Weaving.IRealmObjectHelper helper, System.Boolean update, System.Boolean skipDefaults) [0x0020e] in <eed506f298b342c6ac85aca3520a80e0>:0 
  at Realms.Extensions.RealmObjectExtensions.CreateAndSetAccessor (Realms.ISettableManagedAccessor iro, Realms.ObjectHandle handle, Realms.Realm realm, Realms.Metadata metadata, System.Boolean copyToRealm, System.Boolean update, System.Boolean skipDefaults) [0x0001e] in <8bbf24d750aa414c9c19ee32971921aa>:0 
  at Realms.Realm.AddInternal[T] (T obj, System.Type objectType, System.Boolean update) [0x000b1] in <8bbf24d750aa414c9c19ee32971921aa>:0 
  at Realms.Realm.Add[T] (T obj, System.Boolean update) [0x00041] in <8bbf24d750aa414c9c19ee32971921aa>:0 
  at Realms.Tests.Sync.StaticQueriesTests+<>c__DisplayClass17_1.<RealmObjectAPI_Object_RealmToAtlas>b__3 () [0x00000] in <eed506f298b342c6ac85aca3520a80e0>:0 
  at Realms.Realm.Write[T] (System.Func`1[TResult] function) [0x00018] in <8bbf24d750aa414c9c19ee32971921aa>:0 
  at Realms.Tests.Sync.StaticQueriesTests+<>c__DisplayClass17_0.<RealmObjectAPI_Object_RealmToAtlas>b__0 () [0x003ea] in <eed506f298b342c6ac85aca3520a80e0>:0 
  at TaskExtensions.Timeout (System.Threading.Tasks.Task task, System.Int32 millisecondTimeout, System.Threading.Tasks.Task errorTask, System.String detail) [0x00140] in <8bbf24d750aa414c9c19ee32971921aa>:0 
  at Realms.Tests.TestHelpers+<>c__DisplayClass34_0.<RunAsyncTest>b__0 () [0x00079] in <eed506f298b342c6ac85aca3520a80e0>:0 
  at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException (System.Threading.Tasks.Task task) [0x00015] in <a98182632eb245adb24e66ecaa8eeab5>:0 
  at Nito.AsyncEx.AsyncContext+<>c__DisplayClass15_0.<Run>b__0 (System.Threading.Tasks.Task t) [0x0000b] in <ae3f77a0cc84476faeb835e8b2bfa4c2>:0 
  at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke () [0x00024] in <ae4d2b2e1a52451bbb0fbe726a40b592>:0 
  at System.Threading.Tasks.Task.Execute () [0x00000] in <ae4d2b2e1a52451bbb0fbe726a40b592>: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 <a98182632eb245adb24e66ecaa8eeab5>:0 
  at Nito.AsyncEx.AsyncContext.Run (System.Func`1[TResult] action) [0x0006c] in <ae3f77a0cc84476faeb835e8b2bfa4c2>:0 
  at Realms.Tests.TestHelpers.RunAsyncTest (System.Func`1[TResult] testFunc, System.Int32 timeout, System.Threading.Tasks.Task errorTask) [0x00005] in <eed506f298b342c6ac85aca3520a80e0>:0 
  at Realms.Tests.Sync.SyncTestHelpers.RunBaasTestAsync (System.Func`1[TResult] testFunc, System.Int32 timeout) [0x00042] in <eed506f298b342c6ac85aca3520a80e0>:0 
  at Realms.Tests.Sync.StaticQueriesTests.RealmObjectAPI_Object_RealmToAtlas (Realms.Tests.TestHelpers+TestCaseData`1[T] testCase) [0x00005] in <eed506f298b342c6ac85aca3520a80e0>: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 <ae4d2b2e1a52451bbb0fbe726a40b592>:0 

Check failure on line -1 in No path available

See this annotation in the file changed.

@github-actions github-actions / Results Xamarin.iOS

Realm.Tests.dll.Realms.Tests.Sync.SyncMigrationTests. ► Realms.Tests.Sync.SyncMigrationTests ► Model_CanMigratePropertyOptionality

Failed test found in:
  TestResults.iOS.xml
Error:
  Realms.Sync.Exceptions.SessionException : Invalid schema change (UPLOAD): non-breaking schema change: adding schema for Realm table "Nullables", schema changes from clients are restricted when developer mode is disabled Logs: http://52.91.245.93:56485/groups/664d0a45c341a38c27ad1bfd/apps/664d0a57c341a38c27ad1d42/logs?co_id=664d16d2c341a38c27aee7c1
Raw output
  at Realms.Sync.SubscriptionSetHandle.WaitForStateChangeAsync (System.Nullable`1[T] cancellationToken) [0x00198] in <8bbf24d750aa414c9c19ee32971921aa>:0 
  at Realms.Tests.Sync.SyncTestBase.WaitForSubscriptionsAsync (Realms.Realm realm) [0x00078] in <eed506f298b342c6ac85aca3520a80e0>:0 
  at Realms.Tests.Sync.SyncMigrationTests.OpenRealm (MongoDB.Bson.ObjectId differentiator, System.Type schema, System.UInt64 schemaVersion) [0x0014d] in <eed506f298b342c6ac85aca3520a80e0>:0 
  at Realms.Tests.Sync.SyncMigrationTests.<Model_CanMigratePropertyOptionality>b__1_0 () [0x00116] in <eed506f298b342c6ac85aca3520a80e0>:0 
  at TaskExtensions.Timeout (System.Threading.Tasks.Task task, System.Int32 millisecondTimeout, System.Threading.Tasks.Task errorTask, System.String detail) [0x00140] in <8bbf24d750aa414c9c19ee32971921aa>:0 
  at Realms.Tests.TestHelpers+<>c__DisplayClass34_0.<RunAsyncTest>b__0 () [0x00079] in <eed506f298b342c6ac85aca3520a80e0>:0 
  at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException (System.Threading.Tasks.Task task) [0x00015] in <a98182632eb245adb24e66ecaa8eeab5>:0 
  at Nito.AsyncEx.AsyncContext+<>c__DisplayClass15_0.<Run>b__0 (System.Threading.Tasks.Task t) [0x0000b] in <ae3f77a0cc84476faeb835e8b2bfa4c2>:0 
  at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke () [0x00024] in <ae4d2b2e1a52451bbb0fbe726a40b592>:0 
  at System.Threading.Tasks.Task.Execute () [0x00000] in <ae4d2b2e1a52451bbb0fbe726a40b592>: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 <a98182632eb245adb24e66ecaa8eeab5>:0 
  at Nito.AsyncEx.AsyncContext.Run (System.Func`1[TResult] action) [0x0006c] in <ae3f77a0cc84476faeb835e8b2bfa4c2>:0 
  at Realms.Tests.TestHelpers.RunAsyncTest (System.Func`1[TResult] testFunc, System.Int32 timeout, System.Threading.Tasks.Task errorTask) [0x00005] in <eed506f298b342c6ac85aca3520a80e0>:0 
  at Realms.Tests.Sync.SyncTestHelpers.RunBaasTestAsync (System.Func`1[TResult] testFunc, System.Int32 timeout) [0x00042] in <eed506f298b342c6ac85aca3520a80e0>:0 
  at Realms.Tests.Sync.SyncMigrationTests.Model_CanMigratePropertyOptionality () [0x00000] in <eed506f298b342c6ac85aca3520a80e0>: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 <ae4d2b2e1a52451bbb0fbe726a40b592>:0 

Check failure on line -1 in No path available

See this annotation in the file changed.

@github-actions github-actions / Results Xamarin.iOS

Realm.Tests.dll.Realms.Tests.Sync.SyncMigrationTests. ► Realms.Tests.Sync.SyncMigrationTests ► SameRealm_CanBeMigratedSkippingVersions

Failed test found in:
  TestResults.iOS.xml
Error:
  Realms.Sync.Exceptions.SessionException : Invalid schema change (UPLOAD): non-breaking schema change: adding schema for Realm table "Nullables", schema changes from clients are restricted when developer mode is disabled Logs: http://52.91.245.93:56485/groups/664d0a45c341a38c27ad1bfd/apps/664d0a57c341a38c27ad1d42/logs?co_id=664d16d4c341a38c27aee87c
Raw output
  at Realms.Sync.SubscriptionSetHandle.WaitForStateChangeAsync (System.Nullable`1[T] cancellationToken) [0x00198] in <8bbf24d750aa414c9c19ee32971921aa>:0 
  at Realms.Tests.Sync.SyncTestBase.WaitForSubscriptionsAsync (Realms.Realm realm) [0x00078] in <eed506f298b342c6ac85aca3520a80e0>:0 
  at Realms.Tests.Sync.SyncMigrationTests.OpenRealm (MongoDB.Bson.ObjectId differentiator, System.Type schema, System.UInt64 schemaVersion) [0x0014d] in <eed506f298b342c6ac85aca3520a80e0>:0 
  at Realms.Tests.Sync.SyncMigrationTests.<SameRealm_CanBeMigratedSkippingVersions>b__5_0 () [0x000a1] in <eed506f298b342c6ac85aca3520a80e0>:0 
  at TaskExtensions.Timeout (System.Threading.Tasks.Task task, System.Int32 millisecondTimeout, System.Threading.Tasks.Task errorTask, System.String detail) [0x00140] in <8bbf24d750aa414c9c19ee32971921aa>:0 
  at Realms.Tests.TestHelpers+<>c__DisplayClass34_0.<RunAsyncTest>b__0 () [0x00079] in <eed506f298b342c6ac85aca3520a80e0>:0 
  at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException (System.Threading.Tasks.Task task) [0x00015] in <a98182632eb245adb24e66ecaa8eeab5>:0 
  at Nito.AsyncEx.AsyncContext+<>c__DisplayClass15_0.<Run>b__0 (System.Threading.Tasks.Task t) [0x0000b] in <ae3f77a0cc84476faeb835e8b2bfa4c2>:0 
  at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke () [0x00024] in <ae4d2b2e1a52451bbb0fbe726a40b592>:0 
  at System.Threading.Tasks.Task.Execute () [0x00000] in <ae4d2b2e1a52451bbb0fbe726a40b592>: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 <a98182632eb245adb24e66ecaa8eeab5>:0 
  at Nito.AsyncEx.AsyncContext.Run (System.Func`1[TResult] action) [0x0006c] in <ae3f77a0cc84476faeb835e8b2bfa4c2>:0 
  at Realms.Tests.TestHelpers.RunAsyncTest (System.Func`1[TResult] testFunc, System.Int32 timeout, System.Threading.Tasks.Task errorTask) [0x00005] in <eed506f298b342c6ac85aca3520a80e0>:0 
  at Realms.Tests.Sync.SyncTestHelpers.RunBaasTestAsync (System.Func`1[TResult] testFunc, System.Int32 timeout) [0x00042] in <eed506f298b342c6ac85aca3520a80e0>:0 
  at Realms.Tests.Sync.SyncMigrationTests.SameRealm_CanBeMigratedSkippingVersions () [0x00000] in <eed506f298b342c6ac85aca3520a80e0>: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 <ae4d2b2e1a52451bbb0fbe726a40b592>:0 

Check failure on line -1 in No path available

See this annotation in the file changed.

@github-actions github-actions / Results Xamarin.iOS

Realm.Tests.dll.Realms.Tests.Sync.SyncMigrationTests. ► Realms.Tests.Sync.SyncMigrationTests ► SameRealm_CanBeMigratedThroughConsecutiveVersions

Failed test found in:
  TestResults.iOS.xml
Error:
  Realms.Sync.Exceptions.SessionException : Invalid schema change (UPLOAD): non-breaking schema change: adding schema for Realm table "Nullables", schema changes from clients are restricted when developer mode is disabled Logs: http://52.91.245.93:56485/groups/664d0a45c341a38c27ad1bfd/apps/664d0a57c341a38c27ad1d42/logs?co_id=664d16d5c341a38c27aee8a2
Raw output
  at Realms.Sync.SubscriptionSetHandle.WaitForStateChangeAsync (System.Nullable`1[T] cancellationToken) [0x00198] in <8bbf24d750aa414c9c19ee32971921aa>:0 
  at Realms.Tests.Sync.SyncTestBase.WaitForSubscriptionsAsync (Realms.Realm realm) [0x00078] in <eed506f298b342c6ac85aca3520a80e0>:0 
  at Realms.Tests.Sync.SyncMigrationTests.OpenRealm (MongoDB.Bson.ObjectId differentiator, System.Type schema, System.UInt64 schemaVersion) [0x0014d] in <eed506f298b342c6ac85aca3520a80e0>:0 
  at Realms.Tests.Sync.SyncMigrationTests.<SameRealm_CanBeMigratedThroughConsecutiveVersions>b__4_0 () [0x000a9] in <eed506f298b342c6ac85aca3520a80e0>:0 
  at TaskExtensions.Timeout (System.Threading.Tasks.Task task, System.Int32 millisecondTimeout, System.Threading.Tasks.Task errorTask, System.String detail) [0x00140] in <8bbf24d750aa414c9c19ee32971921aa>:0 
  at Realms.Tests.TestHelpers+<>c__DisplayClass34_0.<RunAsyncTest>b__0 () [0x00079] in <eed506f298b342c6ac85aca3520a80e0>:0 
  at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException (System.Threading.Tasks.Task task) [0x00015] in <a98182632eb245adb24e66ecaa8eeab5>:0 
  at Nito.AsyncEx.AsyncContext+<>c__DisplayClass15_0.<Run>b__0 (System.Threading.Tasks.Task t) [0x0000b] in <ae3f77a0cc84476faeb835e8b2bfa4c2>:0 
  at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke () [0x00024] in <ae4d2b2e1a52451bbb0fbe726a40b592>:0 
  at System.Threading.Tasks.Task.Execute () [0x00000] in <ae4d2b2e1a52451bbb0fbe726a40b592>: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 <a98182632eb245adb24e66ecaa8eeab5>:0 
  at Nito.AsyncEx.AsyncContext.Run (System.Func`1[TResult] action) [0x0006c] in <ae3f77a0cc84476faeb835e8b2bfa4c2>:0 
  at Realms.Tests.TestHelpers.RunAsyncTest (System.Func`1[TResult] testFunc, System.Int32 timeout, System.Threading.Tasks.Task errorTask) [0x00005] in <eed506f298b342c6ac85aca3520a80e0>:0 
  at Realms.Tests.Sync.SyncTestHelpers.RunBaasTestAsync (System.Func`1[TResult] testFunc, System.Int32 timeout) [0x00042] in <eed506f298b342c6ac85aca3520a80e0>:0 
  at Realms.Tests.Sync.SyncMigrationTests.SameRealm_CanBeMigratedThroughConsecutiveVersions () [0x00000] in <eed506f298b342c6ac85aca3520a80e0>: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 <ae4d2b2e1a52451bbb0fbe726a40b592>:0