Skip to content

Add pkglistgen bot for git workflow project PRs#3287

Draft
g7 wants to merge 12 commits into
openSUSE:masterfrom
g7:pkglistgen-bot
Draft

Add pkglistgen bot for git workflow project PRs#3287
g7 wants to merge 12 commits into
openSUSE:masterfrom
g7:pkglistgen-bot

Conversation

@g7

@g7 g7 commented Jan 16, 2026

Copy link
Copy Markdown
Member

A more meaningful diff is available here: YoukouTenhouin/openSUSE-release-tools@379976a...g7:openSUSE-release-tools:pkglistgen-bot

This review bot runs pkglistgen on codestream QA projects.

pkglistgen only runs on successful builds, otherwise the request
is skipped and retried later.

Contributes to openSUSE/openSUSE-git#207

Comment thread git-pkglistgen.py Outdated
Comment thread git-pkglistgen.py Outdated
@g7
g7 force-pushed the pkglistgen-bot branch 5 times, most recently from 0edc059 to aceaca2 Compare January 26, 2026 17:19
@g7

g7 commented Jan 26, 2026

Copy link
Copy Markdown
Member Author

v2:

  • Rebased on top of feat: add branch info in gitea request implementation #3291.
  • Support forking repositories
  • Add support for Label retrieval on the gitea platform
  • Use an allowlist for organization/repo pairs
  • Only process In Progress PRs
  • Ship the osrt-git-pkglistgen both in the openSUSE-release-tools-pkglistgen package

@g7
g7 force-pushed the pkglistgen-bot branch 2 times, most recently from bf83015 to 0773997 Compare February 24, 2026 14:02
@g7

g7 commented Feb 24, 2026

Copy link
Copy Markdown
Member Author

v3:

  • Fix lint issues
  • Fix allowlist that wasn't working properly
  • Add support for Labels
  • Allow passing status messages

@g7
g7 marked this pull request as draft March 19, 2026 16:54
@g7

g7 commented Mar 19, 2026

Copy link
Copy Markdown
Member Author

I'm moving this to draft. We will move to package monkey for the next milestone, and so this bot needs to be reworked.

Moved the Labels and Reviews support in #3307

g7 added 12 commits June 24, 2026 16:13
It is perfectly valid for a pkglistgen run to be identical to the
last one. Ensure we don't fail in that case.

Signed-off-by: Eugenio Paolantonio <eugenio.paolantonio@suse.com>
This review bot runs pkglistgen on codestream QA projects.

pkglistgen only runs on successful builds, otherwise the request
is skipped and retried later.

Signed-off-by: Eugenio Paolantonio <eugenio.paolantonio@suse.com>
Fork organization should be supplied via the pkglistgen-git-staging-org-url
configuration.

The tip of the QA project branch will be forked to
pkglistgen-git-staging-org-url/<QA_PROJECT_NAME>, and its scmsync
will be set there.

Signed-off-by: Eugenio Paolantonio <eugenio.paolantonio@suse.com>
Use --git-allowed-repos to specify them. They need to be comma
separated.

If a repository is not there, the bot will ignore the request even if
it is added as a reviewer.

Signed-off-by: Eugenio Paolantonio <eugenio.paolantonio@suse.com>
Signed-off-by: Eugenio Paolantonio <eugenio.paolantonio@suse.com>
Signed-off-by: Eugenio Paolantonio <eugenio.paolantonio@suse.com>
Signed-off-by: Eugenio Paolantonio <eugenio.paolantonio@suse.com>
autogits gained support for Labels, where RelEngs can choose between
different templates for a different degrees of testing.

This commit adds support for it. The bot will not run (but will
accept the PR anyway) for "In Progress" stagings without any of the
allowed Labels being set. The labels are configurable, and they default
to:

QA-SLES-Basic QA-SLES-Reduced QA-SLES-Full

Signed-off-by: Eugenio Paolantonio <eugenio.paolantonio@suse.com>
Distinguish between repositories and mirrors, allow to create
worktrees

Signed-off-by: Eugenio Paolantonio <eugenio.paolantonio@suse.com>
… namedtuple

Signed-off-by: Eugenio Paolantonio <eugenio.paolantonio@suse.com>
Signed-off-by: Eugenio Paolantonio <eugenio.paolantonio@suse.com>
Signed-off-by: Eugenio Paolantonio <eugenio.paolantonio@suse.com>
@g7
g7 force-pushed the pkglistgen-bot branch from a167509 to 909146c Compare June 24, 2026 14:21
@g7

g7 commented Jun 24, 2026

Copy link
Copy Markdown
Member Author

v3:

  • Improvement on Git repositories handling (allow handling standard repos, support worktrees)
  • Initial Package Monkey support (this is running in the c318 VM since some months, it still needs some love though)

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