forked from GoogleCloudPlatform/DataflowTemplates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] Load tests with BacklogGenerator
- Loading branch information
1 parent
812bc7a
commit 7e17d7b
Showing
17 changed files
with
1,322 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Load Tests | ||
|
||
on: | ||
schedule: | ||
# at 00:00 every Monday. | ||
- cron: '0 0 * * 1' | ||
workflow_dispatch: | ||
inputs: | ||
testPattern: | ||
description: 'Tests to run' | ||
type: string | ||
required: false | ||
# run all load tests by default | ||
default: '*LT' | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
load_tests: | ||
name: Dataflow Templates Load tests | ||
timeout-minutes: 2880 # 2 days | ||
# Run on any runner that matches all the specified runs-on values. | ||
runs-on: [ self-hosted, perf ] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Environment | ||
id: setup-java-env | ||
uses: ./.github/actions/setup-java-env | ||
- name: Get Host IP | ||
id: variables | ||
run: echo "hostIP=$(gcloud compute instances list | grep $(hostname) | awk '{print $4}' )" >> $GITHUB_OUTPUT | ||
- name: Run load tests with Maven | ||
run: mvn test -Dtest=${TEST_PATTERN} -Dproject=apache-beam-testing -DartifactBucket=gs://apache-beam-testing-pranavbhandari -DhostIp=${HOST_IP} -DexportProject=cloud-teleport-testing -DexportDataset=performance_tests -DexportTable=template_performance_metrics -Djib.skip=true -DskipUnitTests -DfailIfNoTests=false -DtrimStackTrace=false -fae | ||
env: | ||
TEST_PATTERN: ${{ inputs.testPattern }} | ||
HOST_IP: ${{ steps.variables.outputs.hostIP }} | ||
- name: Cleanup Java Environment | ||
uses: ./.github/actions/cleanup-java-env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.