Record Class MergedReport
java.lang.Object
java.lang.Record
com.shaft.doctor.shard.MergedReport
- Record Components:
mergedAllureResultsDirectory- one Allure results directory combining every shard's resultsspeedboardHtmlPath- timeline HTML path (slowest tests first, flaky tests flagged)shardCount- number of shard blobs mergedtotalResults- total Allure result files merged (containers/attachments not counted)flakyClusters- tests observed with inconsistent pass/fail outcomes across shardsshardIntelligence- per-shard doctorExecutionIntelligencedigests, for shards that had onewarnings- safe warnings (e.g. an unreadable shard blob was skipped)
public record MergedReport(Path mergedAllureResultsDirectory, Path speedboardHtmlPath, int shardCount, int totalResults, List<FlakyCluster> flakyClusters, List<ShardIntelligence> shardIntelligence, List<String> warnings)
extends Record
Outcome of merging N shard blobs into one Allure result set plus a timeline "speedboard" and
cross-shard flaky-clustering summary.
-
Constructor Summary
ConstructorsConstructorDescriptionMergedReport(Path mergedAllureResultsDirectory, Path speedboardHtmlPath, int shardCount, int totalResults, List<FlakyCluster> flakyClusters, List<ShardIntelligence> shardIntelligence, List<String> warnings) Creates an instance of aMergedReportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theflakyClustersrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themergedAllureResultsDirectoryrecord component.intReturns the value of theshardCountrecord component.Returns the value of theshardIntelligencerecord component.Returns the value of thespeedboardHtmlPathrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalResultsrecord component.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
MergedReport
public MergedReport(Path mergedAllureResultsDirectory, Path speedboardHtmlPath, int shardCount, int totalResults, List<FlakyCluster> flakyClusters, List<ShardIntelligence> shardIntelligence, List<String> warnings) Creates an instance of aMergedReportrecord class.- Parameters:
mergedAllureResultsDirectory- the value for themergedAllureResultsDirectoryrecord componentspeedboardHtmlPath- the value for thespeedboardHtmlPathrecord componentshardCount- the value for theshardCountrecord componenttotalResults- the value for thetotalResultsrecord componentflakyClusters- the value for theflakyClustersrecord componentshardIntelligence- the value for theshardIntelligencerecord componentwarnings- the value for thewarningsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
mergedAllureResultsDirectory
Returns the value of themergedAllureResultsDirectoryrecord component.- Returns:
- the value of the
mergedAllureResultsDirectoryrecord component
-
speedboardHtmlPath
Returns the value of thespeedboardHtmlPathrecord component.- Returns:
- the value of the
speedboardHtmlPathrecord component
-
shardCount
public int shardCount()Returns the value of theshardCountrecord component.- Returns:
- the value of the
shardCountrecord component
-
totalResults
public int totalResults()Returns the value of thetotalResultsrecord component.- Returns:
- the value of the
totalResultsrecord component
-
flakyClusters
Returns the value of theflakyClustersrecord component.- Returns:
- the value of the
flakyClustersrecord component
-
shardIntelligence
Returns the value of theshardIntelligencerecord component.- Returns:
- the value of the
shardIntelligencerecord component
-
warnings
-