Skip to content

Commit d6aba52

Browse files
authored
[CHORE] Limit GC proptest to 16 cases (#7398)
## Description of changes The garbage_collect_unused_logs proptest ran the default 256 cases against vectors of up to 36 operations, for a worst case of 9,216 cycles of setup and execution. Cap the case count at 16 via an explicit ProptestConfig, reducing the worst case to 1,152 cycles while retaining meaningful randomized coverage. I worked on this test originally with Sicheng. I'm comfortable with the reduction in coverage if it means faster success rate or reduced error rate on this test. The intg tests have hung for me twice today and I suspect it's this. ## Test plan It still runs, just in 1/8th the time. ## Migration plan N/A ## Observability plan N/A ## Documentation Changes N/A Co-authored-by: AI
1 parent 973eeac commit d6aba52

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎rust/log-service/src/lib.rs‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6295,7 +6295,13 @@ mod tests {
62956295
.join()
62966296
.expect("Spawned thread should not fail to join");
62976297
}
6298+
}
62986299

6300+
proptest! {
6301+
#![proptest_config(ProptestConfig {
6302+
cases: 16,
6303+
.. ProptestConfig::default()
6304+
})]
62996305
#[test]
63006306
fn test_k8s_integration_rust_log_service_garbage_collect_unused_logs(
63016307
operations in proptest::collection::vec(any::<OperationRecord>(), 1..=36),

0 commit comments

Comments
 (0)