Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tools/benchmark): introduce benchmark module #22778

Merged
merged 30 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from 28 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
f4834de
initial x/benchmark
kocubinski Dec 4, 2024
e4331b5
build works
kocubinski Dec 5, 2024
9a846dc
fix import
kocubinski Dec 5, 2024
e605381
add provider
kocubinski Dec 5, 2024
747802c
do not test migrations for x/benchmark
kocubinski Dec 5, 2024
07d3c37
Merge branch 'main' of github.com:cosmos/cosmos-sdk into kocu/x-bench…
kocubinski Dec 5, 2024
c481721
cleaner filter
kocubinski Dec 5, 2024
4b0dbdc
Add README and CHANGELOG
kocubinski Dec 5, 2024
ca47403
mv x/benchmark -> tools/
kocubinski Dec 5, 2024
554408d
fix proto gen
kocubinski Dec 5, 2024
f9c3575
go mod tidy all
kocubinski Dec 5, 2024
611e9d1
add CI entries
kocubinski Dec 5, 2024
ba608a3
fix(confix): correctly distinguish server/v2 config
kocubinski Dec 5, 2024
777966e
Merge branch 'kocu/server-v2-config' into kocu/x-benchmark-v2
kocubinski Dec 5, 2024
c18378d
Merge branch 'main' of github.com:cosmos/cosmos-sdk into kocu/x-bench…
kocubinski Dec 8, 2024
f2e9c0d
improve rate logging
kocubinski Dec 8, 2024
5d0e511
Merge branch 'main' of github.com:cosmos/cosmos-sdk into kocu/x-bench…
kocubinski Dec 10, 2024
0693d8c
go mod tidy all
kocubinski Dec 10, 2024
91d4291
add comments, some review fixes
kocubinski Dec 11, 2024
1d25773
fix init genesis order
kocubinski Dec 11, 2024
616b952
Merge branch 'main' of github.com:cosmos/cosmos-sdk into kocu/x-bench…
kocubinski Dec 11, 2024
7a086b1
Merge branch 'main' of github.com:cosmos/cosmos-sdk into kocu/x-bench…
kocubinski Dec 11, 2024
256ca93
a store/v1 replace directive is required
kocubinski Dec 11, 2024
a9f1534
Merge branch 'main' of github.com:cosmos/cosmos-sdk into kocu/x-bench…
kocubinski Dec 11, 2024
9b504b8
lint fixes
kocubinski Dec 11, 2024
1384bc6
fix gosec linter error in simd/testnet
kocubinski Dec 12, 2024
1ee54b5
lint fix
kocubinski Dec 12, 2024
dc7ce93
update x/crypto
kocubinski Dec 12, 2024
381cabf
broadcast async
kocubinski Dec 12, 2024
9d555d3
Merge branch 'main' of github.com:cosmos/cosmos-sdk into kocu/x-bench…
kocubinski Dec 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,15 @@ updates:
labels:
- "A:automerge"
- dependencies
- package-ecosystem: gomod
directory: "/tools/benchmark"
schedule:
interval: weekly
day: wednesday
time: "03:25"
labels:
- "A:automerge"
- dependencies

# Dependencies should be up to date on release branch
- package-ecosystem: gomod
Expand Down
1 change: 1 addition & 0 deletions .github/pr_labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- x/simulation/**/*
- x/*/simulation/**/*
- simsx/**/*
- tools/benchmark/**/*
"C:Store":
- store/**/*
"C:collections":
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1536,3 +1536,34 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
projectBaseDir: x/consensus/

test-tools-benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.23.2"
check-latest: true
cache: true
cache-dependency-path: tools/benchmark/go.sum
- uses: technote-space/[email protected]
id: git_diff
with:
PATTERNS: |
tools/benchmark/**/*.go
tools/benchmark/go.mod
tools/benchmark/go.sum
- name: tests
if: env.GIT_DIFF
run: |
cd tools/benchmark
go test -mod=readonly -timeout 30m -coverprofile=coverage.out -covermode=atomic -tags='norace' ./...
- name: sonarcloud
if: ${{ env.GIT_DIFF && !github.event.pull_request.draft && env.SONAR_TOKEN != null }}
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
projectBaseDir: tools/benchmark/
kocubinski marked this conversation as resolved.
Show resolved Hide resolved
Loading
Loading