Skip to content

Commit

Permalink
Merge pull request #1699 from darshan-sj:Load-test-schedule
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 648256592
  • Loading branch information
cloud-teleport committed Jul 1, 2024
2 parents 5e8da41 + 040a1b8 commit afde66d
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/spanner-load-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Checks that are intended to run on PRs containing Java code.

name: Spanner Load Tests

on:
schedule:
# at 02:00 every Day.
- cron: '0 2 * * *'
workflow_dispatch:

permissions: read-all

jobs:
load_tests:
name: Spanner Dataflow Templates Load tests
timeout-minutes: 1440 # 1 day
# Run on any runner that matches all the specified runs-on values.
runs-on: [ self-hosted, perf ]
steps:
- name: Checkout code
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
fetch-depth: 0
- name: Setup Environment
id: setup-java-env
uses: ./.github/actions/setup-java-env
- name: Run Load Tests
run: |
./cicd/run-load-tests \
--modules-to-build="SPANNER" \
--it-region="us-central1" \
--it-project="cloud-teleport-testing" \
--it-artifact-bucket="cloud-teleport-testing-it-gitactions" \
--it-private-connectivity="datastream-private-connect-us-central1"
- name: Upload Load Tests Report
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
if: always() # always run even if the previous step fails
with:
name: surefire-test-results
path: '**/surefire-reports/TEST-*.xml'
retention-days: 1
- name: Cleanup Java Environment
uses: ./.github/actions/cleanup-java-env

0 comments on commit afde66d

Please sign in to comment.