Skip to content

Conversation

@kariya-mitsuru
Copy link
Contributor

Types of changes

  • Enhancement (project structure, spelling, grammar, formatting)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

A description of the changes proposed in the Pull Request

PR #1108 fixed the issue to prevent duplicate regrouping when the tree has already been regrouped.
However, this fix caused only the first subtree to be executed when regrouping needed to be performed on multiple subtrees. Specifically, the execution results of the following manifests became different from before:

  • manifests/examples/pipelines/scenario-3.yml
  • manifests/examples/pipelines/pipeline-with-aggregate.yml

This PR improves the method for checking if regrouping has been completed and fixes it to correctly detect when regrouping needs to be executed on multiple subtrees.

Additionally, it also adds the output results for the above two manifests that were removed in PR #1037.

Just in case, I ran npm run if-check -- -d manifests/outputs and confirmed that there were no changes.

PR Green-Software-Foundation#1108 fixed the issue to prevent duplicate regrouping when the tree
has already been regrouped.
However, this fix caused only the first subtree to be executed when
regrouping needed to be performed on multiple subtrees.
Specifically, the execution results of the following manifests became
different from before:

- manifests/examples/pipelines/scenario-3.yml
- manifests/examples/pipelines/pipeline-with-aggregate.yml

This PR improves the method for checking if regrouping has been
completed and fixes it to correctly detect when regrouping needs to be
executed on multiple subtrees.

Additionally, it also adds the output results for the above two
manifests that were removed in PR Green-Software-Foundation#1037.

Signed-off-by: Mitsuru Kariya <[email protected]>
Although not directly related to this fix, the following sample output
related to regroup were also removed in PR Green-Software-Foundation#1037, so add it.

- manifests/outputs/features/regroup/success.yaml

Signed-off-by: Mitsuru Kariya <[email protected]>
Copy link
Contributor

@jmcook1186 jmcook1186 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this!

@jmcook1186 jmcook1186 merged commit 76fc70d into Green-Software-Foundation:main Jun 3, 2025
1 check passed
@github-project-automation github-project-automation bot moved this to Done in IF Jun 3, 2025
@kariya-mitsuru kariya-mitsuru deleted the fix-regroup branch June 3, 2025 13:05
@github-actions github-actions bot mentioned this pull request Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants