diff --git a/crates/tranquil-lexicon/tests/resolve_integration.rs b/crates/tranquil-lexicon/tests/resolve_integration.rs index c0f2c62..af58820 100644 --- a/crates/tranquil-lexicon/tests/resolve_integration.rs +++ b/crates/tranquil-lexicon/tests/resolve_integration.rs @@ -395,7 +395,7 @@ async fn test_fetch_schema_error_status_gives_meaningful_error() { } #[tokio::test] -async fn test_plc_server_timeout() { +async fn jail_test_plc_server_timeout() { let plc_server = MockServer::start().await; let did = "did:plc:timeout123"; diff --git a/crates/tranquil-pds/tests/it/ripple_cluster.rs b/crates/tranquil-pds/tests/it/ripple_cluster.rs index 5280020..d5921c5 100644 --- a/crates/tranquil-pds/tests/it/ripple_cluster.rs +++ b/crates/tranquil-pds/tests/it/ripple_cluster.rs @@ -687,7 +687,7 @@ fn create_account_on_node<'a>( } #[tokio::test] -async fn cross_node_rate_limit_via_login() { +async fn jail_cross_node_rate_limit_via_login() { let nodes = crate::common::cluster().await; let client = crate::common::client(); diff --git a/crates/tranquil-pds/tests/it/whole_story.rs b/crates/tranquil-pds/tests/it/whole_story.rs index 6939b46..8f528fa 100644 --- a/crates/tranquil-pds/tests/it/whole_story.rs +++ b/crates/tranquil-pds/tests/it/whole_story.rs @@ -1168,7 +1168,7 @@ async fn test_backup_restore_workflow() { } #[tokio::test] -async fn test_scale_1000_posts_with_pagination() { +async fn jail_test_scale_1000_posts_with_pagination() { let client = client(); let base = base_url().await; let (did, jwt) = setup_new_user("scale-posts").await; @@ -1279,7 +1279,7 @@ async fn test_scale_1000_posts_with_pagination() { } #[tokio::test] -async fn test_scale_many_users_social_graph() { +async fn jail_test_scale_many_users_social_graph() { let client = client(); let base = base_url().await; @@ -1690,7 +1690,7 @@ async fn test_scale_batch_operations() { } #[tokio::test] -async fn test_scale_reply_thread_depth() { +async fn jail_test_scale_reply_thread_depth() { let client = client(); let base = base_url().await; let (did, jwt) = setup_new_user("deep-thread").await; diff --git a/crates/tranquil-ripple/src/transport.rs b/crates/tranquil-ripple/src/transport.rs index 60d9ed1..0b52b95 100644 --- a/crates/tranquil-ripple/src/transport.rs +++ b/crates/tranquil-ripple/src/transport.rs @@ -1327,7 +1327,7 @@ mod tests { } #[tokio::test] - async fn timed_out_write_resets_stream_instead_of_truncating() { + async fn jail_timed_out_write_resets_stream_instead_of_truncating() { let shutdown = CancellationToken::new(); let (sender, _rx_sender) = Transport::bind("127.0.0.1:0".parse().unwrap(), None, shutdown.clone()) @@ -1368,7 +1368,7 @@ mod tests { } #[tokio::test] - async fn write_timeout_keeps_connection() { + async fn jail_write_timeout_keeps_connection() { use futures::StreamExt; let shutdown = CancellationToken::new(); diff --git a/justfile b/justfile index 16b8b02..4d8afbb 100644 --- a/justfile +++ b/justfile @@ -99,7 +99,7 @@ test-unit: SQLX_OFFLINE=true cargo test --test it -- dpop_unit:: validation_edge_cases:: scope_edge_cases:: store_run := "SQLX_OFFLINE=true TRANQUIL_TEST_BACKEND=store TRANQUIL_PDS_ALLOW_INSECURE_SECRETS=1 DISABLE_RATE_LIMITING=1 TRANQUIL_LEXICON_OFFLINE=1 SKIP_IMPORT_VERIFICATION=true cargo nextest run --workspace --exclude tranquil-store --features tranquil-store/skip-fsync,tranquil-api/low-bcrypt-cost" -store_test := store_run + " -E 'not (binary(it) and test(/^store_parity::/)) and not (package(tranquil-signal) and test(/^tests::/))'" +store_test := store_run + " -E 'not (binary(it) and test(/^store_parity::/)) and not (package(tranquil-signal) and test(/^tests::/)) and not test(~jail_)'" test-auth: {{store_run}} --test it -E 'test(/^(oauth|oauth_lifecycle|oauth_scopes|oauth_security|jwt_security|session_management|change_password|password_reset)::/)' @@ -131,6 +131,10 @@ test-misc: test *args: {{store_test}} {{args}} +# these tests stay in jail until lewis makes them behave +test-jail *args: + {{store_run}} -E 'test(~jail_)' {{args}} + test-one name: {{store_run}} --test it -E 'test(/^{{name}}::/)'