nix icon indicating copy to clipboard operation
nix copied to clipboard

log builder uid if building locally

Open DieracDelta opened this issue 1 month ago • 1 comments

Motivation

It might be helpful to know the assigned builder for a drv. I talk about this more in #14639, but my specific usecase is tying processes to a builder for a nix task monitor. But I think this could also be helpful when debugging (for example, if a builder locks up and you want to figure out which derivation it was building)

Context

The context is also primarily #14639. This change feels relatively small to me, and shouldn't make much of a difference unless someone is parsing the log output.

In terms of testing I ran the check phase. Two tests fail, but they also seem to fail prior to this change (?)

I also ran the daemon and ran some local builds on both macos and nixos. Both targets printed the builder uid. But, I wasn't able to test a remote builder


Add :+1: to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

DieracDelta avatar Nov 26 '25 16:11 DieracDelta

This seems annoyingly verbose in the vast majority of times when you don't care about the UID of the builder. It's also not helpful when there are multiple concurrent builds, since the progress bar will show only one.

I'm more in favor of improving observability by allowing you to query the status of builds, e.g. having nix store info --json return information about all active builds (which could include their UIDs).

edolstra avatar Nov 26 '25 18:11 edolstra