Skip to content

test: fail waiting tests on a failed solve; pin swap moves - #207

Merged
blackopsrepl merged 2 commits into
mainfrom
feature/test-wait-loops-and-swap
Nov 5, 2026
Merged

blackopsrepl merged 2 commits into
mainfrom
feature/test-wait-loops-and-swap

Conversation

@blackopsrepl

Copy link
Copy Markdown
Collaborator

Base main @ f70f37dc, two test-only commits:

  • 2d6312c3 parallel_local_search, parallel_list_local_search and scalar_runtime_publication skipped every event but Completed; a failed solve left them blocked in blocking_recv forever (the job keeps its channel open until deleted). They now panic with the error on Failed and on any unexpected event. Checked: a build whose phases cannot prepare now fails these tests in seconds instead of hanging.
  • c5414198 a swap cursor emitting no moves passed every test. A swap-only solve now asserts the exchange. Mutation Self::Swap(_cursor) => None fails it.

Gate (fmt, clippy, doc-names file-length facade-reachability public-api deps, rustdoc, examples, workspace all-feature tests, doctests): EXIT 0, 1582 passed, 0 failed, 71 result lines.

parallel_local_search, parallel_list_local_search and
scalar_runtime_publication waited for Completed and skipped every other
event. A job keeps its event channel open until it is deleted, so a solve
that failed left the test blocked in blocking_recv forever instead of
failing. They now pass over best-solution and progress events only, and
panic with the error on Failed and with the event on anything else; a
solve that cannot prepare its phases now fails these tests in seconds.
A swap cursor that emitted no moves passed every test. A solve configured
with only swap moves now starts from two tasks on each other's cheaper
worker and asserts that the search exchanges them.
@blackopsrepl
blackopsrepl merged commit c541419 into main Nov 5, 2026
12 checks passed
@blackopsrepl
blackopsrepl deleted the feature/test-wait-loops-and-swap branch November 5, 2026 08: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