Expose enforce-determinism and the result to Hydra

This commit is contained in:
Eelco Dolstra 2016-12-07 13:43:40 +01:00
parent 8bdf83f936
commit cea4e2c618
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -840,8 +840,10 @@ static void opServe(Strings opFlags, Strings opArgs)
settings.buildTimeout = readInt(in); settings.buildTimeout = readInt(in);
if (GET_PROTOCOL_MINOR(clientVersion) >= 2) if (GET_PROTOCOL_MINOR(clientVersion) >= 2)
settings.maxLogSize = readInt(in); 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("build-repeat", std::to_string(readInt(in)));
settings.set("enforce-determinism", readInt(in) != 0 ? "true" : "false");
}
settings.printRepeatedBuilds = false; settings.printRepeatedBuilds = false;
}; };
@ -958,6 +960,9 @@ static void opServe(Strings opFlags, Strings opArgs)
out << status.status << status.errorMsg; out << status.status << status.errorMsg;
if (GET_PROTOCOL_MINOR(clientVersion) >= 3)
out << status.timesBuilt << status.isNonDeterministic;
break; break;
} }