Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Decision policy for consolidating actions #440

Merged
merged 1 commit into from
Oct 1, 2020
Merged

Conversation

vigyasharma
Copy link
Contributor

@vigyasharma vigyasharma commented Oct 1, 2020

Fixes #: #441

Description of changes:
Decision Policies provide an abstraction to simplify complicated decider logic. A policy evaluates a subset of conditions within a decider. The decider can then consolidate actions suggested by each and add extra conditionals on top of them.

This PR adds the DecisionPolicy interface and implements its use in the HeapHealthDecider.

Tests:
Should be tested by the OldGenDecisionPolicy tests.

If new tests are added, how long do the new ones take to complete

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@vigyasharma vigyasharma self-assigned this Oct 1, 2020
@vigyasharma vigyasharma linked an issue Oct 1, 2020 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Oct 1, 2020

Codecov Report

Merging #440 into master will increase coverage by 0.04%.
The diff coverage is 42.85%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #440      +/-   ##
============================================
+ Coverage     72.02%   72.06%   +0.04%     
- Complexity     2606     2607       +1     
============================================
  Files           325      325              
  Lines         14682    14686       +4     
  Branches       1229     1229              
============================================
+ Hits          10574    10583       +9     
+ Misses         3711     3705       -6     
- Partials        397      398       +1     
Impacted Files Coverage Δ Complexity Δ
...ker/deciders/jvm/old_gen/OldGenDecisionPolicy.java 31.42% <33.33%> (-1.91%) 5.00 <2.00> (+1.00) ⬇️
.../decisionmaker/deciders/jvm/HeapHealthDecider.java 100.00% <100.00%> (+40.62%) 6.00 <0.00> (ø)
...erformanceanalyzer/rca/scheduler/RCAScheduler.java 70.23% <0.00%> (-1.20%) 12.00% <0.00%> (-1.00%)
.../performanceanalyzer/rca/framework/core/Stats.java 92.15% <0.00%> (+1.96%) 23.00% <0.00%> (+1.00%)
...formanceanalyzer/rca/net/tasks/FlowUnitTxTask.java 97.36% <0.00%> (+10.52%) 6.00% <0.00%> (ø%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 240e046...8d7cd69. Read the comment docs.

@vigyasharma
Copy link
Contributor Author

Created #442 to track test coverage

@vigyasharma vigyasharma merged commit f8bf494 into master Oct 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simplify complex decider workflows with decision policies
3 participants