diff --git a/.github/scripts/performance-benchmarking/get-postgres-doltgres-job-json.sh b/.github/scripts/performance-benchmarking/get-postgres-doltgres-job-json.sh index 4100a4a8b5..68dbd3c4f1 100755 --- a/.github/scripts/performance-benchmarking/get-postgres-doltgres-job-json.sh +++ b/.github/scripts/performance-benchmarking/get-postgres-doltgres-job-json.sh @@ -42,7 +42,7 @@ writeTests="('oltp_read_write', 'oltp_update_index', 'oltp_update_non_index', 'o medianLatencyMultiplierWritesQuery="select f.test_name as write_tests, f.server_name, f.server_version, avg(f.latency_percentile) as from_latency_median, t.server_name, t.server_version, avg(t.latency_percentile) as to_latency_median, ROUND(avg(t.latency_percentile) / (avg(f.latency_percentile) + .000001), $precision) as multiplier from from_results as f join to_results as t on f.test_name = t.test_name where f.test_name in $writeTests group by f.test_name;" meanMultiplierWritesQuery="select round(avg(multipliers), $precision) as writes_mean_multiplier from (select (round(avg(t.latency_percentile) / (avg(f.latency_percentile) + .000001), $precision)) as multipliers from from_results as f join to_results as t on f.test_name = t.test_name where f.test_name in $writeTests group by f.test_name)" -meanMultiplierOverallQuery="select round(avg(multipliers), $precision) as overall_mean_multiplier from (select (round(avg(t.latency_percentile) / (avg(f.latency_percentile) + .000001), $precision)) as multipliers from from_results as f join to_results as t on f.test_name = t.test_name group by f.test_name)" +meanMultiplierOverallQuery="select round(avg(multipliers), $precision) as overall_mean_multiplier from (select (round(avg(t.latency_percentile) / (avg(f.latency_percentile) + .000001), $precision)) as multipliers from from_results as f join to_results as t on f.test_name = t.test_name where f.test_name != 'bulk_insert' group by f.test_name)" tpccLatencyQuery="select f.test_name as test_name, f.server_name, f.server_version, avg(f.latency_percentile) as from_latency_median, t.server_name, t.server_version, avg(t.latency_percentile) as to_latency_median, ROUND(avg(t.latency_percentile) / (avg(f.latency_percentile) + .000001), $precision) as multiplier from from_results as f join to_results as t on f.test_name = t.test_name where f.test_name LIKE '$tpccRegex' group by f.test_name;" tpccTpsQuery="select f.test_name as test_name, f.server_name, f.server_version, avg(f.sql_transactions_per_second) as tps, t.test_name as test_name, t.server_name, t.server_version, avg(t.sql_transactions_per_second) as tps from from_results as f join to_results as t on f.test_name = t.test_name where f.test_name LIKE 'tpcc%' group by f.test_name;" diff --git a/.github/workflows/email-report.yaml b/.github/workflows/email-report.yaml index b942c56fd2..4ac6115906 100644 --- a/.github/workflows/email-report.yaml +++ b/.github/workflows/email-report.yaml @@ -4,6 +4,10 @@ on: repository_dispatch: types: [ email-report ] +permissions: + id-token: write # This is required for requesting the JWT + contents: read # This is required for actions/checkout + jobs: email-team: runs-on: ubuntu-22.04 @@ -13,6 +17,7 @@ jobs: - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v2.2.0 with: + role-session-name: GitHub_to_AWS_via_FederatedOIDC role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME_CORP }} aws-region: us-west-2 - name: Get Results @@ -30,8 +35,8 @@ jobs: fi echo "addresses=$addresses" >> $GITHUB_OUTPUT env: - RECIPIENT: ${{ github.event.client_payload.email_recipient || 'dustin@dolthub.com' }} -# TEAM: '["${{ secrets.PERF_REPORTS_EMAIL_ADDRESS }}"]' + RECIPIENT: ${{ github.event.client_payload.email_recipient }} + TEAM: '["${{ secrets.PERF_REPORTS_EMAIL_ADDRESS }}"]' - name: Send Email uses: ./.github/actions/ses-email-action with: