Skip to content

Commit 1ba620f

Browse files
committed
prune testWithRocksDb
1 parent a4933aa commit 1ba620f

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/pr-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ jobs:
5757
- name: Build
5858
run: ./gradlew clean build --no-daemon
5959

60+
- name: Test with RocksDB engine
61+
if: matrix.arch == 'x86_64'
62+
run: ./gradlew :framework:testWithRocksDb --no-daemon
63+
6064
build-ubuntu:
6165
name: Build ubuntu24 (JDK 17 / aarch64)
6266
if: ${{ github.event_name == 'pull_request' || inputs.job == 'all' || inputs.job == 'ubuntu' }}

framework/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,14 @@ task testWithRocksDb(type: Test) {
155155
group = 'verification'
156156
configureTestTask(it)
157157
systemProperty 'storage.db.engine', 'ROCKSDB'
158+
// Keep x86 RocksDB coverage focused on engine-sensitive tests instead of
159+
// rerunning the entire framework suite with a different storage backend.
160+
include 'org/tron/common/storage/**'
161+
include 'org/tron/core/config/args/ArgsTest.class'
162+
include 'org/tron/core/db/DBIteratorTest.class'
163+
include 'org/tron/core/db/TronDatabaseTest.class'
164+
include 'org/tron/core/db/backup/BackupDbUtilTest.class'
165+
include 'org/tron/core/db2/ChainbaseTest.class'
158166
exclude '**/LevelDbDataSourceImplTest.class'
159167
}
160168

0 commit comments

Comments
 (0)