-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFC: analysis result caching #5186
Comments
How does that guard against your 2a) case? Also, for analyzers that use CLI tools, a different version of that tool might have an effect on the version resolution. |
It doesn't. My thoughts were: when reviewing compliance you need to define how old your analyzer result can be at most.
Right, would it fit into 2.b? |
Yes. |
I generally like the idea of analyzer result caching, but I wonder whether we should limit ourselves to simple cases first, e.g. cases where a lockfile is present, and simply use the hash of the lockfile as the key for cache lookup. |
Maybe another option could be to look into the direction of #8361. |
Closed as part of backlog grooming. Feel free to comment if you would like to contribute to this. |
The result of the analysis can change for the following reasons:
So, dependency trees may change between two analyzer runs for the exact same source tree.
In order to seed-up the average analysis duration (for CI/CD), the analysis result could be cached.
Therefore it seems like 1. and 3. could be used as cache key, roughly speaking:
If first level dependencies and repositories didn't change, then use the result from the cache if
it doesn't the entries' age doesn't exceed a configured max age.
The text was updated successfully, but these errors were encountered: