Skip to content

[improve][CI] Optimize "Pulsar Bot" workflow - #17491

Merged
lhotari merged 1 commit into
apache:masterfrom
lhotari:lh-optimize-pulsarbot-workflow
Sep 8, 2022
Merged

lhotari merged 1 commit into
apache:masterfrom
lhotari:lh-optimize-pulsarbot-workflow

Conversation

@lhotari

@lhotari lhotari commented Sep 6, 2022 •

Copy link
Copy Markdown
Member

Motivation

Currently build jobs in the "Pulsar Bot" workflow will get triggered for all issue/PR comments. This wastes resources since the build jobs will get added to the build queue and this consumes quota.
The "Pulsar Bot" workflow can be optimized to save CI resources.

Modifications

  • 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

  • doc-not-needed

@lhotari lhotari added the area/ci label Sep 6, 2022
@lhotari lhotari added this to the 2.12.0 milestone Sep 6, 2022
@lhotari lhotari self-assigned this Sep 6, 2022

@tisonkun tisonkun 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.

move the filter from the build step to the build job

Good catch!

@github-actions

github-actions Bot commented Sep 6, 2022

Copy link
Copy Markdown

@lhotari Please provide a correct documentation label for your PR.
Instructions see Pulsar Documentation Label Guide.

@tisonkun

tisonkun commented Sep 6, 2022 •

Copy link
Copy Markdown
Member

The docbot-related issue should be resolved by apache/pulsar-test-infra#69. You can help on reviewing it.

@lhotari lhotari added doc-not-needed Your PR changes do not impact docs and removed doc-label-missing labels Sep 6, 2022
@lhotari
lhotari force-pushed the lh-optimize-pulsarbot-workflow branch from 8aab737 to ca18594 Compare September 7, 2022 05:18
- 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
@Technoboy-
Technoboy- force-pushed the lh-optimize-pulsarbot-workflow branch from ca18594 to 5115061 Compare September 8, 2022 02:33

@maxsxu maxsxu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Thanks Lari

@lhotari
lhotari merged commit 730b488 into apache:master Sep 8, 2022
nicoloboschi pushed a commit to nicoloboschi/pulsar that referenced this pull request Sep 8, 2022
- 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
nicoloboschi pushed a commit that referenced this pull request Sep 9, 2022
- 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 730b488)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants