Skip to content

Commit

Permalink
tests: Reduce the # of iterations in safekeeper::test_random_schedules (
Browse files Browse the repository at this point in the history
#9182)

To make it faster. On my laptop, it takes about 30 before this commit.
In the arm64 debug variant in CI, it takes about 120 s. Reduce it by
factor of 4.
  • Loading branch information
hlinnaka authored Sep 27, 2024
1 parent 5c58711 commit cf6a776
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions safekeeper/tests/random_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ use crate::walproposer_sim::{

pub mod walproposer_sim;

// Generates 2000 random seeds and runs a schedule for each of them.
// Generates 500 random seeds and runs a schedule for each of them.
// If you see this test fail, please report the last seed to the
// @safekeeper team.
#[test]
fn test_random_schedules() -> anyhow::Result<()> {
let clock = init_logger();
let mut config = TestConfig::new(Some(clock));

for _ in 0..2000 {
for _ in 0..500 {
let seed: u64 = rand::thread_rng().gen();
config.network = generate_network_opts(seed);

Expand Down

1 comment on commit cf6a776

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5013 tests run: 4853 passed, 2 failed, 158 skipped (full report)


Failures on Postgres 16

Failures on Postgres 14

# Run all failed tests locally:
scripts/pytest -vv -n $(nproc) -k "test_subscriber_restart[release-pg14] or test_subscriber_restart[release-pg16]"
Flaky tests (9)

Postgres 17

Postgres 16

Postgres 15

Postgres 14

  • test_ondemand_wal_download_in_replication_slot_funcs: release-x86-64

Test coverage report is not available

The comment gets automatically updated with the latest test results
cf6a776 at 2024-09-27T17:07:53.749Z :recycle:

Please sign in to comment.