-
Notifications
You must be signed in to change notification settings - Fork 384
fix(app): RootMultiStore interface and version mismatch #1179
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
Changes from all commits
eab48fe
15c0a87
a9ed491
43a1f31
79e4b9e
1e8f669
df7114e
9a4046f
6b8557b
fd55b3b
e295221
8f65b57
9742a73
8572332
9b01b03
b33caa8
ac955af
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| name: Tests | ||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: | ||
| - master | ||
| - release/** | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| test-versiondb: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/setup-go@v3 | ||
| with: | ||
| go-version: 1.22 | ||
| check-latest: true | ||
| - uses: actions/checkout@v4 | ||
| - name: Install RocksDB Dependencies | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get -y install -y build-essential libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev liblz4-dev libzstd-dev cmake | ||
| - name: Build and Install RocksDB | ||
| run: | | ||
| git clone https://github.com/facebook/rocksdb.git | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is a temp solution. It's better to use nix, but I don't know how to use nix.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe you call look at this
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yes, I used this in nix.yml#407, it has some problems when linkeing rocksdb. let me look into versiondb prs in the cronos project first |
||
| cd rocksdb | ||
| git checkout v9.2.1 | ||
| mkdir build && cd build | ||
| cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_SNAPPY=ON -DWITH_LZ4=ON -DWITH_ZLIB=ON -DWITH_ZSTD=ON | ||
| sudo make -j4 | ||
| sudo make install | ||
| - uses: technote-space/get-diff-action@v6.1.2 | ||
| with: | ||
| PATTERNS: | | ||
| **/**.sol | ||
| **/**.go | ||
| go.mod | ||
| go.sum | ||
| - name: Test and Create Coverage Report | ||
| run: | | ||
| export COSMOS_BUILD_OPTIONS=rocksdb | ||
| make test-versiondb | ||
| if: env.GIT_DIFF | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| //go:build rocksdb | ||
| // +build rocksdb | ||
|
|
||
| package app_test | ||
|
|
||
| import ( | ||
| "testing" | ||
|
|
||
| dbm "github.com/cosmos/cosmos-db" | ||
| "github.com/crypto-org-chain/chain-main/v4/app" | ||
|
|
||
| "cosmossdk.io/log" | ||
|
|
||
| "github.com/cosmos/cosmos-sdk/client/flags" | ||
| "github.com/cosmos/cosmos-sdk/server" | ||
| simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" | ||
| simcli "github.com/cosmos/cosmos-sdk/x/simulation/client/cli" | ||
| ) | ||
|
|
||
| func TestVersionDB(t *testing.T) { | ||
| db := dbm.NewMemDB() | ||
|
|
||
| appOptions := make(simtestutil.AppOptionsMap, 0) | ||
| appOptions[flags.FlagHome] = app.DefaultNodeHome | ||
| appOptions[server.FlagInvCheckPeriod] = simcli.FlagPeriodValue | ||
| appOptions["versiondb.enable"] = true | ||
| logger := log.NewNopLogger() | ||
| _ = app.New(logger, db, nil, false, appOptions, nil...) | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it still work in progress?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't resolve this, so I used temporary solution in test.yml