-
-
Notifications
You must be signed in to change notification settings - Fork 513
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
60 changed files
with
4,267 additions
and
3,130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
name: Test Sysbench Runner Utility Works | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
paths: | ||
- 'go/**' | ||
- 'integration-tests/**' | ||
|
||
concurrency: | ||
group: ci-sysbench-runner-tests-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
mysql_client_integrations_job: | ||
runs-on: ubuntu-22.04 | ||
name: Test Sysbench Runner | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Copy Dockerfile | ||
run: cp -r ./go/performance/continuous_integration/. . | ||
- name: Test sysbench runner | ||
uses: ./.github/actions/sysbench-runner-tests | ||
#name: Test Sysbench Runner Utility Works | ||
# | ||
#on: | ||
# pull_request: | ||
# branches: [ main ] | ||
# paths: | ||
# - 'go/**' | ||
# - 'integration-tests/**' | ||
# | ||
#concurrency: | ||
# group: ci-sysbench-runner-tests-${{ github.event.pull_request.number || github.ref }} | ||
# cancel-in-progress: true | ||
# | ||
#jobs: | ||
# mysql_client_integrations_job: | ||
# runs-on: ubuntu-22.04 | ||
# name: Test Sysbench Runner | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
# - name: Copy Dockerfile | ||
# run: cp -r ./go/performance/continuous_integration/. . | ||
# - name: Test sysbench runner | ||
# uses: ./.github/actions/sysbench-runner-tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright 2019-2022 Dolthub, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package benchmark_runner | ||
|
||
import "context" | ||
|
||
type Benchmarker interface { | ||
Benchmark(ctx context.Context) (Results, error) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// Copyright 2019-2022 Dolthub, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package benchmark_runner | ||
|
||
import "context" | ||
|
||
type Config interface { | ||
GetRuns() int | ||
GetScriptDir() string | ||
GetNomsBinFormat() string | ||
GetRuntimeOs() string | ||
GetRuntimeGoArch() string | ||
GetServerConfigs() []ServerConfig | ||
Validate(ctx context.Context) error | ||
ContainsServerOfType(server ServerType) bool | ||
} | ||
|
||
type SysbenchConfig interface { | ||
Config | ||
GetTestOptions() []string | ||
GetTestConfigs() []TestConfig | ||
} | ||
|
||
type TpccConfig interface { | ||
Config | ||
GetScaleFactors() []int | ||
} |
Oops, something went wrong.