You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by pt...@apache.org on 2025/12/24 12:45:31 UTC

(ignite-3) branch ignite-27278 updated (4697d305a03 -> 741c2a896c5)

This is an automated email from the ASF dual-hosted git repository.

ptupitsyn pushed a change to branch ignite-27278
in repository https://gitbox.apache.org/repos/asf/ignite-3.git


    from 4697d305a03 cleanup
     new fddad9c24b1 wip AOT tests
     new 741c2a896c5 wip AOT tests: TestColocatedPoco

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../Apache.Ignite.Tests.Aot/Compute/ComputeTests.cs | 21 ++++++++++++++++++---
 1 file changed, 18 insertions(+), 3 deletions(-)


(ignite-3) 01/02: wip AOT tests

Posted by pt...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ptupitsyn pushed a commit to branch ignite-27278
in repository https://gitbox.apache.org/repos/asf/ignite-3.git

commit fddad9c24b172682b254e3c53acec6200c921c30
Author: Pavel Tupitsyn <pt...@apache.org>
AuthorDate: Wed Dec 24 14:42:58 2025 +0200

    wip AOT tests
---
 .../platforms/dotnet/Apache.Ignite.Tests.Aot/Compute/ComputeTests.cs    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/platforms/dotnet/Apache.Ignite.Tests.Aot/Compute/ComputeTests.cs b/modules/platforms/dotnet/Apache.Ignite.Tests.Aot/Compute/ComputeTests.cs
index e83c8267821..bda39ea0ce3 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Tests.Aot/Compute/ComputeTests.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Tests.Aot/Compute/ComputeTests.cs
@@ -58,7 +58,7 @@ public class ComputeTests(IIgniteClient client)
         }
         catch (InvalidOperationException e)
         {
-            Assert.AreEqual("Colocated job target requires an IIgniteTuple key when running in trimmed AOT mode.", e.Message);
+            Assert.AreEqual("Use JobTarget.Colocated overload with IMapper<T>.", e.Message);
         }
     }
 


(ignite-3) 02/02: wip AOT tests: TestColocatedPoco

Posted by pt...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ptupitsyn pushed a commit to branch ignite-27278
in repository https://gitbox.apache.org/repos/asf/ignite-3.git

commit 741c2a896c5304b9ffa0ce56112fb9e1e59a9562
Author: Pavel Tupitsyn <pt...@apache.org>
AuthorDate: Wed Dec 24 14:45:22 2025 +0200

    wip AOT tests: TestColocatedPoco
---
 .../Apache.Ignite.Tests.Aot/Compute/ComputeTests.cs   | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

diff --git a/modules/platforms/dotnet/Apache.Ignite.Tests.Aot/Compute/ComputeTests.cs b/modules/platforms/dotnet/Apache.Ignite.Tests.Aot/Compute/ComputeTests.cs
index bda39ea0ce3..a971338ff84 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Tests.Aot/Compute/ComputeTests.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Tests.Aot/Compute/ComputeTests.cs
@@ -18,6 +18,7 @@
 namespace Apache.Ignite.Tests.Aot.Compute;
 
 using Common.Compute;
+using Common.Table;
 using Ignite.Compute;
 using Ignite.Table;
 using JetBrains.Annotations;
@@ -42,7 +43,20 @@ public class ComputeTests(IIgniteClient client)
     {
         var keyTuple = new IgniteTuple { [KeyCol] = 42L };
 
-        IJobExecution<string> exec = await client.Compute.SubmitAsync(JobTarget.Colocated(TableName, keyTuple), JavaJobs.NodeNameJob, null);
+        IJobTarget<IgniteTuple> jobTarget = JobTarget.Colocated(TableName, keyTuple);
+        IJobExecution<string> exec = await client.Compute.SubmitAsync(jobTarget, JavaJobs.NodeNameJob, null);
+        var res = await exec.GetResultAsync();
+
+        Assert.AreEqual(JavaJobs.PlatformTestNodeRunner, res);
+    }
+
+    [UsedImplicitly]
+    public async Task TestColocatedPoco()
+    {
+        var key = new Poco { Key = 42L };
+
+        IJobTarget<Poco> jobTarget = JobTarget.Colocated(TableName, key, new PocoMapper());
+        IJobExecution<string> exec = await client.Compute.SubmitAsync(jobTarget, JavaJobs.NodeNameJob, null);
         var res = await exec.GetResultAsync();
 
         Assert.AreEqual(JavaJobs.PlatformTestNodeRunner, res);
@@ -53,7 +67,8 @@ public class ComputeTests(IIgniteClient client)
     {
         try
         {
-            await client.Compute.SubmitAsync(JobTarget.Colocated(TableName, 42L), JavaJobs.NodeNameJob, null);
+            IJobTarget<long> jobTarget = JobTarget.Colocated(TableName, 42L);
+            await client.Compute.SubmitAsync(jobTarget, JavaJobs.NodeNameJob, null);
             throw new Exception("Expected exception was not thrown.");
         }
         catch (InvalidOperationException e)