Skip to content

jitv2: keep the #306 flush test out of the loom build - #834

Merged
techomancer merged 1 commit into
techomancer:mainfrom
steigr:fix/306-loom-test-gate
Nov 22, 2026
Merged

techomancer merged 1 commit into
techomancer:mainfrom
steigr:fix/306-loom-test-gate

Conversation

@steigr

@steigr steigr commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #826. Its regression test a_cpu_flush_inside_a_worker_led_flush_takes_its_turn calls PoolBarrier::force_flush, a test hook that is #[cfg(all(test, not(loom)))], so the Loom models job failed to compile the library tests (E0599, no method force_flush). This gates the test and its FlushingCpu helper with #[cfg(not(loom))].

Checked locally:

  • loom models (cargo loom expanded): 9 passed
  • cargo test --features jitv2 --lib a_cpu_flush_inside_a_worker_led_flush_takes_its_turn: passed

🤖 Generated with Claude Code

The test drives a worker through the forced-flush hook, which exists only
outside loom, so cargo loom failed to compile the library tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@techomancer
techomancer merged commit ec3dcec into techomancer:main Nov 22, 2026
15 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.

2 participants