prefix-dev / pixi

Package management made easy
https://pixi.sh
BSD 3-Clause "New" or "Revised" License
3.04k stars 168 forks source link

`-v` does not make `pixi search` any more verbose #869

Open corneliusroemer opened 7 months ago

corneliusroemer commented 7 months ago

Checks

Reproducible example

 pixi search -vvv augur

Issue description

When I use -vvv for very verbose logging with pixi search, I don't actually get any change in verbosity.

Expected behavior

I get verbose output, showing e.g. the channels searched (they are flashed very quickly as a progress bar but then disappear again.

ruben-arts commented 7 months ago

Could you list what you would like to see in a verbose output? There is no different implementation on pixi search with the verbosity setting, but it might be worth it to add more info.

Making this a enhancement as pixi is not doing anything it shouldn't.

corneliusroemer commented 7 months ago

Quite a few things to show:

Now that I've run it a few times, it does show something, but not straight after fresh install.

❌1 ❯ pixi search -vvv augur                   
DEBUG rattler_repodata_gateway::fetch: Cache is 2h 37m 49s 845ms 623us 772ns old but can at most be 20m old. Assuming out of date...
DEBUG fetch_repo_data{cache_path=/Users/corneliusromer/Library/Caches/rattler/cache/repodata}: rattler_repodata_gateway::fetch: fetching 'https://conda.anaconda.org/conda-forge/osx-arm64/repodata.json.zst'
DEBUG fetch_repo_data{cache_path=/Users/corneliusromer/Library/Caches/rattler/cache/repodata}: reqwest::connect: starting new connection: https://conda.anaconda.org/    
DEBUG hyper::client::connect::dns: resolving host="conda.anaconda.org"
DEBUG rattler_repodata_gateway::fetch: Cache is 2h 37m 50s 153ms 953us 147ns old but can at most be 20m old. Assuming out of date...
DEBUG fetch_repo_data{cache_path=/Users/corneliusromer/Library/Caches/rattler/cache/repodata}: rattler_repodata_gateway::fetch: fetching 'https://conda.anaconda.org/conda-forge/noarch/repodata.json.zst'
DEBUG fetch_repo_data{cache_path=/Users/corneliusromer/Library/Caches/rattler/cache/repodata}: reqwest::connect: starting new connection: https://conda.anaconda.org/    
DEBUG hyper::client::connect::dns: resolving host="conda.anaconda.org"
DEBUG fetch_repo_data{cache_path=/Users/corneliusromer/Library/Caches/rattler/cache/repodata}: hyper::client::connect::http: connecting to 104.17.15.67:443
DEBUG fetch_repo_data{cache_path=/Users/corneliusromer/Library/Caches/rattler/cache/repodata}: hyper::client::connect::http: connecting to 104.17.15.67:443
DEBUG fetch_repo_data{cache_path=/Users/corneliusromer/Library/Caches/rattler/cache/repodata}: hyper::client::connect::http: connected to 104.17.15.67:443
DEBUG fetch_repo_data{cache_path=/Users/corneliusromer/Library/Caches/rattler/cache/repodata}: hyper::client::connect::http: connected to 104.17.15.67:443
DEBUG hyper::proto::h1::io: flushed 217 bytes
DEBUG hyper::proto::h1::io: flushed 220 bytes
DEBUG hyper::proto::h1::io: parsed 18 headers
DEBUG hyper::proto::h1::conn: incoming body is content-length (8675446 bytes)
DEBUG hyper::proto::h1::io: parsed 18 headers
DEBUG hyper::proto::h1::conn: incoming body is content-length (13690741 bytes)
DEBUG hyper::proto::h1::conn: incoming body completed
DEBUG hyper::client::pool: pooling idle connection for ("https", conda.anaconda.org)
DEBUG fetch_repo_data{cache_path=/Users/corneliusromer/Library/Caches/rattler/cache/repodata}:stream_and_decode_to_file: rattler_repodata_gateway::fetch: downloaded 8.68 MB, decoded that into 67.18 MB, BLAKE2 hash: c349161ab45311bc8ef8fc8588d3b6a02f15ed9286b4c975f23789ba17677327
DEBUG hyper::proto::h1::conn: incoming body completed
DEBUG hyper::client::pool: pooling idle connection for ("https", conda.anaconda.org)
DEBUG fetch_repo_data{cache_path=/Users/corneliusromer/Library/Caches/rattler/cache/repodata}:stream_and_decode_to_file: rattler_repodata_gateway::fetch: downloaded 13.69 MB, decoded that into 86.03 MB, BLAKE2 hash: 8d2467153551090337d3e14c5004932cbe3178f5b42bbc024d27e0c2b61146f9
  × Package augur not found, please use a wildcard '*' in the search name for a broader result.
ruben-arts commented 7 months ago

Yes what you are seeing is the underlying tracing/debug information. But this is not formatted for a user.

I think it would be nice to add a single level of verbosity to keep the -vv and -vvv for the actual developer debug info.

We could indeed add the calculated input information for the search into the result. Are there more missing parts of information?