Skip to content

Commit 14c841c

Browse files
authored
feat(tools/benchmark): introduce benchmark module (#22778)
1 parent 02fe18c commit 14c841c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+7325
-9
lines changed

Diff for: .github/dependabot.yml

+9
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,15 @@ updates:
332332
labels:
333333
- "A:automerge"
334334
- dependencies
335+
- package-ecosystem: gomod
336+
directory: "/tools/benchmark"
337+
schedule:
338+
interval: weekly
339+
day: wednesday
340+
time: "03:25"
341+
labels:
342+
- "A:automerge"
343+
- dependencies
335344

336345
# Dependencies should be up to date on release branch
337346
- package-ecosystem: gomod

Diff for: .github/pr_labeler.yml

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
- x/simulation/**/*
1515
- x/*/simulation/**/*
1616
- simsx/**/*
17+
- tools/benchmark/**/*
1718
"C:Store":
1819
- store/**/*
1920
"C:collections":

Diff for: .github/workflows/test.yml

+31
Original file line numberDiff line numberDiff line change
@@ -1536,3 +1536,34 @@ jobs:
15361536
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
15371537
with:
15381538
projectBaseDir: x/consensus/
1539+
1540+
test-tools-benchmark:
1541+
runs-on: ubuntu-latest
1542+
steps:
1543+
- uses: actions/checkout@v4
1544+
- uses: actions/setup-go@v5
1545+
with:
1546+
go-version: "1.23.2"
1547+
check-latest: true
1548+
cache: true
1549+
cache-dependency-path: tools/benchmark/go.sum
1550+
- uses: technote-space/[email protected]
1551+
id: git_diff
1552+
with:
1553+
PATTERNS: |
1554+
tools/benchmark/**/*.go
1555+
tools/benchmark/go.mod
1556+
tools/benchmark/go.sum
1557+
- name: tests
1558+
if: env.GIT_DIFF
1559+
run: |
1560+
cd tools/benchmark
1561+
go test -mod=readonly -timeout 30m -coverprofile=coverage.out -covermode=atomic -tags='norace' ./...
1562+
- name: sonarcloud
1563+
if: ${{ env.GIT_DIFF && !github.event.pull_request.draft && env.SONAR_TOKEN != null }}
1564+
uses: SonarSource/sonarcloud-github-action@master
1565+
env:
1566+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1567+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
1568+
with:
1569+
projectBaseDir: tools/benchmark/

0 commit comments

Comments
 (0)