Record Class FlakyCluster
java.lang.Object
java.lang.Record
com.shaft.doctor.shard.FlakyCluster
- Record Components:
fullName- fully qualifiedclass.methodtest identifierpassedCount- observed passed outcomes across all merged shardsfailedCount- observed failed/broken outcomes across all merged shardsshardIds- shard identifiers (blob directory names) this test was observed in, in merge order
public record FlakyCluster(String fullName, int passedCount, int failedCount, List<String> shardIds)
extends Record
One test observed with inconsistent outcomes across merged shards -- passed in at least one
shard/attempt and failed (or broken) in at least one other, which flags it as a flaky-clustering
candidate rather than a deterministic failure.
-
Constructor Summary
ConstructorsConstructorDescriptionFlakyCluster(String fullName, int passedCount, int failedCount, List<String> shardIds) Creates an instance of aFlakyClusterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefailedCountrecord component.fullName()Returns the value of thefullNamerecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thepassedCountrecord component.shardIds()Returns the value of theshardIdsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FlakyCluster
Creates an instance of aFlakyClusterrecord class.- Parameters:
fullName- the value for thefullNamerecord componentpassedCount- the value for thepassedCountrecord componentfailedCount- the value for thefailedCountrecord componentshardIds- the value for theshardIdsrecord 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. -
fullName
-
passedCount
public int passedCount()Returns the value of thepassedCountrecord component.- Returns:
- the value of the
passedCountrecord component
-
failedCount
public int failedCount()Returns the value of thefailedCountrecord component.- Returns:
- the value of the
failedCountrecord component
-
shardIds
-