WIP: Bring back constituents to Hydra #17

Draft
ma27 wants to merge 1 commit from ma27/nix-eval-jobs:bring-back-constituents into main

1 commit

Author SHA1 Message Date
Maximilian Bosch ac27a3f9d5
Bring back constituents to Hydra
The part about finding `_hydraAggregate`/`constituents` is basically
derived from `hydra-eval-jobs`, however the part about
`namedConstituents` has been changed: we still stream out jobs when they
appear, however we suppress this for aggregate jobs.

These jobs are post-processed at the end, i.e. if `namedConstituents`
exist, these will be mapped to the drvPath of the other jobs. Then, the
drv will be rewritten to contain the drvPath of said jobs[1] and the
JSON containing the rewritten `drvPath` will be printed out.

[1] This was an optimization to reduce the memory footprint of
    evaluating e.g. the `tested` job in nixpkgs.
2024-12-18 15:51:01 +01:00