Class ShardMerger
java.lang.Object
com.shaft.doctor.shard.ShardMerger
Merges N per-shard blobs (raw Allure results + optional traces + optional doctor
ExecutionIntelligence) produced by independent -Dshaft.shard=N/M runs into one
Allure result set plus a timeline "speedboard" HTML and a cross-shard flaky-clustering summary.
Merging raw Allure results is simple file union: every *-result.json/
*-container.json/attachment file is already independently UUID-named by the Allure
writer, so shards never collide on filename and the merge is a plain copy, not a JSON-level
merge. Flaky clustering groups merged results by fullName and flags any test observed
with both a passed and a failed/broken outcome across the merged set -- Playwright's
merge-reports has no equivalent failure intelligence.
-
Method Summary
Modifier and TypeMethodDescriptionstatic MergedReportMerges the given shard blob directories intooutputDirectory.
-
Method Details
-
merge
Merges the given shard blob directories intooutputDirectory.- Parameters:
shardRoots- shard blob root directories, in merge orderoutputDirectory- destination directory; created if absent- Returns:
- merge outcome (paths, counts, flaky clusters, warnings)
-