Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Github Actions workflow to trigger pipeline performance test #4231

Merged
merged 12 commits into from
Oct 25, 2024
23 changes: 23 additions & 0 deletions .github/workflows/pipeline-performance-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Trigger Pipeline Performance Test
on:
pull_request:
types: [labeled]

jobs:
check-label:
runs-on: ubuntu-latest

steps:
- name: Check if 'performance' label was added
if: github.event.action == 'labeled' && contains(github.event.label.name, 'performance')
run: |
echo "performance label detected. Triggering performance test."

- name: Trigger performance test workflow in test project
Copy link
Contributor

@ankatiyar ankatiyar Oct 16, 2024

Choose a reason for hiding this comment

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

Also I think you can use the checkout action to clone the performance test repo - https://github.com/actions/checkout
and then call kedro run

Copy link
Contributor

Choose a reason for hiding this comment

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

Has this been addressed?

if: github.event.action == 'labeled' && contains(github.event.label.name, 'performance')
run: |
curl -X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token ${{ secrets.GH_TAGGING_TOKEN }}" \
https://api.github.com/repos/kedro-org/pipeline-performance-test/actions/workflows/performance-test.yml/dispatches \
-d '{"ref":"main", "inputs": {"branch_name": "${{ github.event.pull_request.head.ref }}"}}'