Skip to content

Commit

Permalink
Use nextest test-groups to serialize replicated cluster tests in oxim…
Browse files Browse the repository at this point in the history
…eter-db
  • Loading branch information
bnaecker committed Nov 6, 2023
1 parent 14cc33c commit 37035f1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
12 changes: 12 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,15 @@ fail-fast = false

[script.crdb-seed]
command = 'cargo run -p crdb-seed'

# The ClickHouse cluster tests currently rely on a hard-coded set of ports for
# the nodes in the cluster. We would like to relax this in the future, at which
# point this test-group configuration can be removed or at least loosened to
# support testing in parallel. For now, enforce strict serialization for all
# tests with `replicated` in the name.
[test-groups]
clickhouse-cluster = { max-threads = 1 }

[[profile.default.overrides]]
filter = 'package(oximeter-db) and test(replicated)'
test-group = 'clickhouse-cluster'
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion oximeter/db/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ omicron-workspace-hack.workspace = true
expectorate.workspace = true
itertools.workspace = true
omicron-test-utils.workspace = true
serial_test.workspace = true
slog-dtrace.workspace = true
strum.workspace = true
tempfile.workspace = true
Expand Down
3 changes: 0 additions & 3 deletions oximeter/db/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1407,7 +1407,6 @@ mod tests {
}

#[tokio::test]
#[serial_test::serial]
async fn test_replicated() {
let mut cluster = ClickHouseCluster::new()
.await
Expand Down Expand Up @@ -3821,7 +3820,6 @@ mod tests {
}

#[tokio::test]
#[serial_test::serial]
async fn test_apply_one_schema_upgrade_replicated() {
const TEST_NAME: &str = "test_apply_one_schema_upgrade_replicated";
let logctx = test_setup_log(TEST_NAME);
Expand Down Expand Up @@ -4068,7 +4066,6 @@ mod tests {
}

#[tokio::test]
#[serial_test::serial]
async fn test_ensure_schema_walks_through_multiple_steps_replicated() {
const TEST_NAME: &str =
"test_ensure_schema_walks_through_multiple_steps_replicated";
Expand Down

0 comments on commit 37035f1

Please sign in to comment.