Skip to content

Always auto-move patches tagged Bugfix when a commitfest closes - #120

Merged
JelteF merged 2 commits into
postgres:mainfrom
Shihao-Zhong:auto-move-bugfix
Oct 18, 2026
Merged

JelteF merged 2 commits into
postgres:mainfrom
Shihao-Zhong:auto-move-bugfix

Conversation

@Shihao-Zhong

@Shihao-Zhong Shihao-Zhong commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Álvaro pointed out on pgsql-hackers1 that bug fixes get lost in closed commitfests, because the auto-move rules skip patches whose thread is quiet or whose CI has been failing for too long. Now every open patch tagged Bugfix is moved to the next commitfest when a commitfest closes, regardless of activity or CI state.

Bug fixes that had a quiet thread or a red CI stayed behind in the
closed commitfest, where nobody looks for them. Move every open patch
tagged Bugfix to the next commitfest, whatever its activity or CI state.

Requested by Álvaro Herrera:
https://www.postgresql.org/message-id/ar4QFqNuUX-e0v2B%40alvherre.pgsql
assert QueuedMail.objects.count() == 0


def test_no_auto_move_for_other_tags_without_email_activity(

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.

This test seems unnecessary



def test_auto_move_bugfix_when_failing_too_long(alice, in_progress_cf, open_cf):
"""Patches tagged Bugfix should be auto-moved even if CI has been failing too long."""

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.

Let's combine this test with the test above.

The two Bugfix tests only differed in whether CI was also failing for too
long, so a single test of a Bugfix patch that is both inactive and failing
covers both bypassed conditions. The test checking that other tags don't
trigger auto-move is dropped, since `test_no_auto_move_without_email_activity`
already covers the normal path and the tag check is an explicit name match.
@JelteF
JelteF merged commit 0145ed0 into postgres:main Oct 18, 2026
2 checks passed
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