Skip to content

Commit

Permalink
Skip builds fully to avoid delays from worker setup
Browse files Browse the repository at this point in the history
Signed-off-by: magic_rb <[email protected]>
  • Loading branch information
MagicRB committed Feb 4, 2025
1 parent f757546 commit 5253b36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion buildbot_nix/buildbot_nix/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,7 @@ def nix_eval_config(


async def do_register_gcroot_if(
s: steps.BuildStep, branch_config: models.BranchConfigDict
s: steps.BuildStep | Build, branch_config: models.BranchConfigDict
) -> bool:
gc_root = await util.Interpolate(
"/nix/var/nix/gcroots/per-user/buildbot-worker/%(prop:project)s/%(prop:attr)s"
Expand Down Expand Up @@ -1357,6 +1357,7 @@ def nix_skipped_build_config(
collapseRequests=False,
env={},
factory=factory,
do_build_if=lambda build: do_register_gcroot_if(build, branch_config_dict) and outputs_path is not None
)


Expand Down

0 comments on commit 5253b36

Please sign in to comment.