forked from lix-project/hydra
Luke Granger-Brown
67ebce8493
At the moment, aggregate jobs can easily break and cause the entire evaluation to fail, which is not ideal. For Nixpkgs, we do have some important aggregate jobs (like `tested`), but for debugging and building purposes it's still useful to get a partial result even if the channel won't actually advance. This commit changes the behaviour of hydra-eval-jobs such that it aggregates any errors found during the construction of an aggregate, and will instead annotate the job with the evaluation failure such that it shows up in a "cleaner" way. There are really two types of failure that we care about: one is where the attribute just ends up missing altogether in the final output, and also where the attribute is in the output but fails to evaluate. Both are handled here. Note that this does mean that the same error message may be output multiple times, but this aids debuggability because it'll be much clearer what's blocking the job from being created.
16 lines
288 B
Nix
16 lines
288 B
Nix
with import ./config.nix;
|
|
{
|
|
broken = mkDerivation {
|
|
name = "broken";
|
|
_hydraAggregate = true;
|
|
constituents = [
|
|
"does-not-exist"
|
|
"does-not-evaluate"
|
|
];
|
|
builder = ./fail.sh;
|
|
};
|
|
|
|
# does-not-exist doesn't exist.
|
|
|
|
does-not-evaluate = assert false; {};
|
|
}
|