Skip to content

Commit c78a51f

Browse files
authored
Skipping flaky tests (#1848)
This PR comments/skips tests, builds and benchmarks that are known to be flaky. Unit tests: - TestAnnounceGossipQueryMsg #1849 - TestEthClient/TestCallContract #1850 - TestGethClient/TestAccessList #1851 Benchmarks: - BenchmarkNet1000Txs #1852 Circleci builds: - end-to-end-cip35-eth-compatibility-test #1853 While creating this PR, the istanbul-e2e-coverage failed once, then worked when it was re-run. I'm not skipping this one right now since I'd like to test it a bit more. Most likely it is because the parent commit has flaky tests, which are run for coverage report. codecov/project is failing because we are removing a few tests. It is expected.
1 parent 300e836 commit c78a51f

File tree

6 files changed

+19
-12
lines changed

6 files changed

+19
-12
lines changed

.circleci/config.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -545,10 +545,11 @@ workflows:
545545
requires:
546546
- checkout-monorepo
547547
- build-geth
548-
- end-to-end-cip35-eth-compatibility-test:
549-
requires:
550-
- checkout-monorepo
551-
- build-geth
548+
# Flaky!
549+
# - end-to-end-cip35-eth-compatibility-test:
550+
# requires:
551+
# - checkout-monorepo
552+
# - build-geth
552553
- end-to-end-replica-test:
553554
requires:
554555
- checkout-monorepo

consensus/istanbul/backend/announce_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import (
1616
// This test function will test the announce message generator and handler.
1717
// It will also test the gossip query generator and handler.
1818
func TestAnnounceGossipQueryMsg(t *testing.T) {
19+
t.Skip() // Flaky
1920
// Create three backends
2021
numValidators := 3
2122
genesisCfg, nodeKeys := getGenesisAndKeys(numValidators, true)

e2e_test/e2e_bench_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ func BenchmarkNet100EmptyBlocks(b *testing.B) {
3333
}
3434

3535
func BenchmarkNet1000Txs(b *testing.B) {
36+
b.Skip() // Flaky
3637
// Seed the random number generator so that the generated numbers are
3738
// different on each run.
3839
rand.Seed(time.Now().UnixNano())

e2e_test/e2e_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ func TestRPCDynamicTxGasPriceWithState(t *testing.T) {
249249
network, shutdown, err := test.NewNetwork(ac, gc, ec)
250250
require.NoError(t, err)
251251
defer shutdown()
252-
ctx, cancel := context.WithTimeout(context.Background(), time.Second*30)
252+
ctx, cancel := context.WithTimeout(context.Background(), time.Second*90)
253253
defer cancel()
254254

255255
accounts := test.Accounts(ac.DeveloperAccounts(), gc.ChainConfig())
@@ -306,7 +306,7 @@ func TestRPCDynamicTxGasPriceWithoutState(t *testing.T) {
306306
network, shutdown, err := test.NewNetwork(ac, gc, ec)
307307
require.NoError(t, err)
308308
defer shutdown()
309-
ctx, cancel := context.WithTimeout(context.Background(), time.Second*30)
309+
ctx, cancel := context.WithTimeout(context.Background(), time.Second*90)
310310
defer cancel()
311311

312312
accounts := test.Accounts(ac.DeveloperAccounts(), gc.ChainConfig())

ethclient/ethclient_test.go

+5-3
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,10 @@ func TestEthClient(t *testing.T) {
260260
"TestStatusFunctions": {
261261
func(t *testing.T) { testStatusFunctions(t, client) },
262262
},
263-
"TestCallContract": {
264-
func(t *testing.T) { testCallContract(t, client) },
265-
},
263+
// Flaky
264+
// "TestCallContract": {
265+
// func(t *testing.T) { testCallContract(t, client) },
266+
// },
266267
"TestAtFunctions": {
267268
func(t *testing.T) { testAtFunctions(t, client) },
268269
},
@@ -476,6 +477,7 @@ func testStatusFunctions(t *testing.T, client *rpc.Client) {
476477
}
477478
}
478479

480+
// nolint:deadcode
479481
func testCallContract(t *testing.T, client *rpc.Client) {
480482
ec := NewClient(client)
481483

ethclient/gethclient/gethclient_test.go

+5-3
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,10 @@ func TestGethClient(t *testing.T) {
9999
tests := map[string]struct {
100100
test func(t *testing.T)
101101
}{
102-
"TestAccessList": {
103-
func(t *testing.T) { testAccessList(t, client) },
104-
},
102+
// Flaky
103+
// "TestAccessList": {
104+
// func(t *testing.T) { testAccessList(t, client) },
105+
// },
105106
"TestGetProof": {
106107
func(t *testing.T) { testGetProof(t, client) },
107108
},
@@ -130,6 +131,7 @@ func TestGethClient(t *testing.T) {
130131
}
131132
}
132133

134+
// nolint:deadcode
133135
func testAccessList(t *testing.T, client *rpc.Client) {
134136
ec := New(client)
135137
// Test transfer

0 commit comments

Comments
 (0)