From 98b8bcfd6ee9c4d0cd1d6f19a86b4889e49a6021 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Tue, 7 Oct 2025 16:56:16 -0700 Subject: [PATCH] chore: remove inappropriate tests from tarpaulin runs --- Cargo.toml | 3 +++ tests/arc_tests.rs | 1 + tests/boundaries/deep_chains.rs | 2 +- tests/boundaries/large_scale.rs | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c1b1590..32771a5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,6 +17,9 @@ keywords = ["dag", "async", "task", "parallel", "executor"] categories = ["asynchronous", "concurrency", "data-structures"] exclude = [".claude/", ".jj/", "dagx-spec.md"] +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tarpaulin)'] } + [dependencies] futures = "0.3" parking_lot = "0.12" diff --git a/tests/arc_tests.rs b/tests/arc_tests.rs index c60b673..4fda700 100644 --- a/tests/arc_tests.rs +++ b/tests/arc_tests.rs @@ -1092,6 +1092,7 @@ async fn test_arc_mixed_with_non_arc() { /// Test 16: Arc in parallel execution paths #[tokio::test] +#[cfg_attr(tarpaulin, ignore)] // Timing tests are unreliable with instrumentation overhead async fn test_arc_parallel_execution() { struct SharedProducer; diff --git a/tests/boundaries/deep_chains.rs b/tests/boundaries/deep_chains.rs index ddf5125..7fc790c 100644 --- a/tests/boundaries/deep_chains.rs +++ b/tests/boundaries/deep_chains.rs @@ -304,7 +304,7 @@ async fn test_zigzag_dependencies() -> DagResult<()> { } #[tokio::test] -#[ignore] // This test is extremely resource intensive +#[cfg_attr(tarpaulin, ignore)] // This test is extremely resource intensive async fn test_10000_level_chain_stress() -> DagResult<()> { // Ultimate deep chain test let dag = DagRunner::new(); diff --git a/tests/boundaries/large_scale.rs b/tests/boundaries/large_scale.rs index 20351c9..e3b5768 100644 --- a/tests/boundaries/large_scale.rs +++ b/tests/boundaries/large_scale.rs @@ -213,7 +213,7 @@ async fn test_10000_node_linear_chain_segments() -> DagResult<()> { } #[tokio::test] -#[ignore] // This test is very resource intensive +#[cfg_attr(tarpaulin, ignore)] // This test is very resource intensive async fn test_100000_nodes_stress() -> DagResult<()> { // Ultimate stress test: 100,000 nodes let dag = DagRunner::new();