Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RNET-1134: Add obfuscation attribute on generated RealmSchema #3594

Merged
merged 4 commits into from
May 21, 2024

Merge branch 'main' into ni/obfuscation

b91e683
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

RNET-1134: Add obfuscation attribute on generated RealmSchema #3594

Merge branch 'main' into ni/obfuscation
b91e683
Select commit
Loading
Failed to load commit list.
GitHub Actions / Results Code Coverage failed May 21, 2024 in 0s

Results Code Coverage ❌

Tests failed

❌ TestResults.Linux.xml

6150 tests were completed in 1109s with 6123 passed, 5 failed and 22 skipped.

Test suite Passed Failed Skipped Time
Realm.Tests.dll.Realms.Tests.Sync.StaticQueriesTests.RealmObjectAPI_Links_AtlasToRealm. 4✔️ 1❌ 9s
Realm.Tests.dll.Realms.Tests.Sync.StaticQueriesTests.RealmObjectAPI_RealmValueLinks_AtlasToRealm. 4✔️ 1❌ 12s
Realm.Tests.dll.Realms.Tests.Sync.SyncMigrationTests. 2✔️ 3❌ 4s

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

Realms.Tests.Sync.StaticQueriesTests
  ✔️ RealmObjectAPI_Links_AtlasToRealm(Single link)
  ✔️ RealmObjectAPI_Links_AtlasToRealm(List)
  ❌ RealmObjectAPI_Links_AtlasToRealm(Dictionary)
	  Expected: not null
	  But was:  null
	
  ✔️ RealmObjectAPI_Links_AtlasToRealm(Set)
  ✔️ RealmObjectAPI_Links_AtlasToRealm(All types)

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

Realms.Tests.Sync.StaticQueriesTests
  ✔️ RealmObjectAPI_RealmValueLinks_AtlasToRealm(Single link)
  ✔️ RealmObjectAPI_RealmValueLinks_AtlasToRealm(List)
  ✔️ RealmObjectAPI_RealmValueLinks_AtlasToRealm(Dictionary)
  ❌ RealmObjectAPI_RealmValueLinks_AtlasToRealm(Set)
	  Expected: 100
	  But was:  0
	
  ✔️ RealmObjectAPI_RealmValueLinks_AtlasToRealm(All types)

❌ 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://18.204.23.227:57716/groups/664d1b697441cec9d765e7c0/apps/664d1b7c7441cec9d765e983/logs?co_id=664d26527441cec9d767bd12
  ✔️ 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://18.204.23.227:57716/groups/664d1b697441cec9d765e7c0/apps/664d1b7c7441cec9d765e983/logs?co_id=664d26547441cec9d767bdc9
  ❌ 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://18.204.23.227:57716/groups/664d1b697441cec9d765e7c0/apps/664d1b7c7441cec9d765e983/logs?co_id=664d26547441cec9d767bdf1

Annotations

Check failure on line -1 in No path available

See this annotation in the file changed.

@github-actions github-actions / Results Code Coverage

Realm.Tests.dll.Realms.Tests.Sync.StaticQueriesTests.RealmObjectAPI_Links_AtlasToRealm. ► Realms.Tests.Sync.StaticQueriesTests ► RealmObjectAPI_Links_AtlasToRealm(Dictionary)

Failed test found in:
  TestResults.Linux.xml
Error:
    Expected: not null
    But was:  null
  
Raw output
   at Realms.Tests.Sync.StaticQueriesTests.<RealmObjectAPI_Links_AtlasToRealm>g__AssertEqual|19_6(LinksObject retrieved, LinksObject original) in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Sync/StaticQueriesTests.cs:line 583
   at Realms.Tests.Sync.StaticQueriesTests.<>c__DisplayClass19_0.<<RealmObjectAPI_Links_AtlasToRealm>b__0>d.MoveNext() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Sync/StaticQueriesTests.cs:line 562
