Skip to content

Commit

Permalink
Desactivate bench
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Maireaux <maxence@maireaux.fr>
  • Loading branch information
flemzord committed Jan 19, 2022
1 parent b5a71d8 commit 4a337a9
Showing 1 changed file with 97 additions and 97 deletions.
194 changes: 97 additions & 97 deletions .github/workflows/pr_open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,103 +111,103 @@ jobs:
NUMARY_STORAGE_POSTGRES_CONN_STRING: "postgresql://ledger:ledger@127.0.0.1/ledger"
- name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash)
Bench_sqlite:
name: 'Bench - SQLite'
runs-on: ubuntu-latest
needs:
- build_control
- docs
steps:
- uses: actions/setup-go@v2
with:
go-version: '1.16'
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: get deps
run: go mod download
- name: fetch numary control
uses: actions/download-artifact@v2
with:
name: control-dist
path: cmd/control/
- name: run benchs
run: go test -bench=Benchmark -run=^a ./... | tee output.txt
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
name: Leger Bench for SQLite
tool: 'go'
output-file-path: output.txt
fail-on-alert: true
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-on-alert: true
benchmark-data-dir-path: dev/bench-sqlite
auto-push: false
comment-always: true
Bench_postgres:
name: 'Bench - PostgreSQL'
runs-on: ubuntu-latest
needs:
- build_control
- docs
services:
postgres:
image: postgres:13-alpine
env:
POSTGRES_USER: ledger
POSTGRES_PASSWORD: ledger
POSTGRES_DB: ledger
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/setup-go@v2
with:
go-version: '1.16'
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: get deps
run: go mod download
- name: fetch numary control
uses: actions/download-artifact@v2
with:
name: control-dist
path: cmd/control/
- name: run tests
run: go test -bench=Benchmark -run=^a ./... | tee output.txt
env:
NUMARY_STORAGE_DRIVER: "postgres"
NUMARY_STORAGE_POSTGRES_CONN_STRING: "postgresql://ledger:ledger@127.0.0.1/ledger"
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
name: Leger Bench for PostgreSQL
tool: 'go'
output-file-path: output.txt
fail-on-alert: true
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-on-alert: true
benchmark-data-dir-path: dev/bench-pgsql
auto-push: false
comment-always: true
# Bench_sqlite:
# name: 'Bench - SQLite'
# runs-on: ubuntu-latest
# needs:
# - build_control
# - docs
# steps:
# - uses: actions/setup-go@v2
# with:
# go-version: '1.16'
# - uses: actions/checkout@v2
# - uses: actions/cache@v2
# with:
# path: |
# ~/.cache/go-build
# ~/go/pkg/mod
# key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
# restore-keys: |
# ${{ runner.os }}-go-
# - name: get deps
# run: go mod download
# - name: fetch numary control
# uses: actions/download-artifact@v2
# with:
# name: control-dist
# path: cmd/control/
# - name: run benchs
# run: go test -bench=Benchmark -run=^a ./... | tee output.txt
# - name: Store benchmark result
# uses: benchmark-action/github-action-benchmark@v1
# with:
# name: Leger Bench for SQLite
# tool: 'go'
# output-file-path: output.txt
# fail-on-alert: true
# github-token: ${{ secrets.GITHUB_TOKEN }}
# comment-on-alert: true
# benchmark-data-dir-path: dev/bench-sqlite
# auto-push: false
# comment-always: true
# Bench_postgres:
# name: 'Bench - PostgreSQL'
# runs-on: ubuntu-latest
# needs:
# - build_control
# - docs
# services:
# postgres:
# image: postgres:13-alpine
# env:
# POSTGRES_USER: ledger
# POSTGRES_PASSWORD: ledger
# POSTGRES_DB: ledger
# ports:
# - 5432:5432
# options: >-
# --health-cmd pg_isready
# --health-interval 10s
# --health-timeout 5s
# --health-retries 5
# steps:
# - uses: actions/setup-go@v2
# with:
# go-version: '1.16'
# - uses: actions/checkout@v2
# - uses: actions/cache@v2
# with:
# path: |
# ~/.cache/go-build
# ~/go/pkg/mod
# key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
# restore-keys: |
# ${{ runner.os }}-go-
# - name: get deps
# run: go mod download
# - name: fetch numary control
# uses: actions/download-artifact@v2
# with:
# name: control-dist
# path: cmd/control/
# - name: run tests
# run: go test -bench=Benchmark -run=^a ./... | tee output.txt
# env:
# NUMARY_STORAGE_DRIVER: "postgres"
# NUMARY_STORAGE_POSTGRES_CONN_STRING: "postgresql://ledger:ledger@127.0.0.1/ledger"
# - name: Store benchmark result
# uses: benchmark-action/github-action-benchmark@v1
# with:
# name: Leger Bench for PostgreSQL
# tool: 'go'
# output-file-path: output.txt
# fail-on-alert: true
# github-token: ${{ secrets.GITHUB_TOKEN }}
# comment-on-alert: true
# benchmark-data-dir-path: dev/bench-pgsql
# auto-push: false
# comment-always: true
Lint:
name: 'Lint'
runs-on: ubuntu-latest
Expand Down

0 comments on commit 4a337a9

Please sign in to comment.