pixi icon indicating copy to clipboard operation
pixi copied to clipboard

Extend pixi-build-backend logging

Open Hofer-Julian opened this issue 10 months ago • 3 comments

Since https://github.com/prefix-dev/pixi-build-backends/pull/78, pixi-build-rattler-build can log the input its get via RPC as long as this configuration key is set in the TOML:

[package.build.configuration]
debug-dir = "/path/to/log_dir"

This is very useful for our integration tests, but there's actually no reason to make this specific to the rattler build backend.

We should add a logging layer that can be activated for every backend.

Hofer-Julian avatar Feb 17 '25 13:02 Hofer-Julian

Thinking a bit more about this, I think we should simply move the logging to the frontend-rather than the backend. Then we will get the logging layer for free for all backends

Hofer-Julian avatar Feb 26 '25 08:02 Hofer-Julian

@Hofer-Julian that makes sense indeed, as long as it's just logging input/output. However, somewhat deeper debug statements might be useful as well (other than just input/output), and then the frontend cannot do this :)

tdejager avatar Mar 03 '25 07:03 tdejager

@Hofer-Julian that makes sense indeed, as long as it's just logging input/output. However, somewhat deeper debug statements might be useful as well (other than just input/output), and then the frontend cannot do this :)

Yeah, but that would also be tricky with the general-purpose logging layer that you suggested

Hofer-Julian avatar Mar 03 '25 08:03 Hofer-Julian