maralorn / nix-output-monitor

Pipe your nix-build output through the nix-output-monitor a.k.a nom to get additional information while building.
GNU Affero General Public License v3.0
835 stars 24 forks source link

Ignore `Erroe: file does not exist in binary cache` #134

Open Cryolitia opened 4 months ago

Cryolitia commented 4 months ago

image

When using a mirror of cache.nixos.org, it's usually generate lots of errors about it. They are less useful and take up a lot of screen space, preventing more useful information from being displayed.

SuperSandro2000 commented 4 months ago

NOM shouldn't decide which errors to display or not. You probably want to reduce the binary cache ttl instead. I did the same and it works wonder.

maralorn commented 4 months ago

I see your point. (Love your theming by the way.)

However I am not sure what exactly to do about this. I am reluctant to silently drop an error which is probably relevant to other users. That sounds like a suspicious way of special casing. Maybe we can find a more general solution to make this less a problem?

Cryolitia commented 4 months ago

You probably want to reduce the binary cache ttl instead.

Thanks for pointing out it!


Maybe we can provide a command line argument to suppress specific error types, such as --suppress-error binary-cache-not-exist and other types of error. Or is there any other third party tool that can be plugged into the command pipeline to filter the JSON such as nix build .# --log-format internal-json | [some filter] | nom --json.