Skip to content

Commit

Permalink
ci: fix nightly performance tests (#2522)
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera authored Jul 20, 2024
1 parent 50993cb commit df6ff86
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci-nightly-performance-testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ on:
required: false
default: 'http://localhost:9545'
schedule:
- cron: '0 0 * * *' # Runs every day at midnight UTC
# run at 6AM UTC Daily
# 6AM UTC -> 11PM PT
- cron: "0 6 * * *"

jobs:
nightly_evm_api_performance_test:
Expand All @@ -35,10 +37,10 @@ jobs:
- name: "CONFIGURE:PERFORMANCE:TEMPLATE"
env:
CLOUDFLARE_UUID: ${{ secrets.CLOUDFLARE_UUID }}
ENDPOINT: ${{ inputs.endpoint || 'http://localhost:9545' }}
run: |
# Replace -=endpoint_to_test=- placeholder in the art.yaml file with the endpoint_to_test value
sed -i "s|-=endpoint_to_test=-|${{inputs.endpoint}}|g" .github/actions/performance-tests/art.yaml
echo "CLOUDFLARE_UUID=${{ secrets.CLOUDFLARE_UUID }}" >> ${GITHUB_ENV}
sed -i "s|-=endpoint_to_test=-|${ENDPOINT}|g" .github/actions/performance-tests/art.yaml
# Replace -=CLOUDFLARE_UUID=- placeholder in the art.yaml file with the correct value
sed -i "s|-=CLOUDFLARE_UUID=-|${CLOUDFLARE_UUID}|g" .github/actions/performance-tests/art.yaml
cat .github/actions/performance-tests/art.yaml
Expand Down Expand Up @@ -109,5 +111,6 @@ jobs:
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
job_name: "NIGHTLY:EVM:API:PERFORMANCE:TEST"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_CI_ALERTS }}

0 comments on commit df6ff86

Please sign in to comment.