Locally, tests::opaque_wrap_function
in repl_test
is failing for me on main. Is anyone else seeing this:
cargo test -p repl_test --lib -- tests::opaque_wrap_function
oh, it is an issue with dirty builds and the test using a version of roc I built on another branch.
ah yup
also happens to me from time to time, and then I remember
so cargo clean
is the fix then?
no, cargo build
that updates the roc binary that the test invokes
Hi! First time trying contributing to open source. I wanted to run the tests before touching anything.
On my x86_64 linux, on main branch, running cargo test -p roc_glue --test test_glue_cli
fails (0 passed; 17 failed; 1 ignored). I've cargo clean
-ed the directory, entered the nix dev shell, ran cargo build
and then run the tests. Is this known, and should I just ignore this?
Yep, known
Those tests require the roc executive to be built before they can run
Does the latest release-mode compiled roc binary have to be in the path, or something like that? Asking, since I ran cargo build
beforehand.
we should really fix this
cargo test
should just work without cleaning
Hmm. I thought it should work with regular cargo build
let me double check how we are doing this
Hmm. According to our code, the tests should compile the roc binary if it doesn't exist.
I'll have a fix up shortly
#5541 should fix this
Anton has marked this topic as resolved.
Last updated: Jul 06 2025 at 12:14 UTC