1ecc8a4f40
If a step is cancelled just as its builder step is starting, doBuildStep() will return sRetry. This causes builder() to make the step runnable again, since the queue monitor may have added new builds referencing it. The idea is that if the latter condition is not true, the step's reference count will drop to zero and it will be deleted. However, if the dispatcher thread sees and locks the step before the reference count can drop to zero in the builder thread, the dispatcher thread will start a new builder thread for the step. Thus the step can be kept alive for an indefinite amount of time. The fix is for State::builder() to use a weak pointer to the step, to ensure that the step's reference count can drop to zero *before* it's added to the runnable queue. |
||
---|---|---|
doc | ||
src | ||
tests | ||
.gitignore | ||
bootstrap | ||
configure.ac | ||
COPYING | ||
hydra-module.nix | ||
INSTALL | ||
Makefile.am | ||
README.md | ||
release.nix | ||
shell.nix | ||
version |
Hydra
Hydra is a continuous integration system based on the Nix package manager. For more information, see the manual.
For development see [hacking instructions] (http://nixos.org/hydra/manual/#chap-hacking).
Icons provided free by EmojiOne.