mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-02 10:21:34 +00:00
fix(release): accept legacy zero skipped runtime summaries (#116429)
This commit is contained in:
@@ -207,9 +207,13 @@ export function validateQaRuntimePairSummary(summary, options = {}) {
|
||||
failed: 0,
|
||||
skipped,
|
||||
};
|
||||
const requiredCountKeys = ["total", "passed", "failed"];
|
||||
const skippedCountMatches =
|
||||
summary.counts?.skipped === skipped || (skipped === 0 && summary.counts?.skipped === undefined);
|
||||
if (
|
||||
!isRecord(summary.counts) ||
|
||||
Object.entries(expectedCounts).some(([key, value]) => summary.counts[key] !== value)
|
||||
requiredCountKeys.some((key) => summary.counts[key] !== expectedCounts[key]) ||
|
||||
!skippedCountMatches
|
||||
) {
|
||||
throw new Error("runtime-pair summary counts do not match validated scenario evidence");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user