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

/.github/workflows: skip tpcc, add nightly benchmarks and benchmarks on release #105

Merged
merged 2 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/cd-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,14 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
event-type: release-notes
client-payload: '{"version": "${{ needs.format-version.outputs.version }}", "release_id": "${{ needs.create-release.outputs.release_id }}"}'

trigger-performance-benchmark-email:
needs: [format-version, create-release]
runs-on: ubuntu-22.04
steps:
- name: Trigger Performance Benchmarks
uses: peter-evans/[email protected]
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
event-type: release-doltgres
client-payload: '{"version": "${{ needs.format-version.outputs.version }}", "actor": "${{ github.actor }}"}'
2 changes: 1 addition & 1 deletion .github/workflows/email-report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2.2.0
uses: aws-actions/configure-aws-credentials@v4
with:
role-session-name: GitHub_to_AWS_via_FederatedOIDC
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME_CORP }}
Expand Down
36 changes: 19 additions & 17 deletions .github/workflows/k8s-benchmark-latency.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,22 @@ jobs:
INIT_BIG_REPO: ${{ github.event.client_payload.init_big_repo }}
NOMS_BIN_FORMAT: "__DOLT__"
TEMPLATE_SCRIPT: ${{ github.event.client_payload.template_script }}
- name: Create TPCC Performance Benchmarking K8s Job
run: ./.github/scripts/performance-benchmarking/run-benchmarks.sh
env:
FROM_SERVER: ${{ github.event.client_payload.from_server }}
FROM_VERSION: ${{ github.event.client_payload.from_version }}
TO_SERVER: ${{ github.event.client_payload.to_server }}
TO_VERSION: ${{ github.event.client_payload.to_version }}
MODE: ${{ github.event.client_payload.mode }}
ISSUE_NUMBER: ${{ github.event.client_payload.issue_number }}
ACTOR: ${{ github.event.client_payload.actor }}
ACTOR_EMAIL: ${{ github.event.client_payload.actor_email }}
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
KUBECONFIG: "./kubeconfig"
INIT_BIG_REPO: ${{ github.event.client_payload.init_big_repo }}
NOMS_BIN_FORMAT: "__DOLT__"
WITH_TPCC: "true"
TEMPLATE_SCRIPT: ${{ github.event.client_payload.template_script }}

# TODO: skipping tpcc with Doltgres and Postgres, not currently working
# - name: Create TPCC Performance Benchmarking K8s Job
# run: ./.github/scripts/performance-benchmarking/run-benchmarks.sh
# env:
# FROM_SERVER: ${{ github.event.client_payload.from_server }}
# FROM_VERSION: ${{ github.event.client_payload.from_version }}
# TO_SERVER: ${{ github.event.client_payload.to_server }}
# TO_VERSION: ${{ github.event.client_payload.to_version }}
# MODE: ${{ github.event.client_payload.mode }}
# ISSUE_NUMBER: ${{ github.event.client_payload.issue_number }}
# ACTOR: ${{ github.event.client_payload.actor }}
# ACTOR_EMAIL: ${{ github.event.client_payload.actor_email }}
# REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
# KUBECONFIG: "./kubeconfig"
# INIT_BIG_REPO: ${{ github.event.client_payload.init_big_repo }}
# NOMS_BIN_FORMAT: "__DOLT__"
# WITH_TPCC: "true"
# TEMPLATE_SCRIPT: ${{ github.event.client_payload.template_script }}
22 changes: 22 additions & 0 deletions .github/workflows/nightly-performance-benchmarks-email-report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Nightly Benchmarks

on:
workflow_dispatch:
schedule:
- cron: '0 2 * * *'

jobs:
perf:
runs-on: ubuntu-22.04
name: Trigger Benchmark Latency and SQL Correctness K8s Workflows
steps:
- uses: peter-evans/[email protected]
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
event-type: benchmark-latency
client-payload: '{"from_server": "postgres", "from_version": "15.5", "to_server": "doltgres", "to_version": "${{ github.sha }}", "mode": "nightly", "actor": "${{ github.actor }}", "template_script": "./.github/scripts/performance-benchmarking/get-postgres-doltgres-job-json.sh"}'
# - uses: peter-evans/[email protected]
# with:
# token: ${{ secrets.REPO_ACCESS_TOKEN }}
# event-type: sql-correctness
# client-payload: '{"version": "${{ github.sha }}", "mode": "nightly", "actor": "${{ github.actor }}", "template_script": "./.github/scripts/sql-correctness/get-dolt-correctness-job-json.sh"}'
2 changes: 2 additions & 0 deletions .github/workflows/performance-benchmarks-email-report.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Benchmark DoltgreSQL vs PostgreSQL

on:
repository_dispatch:
types: [ release-doltgres ]
workflow_dispatch:
inputs:
version:
Expand Down
Loading