Skip to content

Commit bc76fa8

Browse files
committed
custom logger for MultiStore and disbling of sonarcloud in actions
1 parent f59fb99 commit bc76fa8

File tree

4 files changed

+466
-54
lines changed

4 files changed

+466
-54
lines changed

.github/workflows/test.yml

+53-53
Original file line numberDiff line numberDiff line change
@@ -141,51 +141,51 @@ jobs:
141141
name: "${{ github.sha }}-e2e-coverage"
142142
path: ./tests/e2e-profile.out
143143

144-
repo-analysis:
145-
runs-on: ubuntu-latest
146-
needs: [tests, test-integration, test-e2e]
147-
steps:
148-
- uses: actions/checkout@v3
149-
- uses: technote-space/[email protected]
150-
id: git_diff
151-
with:
152-
PATTERNS: |
153-
**/*.go
154-
go.mod
155-
go.sum
156-
**/go.mod
157-
**/go.sum
158-
- uses: actions/download-artifact@v3
159-
if: env.GIT_DIFF
160-
with:
161-
name: "${{ github.sha }}-00-coverage"
162-
- uses: actions/download-artifact@v3
163-
if: env.GIT_DIFF
164-
with:
165-
name: "${{ github.sha }}-01-coverage"
166-
- uses: actions/download-artifact@v3
167-
if: env.GIT_DIFF
168-
with:
169-
name: "${{ github.sha }}-02-coverage"
170-
- uses: actions/download-artifact@v3
171-
if: env.GIT_DIFF
172-
with:
173-
name: "${{ github.sha }}-03-coverage"
174-
- uses: actions/download-artifact@v3
175-
if: env.GIT_DIFF
176-
with:
177-
name: "${{ github.sha }}-integration-coverage"
178-
- uses: actions/download-artifact@v3
179-
if: env.GIT_DIFF
180-
with:
181-
name: "${{ github.sha }}-e2e-coverage"
182-
continue-on-error: true
183-
- name: sonarcloud
184-
if: env.GIT_DIFF
185-
uses: SonarSource/sonarcloud-github-action@master
186-
env:
187-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
188-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
144+
# repo-analysis:
145+
# runs-on: ubuntu-latest
146+
# needs: [tests, test-integration, test-e2e]
147+
# steps:
148+
# - uses: actions/checkout@v3
149+
# - uses: technote-space/[email protected]
150+
# id: git_diff
151+
# with:
152+
# PATTERNS: |
153+
# **/*.go
154+
# go.mod
155+
# go.sum
156+
# **/go.mod
157+
# **/go.sum
158+
# - uses: actions/download-artifact@v3
159+
# if: env.GIT_DIFF
160+
# with:
161+
# name: "${{ github.sha }}-00-coverage"
162+
# - uses: actions/download-artifact@v3
163+
# if: env.GIT_DIFF
164+
# with:
165+
# name: "${{ github.sha }}-01-coverage"
166+
# - uses: actions/download-artifact@v3
167+
# if: env.GIT_DIFF
168+
# with:
169+
# name: "${{ github.sha }}-02-coverage"
170+
# - uses: actions/download-artifact@v3
171+
# if: env.GIT_DIFF
172+
# with:
173+
# name: "${{ github.sha }}-03-coverage"
174+
# - uses: actions/download-artifact@v3
175+
# if: env.GIT_DIFF
176+
# with:
177+
# name: "${{ github.sha }}-integration-coverage"
178+
# - uses: actions/download-artifact@v3
179+
# if: env.GIT_DIFF
180+
# with:
181+
# name: "${{ github.sha }}-e2e-coverage"
182+
# continue-on-error: true
183+
# - name: sonarcloud
184+
# if: env.GIT_DIFF
185+
# uses: SonarSource/sonarcloud-github-action@master
186+
# env:
187+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
188+
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
189189

190190
liveness-test:
191191
runs-on: ubuntu-latest
@@ -271,11 +271,11 @@ jobs:
271271
run: |
272272
cd simapp
273273
go test -mod=readonly -timeout 30m -tags='app_v1 norace ledger test_ledger_mock rocksdb_build' ./...
274-
- name: sonarcloud
275-
if: env.GIT_DIFF
276-
uses: SonarSource/sonarcloud-github-action@master
277-
env:
278-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
279-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
280-
with:
281-
projectBaseDir: simapp/
274+
# - name: sonarcloud
275+
# if: env.GIT_DIFF
276+
# uses: SonarSource/sonarcloud-github-action@master
277+
# env:
278+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
279+
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
280+
# with:
281+
# projectBaseDir: simapp/

baseapp/baseapp.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func NewBaseApp(
158158
logger: logger,
159159
name: name,
160160
db: db,
161-
cms: store.NewCommitMultiStore(db),
161+
cms: store.NewCommitMultiStoreWithCustomLogger(db, logger),
162162
storeLoader: DefaultStoreLoader,
163163
grpcQueryRouter: NewGRPCQueryRouter(),
164164
msgServiceRouter: NewMsgServiceRouter(),

0 commit comments

Comments
 (0)