Skip to content

Commit 1d67ae9

Browse files
authored
Merge branch 'master' into bold_staker_balance_metrics
2 parents b94f99d + f3d7286 commit 1d67ae9

File tree

90 files changed

+358
-613
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+358
-613
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,13 @@ jobs:
153153
if: matrix.test-mode == 'pathdb'
154154
run: |
155155
echo "Running tests with Path Scheme" >> full.log
156-
${{ github.workspace }}/.github/workflows/gotestsum.sh --tags cionly --timeout 20m --cover --test_state_scheme path
156+
${{ github.workspace }}/.github/workflows/gotestsum.sh --tags cionly --timeout 90m --cover --test_state_scheme path
157157
158158
- name: run tests without race detection and hash state scheme
159159
if: matrix.test-mode == 'defaults'
160160
run: |
161161
echo "Running tests with Hash Scheme" >> full.log
162-
${{ github.workspace }}/.github/workflows/gotestsum.sh --tags cionly --timeout 20m --test_state_scheme hash
162+
${{ github.workspace }}/.github/workflows/gotestsum.sh --tags cionly --timeout 60m --test_state_scheme hash
163163
164164
- name: run redis tests
165165
if: matrix.test-mode == 'defaults'

system_tests/aliasing_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import (
1919
)
2020

2121
func TestAliasing(t *testing.T) {
22-
t.Parallel()
2322
ctx, cancel := context.WithCancel(context.Background())
2423
defer cancel()
2524

system_tests/arbos_upgrade_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@ func checkArbOSVersion(t *testing.T, testClient *TestClient, expectedVersion uin
9595
}
9696

9797
func TestArbos11To32UpgradeWithMcopy(t *testing.T) {
98-
t.Parallel()
99-
10098
ctx, cancel := context.WithCancel(context.Background())
10199
defer cancel()
102100

@@ -199,8 +197,6 @@ func TestArbos11To32UpgradeWithMcopy(t *testing.T) {
199197
}
200198

201199
func TestArbos11To32UpgradeWithCalldata(t *testing.T) {
202-
t.Parallel()
203-
204200
ctx, cancel := context.WithCancel(context.Background())
205201
defer cancel()
206202

system_tests/batch_poster_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ func testBatchPosterParallel(t *testing.T, useRedis bool) {
208208
}
209209

210210
func TestBatchPosterLargeTx(t *testing.T) {
211-
t.Parallel()
212211
ctx, cancel := context.WithCancel(context.Background())
213212
defer cancel()
214213

@@ -281,7 +280,6 @@ func TestBatchPosterKeepsUp(t *testing.T) {
281280
}
282281

283282
func testAllowPostingFirstBatchWhenSequencerMessageCountMismatch(t *testing.T, enabled bool) {
284-
t.Parallel()
285283
ctx, cancel := context.WithCancel(context.Background())
286284
defer cancel()
287285

@@ -486,8 +484,6 @@ func TestBatchPosterDelayBufferDontForceNonDelayedMessages(t *testing.T) {
486484
}
487485

488486
func TestParentChainNonEIP7623(t *testing.T) {
489-
t.Parallel()
490-
491487
ctx, cancel := context.WithCancel(context.Background())
492488
defer cancel()
493489

system_tests/block_validator_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ type Options struct {
5353
}
5454

5555
func testBlockValidatorSimple(t *testing.T, opts Options) {
56-
t.Parallel()
5756
ctx, cancel := context.WithCancel(context.Background())
5857
defer cancel()
5958

@@ -71,7 +70,8 @@ func testBlockValidatorSimple(t *testing.T, opts Options) {
7170
builder := NewNodeBuilder(ctx).DefaultConfig(t, true)
7271
builder = builder.WithWasmRootDir(opts.wasmRootDir)
7372
// For now PathDB is not supported when using block validation
74-
builder.execConfig.Caching.StateScheme = rawdb.HashScheme
73+
builder.RequireScheme(t, rawdb.HashScheme)
74+
7575
builder.nodeConfig = l1NodeConfigA
7676
builder.chainConfig = chainConfig
7777
builder.L2Info = nil

system_tests/blocks_reexecutor_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ func testBlocksReExecutorModes(t *testing.T, onMultipleRanges bool) {
2323
defer cancel()
2424

2525
builder := NewNodeBuilder(ctx).DefaultConfig(t, false)
26-
builder.execConfig.Caching.StateScheme = rawdb.HashScheme
26+
// For now PathDB is not supported
27+
builder.RequireScheme(t, rawdb.HashScheme)
28+
2729
// This allows us to see reexecution of multiple ranges
2830
if onMultipleRanges {
2931
builder.execConfig.Caching.Archive = true

system_tests/bold_challenge_protocol_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -603,9 +603,8 @@ func createTestNodeOnL1ForBoldProtocol(
603603
l1info.SetContract("Rollup", addresses.Rollup)
604604
l1info.SetContract("UpgradeExecutor", addresses.UpgradeExecutor)
605605

606-
execConfig := ExecConfigDefaultNonSequencerTest(t)
606+
execConfig := ExecConfigDefaultNonSequencerTest(t, rawdb.HashScheme)
607607
Require(t, execConfig.Validate())
608-
execConfig.Caching.StateScheme = rawdb.HashScheme
609608
useWasmCache := uint32(1)
610609
initMessage := getInitMessage(ctx, t, l1client, addresses)
611610
_, l2stack, l2chainDb, l2arbDb, l2blockchain = createNonL1BlockChainWithStackConfig(t, l2info, "", chainConfig, nil, initMessage, nil, execConfig, useWasmCache, true)
@@ -831,9 +830,8 @@ func create2ndNodeWithConfigForBoldProtocol(
831830
initReader := statetransfer.NewMemoryInitDataReader(l2InitData)
832831
initMessage := getInitMessage(ctx, t, l1client, first.DeployInfo)
833832

834-
execConfig := ExecConfigDefaultNonSequencerTest(t)
833+
execConfig := ExecConfigDefaultNonSequencerTest(t, rawdb.HashScheme)
835834
Require(t, execConfig.Validate())
836-
execConfig.Caching.StateScheme = rawdb.HashScheme
837835
coreCacheConfig := gethexec.DefaultCacheConfigFor(l2stack, &execConfig.Caching)
838836
l2blockchain, err := gethexec.WriteOrTestBlockChain(l2chainDb, coreCacheConfig, initReader, chainConfig, nil, nil, initMessage, execConfig.TxLookupLimit, 0)
839837
Require(t, err)

system_tests/bold_new_challenge_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func testChallengeProtocolBOLDVirtualBlocks(t *testing.T, wrongAtFirstVirtual bo
136136
builder := NewNodeBuilder(ctx).DefaultConfig(t, true).WithBoldDeployment()
137137

138138
// Block validation requires db hash scheme
139-
builder.execConfig.Caching.StateScheme = rawdb.HashScheme
139+
builder.RequireScheme(t, rawdb.HashScheme)
140140
builder.nodeConfig.BlockValidator.Enable = true
141141
builder.valnodeConfig.UseJit = false
142142

system_tests/classic_redirect_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ import (
1414
)
1515

1616
func TestClassicRedirectURLNotLeaked(t *testing.T) {
17-
t.Parallel()
18-
1917
ctx, cancel := context.WithCancel(context.Background())
2018
defer cancel()
2119

0 commit comments

Comments
 (0)