-
Notifications
You must be signed in to change notification settings - Fork 993
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
[question] How to see if package is taken from Conan download cache or downloaded from Artifactory? #12129
Comments
You can use CONAN_TRACE_FILE environment variable. Traces will be recorded to a file like: https://docs.conan.io/en/latest/mastering/logging.html#logging-and-debugging |
OK. Thank you. Will try that out. Is there a special term that I can search for to know whether data was downloaded to the package cache or the download cache? |
Coming back to this topic. When I run an install then I can see some hints on the console whether the package is in the cache or will be/has been downloaded. See below example. For the package astree-profiles it once says "Donloaded" and then "Download". What does this mean? Build requirements Thank you |
Hi @TheMarTom thanks for your question (Note that usually it's easier to get answers for your questions by opening new issues, it's pretty lucky I saw this one!) The first Hope this helps a little, feel free to open new issues if you have any more questions! |
@RubenRBS Thanks a lot for the explanation. Is the output somehow different when a file is copied from the download cache to the package cache? |
I made a detailed analysis with 1.60.1. And here are the results: It is possible to figure out from the console log/conan trace file whether a package (recipe and package files) was taken In short for checking if a package was taken from the download cache and then copied over to the package cache since the
|
In order to better understand the download traffic from our Artifactory instance towards our CI/CD build machines that are supposed to use the Conan download cache I would need to know if there is a way to configure Conan to log to console (or log file) when a package is not downloaded from Artifactory but taken from the download cache.
I was going through the documentation and even playing around with some cli args but could not find any way to achieve this.
Do you have any ideas how to get to know this information without attaching some network sniffing tools to the CI/CD machines?
The text was updated successfully, but these errors were encountered: