Skip to content

Add promotion-check script for validating promotion requests#77

Open
Jooho wants to merge 1 commit into
kserve:mainfrom
Jooho:promotion-automation
Open

Add promotion-check script for validating promotion requests#77
Jooho wants to merge 1 commit into
kserve:mainfrom
Jooho:promotion-automation

Conversation

@Jooho

@Jooho Jooho commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Script that validates open promotion requests against governance criteria by querying PR activity from kserve/kserve. Runs locally or in GitHub Actions.

Checks authored (merged) PRs and reviewed PRs separately, filters out bot commands and self-reviews, tracks reviewer tenure for Approver candidates, and detects inactive maintainers.

Supports --user mode for checking individual eligibility before opening a promotion request.

Key measurement logic

  • Reviewer candidate: last 90 days from today
  • Approver candidate (tenure ≥ 3mo): last 90 days from today
  • Approver candidate (tenure < 3mo): since reviewer start date (auto FAIL on tenure)
  • Reviews counted: COMMENTED or CHANGES_REQUESTED (not APPROVED)
  • Noise filtered: bot commands, comments < 10 chars, self-reviews

Script validates open promotion requests in kserve/community against
governance criteria by querying kserve/kserve PR activity.

Key features:
- Separates authored (merged) PR count from reviewed PR count
- Filters out bot commands, short comments, and self-reviews
- For Approver candidates, measures activity only during reviewer
  tenure and fails if tenure is less than 3 months
- Detects inactive maintainers with 12+ months of no activity
- Supports --user mode for individual eligibility checks

Outputs markdown (with summary table) or JSON.

Signed-off-by: Jooho Lee <jlee@redhat.com>

@cjohannsen-cloudera cjohannsen-cloudera left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM thanks!!!

@terrytangyuan terrytangyuan left a comment

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.

Should we deprecate the make list-* commands + scripts? Also, we might want to rename this new Python file since it also checks things unrelated to promotion, e.g. inactivity.

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