Description
Describe the bug
If the nix expression to be evaluated contains unexpected attributes, a TypeError
is raised:
hydra/src/hydra-eval-jobs/hydra-eval-jobs.cc
Line 277 in b3e0d9a
However only EvalError
s are actually caught:
hydra/src/hydra-eval-jobs/hydra-eval-jobs.cc
Lines 279 to 286 in b3e0d9a
This seems to lead to (a) the error message being silently discarded (it does not end up in any logs), and (b) the evaluation is continuously retried, presumably because it is never marked as failed.
To Reproduce
I hit this trying to build https://git.auxolotl.org/auxolotl/labs/src/commit/8e9cb4fbe92205d0256bb9bc759f86c5d45ca487/tidepool/default.nix without realising I needed to select the packages attribute.
Expected behavior
The error message should be reported somewhere visible to the end-user (or at minimum, the administrator), and the evaluation should fail cleanly, not loop indefinitely.
Hydra Server:
Please fill out this data as well as you can, but don't worry if you can't -- just do your best.
- OS and version: NixOS 23.11.7042.9a9960b98418
- Version of Hydra: from nixpkgs .7042.9a9960b98418
- Version of Nix Hydra is built against: n/a
- Version of the Nix daemon: nix-daemon (Nix) 2.18.1