Skip to content

feat: add pipeline_resolver_execution_paths#8

Merged
k1LoW merged 1 commit into
mainfrom
step_execution_paths
Sep 8, 2025
Merged

feat: add pipeline_resolver_execution_paths#8
k1LoW merged 1 commit into
mainfrom
step_execution_paths

Conversation

@k1LoW
Copy link
Copy Markdown
Contributor

@k1LoW k1LoW commented Sep 8, 2025

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:

  • Added a new metric, pipeline_resolver_execution_paths_total, to count the total number of execution paths for all pipeline resolvers. This is calculated as steps^tests for each resolver, reflecting the number of testable step combinations. [1] [2]
  • Updated the PipelineStepOperation struct and resource loading to include the Test field, enabling accurate calculation of execution paths. [1] [2]

Documentation Updates:

  • Expanded the README.md to document the new metric, explain its calculation, and clarify its significance.

Testing Improvements:

  • Added and updated tests in tailor/metrics_test.go to verify the correct calculation of pipeline_resolver_execution_paths_total across a variety of scenarios, including edge cases and large numbers. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

Internal Refactoring:

  • Imported the math package in tailor/metrics.go to 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.

@k1LoW k1LoW self-assigned this Sep 8, 2025
@k1LoW k1LoW added enhancement New feature or request minor labels Sep 8, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Sep 8, 2025

Code Metrics Report

Coverage Code to Test Ratio
34.7% 1:1.8

Code coverage of files in pull request scope (22.0%)

Files Coverage
tailor/metrics.go 100.0%
tailor/resource.go 0.0%

Reported by octocov

@k1LoW k1LoW merged commit cd2e6e1 into main Sep 8, 2025
1 check passed
@k1LoW k1LoW deleted the step_execution_paths branch September 8, 2025 11:51
@github-actions github-actions Bot mentioned this pull request Sep 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request minor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant