feat: SQL between/hostvar-key alignment, class-condition parsing, gcov merge across scenario runs

This commit is contained in:
hangshuo652
2026-08-09 17:43:00 +08:00
parent f331c8fa2a
commit 273a3f8211
31 changed files with 3789 additions and 272 deletions
+4 -4
View File
@@ -31,16 +31,16 @@ def _dedup(
def _hash(rec, keys):
if keys:
return tuple(rec.get(k, "") for k in keys)
return tuple(sorted(rec.items()))
return tuple(str(rec.get(k, "")) for k in keys)
return tuple((k, str(v) if isinstance(v, (list, dict, set)) else v) for k, v in sorted(rec.items()))
for rec in additional_records:
for rec in main_records:
h = _hash(rec, key_fields)
if h not in seen:
seen.add(h)
result.append(rec)
for rec in main_records:
for rec in additional_records:
h = _hash(rec, key_fields)
if h not in seen:
seen.add(h)