Skip to content

fix: delete broken task-dump examples and fix CI to catch example failures#180

Merged
rcoh merged 3 commits into
mainfrom
fix/delete-broken-task-dump-examples-fix-ci
Apr 10, 2026
Merged

fix: delete broken task-dump examples and fix CI to catch example failures#180
rcoh merged 3 commits into
mainfrom
fix/delete-broken-task-dump-examples-fix-ci

Conversation

@rcoh
Copy link
Copy Markdown
Contributor

@rcoh rcoh commented Apr 10, 2026

Problem

The nightly stress test (run #24232680975) is failing because 4 examples and 1 bench reference dial9_tokio_telemetry::task_dump, a module that was previously removed.

The main CI (build.yml) didn't catch this because:

  1. cargo build ran without --all-features or --all-targets, so feature-gated examples were never compiled
  2. cargo clippy ran with --workspace but without --all-targets or --all-features, so examples and feature-gated code were not linted

Only the stress test (which uses --all-features) caught the breakage.

Changes

Delete broken code:

  • Remove 4 broken examples: long_sleep, completing_task, cancelled_task, debug_timing
  • Remove 1 broken bench: poll_overhead
  • Remove the task-dump feature from Cargo.toml and README.md

Fix CI to prevent this class of bug:

  • Build action: cargo buildcargo build --all-targets --all-features
  • Build action: cargo testcargo test --all-features
  • Clippy: cargo clippy --workspacecargo clippy --all-targets --all-features

Housekeeping:

  • Fix pre-existing cargo fmt violations in writer.rs

…lures

The `task_dump` module was removed but 4 examples (long_sleep,
completing_task, cancelled_task, debug_timing) and 1 bench
(poll_overhead) that depended on it were left behind. These compiled
fine in the default CI because:

1. `cargo build` didn't use `--all-features` or `--all-targets`, so
   feature-gated examples were never compiled
2. `cargo clippy` didn't use `--all-targets` or `--all-features`, so
   examples and feature-gated code were not linted

Only the nightly stress test (which uses `--all-features`) caught the
breakage.

Changes:
- Delete 4 broken task-dump examples and 1 broken bench
- Remove the `task-dump` feature from Cargo.toml and README
- Build action: `cargo build` → `cargo build --all-targets --all-features`
- Build action: `cargo test` → `cargo test --all-features`
- Clippy: `cargo clippy --workspace` → `cargo clippy --all-targets --all-features`
@rcoh rcoh force-pushed the fix/delete-broken-task-dump-examples-fix-ci branch from ec49afb to 1e98bd8 Compare April 10, 2026 15:36
@rcoh rcoh requested review from jlizen and yulnr April 10, 2026 15:37
@rcoh rcoh added this pull request to the merge queue Apr 10, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 10, 2026
@rcoh rcoh enabled auto-merge April 10, 2026 17:34
@rcoh rcoh added this pull request to the merge queue Apr 10, 2026
Merged via the queue into main with commit b888971 Apr 10, 2026
10 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants