Skip to content

fix: Hint Analyzer should run before VersionFilter Analyzer#5818

Merged
jeremylong merged 2 commits intomainfrom
issue-5812
Aug 19, 2023
Merged

fix: Hint Analyzer should run before VersionFilter Analyzer#5818
jeremylong merged 2 commits intomainfrom
issue-5812

Conversation

@aikebah
Copy link
Copy Markdown
Collaborator

@aikebah aikebah commented Jul 10, 2023

Fixes Issue #5812

Description of Change

Ensure that HintAnalyzer runs before VersionFilterAnalyzer as HintAnalyzer may add versions that are not yet present in the evidences. VersionFilterAnalyzer may otherwise wrongly set an explicit version for the dependency if the collected evidences converge to a single version but the hints add a new and different version.

Also added an implementation note on the AnalysisPhase to document which analyzers are bound to which phase.

Introduces 2 additional POST_INFORMATION_COLLECTION phases so that DependencyMergingAnalyzer is guaranteed to run before HintAnalyzer which in its turn is guaranteed to run before VersionFilterAnalyzer

Have test cases been added to cover the new functionality?

no

@boring-cyborg boring-cyborg Bot added core changes to core tests test cases labels Jul 10, 2023
@aikebah aikebah changed the title Hint Analyzer should run before VersionFilter Analazer fix: Hint Analyzer should run before VersionFilter Analyzer Jul 10, 2023
Ensure that HintAnalyzer runs before VersionFilterAnalyzer as HintAnalyzer may add versions that are not yet present in the evidences. VersionFilterAnalyzer may otherwise wrongly set an explicit version for the dependency if the collected evidences converge to a single version but the hints add a new and different version.

Also add an implementation note on the AnalysisPhase to document which analyzers are bound to which phase.

Introduces 2 additional POST_INFORMATION_COLLECTION phases so that DependencyMergingAnalyzer is guaranteed to run before HintAnalyzer which in its turn is guaranteed to run before VersionFilterAnalyzer
Copy link
Copy Markdown
Collaborator

@jeremylong jeremylong left a comment

Choose a reason for hiding this comment

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

LGTM

@jeremylong jeremylong merged commit a29afc4 into main Aug 19, 2023
@jeremylong jeremylong deleted the issue-5812 branch August 19, 2023 11:58
@jeremylong jeremylong added this to the 8.4.0 milestone Aug 19, 2023
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Dec 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

core changes to core tests test cases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants