Skip to content

Handle meta "needs backport" labels - #732

Open
hugovk wants to merge 1 commit into
python:mainfrom
hugovk:needs-meta-backport
Open

hugovk wants to merge 1 commit into
python:mainfrom
hugovk:needs-meta-backport

Conversation

@hugovk

@hugovk hugovk commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Right now, we have these labels:

Often you want to backport to all bugfix branches (3.14-3.15) or to all security branches (3.11-3.15).

And whenever:

  • we add a new bugfix branch (for example, when 3.16 enters feature freeze next May)
  • a branch becomes security only (3.14 next October)
  • a branch goes EOL (3.11 next October)

then we need to go through and add or remove labels from PRs.

This PR adds support for new meta labels:

  • "needs backport to security branches"
  • "needs backport to bugfix branches"

Bedevere is our label-handling bot. When a PR is merged, Bedevere will add the individual labels and remove the meta one. For a merged PR, Bedevere will immediately expand them. Our backport bot, Miss Islington, will then come along and create backports as usual.

TODO:

@codecov

codecov Bot commented Dec 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (16b1d48) to head (ac09f46).

Impacted file tree graph

@@            Coverage Diff             @@
##              main      #732    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           22        22            
  Lines         2544      2734   +190     
  Branches       127       142    +15     
==========================================
+ Hits          2544      2734   +190     
Flag Coverage Δ
Python_3.14.10 100.00% <100.00%> (ø)
Python_3.15.2 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
bedevere/backport.py 100.00% <100.00%> (ø)
tests/test_backport.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@encukou

encukou commented Dec 4, 2026

Copy link
Copy Markdown
Member

Is it worth it?
When I'm adding labels, I type needs to get them all on the screen, colour-coded, and I don't even notice the extra 2 or 5 clicks...

But maybe other people's workflows are different.

Comment thread tests/test_backport.py
[SECURITY_LABEL_URL],
),
(
[BUGFIX_LABEL, SECURITY_LABEL],

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It surprises me that you need both labels to get the full set; I would expect security alone to get everything since it's a superset of bugfix.

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants