Merge pull request #2899 from dolthub/db/bats-windows

[no-release-notes] /.github/workflows/ci-bats-windows.yaml: stop bats windows on pr
This commit is contained in:
Dustin Brown
2022-03-01 11:17:30 -08:00
committed by GitHub
10 changed files with 3230 additions and 3165 deletions

View File

@@ -6,7 +6,7 @@ inputs:
required: true
default: ''
version:
description: 'dolt version being benchmarked'
description: 'dolt version being benchmarked or ref of bats windows job'
required: true
default: ''
template:
@@ -14,7 +14,7 @@ inputs:
required: false
default: 'PerformanceBenchmarkingReleaseTemplate'
dataFile:
required: true
required: false
description: 'path to email data file'
default: ''
toAddresses:

View File

@@ -0,0 +1,8 @@
{
"Template": {
"TemplateName": "BatsWindowsFailureTemplate",
"SubjectPart": "Bats on Windows failed for ref: {{version}}",
"HtmlPart": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Bats on Windows Failed</title>\n</head><body>Bats on Windows failed for ref: {{version}}</body></html>",
"TextPart": "Bats on Windows failed for ref {{version}}\r\n"
}
}

File diff suppressed because one or more lines are too long

View File

@@ -10,7 +10,7 @@ const CcAddresses = JSON.parse(core.getInput('ccAddresses'));
const ToAddresses = JSON.parse(core.getInput('toAddresses'));
const ReplyToAddresses = JSON.parse(core.getInput('replyToAddresses'));
const data = fs.readFileSync(dataFilePath, { encoding: 'utf-8' });
const data = dataFilePath ? fs.readFileSync(dataFilePath, { encoding: 'utf-8' }) : "";
const templated = {
version,

View File

@@ -3,6 +3,9 @@ name: Test Bats Unix
on:
pull_request:
branches: [ main ]
paths:
- 'go/**'
- 'integration-tests/**'
jobs:
test:

View File

@@ -1,17 +1,28 @@
name: Test Bats Windows
on:
pull_request:
branches: [ main ]
workflow_dispatch:
inputs:
email:
description: 'Email address to receive bats failure notification'
required: true
default: ''
repository_dispatch:
types: [ bats-windows ]
jobs:
get-files:
name: Get File list
name: Get file list
runs-on: ubuntu-18.04
outputs:
files: ${{ steps.get_file_list.outputs.files }}
steps:
- uses: actions/checkout@v2
if: ${{ github.event_name == 'repository_dispatch' }}
with:
ref: ${{ github.event.client_payload.ref }}
- uses: actions/checkout@v2
if: ${{ github.event_name == 'workflow_dispatch' }}
- name: Get file list
id: get_file_list
run: |
@@ -91,6 +102,11 @@ jobs:
with:
python-version: ^3.6
- uses: actions/checkout@v2
if: ${{ github.event_name == 'repository_dispatch' }}
with:
ref: ${{ github.event.client_payload.ref }}
- uses: actions/checkout@v2
if: ${{ github.event_name == 'workflow_dispatch' }}
- uses: actions/setup-node@v1
with:
node-version: ^12
@@ -134,3 +150,31 @@ jobs:
env:
IS_WINDOWS: true
WINDOWS_BASE_DIR: "/d/a"
report-bats-failure:
name: Report Bats Windows Failure via Email
needs: test-per-file
runs-on: ubuntu-18.04
if: always() && (needs.test-per-file.result == 'failure')
steps:
- uses: actions/checkout@v2
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2
- name: Send Email
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: ./.github/actions/ses-email-action
with:
region: us-west-2
version: ${{ github.head_ref }}
toAddresses: '["${{ github.event.inputs.email }}"]'
- name: Send Email
if: ${{ github.event_name == 'repository_dispatch' }}
uses: ./.github/actions/ses-email-action
with:
region: us-west-2
version: ${{ github.event.client_payload.ref }}
toAddresses: '["${{ github.event.client_payload.actor_email }}"]'

View File

@@ -3,6 +3,9 @@ name: Check Compatibility
on:
pull_request:
branches: [ main ]
paths:
- 'go/**'
- 'integration-tests/**'
jobs:
test:

View File

@@ -1,6 +1,10 @@
name: Test MySQL Client integrations
on: [pull_request]
on:
pull_request:
paths:
- 'go/**'
- 'integration-tests/**'
jobs:
mysql_client_integrations_job:

View File

@@ -65,7 +65,7 @@ jobs:
run: ./.github/scripts/performance-benchmarking/run-benchmarks.sh
env:
FROM_SERVER: 'mysql'
FROM_VERSION: '8.0.22'
FROM_VERSION: '8.0.28'
TO_SERVER: 'dolt'
TO_VERSION: ${{ needs.set-version-actor.outputs.version }}
MODE: 'release'

View File

@@ -1,6 +1,11 @@
name: Test Sysbench Runner Utility Works
on: [pull_request]
on:
pull_request:
branches: [ main ]
paths:
- 'go/**'
- 'integration-tests/**'
jobs:
mysql_client_integrations_job: