From 317bb3addc3dd1cade860af6ff1da77719349f8d Mon Sep 17 00:00:00 2001 From: Jooho Lee Date: Tue, 12 Aug 2025 16:55:26 -0400 Subject: [PATCH] add prow github gitactions Signed-off-by: Jooho Lee follw up comments Signed-off-by: Jooho Lee --- .github/workflows/prow-github.yml | 37 +++++++++++++++++++++++ .github/workflows/prow-pr-automerge.yml | 18 +++++++++++ .github/workflows/prow-pr-remove-lgtm.yml | 11 +++++++ .github/workflows/re-run-action.yml | 16 ++++++++++ .prowlabels.yaml | 11 +++++++ OWNERS | 5 +++ OWNERS_ALIASES | 19 ++++++++++++ 7 files changed, 117 insertions(+) create mode 100644 .github/workflows/prow-github.yml create mode 100644 .github/workflows/prow-pr-automerge.yml create mode 100644 .github/workflows/prow-pr-remove-lgtm.yml create mode 100644 .github/workflows/re-run-action.yml create mode 100644 .prowlabels.yaml create mode 100644 OWNERS create mode 100644 OWNERS_ALIASES diff --git a/.github/workflows/prow-github.yml b/.github/workflows/prow-github.yml new file mode 100644 index 00000000..0c5f11fd --- /dev/null +++ b/.github/workflows/prow-github.yml @@ -0,0 +1,37 @@ +# Run specified actions or jobs for issue and PR comments + +name: "Prow github actions" +on: + issue_comment: + types: [created] + +# Grant additional permissions to the GITHUB_TOKEN +permissions: + # Allow labeling issues + issues: write + # Allow adding a review to a pull request + pull-requests: write + +jobs: + prow-execute: + runs-on: ubuntu-latest + steps: + - uses: jpmcb/prow-github-actions@v2.0.0 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + prow-commands: "/assign + /unassign + /approve + /retitle + /area + /kind + /priority + /remove + /lgtm + /close + /reopen + /lock + /milestone + /hold + /cc + /uncc" diff --git a/.github/workflows/prow-pr-automerge.yml b/.github/workflows/prow-pr-automerge.yml new file mode 100644 index 00000000..4f874ea0 --- /dev/null +++ b/.github/workflows/prow-pr-automerge.yml @@ -0,0 +1,18 @@ +# This Github workflow will check every hour for PRs with the lgtm label and will attempt to automatically merge them. +# If the hold label is present, it will block automatic merging. + +name: "Prow merge on lgtm label" +on: + schedule: + - cron: "*/5 * * * *" # every 5 minutes + +jobs: + auto-merge: + runs-on: ubuntu-latest + steps: + - uses: jpmcb/prow-github-actions@v2.0.0 + with: + jobs: 'lgtm' + github-token: "${{ secrets.GITHUB_TOKEN }}" + merge-method: 'squash' + \ No newline at end of file diff --git a/.github/workflows/prow-pr-remove-lgtm.yml b/.github/workflows/prow-pr-remove-lgtm.yml new file mode 100644 index 00000000..caf208f3 --- /dev/null +++ b/.github/workflows/prow-pr-remove-lgtm.yml @@ -0,0 +1,11 @@ +name: Run Jobs on PR +on: pull_request + +jobs: + execute: + runs-on: ubuntu-latest + steps: + - uses: jpmcb/prow-github-actions@v2.0.0 + with: + jobs: lgtm + github-token: '${{ secrets.GITHUB_TOKEN }}' diff --git a/.github/workflows/re-run-action.yml b/.github/workflows/re-run-action.yml new file mode 100644 index 00000000..cb2914e8 --- /dev/null +++ b/.github/workflows/re-run-action.yml @@ -0,0 +1,16 @@ +name: Re-Run PR tests + +on: + issue_comment: + types: [created] + +jobs: + rerun_pr_tests: + name: rerun_pr_tests + if: ${{ github.event.issue.pull_request }} + runs-on: ubuntu-20.04 + steps: + - uses: estroz/rerun-actions@main + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + comment_id: ${{ github.event.comment.id }} diff --git a/.prowlabels.yaml b/.prowlabels.yaml new file mode 100644 index 00000000..e1cace95 --- /dev/null +++ b/.prowlabels.yaml @@ -0,0 +1,11 @@ +# Labels for labeling issues and pull requests using GitHub prow action. +kind: + - 'bug' + - 'security' + - 'feature' + - 'docs' + +priority: + - 'p0' + - 'p1' + - 'p2' diff --git a/OWNERS b/OWNERS new file mode 100644 index 00000000..c0d6f1a0 --- /dev/null +++ b/OWNERS @@ -0,0 +1,5 @@ +approvers: +- llm-d-inference-scheduler-maintainers + +reviewers: +- llm-d-inference-scheduler-reviewers diff --git a/OWNERS_ALIASES b/OWNERS_ALIASES new file mode 100644 index 00000000..c2149852 --- /dev/null +++ b/OWNERS_ALIASES @@ -0,0 +1,19 @@ +# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md +# This file should be kept in sync with k/org. + +aliases: + llm-d-inference-scheduler-maintainers: + - elevran + - kfirtoledo + - kfswain + - nilig + - nirrozenbaum + - shmuelk + + llm-d-inference-scheduler-reviewers: + - elevran + - kfirtoledo + - kfswain + - nilig + - nirrozenbaum + - shmuelk