Skip to content

revert: drop wt-perf test layout workaround from #2604 - #2610

Merged
max-sixty merged 1 commit into
mainfrom
revert-wt-perf-workaround
May 5, 2026
Merged

max-sixty merged 1 commit into
mainfrom
revert-wt-perf-workaround

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

PR #2604 moved timeline tests out of tests/helpers/wt-perf/src/main.rs into src/lib.rs and set test = false on the [[bin]] to dodge cargo-affected#13 — the runner shim couldn't disambiguate [lib] and [[bin]] artifacts that both normalize to wt_perf when neither kind carries a marker.

cargo-affected#14 fixed that upstream by reading NEXTEST_BINARY_ID from the nextest env directly, so the shim now handles lib+bin collisions natively. The workaround is no longer needed.

This restores the three files in tests/helpers/wt-perf/ to their pre-#2604 state: tests live in main.rs again, the bin compiles its #[cfg(test)] block under nextest, and the test = false line is gone.

CI installs cargo-affected from git without a pin (see .github/workflows/ci.yaml:287, :359), so the upstream fix is picked up automatically — no pin bump.

Verification

  • cargo build -p wt-perf ✓
  • cargo test -p wt-perf ✓ — both inline tests run from main.rs (tests::cmd_failure_annotates_name, tests::renders_sorted_timeline_with_summary), plus the tests/builds.rs::builds integration test.
  • The affected tests and collect affected coverage jobs in this PR's CI will exercise the actual fix end-to-end.

This was written by Claude Code on behalf of @max-sixty

The PR moved timeline tests out of `src/main.rs` into `src/lib.rs` and
set `test = false` on the bin to dodge cargo-affected#13 — the runner
shim couldn't disambiguate `[lib]` and `[[bin]]` artifacts that both
normalize to `wt_perf` when neither kind carries a marker.

cargo-affected#14 fixed that by reading `NEXTEST_BINARY_ID` from the
nextest env directly, so the shim now handles lib+bin collisions
natively. The workaround is no longer needed.

CI installs `cargo-affected` from git without a pin, so the upstream
fix is picked up automatically — no version bump.

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty merged commit 16c0f8a into main May 5, 2026
27 checks passed
@max-sixty
max-sixty deleted the revert-wt-perf-workaround branch May 5, 2026 00:17
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.

2 participants