Skip to content

Commit

Permalink
Expose enforce-determinism and the result to Hydra
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Dec 7, 2016
1 parent 8bdf83f commit cea4e2c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/nix-store/nix-store.cc
Original file line number Diff line number Diff line change
Expand Up @@ -840,8 +840,10 @@ static void opServe(Strings opFlags, Strings opArgs)
settings.buildTimeout = readInt(in);
if (GET_PROTOCOL_MINOR(clientVersion) >= 2)
settings.maxLogSize = readInt(in);
if (GET_PROTOCOL_MINOR(clientVersion) >= 3)
if (GET_PROTOCOL_MINOR(clientVersion) >= 3) {
settings.set("build-repeat", std::to_string(readInt(in)));
settings.set("enforce-determinism", readInt(in) != 0 ? "true" : "false");
}
settings.printRepeatedBuilds = false;
};

Expand Down Expand Up @@ -958,6 +960,9 @@ static void opServe(Strings opFlags, Strings opArgs)

out << status.status << status.errorMsg;

if (GET_PROTOCOL_MINOR(clientVersion) >= 3)
out << status.timesBuilt << status.isNonDeterministic;

break;
}

Expand Down

0 comments on commit cea4e2c

Please sign in to comment.