--- End of stack trace from previous location ---
   at TaskExtensions.Timeout(Task task, Int32 millisecondTimeout, Task errorTask, String detail) in /home/runner/work/realm-dotnet/realm-dotnet/Realm/Realm/Extensions/TaskExtensions.cs:line 69
   at Realms.Tests.TestHelpers.<>c__DisplayClass34_0.<<RunAsyncTest>b__0>d.MoveNext() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/TestHelpers.cs:line 300
--- End of stack trace from previous location ---
   at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task)

Check failure on line -1 in No path available

See this annotation in the file changed.

@github-actions github-actions / Results Code Coverage

Realm.Tests.dll.Realms.Tests.Sync.StaticQueriesTests.RealmObjectAPI_RealmValueLinks_AtlasToRealm. ► Realms.Tests.Sync.StaticQueriesTests ► RealmObjectAPI_RealmValueLinks_AtlasToRealm(Set)

Failed test found in:
  TestResults.Linux.xml
Error:
    Expected: 100
    But was:  0
  
Raw output
   at Realms.Tests.Sync.StaticQueriesTests.<RealmObjectAPI_RealmValueLinks_AtlasToRealm>g__AssertEqual|22_10(RealmValue retrieved, RealmValue original) in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Sync/StaticQueriesTests.cs:line 800
   at Realms.Tests.Sync.StaticQueriesTests.<>c__DisplayClass22_0.<<RealmObjectAPI_RealmValueLinks_AtlasToRealm>b__0>d.MoveNext() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Sync/StaticQueriesTests.cs:line 782
--- End of stack trace from previous location ---
   at TaskExtensions.Timeout(Task task, Int32 millisecondTimeout, Task errorTask, String detail) in /home/runner/work/realm-dotnet/realm-dotnet/Realm/Realm/Extensions/TaskExtensions.cs:line 69
   at Realms.Tests.TestHelpers.<>c__DisplayClass34_0.<<RunAsyncTest>b__0>d.MoveNext() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/TestHelpers.cs:line 300
--- End of stack trace from previous location ---
   at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task)

Check failure on line -1 in No path available

See this annotation in the file changed.

@github-actions github-actions / Results Code Coverage

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

Failed test found in:
  TestResults.Linux.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://18.204.23.227:57716/groups/664d1b697441cec9d765e7c0/apps/664d1b7c7441cec9d765e983/logs?co_id=664d26527441cec9d767bd12
Raw output
   at Realms.Sync.SubscriptionSetHandle.WaitForStateChangeAsync(Nullable`1 cancellationToken) in /home/runner/work/realm-dotnet/realm-dotnet/Realm/Realm/Handles/SubscriptionSetHandle.cs:line 288
   at Realms.Tests.Sync.SyncTestBase.WaitForSubscriptionsAsync(Realm realm) in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Sync/SyncTestBase.cs:line 97
   at Realms.Tests.Sync.SyncMigrationTests.OpenRealm(ObjectId differentiator, Type schema, UInt64 schemaVersion) in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Sync/SyncMigrationTests.cs:line 107
   at Realms.Tests.Sync.SyncMigrationTests.<Model_CanMigratePropertyOptionality>b__1_0() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Sync/SyncMigrationTests.cs:line 126
   at TaskExtensions.Timeout(Task task, Int32 millisecondTimeout, Task errorTask, String detail) in /home/runner/work/realm-dotnet/realm-dotnet/Realm/Realm/Extensions/TaskExtensions.cs:line 69
   at Realms.Tests.TestHelpers.<>c__DisplayClass34_0.<<RunAsyncTest>b__0>d.MoveNext() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/TestHelpers.cs:line 300
--- 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.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at Nito.AsyncEx.AsyncContext.Run(Func`1 action)
   at Realms.Tests.Sync.SyncTestHelpers.RunBaasTestAsync(Func`1 testFunc, Int32 timeout) in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Sync/SyncTestHelpers.cs:line 85
   at Realms.Tests.Sync.SyncMigrationTests.Model_CanMigratePropertyOptionality() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Sync/SyncMigrationTests.cs:line 115
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line -1 in No path available

See this annotation in the file changed.

@github-actions github-actions / Results Code Coverage

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

Failed test found in:
  TestResults.Linux.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://18.204.23.227:57716/groups/664d1b697441cec9d765e7c0/apps/664d1b7c7441cec9d765e983/logs?co_id=664d26547441cec9d767bdc9
Raw output
   at Realms.Sync.SubscriptionSetHandle.WaitForStateChangeAsync(Nullable`1 cancellationToken) in /home/runner/work/realm-dotnet/realm-dotnet/Realm/Realm/Handles/SubscriptionSetHandle.cs:line 288
   at Realms.Tests.Sync.SyncTestBase.WaitForSubscriptionsAsync(Realm realm) in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Sync/SyncTestBase.cs:line 97
   at Realms.Tests.Sync.SyncMigrationTests.OpenRealm(ObjectId differentiator, Type schema, UInt64 schemaVersion) in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Sync/SyncMigrationTests.cs:line 107
   at Realms.Tests.Sync.SyncMigrationTests.<SameRealm_CanBeMigratedSkippingVersions>b__5_0() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Sync/SyncMigrationTests.cs:line 335
   at TaskExtensions.Timeout(Task task, Int32 millisecondTimeout, Task errorTask, String detail) in /home/runner/work/realm-dotnet/realm-dotnet/Realm/Realm/Extensions/TaskExtensions.cs:line 69
   at Realms.Tests.TestHelpers.<>c__DisplayClass34_0.<<RunAsyncTest>b__0>d.MoveNext() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/TestHelpers.cs:line 300
