maelstrom-software / maelstrom

Maelstrom is a fast Rust, Go, and Python test runner that runs every test in its own container. Tests are either run locally or distributed to a clustered job runner.
https://maelstrom-software.com/
Apache License 2.0
559 stars 11 forks source link

cargo maelstrom --stop-after=1 doesn't stop immediately while artifacts are still being built #414

Closed nfachan closed 1 week ago

nfachan commented 2 weeks ago

Specific Maelstrom Program? cargo maelstrom, though probably also an issue for maelstrom-go-test.

Bug Description After a test fails, with --stop-after=1 passed, the test runner doesn't immediately exit.

How to Reproduce One way to reproduce is to run cargo maelstrom. Then, edit one test to make it fail. Re-run cargo maelstrom (with --stop-after=1 to make it fast). Then, edit a test in a different package and re-run cargo maelstrom --stop-after=1. The test will fail immediately, but the test runner will continue on until the newly-modified test is rebuilt.

Expected Behavior It should exit immediately after the failure.