feat: non-flakes entrypoint #23

Open
raito wants to merge 17 commits from non-flakes-rerun into main
Showing only changes of commit d624e412de - Show all commits

View file

@ -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)