--- 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.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at Nito.AsyncEx.AsyncContext.Run(Func`1 action)
   at Realms.Tests.Sync.SyncTestHelpers.RunBaasTestAsync(Func`1 testFunc, Int32 timeout) in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Sync/SyncTestHelpers.cs:line 85
   at Realms.Tests.Sync.SyncMigrationTests.SameRealm_CanBeMigratedSkippingVersions() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Sync/SyncMigrationTests.cs:line 332
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line -1 in No path available

See this annotation in the file changed.

@github-actions github-actions / Results Code Coverage

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

Failed test found in:
  TestResults.Linux.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://18.204.23.227:57716/groups/664d1b697441cec9d765e7c0/apps/664d1b7c7441cec9d765e983/logs?co_id=664d26547441cec9d767bdf1
Raw output
   at Realms.Sync.SubscriptionSetHandle.WaitForStateChangeAsync(Nullable`1 cancellationToken) in /home/runner/work/realm-dotnet/realm-dotnet/Realm/Realm/Handles/SubscriptionSetHandle.cs:line 288
   at Realms.Tests.Sync.SyncTestBase.WaitForSubscriptionsAsync(Realm realm) in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Sync/SyncTestBase.cs:line 97
   at Realms.Tests.Sync.SyncMigrationTests.OpenRealm(ObjectId differentiator, Type schema, UInt64 schemaVersion) in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Sync/SyncMigrationTests.cs:line 107
   at Realms.Tests.Sync.SyncMigrationTests.<SameRealm_CanBeMigratedThroughConsecutiveVersions>b__4_0() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Sync/SyncMigrationTests.cs:line 267
   at TaskExtensions.Timeout(Task task, Int32 millisecondTimeout, Task errorTask, String detail) in /home/runner/work/realm-dotnet/realm-dotnet/Realm/Realm/Extensions/TaskExtensions.cs:line 69
   at Realms.Tests.TestHelpers.<>c__DisplayClass34_0.<<RunAsyncTest>b__0>d.MoveNext() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/TestHelpers.cs:line 300
--- 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.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at Nito.AsyncEx.AsyncContext.Run(Func`1 action)
   at Realms.Tests.Sync.SyncTestHelpers.RunBaasTestAsync(Func`1 testFunc, Int32 timeout) in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Sync/SyncTestHelpers.cs:line 85
   at Realms.Tests.Sync.SyncMigrationTests.SameRealm_CanBeMigratedThroughConsecutiveVersions() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Sync/SyncMigrationTests.cs:line 264
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)