Skip to content

Commit 4c8f481

Browse files
authored
fix(test): retry cargo test on CI (#6566)
1 parent 5ccd594 commit 4c8f481

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ fn rpc_regression_tests_gen() {
8383
r#"
8484
#[cfg(feature = "cargo-test")]
8585
#[tokio::test(flavor = "multi_thread")]
86+
#[fickle::fickle]
8687
async fn cargo_test_rpc_snapshot_test_{ident}() {{
8788
rpc_regression_test_run("{test}").await
8889
}}

src/state_manager/utils.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@ pub mod state_compute {
379379
// FVM@4
380380
#[cfg(feature = "cargo-test")]
381381
#[tokio::test(flavor = "multi_thread")]
382+
#[fickle::fickle]
382383
async fn cargo_test_state_compute_mainnet_5709604() {
383384
let chain = NetworkChain::Mainnet;
384385
let snapshot = get_state_compute_snapshot(&chain, 5709604).await.unwrap();
@@ -389,6 +390,7 @@ pub mod state_compute {
389390
// FVM@4
390391
#[cfg(feature = "cargo-test")]
391392
#[tokio::test(flavor = "multi_thread")]
393+
#[fickle::fickle]
392394
async fn cargo_test_state_compute_calibnet_3408952() {
393395
let chain = NetworkChain::Calibnet;
394396
let snapshot = get_state_compute_snapshot(&chain, 3408952).await.unwrap();
@@ -399,6 +401,7 @@ pub mod state_compute {
399401
// Shark state migration with FVM@2
400402
#[cfg(feature = "cargo-test")]
401403
#[tokio::test(flavor = "multi_thread")]
404+
#[fickle::fickle]
402405
async fn cargo_test_state_compute_calibnet_16801() {
403406
let chain = NetworkChain::Calibnet;
404407
let snapshot = get_state_compute_snapshot(&chain, 16801).await.unwrap();
@@ -409,6 +412,7 @@ pub mod state_compute {
409412
// Hygge state migration with FVM@2
410413
#[cfg(feature = "cargo-test")]
411414
#[tokio::test(flavor = "multi_thread")]
415+
#[fickle::fickle]
412416
async fn cargo_test_state_compute_calibnet_322355() {
413417
let chain = NetworkChain::Calibnet;
414418
let snapshot = get_state_compute_snapshot(&chain, 322355).await.unwrap();
@@ -419,6 +423,7 @@ pub mod state_compute {
419423
// Lightning state migration with FVM@3
420424
#[cfg(feature = "cargo-test")]
421425
#[tokio::test(flavor = "multi_thread")]
426+
#[fickle::fickle]
422427
async fn cargo_test_state_compute_calibnet_489095() {
423428
let chain = NetworkChain::Calibnet;
424429
let snapshot = get_state_compute_snapshot(&chain, 489095).await.unwrap();
@@ -429,6 +434,7 @@ pub mod state_compute {
429434
// Watermelon state migration with FVM@3
430435
#[cfg(feature = "cargo-test")]
431436
#[tokio::test(flavor = "multi_thread")]
437+
#[fickle::fickle]
432438
async fn cargo_test_state_compute_calibnet_1013135() {
433439
let chain = NetworkChain::Calibnet;
434440
let snapshot = get_state_compute_snapshot(&chain, 1013135).await.unwrap();
@@ -439,6 +445,7 @@ pub mod state_compute {
439445
// Dragon state migration with FVM@4
440446
#[cfg(feature = "cargo-test")]
441447
#[tokio::test(flavor = "multi_thread")]
448+
#[fickle::fickle]
442449
async fn cargo_test_state_compute_calibnet_1427975() {
443450
let chain = NetworkChain::Calibnet;
444451
let snapshot = get_state_compute_snapshot(&chain, 1427975).await.unwrap();
@@ -449,6 +456,7 @@ pub mod state_compute {
449456
// Waffle state migration with FVM@4
450457
#[cfg(feature = "cargo-test")]
451458
#[tokio::test(flavor = "multi_thread")]
459+
#[fickle::fickle]
452460
async fn cargo_test_state_compute_calibnet_1779095() {
453461
let chain = NetworkChain::Calibnet;
454462
let snapshot = get_state_compute_snapshot(&chain, 1779095).await.unwrap();
@@ -459,6 +467,7 @@ pub mod state_compute {
459467
// TukTuk state migration with FVM@4
460468
#[cfg(feature = "cargo-test")]
461469
#[tokio::test(flavor = "multi_thread")]
470+
#[fickle::fickle]
462471
async fn cargo_test_state_compute_calibnet_2078795() {
463472
let chain = NetworkChain::Calibnet;
464473
let snapshot = get_state_compute_snapshot(&chain, 2078795).await.unwrap();
@@ -469,6 +478,7 @@ pub mod state_compute {
469478
// Teep state migration with FVM@4
470479
#[cfg(feature = "cargo-test")]
471480
#[tokio::test(flavor = "multi_thread")]
481+
#[fickle::fickle]
472482
async fn cargo_test_state_compute_calibnet_2523455() {
473483
let chain = NetworkChain::Calibnet;
474484
let snapshot = get_state_compute_snapshot(&chain, 2523455).await.unwrap();
@@ -479,6 +489,7 @@ pub mod state_compute {
479489
// GoldenWeek state migration with FVM@4
480490
#[cfg(feature = "cargo-test")]
481491
#[tokio::test(flavor = "multi_thread")]
492+
#[fickle::fickle]
482493
async fn cargo_test_state_compute_calibnet_3007295() {
483494
let chain = NetworkChain::Calibnet;
484495
let snapshot = get_state_compute_snapshot(&chain, 3007295).await.unwrap();
@@ -488,6 +499,7 @@ pub mod state_compute {
488499

489500
#[cfg(feature = "cargo-test")]
490501
#[tokio::test(flavor = "multi_thread")]
502+
#[fickle::fickle]
491503
async fn cargo_test_state_validate_mainnet_5688000() {
492504
let chain = NetworkChain::Mainnet;
493505
let snapshot = get_state_validate_snapshot(&chain, 5688000).await.unwrap();
@@ -498,6 +510,7 @@ pub mod state_compute {
498510
// Shark state migration
499511
#[cfg(feature = "cargo-test")]
500512
#[tokio::test(flavor = "multi_thread")]
513+
#[fickle::fickle]
501514
async fn cargo_test_state_validate_calibnet_16802() {
502515
let chain = NetworkChain::Calibnet;
503516
let snapshot = get_state_validate_snapshot(&chain, 16802).await.unwrap();
@@ -508,6 +521,7 @@ pub mod state_compute {
508521
// Hygge state migration
509522
#[cfg(feature = "cargo-test")]
510523
#[tokio::test(flavor = "multi_thread")]
524+
#[fickle::fickle]
511525
async fn cargo_test_state_validate_calibnet_322356() {
512526
let chain = NetworkChain::Calibnet;
513527
let snapshot = get_state_validate_snapshot(&chain, 322356).await.unwrap();

0 commit comments

Comments
 (0)