From e6366a071262b60652b9fe2d32045fbb64e5c86a Mon Sep 17 00:00:00 2001 From: "OpenGenesis (MPL 2.0)" <153564363+opengenesislink@users.noreply.github.com> Date: Thu, 1 Oct 2026 00:22:24 +0200 Subject: [PATCH] NEXJAST: runtime-regress LSL XML-RPC RemoteData core --- .github/workflows/nexjast-ci.yml | 4 ++ doc/NexVerse/ROADMAP.md | 3 +- .../ci/XmlRpcRemoteDataRegression/Program.cs | 64 +++++++++++++++++++ .../XmlRpcRemoteDataRegression.csproj | 28 ++++++++ 4 files changed, 98 insertions(+), 1 deletion(-) create mode 100644 tools/ci/XmlRpcRemoteDataRegression/Program.cs create mode 100644 tools/ci/XmlRpcRemoteDataRegression/XmlRpcRemoteDataRegression.csproj diff --git a/.github/workflows/nexjast-ci.yml b/.github/workflows/nexjast-ci.yml index 3f3918d8..13a49518 100644 --- a/.github/workflows/nexjast-ci.yml +++ b/.github/workflows/nexjast-ci.yml @@ -117,6 +117,10 @@ jobs: test -f bin/NexVerse.Server.Api.dll test -f bin/NexVerse.RegionModules.dll + - name: Runtime regression LSL XML-RPC RemoteData compatibility + shell: bash + run: dotnet run --configuration Release --project tools/ci/XmlRpcRemoteDataRegression/XmlRpcRemoteDataRegression.csproj + - name: Verify NexVerse version shell: bash run: | diff --git a/doc/NexVerse/ROADMAP.md b/doc/NexVerse/ROADMAP.md index 2945172d..b66cc277 100644 --- a/doc/NexVerse/ROADMAP.md +++ b/doc/NexVerse/ROADMAP.md @@ -265,7 +265,8 @@ Implemented during NEXJAST: - [ ] local grid login remains functional through successful simulator placement. - [x] Firestorm-compatible LLLogin XML-RPC endpoint is runtime smoke-tested with a real Robust process. - [ ] Firestorm baseline smoke tests pass through successful viewer/simulator login. -- [ ] compatibility-sensitive XML-RPC/LSL functionality remains intact after runtime verification. +- [x] core LSL XML-RPC RemoteData channel lifecycle and invalid-channel handler behavior are runtime-regression tested against the built XMLRPCModule. +- [ ] end-to-end LSL XML-RPC RemoteData callback with a running region/script remains to be runtime verified. - [x] development runtime version source identifies itself as NexVerse 0.9.3.1 Dev. --- diff --git a/tools/ci/XmlRpcRemoteDataRegression/Program.cs b/tools/ci/XmlRpcRemoteDataRegression/Program.cs new file mode 100644 index 00000000..f47d3fb9 --- /dev/null +++ b/tools/ci/XmlRpcRemoteDataRegression/Program.cs @@ -0,0 +1,64 @@ +using System; +using System.Collections; +using System.Net; +using Nini.Config; +using Nwc.XmlRpc; +using OpenMetaverse; +using OpenSim.Region.CoreModules.Scripting.XMLRPC; + +internal static class Program +{ + private static void Require(bool condition, string message) + { + if (!condition) + throw new InvalidOperationException(message); + } + + private static int Main() + { + IniConfigSource config = new IniConfigSource(); + IConfig xmlrpc = config.AddConfig("XMLRPC"); + xmlrpc.Set("XmlRpcPort", 20800); + + XMLRPCModule module = new XMLRPCModule(); + module.Initialise(config); + + Require(module.IsEnabled(), "XMLRPCModule did not enable with a configured port"); + Require(module.Port == 20800, "XMLRPCModule port mismatch"); + + UUID itemA = UUID.Random(); + UUID channelA = module.OpenXMLRPCChannel(41, itemA, UUID.Zero); + Require(!channelA.IsZero(), "llOpenRemoteDataChannel-compatible channel creation failed"); + + UUID duplicate = module.OpenXMLRPCChannel(41, itemA, UUID.Zero); + Require(duplicate == channelA, "opening a second channel for the same script item changed the channel"); + + UUID itemB = UUID.Random(); + UUID requestedChannel = UUID.Random(); + UUID channelB = module.OpenXMLRPCChannel(42, itemB, requestedChannel); + Require(channelB == requestedChannel, "custom RemoteData channel was not preserved"); + + module.CloseXMLRPCChannel(channelA); + + Hashtable requestData = new Hashtable + { + ["Channel"] = channelA.ToString(), + ["IntValue"] = 7, + ["StringValue"] = "nexverse-ci" + }; + ArrayList parameters = new ArrayList { requestData }; + XmlRpcRequest request = new XmlRpcRequest("llRemoteData", parameters); + + XmlRpcResponse response = module.XmlRpcRemoteData( + request, + new IPEndPoint(IPAddress.Loopback, 20800)); + + Require(response.IsFault, "closed/invalid RemoteData channel did not return an XML-RPC fault"); + + module.CloseXMLRPCChannel(channelB); + Require(!module.hasRequests(), "unexpected pending RemoteData requests remain"); + + Console.WriteLine("NexVerse LSL XML-RPC RemoteData runtime regression: OK"); + return 0; + } +} diff --git a/tools/ci/XmlRpcRemoteDataRegression/XmlRpcRemoteDataRegression.csproj b/tools/ci/XmlRpcRemoteDataRegression/XmlRpcRemoteDataRegression.csproj new file mode 100644 index 00000000..6423c011 --- /dev/null +++ b/tools/ci/XmlRpcRemoteDataRegression/XmlRpcRemoteDataRegression.csproj @@ -0,0 +1,28 @@ + + + Exe + net8.0 + disable + disable + + + + ../../../bin/OpenSim.Region.CoreModules.dll + + + ../../../bin/OpenSim.Framework.dll + + + ../../../bin/OpenSim.Region.Framework.dll + + + ../../../bin/OpenMetaverse.dll + + + ../../../bin/Nini.dll + + + ../../../bin/XMLRPC.dll + + +