Skip to content

Commit

Permalink
Fix PerformanceTests xlang KafkaIO Python job (#33585)
Browse files Browse the repository at this point in the history
* Fix cluster name

* Fix Install Kafka step
  • Loading branch information
Amar3tto authored Jan 16, 2025
1 parent 7c9fb33 commit d22bb92
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/beam_PerformanceTests_xlang_KafkaIO_Python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ on:
# Setting explicit permissions for the action to avoid the default permissions which are `write-all` in case of pull_request_target event
permissions:
actions: write
pull-requests: write
checks: write
pull-requests: read
checks: read
contents: read
deployments: read
id-token: none
issues: write
issues: read
discussions: read
packages: read
pages: read
Expand All @@ -49,17 +49,18 @@ env:
INFLUXDB_USER_PASSWORD: ${{ secrets.INFLUXDB_USER_PASSWORD }}

jobs:
beam_PerformanceTests_xlang_KafkaIO_Python:
# Using 'PerfTests' instead of 'PerformanceTests' to comply with Kafka Strimzi's name length limitations.
beam_PerfTests_xlang_KafkaIO_Python:
if: |
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'schedule' && github.repository == 'apache/beam') ||
github.event.comment.body == 'Run Python xlang KafkaIO Performance Test'
runs-on: [self-hosted, ubuntu-20.04, main]
runs-on: [self-hosted, ubuntu-20.04, highmem]
timeout-minutes: 240
name: ${{ matrix.job_name }} (${{ matrix.job_phrase }})
strategy:
matrix:
job_name: ["beam_PerformanceTests_xlang_KafkaIO_Python"]
job_name: ["beam_PerfTests_xlang_KafkaIO_Python"]
job_phrase: ["Run Python xlang KafkaIO Performance Test"]
steps:
- uses: actions/checkout@v4
Expand All @@ -76,7 +77,7 @@ jobs:
- name: Set k8s access
uses: ./.github/actions/setup-k8s-access
with:
cluster_name: beam-utility
cluster_name: kafka-workflows
k8s_namespace: ${{ matrix.job_name }}-${{ github.run_id }}
cluster_zone: us-central1
- name: Install Kafka
Expand Down Expand Up @@ -119,4 +120,4 @@ jobs:
-Prunner=DataflowRunner \
-PloadTest.mainClass=apache_beam.io.external.xlang_kafkaio_perf_test \
-PpythonVersion=3.9 \
'-PloadTest.args=${{ env.beam_PerformanceTests_xlang_KafkaIO_Python_test_arguments_1 }}'
'-PloadTest.args=${{ env.beam_PerfTests_xlang_KafkaIO_Python_test_arguments_1 }}'
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
--metrics_table=python_kafkaio_results
--influx_measurement=python_kafkaio_results
--test_class=KafkaIOPerfTest
--input_options=''{\\"num_records\\":100000000,\\"key_size\\":10,\\"value_size\\":90,\\"algorithm\\":\\"lcg\\"}''
--input_options=''{\\"num_records\\":50000000,\\"key_size\\":10,\\"value_size\\":90,\\"algorithm\\":\\"lcg\\"}''
--kafka_topic=beam
--read_timeout=1500
--read_timeout=3000
--num_workers=5
--autoscaling_algorithm=NONE

0 comments on commit d22bb92

Please sign in to comment.