You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ni...@apache.org on 2022/09/09 07:53:21 UTC
[pulsar] 02/08: [improve][CI] Optimize "Pulsar Bot" workflow (#17491)
This is an automated email from the ASF dual-hosted git repository.
nicoloboschi pushed a commit to branch branch-2.11
in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit 7f1bb5f6b537543171b87a4762e36563f631d765
Author: Lari Hotari <lh...@users.noreply.github.com>
AuthorDate: Thu Sep 8 14:51:36 2022 +0300
[improve][CI] Optimize "Pulsar Bot" workflow (#17491)
- move the filter from the build step to the build job
- only start the build job if the comment includes "/pulsarbot"
- no need to checkout code
- no need to run the tune VM action
(cherry picked from commit 730b4884af25525ec4db886e00b9f59cb5b44474)
---
.github/workflows/ci-pulsarbot.yaml | 22 ++++------------------
1 file changed, 4 insertions(+), 18 deletions(-)
diff --git a/.github/workflows/ci-pulsarbot.yaml b/.github/workflows/ci-pulsarbot.yaml
index 8d3a9b7c587..d6be27027cb 100644
--- a/.github/workflows/ci-pulsarbot.yaml
+++ b/.github/workflows/ci-pulsarbot.yaml
@@ -21,29 +21,15 @@ name: Pulsar Bot
on:
issue_comment:
types: [created]
- pull_request:
- types: [closed]
-
-env:
- MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3
jobs:
-
- action-runner:
- name:
+ pulsarbot:
runs-on: ubuntu-latest
- timeout-minutes: 120
-
+ timeout-minutes: 10
+ if: github.event_name == 'issue_comment' && contains(github.event.comment.body, '/pulsarbot')
steps:
- - name: checkout
- uses: actions/checkout@v2
-
- - name: Tune Runner VM
- uses: ./.github/actions/tune-runner-vm
-
- name: Execute pulsarbot command
- id: pulsarbot
- if: github.event_name == 'issue_comment' && contains(github.event.comment.body, '/pulsarbot')
+ id: pulsarbot
env:
GITHUB_TOKEN: ${{ secrets.PULSARBOT_TOKEN }}
uses: apache/pulsar-test-infra/pulsarbot@master