Skip to content

fix:Clean exclusions to enable repeated runs#153

Merged
TamarW0 merged 4 commits into
rh-aiq-mainfrom
APPENG-4108
Dec 8, 2025
Merged

fix:Clean exclusions to enable repeated runs#153
TamarW0 merged 4 commits into
rh-aiq-mainfrom
APPENG-4108

Conversation

@TamarW0

@TamarW0 TamarW0 commented Dec 1, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

found_package = False
matching_documents = []
for dependency in self.tree_dict.values():
if dependency[EXCLUSIONS_INDEX]:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@TamarW0 Why do you need here an if statement?
The following code in constructor guarantees that the exclusions index exists and contain at least empty least
https://github.com/RHEcosystemAppEng/vulnerability-analysis/blob/cf30e77497a466c477a6debb7bf74813f86096d5/src/vuln_analysis/utils/chain_of_calls_retriever.py#L88-L92

On the other hand, it's safer this way.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

you are right
it was for debugging, removed

@zvigrinberg zvigrinberg left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@TamarW0 LGTM, Approved.
Thanks!.

@TamarW0 TamarW0 merged commit 975711a into rh-aiq-main Dec 8, 2025
1 check passed
heatherzh01 pushed a commit that referenced this pull request Mar 6, 2026
fix:Clean exclusions to enable repeated runs
---------
Co-authored-by: Tamar Weisskopf <tweissko@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants