changelog.sh: do not check every recipe for CVEs#159
Merged
Conversation
"bitbake -s" actually does not take any arguments, and prints the versions of all recipes available. This is a much larger list than the recipes actually used for building the image. Since the cve report contains only CVEs for recipes used in the image, this causes a lot of checks for CVEs for which the answer will always be empty. So instead iterate over $packages which only contains the recipe names of recipes included in the image. This significantly speeds up the CVE collection. In a non-scientific test this sped up collecting the package versions and CVEs of one release from ~16 minutes to ~1 minute, so it should reduce generating a changelog with CVEs by about half an hour. Signed-off-by: Jonas Gorski <jonas.gorski@bisdn.de>
Contributor
Author
|
Now the main time sink is pulling the cve database, which can take more than 30 minutes, depending on the mood of the nist cve database server. |
ideaship
approved these changes
Feb 9, 2026
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.
"bitbake -s" actually does not take any arguments, and prints the versions of all recipes available. This is a much larger list than the recipes actually used for building the image.
Since the cve report contains only CVEs for recipes used in the image, this causes a lot of checks for CVEs for which the answer will always be empty.
So instead iterate over $packages which only contains the recipe names of recipes included in the image. This significantly speeds up the CVE collection.
In a non-scientific test this sped up collecting the package versions and CVEs of one release from ~16 minutes to ~1 minute, so it should reduce generating a changelog with CVEs by about half an hour.