-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: (re)split execution path to avoid breaking changes with 0 amounts (
#427)
- Loading branch information
Antoine Gelloz
authored
Feb 6, 2023
1 parent
1345154
commit e3f04fb
Showing
17 changed files
with
1,091 additions
and
1,018 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
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 |
---|---|---|
|
@@ -11,6 +11,7 @@ vars: | |
TIMEOUT: "10m" | ||
RUN: ".*" | ||
TAGS: "-tags json1,netgo" | ||
BENCH_TIME: "30s" | ||
BENCH_RESULTS_DIR: "/tmp/benchmarks" | ||
BENCH_RESULTS_FILE: "/tmp/benchmarks/ledger.txt" | ||
BENCH_CPU_PROFILE: "/tmp/benchmarks/ledger.cpu.prof" | ||
|
@@ -29,7 +30,9 @@ tasks: | |
|
||
tests: | ||
cmds: | ||
- go test {{.TAGS}} {{if eq .VERBOSE "true"}}-v{{end}} -coverpkg {{.PKG}} -coverprofile coverage.out -covermode atomic {{.PKG}} | ||
- > | ||
go test {{.TAGS}} {{if eq .VERBOSE "true"}}-v{{end}} -coverpkg {{.PKG}} | ||
-coverprofile coverage.out -covermode atomic {{.PKG}} | ||
tests:local: | ||
cmds: | ||
|
@@ -76,22 +79,8 @@ tasks: | |
cmds: | ||
- mkdir -p {{.BENCH_RESULTS_DIR}} | ||
- > | ||
go test {{.TAGS}} ./pkg/storage/sqlstorage | ||
-run=XXX -bench={{.RUN}} -benchmem -timeout 1h | ||
-cpuprofile {{.BENCH_CPU_PROFILE}} -memprofile {{.BENCH_MEM_PROFILE}} | ||
| tee {{.BENCH_RESULTS_FILE}} | ||
- benchstat {{.BENCH_RESULTS_FILE}} | ||
env: | ||
NUMARY_STORAGE_DRIVER: "postgres" | ||
NUMARY_STORAGE_POSTGRES_CONN_STRING: "postgresql://ledger:[email protected]/ledger" | ||
|
||
bench:ledger: | ||
deps: [postgres] | ||
cmds: | ||
- mkdir -p {{.BENCH_RESULTS_DIR}} | ||
- > | ||
go test {{.TAGS}} ./pkg/ledger | ||
-run=XXX -bench=BenchmarkLedger_{{.RUN}} -benchmem -benchtime=30s -timeout 1h | ||
go test {{.TAGS}} {{if eq .VERBOSE "true"}}-v{{end}} {{.PKG}} | ||
-run=XXX -bench={{.RUN}} -benchmem -benchtime={{.BENCH_TIME}} -timeout {{.TIMEOUT}} | ||
-cpuprofile {{.BENCH_CPU_PROFILE}} -memprofile {{.BENCH_MEM_PROFILE}} | ||
| tee {{.BENCH_RESULTS_FILE}} | ||
- benchstat {{.BENCH_RESULTS_FILE}} | ||
|
@@ -110,7 +99,6 @@ tasks: | |
install: | ||
deps: | ||
- install:golangci-lint | ||
- install:cov-report | ||
- install:perf | ||
|
||
install:golangci-lint: | ||
|
@@ -120,10 +108,6 @@ tasks: | |
sh -s -- -b $(go env GOPATH)/bin latest | ||
- golangci-lint --version | ||
|
||
install:cov-report: | ||
cmds: | ||
- go install github.com/go-phorce/cov-report/cmd/cov-report | ||
|
||
install:perf: | ||
- go install golang.org/x/perf/cmd/...@latest | ||
|
||
|
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.