From ef0c9c4c7b7caa08a0746ae6129fd61af34c554a Mon Sep 17 00:00:00 2001 From: Mingwei Tian Date: Wed, 8 May 2024 22:29:59 -0700 Subject: [PATCH] [Simtest] reduce surfer traffic and increase simtest nightly timeout --- .github/workflows/simulator-nightly-mysticeti.yml | 5 +++-- .github/workflows/simulator-nightly-narwhal.yml | 5 +++-- .github/workflows/simulator-nightly.yml | 5 +++-- crates/sui-benchmark/tests/simtest.rs | 2 +- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/simulator-nightly-mysticeti.yml b/.github/workflows/simulator-nightly-mysticeti.yml index 16b9481a091fb..d0e4ccdae58dc 100644 --- a/.github/workflows/simulator-nightly-mysticeti.yml +++ b/.github/workflows/simulator-nightly-mysticeti.yml @@ -5,7 +5,7 @@ concurrency: on: schedule: - - cron: '0 17 * * *' # UTC timing is every day at 9am PST + - cron: '0 15 * * *' # equivalent to 7am PST workflow_dispatch: inputs: sui_ref: @@ -28,7 +28,8 @@ env: jobs: simtest: - timeout-minutes: 240 + # Allow running the job for up to 6 hours, maximum for GitHub Actions. + timeout-minutes: 360 permissions: # The "id-token: write" permission is required or Machine ID will not be # able to authenticate with the cluster. diff --git a/.github/workflows/simulator-nightly-narwhal.yml b/.github/workflows/simulator-nightly-narwhal.yml index c6b0975a5d8c3..9ebfa04f55d8d 100644 --- a/.github/workflows/simulator-nightly-narwhal.yml +++ b/.github/workflows/simulator-nightly-narwhal.yml @@ -5,7 +5,7 @@ concurrency: on: schedule: - - cron: '0 13 * * *' # UTC timing is every day at 5am PST + - cron: '0 3 * * *' # equivalent to 7PM PST workflow_dispatch: inputs: sui_ref: @@ -28,7 +28,8 @@ env: jobs: simtest: - timeout-minutes: 240 + # Allow running the job for up to 6 hours, maximum for GitHub Actions. + timeout-minutes: 360 permissions: # The "id-token: write" permission is required or Machine ID will not be # able to authenticate with the cluster. diff --git a/.github/workflows/simulator-nightly.yml b/.github/workflows/simulator-nightly.yml index 91e87dca044ac..a9f9394a0494e 100644 --- a/.github/workflows/simulator-nightly.yml +++ b/.github/workflows/simulator-nightly.yml @@ -5,7 +5,7 @@ concurrency: on: schedule: - - cron: '0 9 * * *' # UTC timing is every day at 1am PST + - cron: '0 9 * * *' # equivalent to 1am PST workflow_dispatch: inputs: sui_ref: @@ -25,7 +25,8 @@ env: jobs: simtest: - timeout-minutes: 240 + # Allow running the job for up to 6 hours, maximum for GitHub Actions. + timeout-minutes: 360 permissions: # The "id-token: write" permission is required or Machine ID will not be # able to authenticate with the cluster. diff --git a/crates/sui-benchmark/tests/simtest.rs b/crates/sui-benchmark/tests/simtest.rs index 1317da1497e98..624c727dc6949 100644 --- a/crates/sui-benchmark/tests/simtest.rs +++ b/crates/sui-benchmark/tests/simtest.rs @@ -775,7 +775,7 @@ mod test { .collect(); info!("using sui_surfer test packages: {test_package_paths:?}"); - let surf_strategy = SurfStrategy::new(Duration::from_millis(250)); + let surf_strategy = SurfStrategy::new(Duration::from_millis(400)); let results = sui_surfer::run_with_test_cluster_and_strategy( surf_strategy, test_duration,