Increase Garage tests robustness #526

Merged
lx merged 2 commits from tests/increase-robustness into main 2023-03-13 17:26:21 +00:00
Owner

We are noticing tests failing in a non deterministic way, for 2 reasons:

  • We are sending commands to a garage server that is not yet started
  • We are running ~32 tests in parallel and some race conditions are triggered

This PR address these issues as follow:

  • Replace the static "2sec" wait by a "2sec polling during 2min"
  • Generate one key per context

This PR is not ready for review

We are noticing tests failing in a non deterministic way, for 2 reasons: - We are sending commands to a garage server that is not yet started - We are running ~32 tests in parallel and some race conditions are triggered This PR address these issues as follow: - [X] Replace the static "2sec" wait by a "2sec polling during 2min" - [X] Generate one key per context *This PR is not ready for review*
Author
Owner

Fix #528

Fix #528
quentin changed title from WIP: Increase Garage tests robustness to Increase Garage tests robustness 2023-03-13 14:04:43 +00:00
quentin force-pushed tests/increase-robustness from fa7248c0a1 to 70b5424b99 2023-03-13 14:06:11 +00:00 Compare
quentin requested review from lx 2023-03-13 14:11:40 +00:00
lx approved these changes 2023-03-13 15:50:06 +00:00
lx left a comment
Owner

LGTM, maybe we can get a review by @trinity-1686a or @KokaKiwi as they contributed to the testing code? Otherwise we can merge as is.

LGTM, maybe we can get a review by @trinity-1686a or @KokaKiwi as they contributed to the testing code? Otherwise we can merge as is.
trinity-1686a approved these changes 2023-03-13 16:08:51 +00:00
trinity-1686a left a comment
Owner

lgtm

lgtm
@ -22,3 +22,3 @@
process: process::Child,
pub path: PathBuf,
pub key: Key,
pub default_key: Key,

is this read anywhere?

is this read anywhere?
@ -170,3 +183,3 @@
}
pub fn new_key(&self, name: &str) -> Key {
pub fn key(&self, maybe_name: Option<&str>) -> Key {

I'm not fond of that name, it sounds too much like a getter imo (not blocking)

I'm not fond of that name, it sounds too much like a getter imo (not blocking)
lx merged commit d6ffa57f40 into main 2023-03-13 17:26:21 +00:00
Sign in to join this conversation.
No description provided.