Skip to content

fix(ci): skip unknown labels in issue labeler instead of failing - #14426

Open
erensh27 wants to merge 1 commit into
huggingface:mainfrom
erensh27:fix/issue-labeler-unknown-labels
Open

erensh27 wants to merge 1 commit into
huggingface:mainfrom
erensh27:fix/issue-labeler-unknown-labels

Conversation

@erensh27

@erensh27 erensh27 commented Aug 9, 2026

Copy link
Copy Markdown

Fixes #14377.

The labeler LLM is told to pick from a fixed set of labels, but several of those labels do not exist in the repo (compile, attention-backends, torchao, new-pipeline/model are still missing today; needs-env-info has since been created). gh issue edit --add-label fails for any non-existent label, aborting the whole job and leaving most bug reports unlabeled.

Fix (.github/workflows/issue_labeler.yml): fetch the repo's current label list and only apply labels that exist, skipping the rest with an explicit ::warning in the run log. The job no longer fails on label drift, and the warning makes missing labels visible so they can be created.

Note: utils/label_issues.py still declares the four missing labels as valid — they may be created later; the workflow filter keeps things working either way.

The labeler LLM is told to pick from a fixed set of labels, but several
of those labels do not exist in the repo (e.g. 'compile',
'attention-backends', 'torchao', 'new-pipeline/model'). Applying any of
them with 'gh issue edit --add-label' fails the whole job, so most bug
reports end up with no labels at all (issue huggingface#14377: 'needs-env-info').

Filter the model output against the repo's actual label list before
applying, and emit a warning for any label that does not exist instead
of failing the run.
@github-actions github-actions Bot added fixes-issue CI size/S PR with diff < 50 LOC and removed fixes-issue labels Aug 9, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI size/S PR with diff < 50 LOC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue Labeler fails on most bug reports: 'needs-env-info' label does not exist

1 participant