refactor(store/v2): human readable ss/sc types (#21645)
Co-authored-by: auricom <27022259+auricom@users.noreply.github.com>
This commit is contained in:
@@ -45,7 +45,7 @@ jobs:
|
||||
run: ./.github/scripts/install-rocksdb.sh
|
||||
- name: Saves rocksdb libraries cache
|
||||
if: matrix.go-arch == 'amd64' && steps.install_rocksdb.outcome == 'success'
|
||||
uses: actions/cache/restore@v4
|
||||
uses: actions/cache/save@v4
|
||||
with:
|
||||
path: |
|
||||
/usr/local/lib/librocksdb.*
|
||||
|
||||
@@ -46,7 +46,7 @@ jobs:
|
||||
run: ./.github/scripts/install-rocksdb.sh
|
||||
- name: Saves rocksdb libraries cache
|
||||
if: steps.install_rocksdb.outcome == 'success'
|
||||
uses: actions/cache/restore@v4
|
||||
uses: actions/cache/save@v4
|
||||
with:
|
||||
path: |
|
||||
/usr/local/lib/librocksdb.*
|
||||
|
||||
@@ -800,13 +800,16 @@ jobs:
|
||||
/usr/local/lib/librocksdb.*
|
||||
/usr/local/include/rocksdb
|
||||
key: ${{ runner.os }}-rocksdb-${{ env.ROCKSDB_VERSION }}-amd64
|
||||
- name: Install rocksdb deps
|
||||
run: |
|
||||
sudo apt-get update && sudo apt-get install -y libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev
|
||||
- name: Install rocksdb
|
||||
if: env.GIT_DIFF && steps.cache-rocksdb.outputs.cache-hit != 'true'
|
||||
if: steps.cache-rocksdb.outputs.cache-hit != 'true'
|
||||
id: install_rocksdb
|
||||
run: ./.github/scripts/install-rocksdb.sh
|
||||
- name: Saves rocksdb libraries cache
|
||||
if: steps.install_rocksdb.outcome == 'success'
|
||||
uses: actions/cache/restore@v4
|
||||
uses: actions/cache/save@v4
|
||||
with:
|
||||
path: |
|
||||
/usr/local/lib/librocksdb.*
|
||||
@@ -816,7 +819,7 @@ jobs:
|
||||
if: env.GIT_DIFF
|
||||
run: |
|
||||
cd store
|
||||
go test -mod=readonly -timeout 30m -coverprofile=coverage.out -covermode=atomic -tags='norace ledger test_ledger_mock rocksdb' ./...
|
||||
go test -ldflags "-r /usr/local/lib" -mod=readonly -timeout 30m -coverprofile=coverage.out -covermode=atomic -tags='norace ledger test_ledger_mock rocksdb' ./...
|
||||
- name: sonarcloud
|
||||
if: ${{ env.GIT_DIFF && !github.event.pull_request.draft && env.SONAR_TOKEN != null }}
|
||||
uses: SonarSource/sonarcloud-github-action@master
|
||||
@@ -855,13 +858,16 @@ jobs:
|
||||
/usr/local/lib/librocksdb.*
|
||||
/usr/local/include/rocksdb
|
||||
key: ${{ runner.os }}-rocksdb-${{ env.ROCKSDB_VERSION }}-amd64
|
||||
- name: Install rocksdb deps
|
||||
run: |
|
||||
sudo apt-get update && sudo apt-get install -y libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev
|
||||
- name: Install rocksdb
|
||||
if: env.GIT_DIFF && steps.cache-rocksdb.outputs.cache-hit != 'true'
|
||||
id: install_rocksdb
|
||||
run: ./.github/scripts/install-rocksdb.sh
|
||||
- name: Saves rocksdb libraries cache
|
||||
if: steps.install_rocksdb.outcome == 'success'
|
||||
uses: actions/cache/restore@v4
|
||||
uses: actions/cache/save@v4
|
||||
with:
|
||||
path: |
|
||||
/usr/local/lib/librocksdb.*
|
||||
@@ -871,7 +877,7 @@ jobs:
|
||||
if: env.GIT_DIFF
|
||||
run: |
|
||||
cd store/v2
|
||||
go test -mod=readonly -timeout 30m -coverprofile=coverage.out -covermode=atomic -tags='norace ledger test_ledger_mock rocksdb' ./...
|
||||
go test -ldflags "-r /usr/local/lib" -mod=readonly -timeout 30m -coverprofile=coverage.out -covermode=atomic -tags='norace ledger test_ledger_mock rocksdb' ./...
|
||||
- name: sonarcloud
|
||||
if: ${{ env.GIT_DIFF && !github.event.pull_request.draft && env.SONAR_TOKEN != null }}
|
||||
uses: SonarSource/sonarcloud-github-action@master
|
||||
|
||||
Reference in New Issue
Block a user