Skip to content

Commit 5b9a939

Browse files
authored
Merge pull request #296 from MagicRB/dont-cache-canceled-builds
Only cached truly failed builds, no exceptions, cancelations...
2 parents 839ba6e + bf1cbbb commit 5b9a939

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildbot_nix/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ def run(self) -> Generator[Any, Any, None]:
556556
if (
557557
self.build.reason == "rebuild"
558558
or not self.failed_builds_db.check_build(job.drvPath)
559-
):
559+
) and result == util.FAILURE:
560560
url = yield self.build.getUrl()
561561
self.failed_builds_db.add_build(
562562
job.drvPath, datetime.now(tz=UTC), url

0 commit comments

Comments
 (0)