-
Notifications
You must be signed in to change notification settings - Fork 4.1k
feat!: Add object store #25470
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
Merged
Merged
feat!: Add object store #25470
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
cc6c67b
Support object store (#206)
17043e4
cleanup
mmsqe 78e3a48
Merge remote-tracking branch 'origin/release/v0.53.x' into release/v0…
mmsqe f44f06b
fix test
mmsqe e1ee61f
lint
mmsqe b75bb98
Merge remote-tracking branch 'origin/main' into release/v0.53.x_obj_s…
mmsqe e64ccc0
resolve
mmsqe d2c1c3b
fix test
mmsqe 8892029
fix test
mmsqe 83f4859
Problem: store key type assertion is incorrect (#244)
mmsqe d97d3d1
Merge remote-tracking branch 'origin/main' into release/v0.53.x_obj_s…
mmsqe 3c03b87
Merge remote-tracking branch 'origin/main' into release/v0.53.x_obj_s…
mmsqe a06944f
Merge remote-tracking branch 'origin/main' into release/v0.53.x_obj_s…
mmsqe f2fcf30
fix clientv2
mmsqe e328edf
init
technicallyty 58b6c43
Merge remote-tracking branch 'origin' into technicallyty/object-stores
Eric-Warehime a8655d6
Fix gofumpt
Eric-Warehime 78e339e
Add codecov
Eric-Warehime 6dd547c
Remove flags from codecov upload
Eric-Warehime c19b17b
Fix e2e, integration paths
Eric-Warehime 47eac84
Merge remote-tracking branch 'origin' into technicallyty/object-stores
Eric-Warehime 6e24572
Tidy client v2
Eric-Warehime d285145
Add validity test
Eric-Warehime 12a2cc8
Add length validity test
Eric-Warehime 613a3fa
Add baseapp stores test
Eric-Warehime ba1607b
Update codecov to ignore mock dirs
Eric-Warehime 9baec7f
Add rootmulti obj store getter test
Eric-Warehime 1a3f99e
Add prefix objstore test
Eric-Warehime 3cfcbab
Add domain to prefix iter test
Eric-Warehime a1f2db1
Add general prefix obj store tests
Eric-Warehime f90ccd5
Merge remote-tracking branch 'origin' into technicallyty/object-stores
Eric-Warehime 98df6d1
Fix test
Eric-Warehime 269226d
Fix hashing
Eric-Warehime e955c32
Upload all test coverage data
Eric-Warehime 2850c8f
Extend baseapp testing
Eric-Warehime 52a92b1
Add context test
Eric-Warehime f1969b5
Fix lint
Eric-Warehime b37ab1f
Test store types
Eric-Warehime 3859325
Update changelog entry
Eric-Warehime 96dff47
Use var for zeroValue
Eric-Warehime bdb5e3d
Cleanup
Eric-Warehime f39718f
Merge branch 'main' into technicallyty/object-stores
Eric-Warehime 905e1e4
Go mod tidy
Eric-Warehime a4c8d30
Add constructor changes
Eric-Warehime fad7177
Add comments for type assertion in trace store branching
Eric-Warehime 604402a
Merge branch 'main' into technicallyty/object-stores
Eric-Warehime File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -147,7 +147,7 @@ jobs: | |
|
|
||
| repo-analysis: | ||
| runs-on: depot-ubuntu-22.04-4 | ||
| needs: [tests, test-integration, test-e2e] | ||
| needs: [tests, test-integration, test-e2e, test-clientv2, test-core, test-depinject, test-errors, test-math, test-schema, test-collections, test-cosmovisor, test-confix, test-store, test-log, test-x-tx, test-tools-benchmark] | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - uses: technote-space/[email protected] | ||
|
|
@@ -184,11 +184,76 @@ jobs: | |
| with: | ||
| name: "${{ github.sha }}-e2e-coverage" | ||
| continue-on-error: true | ||
| - uses: actions/download-artifact@v4 | ||
| if: env.GIT_DIFF | ||
| with: | ||
| name: "${{ github.sha }}-clientv2-coverage" | ||
| continue-on-error: true | ||
| - uses: actions/download-artifact@v4 | ||
| if: env.GIT_DIFF | ||
| with: | ||
| name: "${{ github.sha }}-core-coverage" | ||
| continue-on-error: true | ||
| - uses: actions/download-artifact@v4 | ||
| if: env.GIT_DIFF | ||
| with: | ||
| name: "${{ github.sha }}-depinject-coverage" | ||
| continue-on-error: true | ||
| - uses: actions/download-artifact@v4 | ||
| if: env.GIT_DIFF | ||
| with: | ||
| name: "${{ github.sha }}-errors-coverage" | ||
| continue-on-error: true | ||
| - uses: actions/download-artifact@v4 | ||
| if: env.GIT_DIFF | ||
| with: | ||
| name: "${{ github.sha }}-math-coverage" | ||
| continue-on-error: true | ||
| - uses: actions/download-artifact@v4 | ||
| if: env.GIT_DIFF | ||
| with: | ||
| name: "${{ github.sha }}-schema-coverage" | ||
| continue-on-error: true | ||
| - uses: actions/download-artifact@v4 | ||
| if: env.GIT_DIFF | ||
| with: | ||
| name: "${{ github.sha }}-collections-coverage" | ||
| continue-on-error: true | ||
| - uses: actions/download-artifact@v4 | ||
| if: env.GIT_DIFF | ||
| with: | ||
| name: "${{ github.sha }}-cosmovisor-coverage" | ||
| continue-on-error: true | ||
| - uses: actions/download-artifact@v4 | ||
| if: env.GIT_DIFF | ||
| with: | ||
| name: "${{ github.sha }}-confix-coverage" | ||
| continue-on-error: true | ||
| - uses: actions/download-artifact@v4 | ||
| if: env.GIT_DIFF | ||
| with: | ||
| name: "${{ github.sha }}-store-coverage" | ||
| continue-on-error: true | ||
| - uses: actions/download-artifact@v4 | ||
| if: env.GIT_DIFF | ||
| with: | ||
| name: "${{ github.sha }}-log-coverage" | ||
| continue-on-error: true | ||
| - uses: actions/download-artifact@v4 | ||
| if: env.GIT_DIFF | ||
| with: | ||
| name: "${{ github.sha }}-x-tx-coverage" | ||
| continue-on-error: true | ||
| - uses: actions/download-artifact@v4 | ||
| if: env.GIT_DIFF | ||
| with: | ||
| name: "${{ github.sha }}-tools-benchmark-coverage" | ||
| continue-on-error: true | ||
| - name: Upload coverage to Codecov | ||
| if: env.GIT_DIFF | ||
| uses: codecov/codecov-action@v5 | ||
| with: | ||
| files: ./00profile.out,./01profile.out,./02profile.out,./03profile.out,./tests/integration-profile.out,./tests/e2e-profile.out | ||
| files: ./00profile.out,./01profile.out,./02profile.out,./03profile.out,./integration-profile.out,./e2e-profile.out,./client/v2/coverage.out,./core/coverage.out,./depinject/coverage.out,./errors/coverage.out,./math/coverage.out,./schema/coverage.out,./collections/coverage.out,./tools/cosmovisor/coverage.out,./tools/confix/coverage.out,./store/coverage.out,./log/coverage.out,./x/tx/coverage.out,./tools/benchmark/coverage.out | ||
| fail_ci_if_error: false | ||
| verbose: true | ||
| token: ${{ secrets.CODECOV_TOKEN }} | ||
|
|
@@ -248,6 +313,11 @@ jobs: | |
| run: | | ||
| cd client/v2 | ||
| go test -mod=readonly -timeout 30m -coverprofile=coverage.out -covermode=atomic -tags='norace ledger test_ledger_mock' ./... | ||
| - uses: actions/upload-artifact@v4 | ||
| if: env.GIT_DIFF | ||
| with: | ||
| name: "${{ github.sha }}-clientv2-coverage" | ||
| path: ./client/v2/coverage.out | ||
|
|
||
| test-core: | ||
| runs-on: depot-ubuntu-22.04-4 | ||
|
|
@@ -271,6 +341,11 @@ jobs: | |
| run: | | ||
| cd core | ||
| go test -mod=readonly -timeout 30m -coverprofile=coverage.out -covermode=atomic -tags='norace ledger test_ledger_mock' ./... | ||
| - uses: actions/upload-artifact@v4 | ||
| if: env.GIT_DIFF | ||
| with: | ||
| name: "${{ github.sha }}-core-coverage" | ||
| path: ./core/coverage.out | ||
|
|
||
| test-depinject: | ||
| runs-on: depot-ubuntu-22.04-4 | ||
|
|
@@ -294,6 +369,11 @@ jobs: | |
| run: | | ||
| cd depinject | ||
| go test -mod=readonly -timeout 30m -coverprofile=coverage.out -covermode=atomic -tags='norace ledger test_ledger_mock' ./... | ||
| - uses: actions/upload-artifact@v4 | ||
| if: env.GIT_DIFF | ||
| with: | ||
| name: "${{ github.sha }}-depinject-coverage" | ||
| path: ./depinject/coverage.out | ||
|
|
||
| test-errors: | ||
| runs-on: depot-ubuntu-22.04-4 | ||
|
|
@@ -317,6 +397,11 @@ jobs: | |
| run: | | ||
| cd errors | ||
| go test -mod=readonly -timeout 30m -coverprofile=coverage.out -covermode=atomic -tags='norace ledger test_ledger_mock' ./... | ||
| - uses: actions/upload-artifact@v4 | ||
| if: env.GIT_DIFF | ||
| with: | ||
| name: "${{ github.sha }}-errors-coverage" | ||
| path: ./errors/coverage.out | ||
|
|
||
| test-math: | ||
| runs-on: depot-ubuntu-22.04-4 | ||
|
|
@@ -340,6 +425,11 @@ jobs: | |
| run: | | ||
| cd math | ||
| go test -mod=readonly -timeout 30m -coverprofile=coverage.out -covermode=atomic -tags='norace ledger test_ledger_mock' ./... | ||
| - uses: actions/upload-artifact@v4 | ||
| if: env.GIT_DIFF | ||
| with: | ||
| name: "${{ github.sha }}-math-coverage" | ||
| path: ./math/coverage.out | ||
|
|
||
| test-schema: | ||
| runs-on: depot-ubuntu-22.04-4 | ||
|
|
@@ -362,6 +452,11 @@ jobs: | |
| run: | | ||
| cd schema | ||
| go test -mod=readonly -timeout 30m -coverprofile=coverage.out -covermode=atomic -tags='norace ledger test_ledger_mock' ./... | ||
| - uses: actions/upload-artifact@v4 | ||
| if: env.GIT_DIFF | ||
| with: | ||
| name: "${{ github.sha }}-schema-coverage" | ||
| path: ./schema/coverage.out | ||
|
|
||
| test-collections: | ||
| runs-on: depot-ubuntu-22.04-4 | ||
|
|
@@ -385,6 +480,11 @@ jobs: | |
| run: | | ||
| cd collections | ||
| go test -mod=readonly -timeout 30m -coverprofile=coverage.out -covermode=atomic -tags='norace ledger test_ledger_mock' ./... | ||
| - uses: actions/upload-artifact@v4 | ||
| if: env.GIT_DIFF | ||
| with: | ||
| name: "${{ github.sha }}-collections-coverage" | ||
| path: ./collections/coverage.out | ||
|
|
||
| test-cosmovisor: | ||
| runs-on: depot-ubuntu-22.04-4 | ||
|
|
@@ -408,6 +508,11 @@ jobs: | |
| run: | | ||
| cd tools/cosmovisor | ||
| go test -mod=readonly -timeout 30m -coverprofile=coverage.out -covermode=atomic -tags='norace ledger test_ledger_mock' ./... | ||
| - uses: actions/upload-artifact@v4 | ||
| if: env.GIT_DIFF | ||
| with: | ||
| name: "${{ github.sha }}-cosmovisor-coverage" | ||
| path: ./tools/cosmovisor/coverage.out | ||
|
|
||
| test-confix: | ||
| runs-on: depot-ubuntu-22.04-4 | ||
|
|
@@ -431,6 +536,11 @@ jobs: | |
| run: | | ||
| cd tools/confix | ||
| go test -mod=readonly -timeout 30m -coverprofile=coverage.out -covermode=atomic -tags='norace ledger test_ledger_mock' ./... | ||
| - uses: actions/upload-artifact@v4 | ||
| if: env.GIT_DIFF | ||
| with: | ||
| name: "${{ github.sha }}-confix-coverage" | ||
| path: ./tools/confix/coverage.out | ||
|
|
||
| test-store: | ||
| runs-on: depot-ubuntu-22.04-4 | ||
|
|
@@ -455,6 +565,11 @@ jobs: | |
| cd store | ||
| (cd streaming/abci/examples/file && go build .) | ||
| go test -ldflags "-r /usr/local/lib" -mod=readonly -timeout 30m -coverprofile=coverage.out -covermode=atomic -tags='norace ledger test_ledger_mock' ./... | ||
| - uses: actions/upload-artifact@v4 | ||
| if: env.GIT_DIFF | ||
| with: | ||
| name: "${{ github.sha }}-store-coverage" | ||
| path: ./store/coverage.out | ||
|
|
||
| test-log: | ||
| runs-on: depot-ubuntu-22.04-4 | ||
|
|
@@ -478,6 +593,11 @@ jobs: | |
| run: | | ||
| cd log | ||
| go test -mod=readonly -timeout 30m -coverprofile=coverage.out -covermode=atomic -tags='norace ledger test_ledger_mock' ./... | ||
| - uses: actions/upload-artifact@v4 | ||
| if: env.GIT_DIFF | ||
| with: | ||
| name: "${{ github.sha }}-log-coverage" | ||
| path: ./log/coverage.out | ||
|
|
||
| ############################# | ||
| ### Cosmos SDK x/{module} ### | ||
|
|
@@ -508,6 +628,11 @@ jobs: | |
| run: | | ||
| cd x/tx | ||
| go test -mod=readonly -timeout 30m -coverprofile=coverage.out -covermode=atomic -tags='norace ledger test_ledger_mock' ./... | ||
| - uses: actions/upload-artifact@v4 | ||
| if: env.GIT_DIFF | ||
| with: | ||
| name: "${{ github.sha }}-x-tx-coverage" | ||
| path: ./x/tx/coverage.out | ||
|
|
||
| test-tools-benchmark: | ||
| runs-on: depot-ubuntu-22.04-4 | ||
|
|
@@ -531,3 +656,8 @@ jobs: | |
| run: | | ||
| cd tools/benchmark | ||
| go test -mod=readonly -timeout 30m -coverprofile=coverage.out -covermode=atomic -tags='norace' ./... | ||
| - uses: actions/upload-artifact@v4 | ||
| if: env.GIT_DIFF | ||
| with: | ||
| name: "${{ github.sha }}-tools-benchmark-coverage" | ||
| path: ./tools/benchmark/coverage.out | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.