From 939b7cbfd87e01904733c3844c0d86b23500bf4e Mon Sep 17 00:00:00 2001 From: Dustin Brown Date: Fri, 19 Feb 2021 16:22:07 -0800 Subject: [PATCH] /.github/{scripts, workflows}: iterating on correctness/email workflows --- .../sql-correctness/get-dolt-correctness-job-json.sh | 6 ++++++ .../sql-correctness/get-dolt-regressions-job-json.sh | 5 +++++ .github/workflows/ci-sql-correctness-release.yaml | 2 ++ 3 files changed, 13 insertions(+) diff --git a/.github/scripts/sql-correctness/get-dolt-correctness-job-json.sh b/.github/scripts/sql-correctness/get-dolt-correctness-job-json.sh index 1b345f0d38..ff3136f12a 100755 --- a/.github/scripts/sql-correctness/get-dolt-correctness-job-json.sh +++ b/.github/scripts/sql-correctness/get-dolt-correctness-job-json.sh @@ -33,10 +33,16 @@ echo ' { "name": "sql-correctness", "image": "407903926827.dkr.ecr.us-west-2.amazonaws.com/liquidata/sql-correctness:latest", + "env": [ + { "name": "REPO_ACCESS_TOKEN", "value": "'$REPO_ACCESS_TOKEN'"}, + { "name": "ACTOR", "value": "'$ACTOR'"}, + { "name": "ACTOR_EMAIL", "value": "'$ACTOR_EMAIL'"} + ], "args": [ "--schema=/correctness.sql", "--output='$format'", "--version='$toVersion'", + "--test-dir=test/select1.test", "--bucket=sql-correctness-github-actions-results", "--region=us-west-2", "--results-dir='$timeprefix'", diff --git a/.github/scripts/sql-correctness/get-dolt-regressions-job-json.sh b/.github/scripts/sql-correctness/get-dolt-regressions-job-json.sh index 5902281b6a..fd65847c98 100755 --- a/.github/scripts/sql-correctness/get-dolt-regressions-job-json.sh +++ b/.github/scripts/sql-correctness/get-dolt-regressions-job-json.sh @@ -33,6 +33,11 @@ echo ' { "name": "sql-correctness", "image": "407903926827.dkr.ecr.us-west-2.amazonaws.com/liquidata/sql-correctness:latest", + "env": [ + { "name": "REPO_ACCESS_TOKEN", "value": "'$REPO_ACCESS_TOKEN'"}, + { "name": "ACTOR", "value": "'$ACTOR'"}, + { "name": "ACTOR_EMAIL", "value": "'$ACTOR_EMAIL'"} + ], "args": [ "--schema=/regressions.sql", "--output='$format'", diff --git a/.github/workflows/ci-sql-correctness-release.yaml b/.github/workflows/ci-sql-correctness-release.yaml index 19f088f844..d14ca26550 100644 --- a/.github/workflows/ci-sql-correctness-release.yaml +++ b/.github/workflows/ci-sql-correctness-release.yaml @@ -62,6 +62,8 @@ jobs: TO_VERSION: ${{ needs.set-version-actor.outputs.version }} MODE: 'release' ACTOR: ${{ needs.set-version-actor.outputs.actor }} + ACTOR_EMAIL: ${{ github.event.inputs.email }} + REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }} KUBECONFIG: "./kubeconfig" TEMPLATE_SCRIPT: "./.github/scripts/sql-correctness/get-dolt-correctness-job-json.sh" # - name: Get correctness results