feat: add pipeline_resolver_execution_paths#8
Merged
Conversation
Contributor
Code Metrics Report
Code coverage of files in pull request scope (22.0%)
Reported by octocov |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds a new pipeline metric,
pipeline_resolver_execution_paths_total, which calculates the total number of possible execution paths for pipeline resolvers based on the number of steps and associated tests. The metric is integrated into the codebase, thoroughly documented, and covered by comprehensive tests, including edge cases and complex scenarios.Pipeline Metrics Enhancements:
pipeline_resolver_execution_paths_total, to count the total number of execution paths for all pipeline resolvers. This is calculated assteps^testsfor each resolver, reflecting the number of testable step combinations. [1] [2]PipelineStepOperationstruct and resource loading to include theTestfield, enabling accurate calculation of execution paths. [1] [2]Documentation Updates:
README.mdto document the new metric, explain its calculation, and clarify its significance.Testing Improvements:
tailor/metrics_test.goto verify the correct calculation ofpipeline_resolver_execution_paths_totalacross a variety of scenarios, including edge cases and large numbers. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]Internal Refactoring:
mathpackage intailor/metrics.goto support power calculations for the new metric.These changes provide deeper insights into pipeline complexity and test coverage, improving the usefulness of the metrics output for users.