Skip to content

nix-builder: add a function filterBundle to generated flake outputs - #1077

Merged
danieldk merged 1 commit into
mainfrom
filterBundle
Dec 3, 2026
Merged

danieldk merged 1 commit into
mainfrom
filterBundle

Conversation

@danieldk

@danieldk danieldk commented Dec 3, 2026

Copy link
Copy Markdown
Member

This function makes it possible to build a bundle for a subset of build sets, filtered by their build configs for example:

nix build "$(nix eval --raw .\#lib.x86_64-linux.filterBundle \
  --apply 'filterBundle: (filterBundle (buildConfig: buildConfig.torchVersion == "2.14")).drvPath')^*"

This function makes it possible to build a bundle for a subset of build
sets, filtered by their build configs for example:

```
nix build "$(nix eval --raw .\#lib.x86_64-linux.filterBundle \
  --apply 'filterBundle: (filterBundle (buildConfig: buildConfig.torchVersion == "2.14")).drvPath')^*"
```

@drbh drbh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@danieldk
danieldk merged commit 9d94750 into main Dec 3, 2026
54 checks passed
drbh added a commit to huggingface/kernels-community that referenced this pull request Dec 3, 2026
…1405)

this pr adds a `--torch` flag to the kernel bot so mass rebuilds only
build the variants for one torch version

```
/kernel-bot release activation --torch 2.16
```

- passed to `build.yaml` and `build-mac.yaml` as a `torch` input, which
builds `filterBundle` instead of the full bundle
- backends with nothing matching are dropped from the matrix, and if
nothing matches at all the run is skipped and reported as "Nothing to
build"
- windows is skipped since it pins its own torch versions outside the
nix build sets

depends on huggingface/kernels#1077
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants