Class HistoryAggregatedFlakyTestResultAction
java.lang.Object
com.google.jenkins.flakyTestHandler.plugin.HistoryAggregatedFlakyTestResultAction
- All Implemented Interfaces:
Action,ModelObject
Action for aggregate and display information for flaky history for all the tests
- Author:
- Qingzhou Luo
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classClass for flaky information for one single teststatic classA class which augmentsHistoryAggregatedFlakyTestResultAction.SingleTestFlakyStatswith a revision string. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.google.common.base.Function<Map<String,HistoryAggregatedFlakyTestResultAction.SingleTestFlakyStats>, HistoryAggregatedFlakyTestResultAction.SingleTestFlakyStats> Function to aggregate flaky stats over revisions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaggregateOneBuild(Run<?, ?> build) Aggregate flaky runs one previous build and put results into a map between test name and its map between scm revisions and aggregated flaky stats for that revisionvoiddoShowAll(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Get filtered tests to display on the project page.boolean
-
Field Details
-
REVISION_STATS_MAP_TO_AGGREGATED_STATS
public static final com.google.common.base.Function<Map<String,HistoryAggregatedFlakyTestResultAction.SingleTestFlakyStats>, REVISION_STATS_MAP_TO_AGGREGATED_STATSHistoryAggregatedFlakyTestResultAction.SingleTestFlakyStats> Function to aggregate flaky stats over revisions
-
-
Constructor Details
-
HistoryAggregatedFlakyTestResultAction
-
-
Method Details
-
aggregateOneBuild
Aggregate flaky runs one previous build and put results into a map between test name and its map between scm revisions and aggregated flaky stats for that revision- Parameters:
build- the build to be aggregated
-
getAggregatedTestFlakyStatsWithRevision
public Map<String,Map<String, getAggregatedTestFlakyStatsWithRevision()HistoryAggregatedFlakyTestResultAction.SingleTestFlakyStats>> -
getOnlyShowFlakyTests
public boolean getOnlyShowFlakyTests() -
doShowAll
public void doShowAll(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.servlet.ServletException - Throws:
IOExceptionjakarta.servlet.ServletException
-
getAggregatedFlakyStats
public Map<String,HistoryAggregatedFlakyTestResultAction.SingleTestFlakyStats> getAggregatedFlakyStats() -
getFilteredAggregatedFlakyStats
public Map<String,HistoryAggregatedFlakyTestResultAction.SingleTestFlakyStats> getFilteredAggregatedFlakyStats()Get filtered tests to display on the project page. Users can decide whether to show all tests or just flaky tests- Returns:
- the filtered tests
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-