Skip to content

CI: also run the tests in a debug build - #43

Merged
cjfields merged 1 commit into
mainfrom
ci/debug-tests
Oct 15, 2026
Merged

cjfields merged 1 commit into
mainfrom
ci/debug-tests

Conversation

@cjfields

Copy link
Copy Markdown
Member

Stacked on #42. Retarget to main after #42 merges. Until then, a debug run on main fails, because three corrected_endsfree tests hit #41.

Release builds wrap on integer overflow and skip debug_assert!s. That's how #41 (a usize underflow, a panic in debug) went unnoticed: CI only ran cargo test --release.

  • New test-debug job runs cargo test (debug build: overflow checks and debug assertions on) on ubuntu-latest and macos-latest. It runs in parallel with the release test jobs, so CI wall time is unchanged. Both architectures, since the x86 and ARM SIMD paths differ.
  • The job fetches C WFA2-lib at the pinned commit, as the release job does, for test_vs_reference.
  • Locally the debug suite takes about 2.5 min, mostly test_vs_reference, and passes on top of Speed up Compat::Corrected ends-free (fast kernel, exact pruning); fix #41 #42.
  • README CI paragraph and PROGRESS updated.

🤖 Generated with Claude Code

Release builds wrap on integer overflow and skip debug_assert!s, which
is how #41 (a usize underflow) went unnoticed. A new
`test-debug` job runs `cargo test` in a debug build on Linux and macOS,
in parallel with the release test jobs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cjfields
cjfields changed the base branch from perf/corrected-endsfree-pruning to main October 15, 2026 03:31
@cjfields
cjfields merged commit 0268377 into main Oct 15, 2026
17 checks passed
@cjfields
cjfields deleted the ci/debug-tests branch October 17, 2026 14:59
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.

1 participant