From 9c728a5f26652739745ee66ceb9b84afa305c0e9 Mon Sep 17 00:00:00 2001 From: Sivanantham Chinnaiyan Date: Fri, 16 Aug 2024 15:14:22 +0530 Subject: [PATCH 1/5] Add prow-github-action Signed-off-by: Sivanantham Chinnaiyan --- .github/labels.yaml | 31 +++++++++++++++++++++++ .github/workflows/prow-github.yml | 30 ++++++++++++++++++++++ .github/workflows/prow-pr-automerge.yml | 17 +++++++++++++ .github/workflows/prow-pr-remove-lgtm.yml | 14 ++++++++++ 4 files changed, 92 insertions(+) create mode 100644 .github/labels.yaml 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 diff --git a/.github/labels.yaml b/.github/labels.yaml new file mode 100644 index 00000000000..26e66e3668f --- /dev/null +++ b/.github/labels.yaml @@ -0,0 +1,31 @@ +# Labels for labeling issues and pull requests using GitHub prow action. +kind: + - 'bug' + - 'discussion' + - 'feature' + - 'process' + - 'question' + +area: + - 'api' + - 'azure' + - 'docs' + - 'example' + - 'gcp' + - 'inference' + - 'infrastructure-feature' + - 'logging' + - 'operator' + - 'performance' + - 'testing' + - 'project-health' + - 'servingruntime' + - 'inferencegraph' + - 'storage' + - 'inferenceservice' + - 'control-plane' + +priority: + - 'p0' + - 'p1' + - 'p2' diff --git a/.github/workflows/prow-github.yml b/.github/workflows/prow-github.yml new file mode 100644 index 00000000000..eaa25b7742d --- /dev/null +++ b/.github/workflows/prow-github.yml @@ -0,0 +1,30 @@ +# Run specified actions or jobs for issue and PR comments + +name: "Prow github actions" +on: + issue_comment: + types: [created] + +jobs: + prow-execute: + runs-on: ubuntu-latest + steps: + - uses: jpmcb/prow-github-actions@v1.1.3 + with: + prow-commands: '/assign + /unassign + /approve + /retitle + /area + /kind + /priority + /remove + /lgtm + /close + /reopen + /lock + /milestone + /hold + /cc + /uncc' + github-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/prow-pr-automerge.yml b/.github/workflows/prow-pr-automerge.yml new file mode 100644 index 00000000000..996ff0dffda --- /dev/null +++ b/.github/workflows/prow-pr-automerge.yml @@ -0,0 +1,17 @@ +# 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: "Merge on lgtm label" +on: + schedule: + - cron: "0 * * * *" # every hour + +jobs: + auto-merge: + runs-on: ubuntu-latest + steps: + - uses: jpmcb/prow-github-actions@v1.1.3 + with: + jobs: 'lgtm' + github-token: "${{ secrets.GITHUB_TOKEN }}" + merge-method: 'squash' diff --git a/.github/workflows/prow-pr-remove-lgtm.yml b/.github/workflows/prow-pr-remove-lgtm.yml new file mode 100644 index 00000000000..3d949def0fe --- /dev/null +++ b/.github/workflows/prow-pr-remove-lgtm.yml @@ -0,0 +1,14 @@ +# This workflow will remove the lgtm label from a PR that gets updated. +# This prevents any un-reviewed code from being automatically merged by the lgtm-merger mechanism. + +name: "Remove lgtm label" +on: pull_request + +jobs: + remove-lgtm: + runs-on: ubuntu-latest + steps: + - uses: jpmcb/prow-github-actions@v1.1.3 + with: + jobs: 'lgtm' + github-token: "${{ secrets.GITHUB_TOKEN }}" From d8a866620a6f364a49b536b3c96d05e956be036a Mon Sep 17 00:00:00 2001 From: Sivanantham Chinnaiyan Date: Fri, 16 Aug 2024 15:32:28 +0530 Subject: [PATCH 2/5] 15 min Signed-off-by: Sivanantham Chinnaiyan --- .github/workflows/prow-pr-automerge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/prow-pr-automerge.yml b/.github/workflows/prow-pr-automerge.yml index 996ff0dffda..dce69a03473 100644 --- a/.github/workflows/prow-pr-automerge.yml +++ b/.github/workflows/prow-pr-automerge.yml @@ -4,7 +4,7 @@ name: "Merge on lgtm label" on: schedule: - - cron: "0 * * * *" # every hour + - cron: "15 * * * *" # every hour jobs: auto-merge: From a8c0c2bd74ecc15401adbc5bd7fa0febcf8c147f Mon Sep 17 00:00:00 2001 From: Sivanantham <90966311+sivanantha321@users.noreply.github.com> Date: Fri, 16 Aug 2024 16:53:38 +0530 Subject: [PATCH 3/5] dummy (#15) Signed-off-by: Sivanantham Chinnaiyan --- python/kserve/test/test_grpc_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/kserve/test/test_grpc_server.py b/python/kserve/test/test_grpc_server.py index 989f996e698..3e0dcb82196 100644 --- a/python/kserve/test/test_grpc_server.py +++ b/python/kserve/test/test_grpc_server.py @@ -13,7 +13,7 @@ # limitations under the License. import grpc -import grpc_testing +import grpc_testinga # noqa F821 import numpy as np import pandas as pd import pytest From 5acb9a23c5e0b1d507d9f977b7973761c87b26f9 Mon Sep 17 00:00:00 2001 From: Sivanantham <90966311+sivanantha321@users.noreply.github.com> Date: Fri, 16 Aug 2024 16:55:27 +0530 Subject: [PATCH 4/5] Revert "dummy (#15)" (#16) This reverts commit a8c0c2bd74ecc15401adbc5bd7fa0febcf8c147f. --- python/kserve/test/test_grpc_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/kserve/test/test_grpc_server.py b/python/kserve/test/test_grpc_server.py index 3e0dcb82196..989f996e698 100644 --- a/python/kserve/test/test_grpc_server.py +++ b/python/kserve/test/test_grpc_server.py @@ -13,7 +13,7 @@ # limitations under the License. import grpc -import grpc_testinga # noqa F821 +import grpc_testing import numpy as np import pandas as pd import pytest From 94855e23bd50f2bc19eac544fd2d621acdf6764b Mon Sep 17 00:00:00 2001 From: Sivanantham <90966311+sivanantha321@users.noreply.github.com> Date: Fri, 16 Aug 2024 18:16:25 +0530 Subject: [PATCH 5/5] dummy (#17) Signed-off-by: Sivanantham Chinnaiyan --- python/kserve/test/test_grpc_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/kserve/test/test_grpc_server.py b/python/kserve/test/test_grpc_server.py index 989f996e698..3e0dcb82196 100644 --- a/python/kserve/test/test_grpc_server.py +++ b/python/kserve/test/test_grpc_server.py @@ -13,7 +13,7 @@ # limitations under the License. import grpc -import grpc_testing +import grpc_testinga # noqa F821 import numpy as np import pandas as pd import pytest