Skip to content

Log the chosen build user when building #14639

@DieracDelta

Description

@DieracDelta

Is your feature request related to a problem?

Right now, to the best of my knowledge, it's not possible to determine which nix build user a build is assigned to. It would help in some use cases to know this. The two that come to mind for me are:

  1. Debugging nix builds. Hypothetically, imagine if a nix build hangs for some reason (e.g. I'm adding some new very unstable feature to nix). It's useful metadata to know which build user the build was assigned to if I need to pkill processes on that build user.
  2. Any sort of nix-top "state of the nix world" analysis. I'm particularly interested in this since I'm trying to implement nix-btm (aka a nix-top clone).

Proposed solution

When building a drv, print which builder is being used. E.g. something like derivation '/nix/store/somehash-myderivationname.drv' assigned to builder 'nixbld2'

Alternative solutions

Additional context

Checklist


Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureFeature request or proposal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions