From a762bccb0dc298a1fe064d21022ec31e2f36e302 Mon Sep 17 00:00:00 2001 From: "OpenGenesis (MPL 2.0)" <153564363+opengenesislink@users.noreply.github.com> Date: Wed, 18 Nov 2026 02:08:33 +0100 Subject: [PATCH] test(gen1): account for normalized HG UUI in statistics provenance regression --- tools/ci/verify_statistics_fallback.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tools/ci/verify_statistics_fallback.py b/tools/ci/verify_statistics_fallback.py index 4d92cc9e..a4a8249a 100644 --- a/tools/ci/verify_statistics_fallback.py +++ b/tools/ci/verify_statistics_fallback.py @@ -38,15 +38,18 @@ assert 'NexNodeRegistry nodes = null' in stats assert 'nodeRegistry);' in routes assert "m_UserAccounts == null || m_GridUsers == null" not in stats -# Full OpenSim HG UUIs must be looked up exactly. Prefixing all lookups -# with the bare 36-character UUID merges different HG homes and can erase -# the GridUser origin rows expected by statistics:read. +# Fully qualified HG UUIs must retain their HomeURI and display identity; +# only the nonsemantic terminal HomeURI slash is normalized before an exact +# lookup. Prefixing with the bare UUID merges different HG homes and can +# erase provenance rows published by statistics:read. griduser = (root / "OpenSim/Services/UserAccountService/GridUserService.cs").read_text(encoding="utf-8") for marker in ( "private static string GridUserCacheKey(string userID)", "userID.Length > 36 && userID[36] == ';'", - "GridUserData exact = m_Database.Get(userID);", - "CacheGridUser(userID, exact);", + "private static string CanonicalHGUserID(string userID)", + "return CanonicalHGUserID(userID);", + "GridUserData exact = m_Database.Get(cacheKey);", + "CacheGridUser(cacheKey, exact);", "GridUserData local = m_Database.Get(bareId);", "CacheGridUser(userID, d);", ):