Support preferLocalBuild
[?]
Jun 29, 2015, 10:20 PM
SK6WHODMWAUL7LNH6QTUXZW7GQFNKKDYN4BU45ODTMMKYMG6O7KACDependencies
- [2]
SODOV2CMAutomatically reload $NIX_REMOTE_SYSTEMS when it changes - [3]
HLSHCK3CSupport requiredSystemFeatures - [4]
5AIYUMTBBasic remote building - [5]
N5O7VEEOImmediately abort builds that require an unsupported system type - [*]
24BMQDZAStart of single-process hydra-queue-runner - [*]
NJJ7H64SVery basic multi-threaded queue runner
Change contents
- edit in src/hydra-queue-runner/hydra-queue-runner.cc at line 141
bool preferLocalBuild; - replacement in src/hydra-queue-runner/hydra-queue-runner.cc at line 198
if (step->requiredSystemFeatures.find(f) == step->requiredSystemFeatures.end()) return false;if (step->requiredSystemFeatures.find(f) == step->requiredSystemFeatures.end()&& !(step->preferLocalBuild && f == "local"))return false; - edit in src/hydra-queue-runner/hydra-queue-runner.cc at line 213[3.6816][8.947]
StringSet localPlatforms; - edit in src/hydra-queue-runner/hydra-queue-runner.cc at line 369
localPlatforms = {settings.thisSystem};if (settings.thisSystem == "x86_64-linux")localPlatforms.insert("i686-linux"); - replacement in src/hydra-queue-runner/hydra-queue-runner.cc at line 389
StringSet systems = StringSet({settings.thisSystem});if (settings.thisSystem == "x86_64-linux")systems.insert("i686-linux");contents = "localhost " + concatStringsSep(",", systems)contents = "localhost " + concatStringsSep(",", localPlatforms) - edit in src/hydra-queue-runner/hydra-queue-runner.cc at line 414
if (tokens[5] == "-") tokens[5] = ""; - edit in src/hydra-queue-runner/hydra-queue-runner.cc at line 416
if (tokens[6] == "-") tokens[6] = ""; - edit in src/hydra-queue-runner/hydra-queue-runner.cc at line 831
auto attr = step->drv.env.find("preferLocalBuild");step->preferLocalBuild =attr != step->drv.env.end() && attr->second == "1"&& has(localPlatforms, step->drv.platform);