-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rust tests fail in dev container locally #3741
Comments
@zprobinson Thanks for reporting.
|
It seems that I can reproduce it. Here are the steps I took to reproduce:
For clarity, I am able to get past this line successfully:
Then it starts the Fable compilation and seemingly succeeds:
Then is begins running a bunch of tests in rust:
Then it fails somewhere down the line on a test run:
It seems it is able to successfully begin running the tests for the following modules (in order top to bottom):
I'm not doing anything other than opening the container in VSCode. Here is what I get when looking at image architecture and the
|
I also notice that nojaf has added diagnostics into the compilation process. I'm not sure right now how to activate that, but I can dive in and try to utilize that to get more information on what's going on. |
|
It's hard to see through the tears, but it seems like once I make it fail, I'm able to get a succeeding test on attempt 2 and then afterwards. Once I have a passing test run, I made some additional changes and the tests kept passing (as I would hope). Then performing a I ran around a dozen times with about a 80% PASS rate. |
@zprobinson Right, that makes sense, it might not show up every time if it's a memory issue. |
Did you mention that this issue occasionally pops up in the CI pipelines running on the github repo? The latest pipeline failure kind of seems to have an exception thrown that looks very similar. Would it be correct to assume that is ran in a container as well? All else failing, how much for your ironclad raspberry pi 4? Sounds like its made out of magic :) |
Yes, happens all the time (and not just with the Rust jobs). Rerunning the failed jobs usually helps fix it. Don't have a Mac unfortunately, so I'm gonna try running it inside a dev container on the Pi this time. Update: Never mind, just found that it can fail running directly on the pi (arm64) too, and not in a container.
|
@zprobinson Doesn't look entirely random. Seems to break most often on a few particular tests, which all have in common that they use F# module let bindings, which are implemented in a particular way for Rust, using static I'll take a look when I have more time, |
Thanks for taking a look into it! your intuition is invaluable. I appreciate your time spent troubleshooting. |
Description
Creating a tracking issue here for some issues I encountered while working on #3738
After cloning the repository and opening the dev container, I added some new bindings for the Result module to the Rust compiler. To test my changes, I added tests to
tests/Rust/tests/src/ResultTests.fs
and then ran./build.sh test rust
from the workspace root.The F# tests compile successfully. Afterwards, the compilation to rust files failed with a weird error:
The weird part is the tests all compile/pass here on remote. Once the merge has been completed, I am fetch/pull down main, and I can run all tests successfully.
Related information
The text was updated successfully, but these errors were encountered: