From d624e412de922862d80b23c17fdb8e46b920ac85 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sat, 20 Jul 2024 18:01:27 +0200 Subject: [PATCH] fix(eval): `event.refUpdate.project` instead of `event.project` Signed-off-by: Raito Bezarius --- buildbot_nix/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/buildbot_nix/__init__.py b/buildbot_nix/__init__.py index f119a11..5ad733e 100644 --- a/buildbot_nix/__init__.py +++ b/buildbot_nix/__init__.py @@ -177,8 +177,8 @@ class BuildTrigger(steps.BuildStep): return sch def schedule_one(self, build_props: Properties, job): - project_name = build_props.getProperty('event.project') - source = f"{project_name}-eval-lix" + project_name = build_props.getProperty("event.refUpdate.project") + source = f"{project_name}-eval" attr = job.get("attr", "eval-error") name = attr name = f"{FLAKE_TARGET_ATTRIBUTE_FOR_JOBS}.{name}" @@ -372,7 +372,8 @@ class NixEvalCommand(buildstep.ShellMixin, steps.BuildStep): # run nix-eval-jobs --flake .#$FLAKE_TARGET_ATTRIBUTE_FOR_JOBS to generate the dict of stages cmd: remotecommand.RemoteCommand = yield self.makeRemoteShellCommand() build_props = self.build.getProperties() - project_name = build_props.getProperty('event.project') + project_name = build_props.getProperty('event.refUpdate.project') + assert project_name is not None, "`event.refUpdate.project` is not available on the build properties, unexpected build type!" yield self.runCommand(cmd)