mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-20 11:22:31 -05:00
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:
4
.github/actions/ses-email-action/action.yaml
vendored
4
.github/actions/ses-email-action/action.yaml
vendored
@@ -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:
|
||||
|
||||
8
.github/actions/ses-email-action/bats-windows-failure-template.json
vendored
Normal file
8
.github/actions/ses-email-action/bats-windows-failure-template.json
vendored
Normal 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"
|
||||
}
|
||||
}
|
||||
6310
.github/actions/ses-email-action/dist/index.js
vendored
6310
.github/actions/ses-email-action/dist/index.js
vendored
File diff suppressed because one or more lines are too long
2
.github/actions/ses-email-action/index.js
vendored
2
.github/actions/ses-email-action/index.js
vendored
@@ -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,
|
||||
|
||||
3
.github/workflows/ci-bats-unix.yaml
vendored
3
.github/workflows/ci-bats-unix.yaml
vendored
@@ -3,6 +3,9 @@ name: Test Bats Unix
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
paths:
|
||||
- 'go/**'
|
||||
- 'integration-tests/**'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
||||
50
.github/workflows/ci-bats-windows.yaml
vendored
50
.github/workflows/ci-bats-windows.yaml
vendored
@@ -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 }}"]'
|
||||
|
||||
@@ -3,6 +3,9 @@ name: Check Compatibility
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
paths:
|
||||
- 'go/**'
|
||||
- 'integration-tests/**'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
||||
6
.github/workflows/ci-mysql-client-tests.yaml
vendored
6
.github/workflows/ci-mysql-client-tests.yaml
vendored
@@ -1,6 +1,10 @@
|
||||
name: Test MySQL Client integrations
|
||||
|
||||
on: [pull_request]
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- 'go/**'
|
||||
- 'integration-tests/**'
|
||||
|
||||
jobs:
|
||||
mysql_client_integrations_job:
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user