-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Random UT Failure: PosixFile #2835
Comments
@LeStarch @thomas-bc which version of fprime (or branch) did this fail on? I'm running the latest in devel commit a31f557 and all UTs are passing. |
@rlcheng You'll need to set the above see in the UT to get it to crash. The seed is: fprime/Os/Posix/test/ut/PosixFileTests.cpp Line 141 in 4476828
|
I believe you want to change that to:
|
@rlcheng here is another failing seed |
* Fix UT failing FinalizeCrc test when crc calculation miss match. Miss match due to file crc and shadow being out of sync when both are not reinialized at the same time. * Update File::open in File.ccp to match shadow operation in FileRules.cpp to only reset crc when status is OP_OK. * Update FileRules.cpp to print out rule name during test. * Remove changing file mode in shadow_open() in FileRules.cpp to OPEN_NO_MODE when status is not OP_OK.
Fix complete. PR is here: #2860 |
* Fix UT failing FinalizeCrc test when crc calculation miss match. Miss match due to file crc and shadow being out of sync when both are not reinialized at the same time. * Update File::open in File.ccp to match shadow operation in FileRules.cpp to only reset crc when status is OP_OK. * Update FileRules.cpp to print out rule name during test. * Remove changing file mode in shadow_open() in FileRules.cpp to OPEN_NO_MODE when status is not OP_OK.
@rlcheng Could you please check that the commented unit tests here are passing with your fix? #2854 It seems like it is still failing for me. I am not sure if it's because of my test setup, or the problems are still here. I also ran the UT on devel several times today, and still got some UT failures. I am attaching the logs here: |
* Fix additional issue where randomly generate file name may be too large for POSIX.
@JohanBertrand thank you for this. I was able to reproduce and able to find the cause and created a PR: #2862 Just out of curiosity were you running on linux? I was not able to reproduce on macOs but was able to on redhat linux. |
* Fix additional issue where randomly generate file name may be too large for POSIX.
* Fix additional issue where randomly generate file name may be too large for POSIX.
@rlcheng Thank you for the fix, it looks like it solves some more random failures. FYI, I am running on Ubuntu 20.04 through WSL.. I think there might be one or two last issues that are rarely happening, related to PosixFileTest_0003.log |
* Fix preallocate test from picking 0 for length, which causes unintentional error in preallocate cmd. * Fix seek() in SyntheticFileSystem and assert_file_seek() to allow for offset being 0.
* Fix Random UT Failure: PosixFile (#2835) * Fix UT failing FinalizeCrc test when crc calculation miss match. Miss match due to file crc and shadow being out of sync when both are not reinialized at the same time. * Update File::open in File.ccp to match shadow operation in FileRules.cpp to only reset crc when status is OP_OK. * Update FileRules.cpp to print out rule name during test. * Remove changing file mode in shadow_open() in FileRules.cpp to OPEN_NO_MODE when status is not OP_OK. * Fix Random UT Failure: PosixFile (#2835) * Fix additional issue where randomly generate file name may be too large for POSIX. * Fix Random UT Failure: PosixFile (#2835) * Fix preallocate test from picking 0 for length, which causes unintentional error in preallocate cmd. * Fix seek() in SyntheticFileSystem and assert_file_seek() to allow for offset being 0.
@LeStarch Just checking, was this task closed on purpose? |
@JohanBertrand the issues you saw with |
@rlcheng Indeed, thank you! However, it seems like I have now issues with PosixFileTest_3559.log |
@JohanBertrand sorry for the late reply, was working on something else. I'm looking at your latest and I am able to reproduce. Looking into this now. |
* Update get_test_filename() to exclude certain special characters and change minimum filename length to prevent posix open() from getting an unintentional bad file name.
* Fix Random UT Failure: PosixFile (#2835) * Fix UT failing FinalizeCrc test when crc calculation miss match. Miss match due to file crc and shadow being out of sync when both are not reinialized at the same time. * Update File::open in File.ccp to match shadow operation in FileRules.cpp to only reset crc when status is OP_OK. * Update FileRules.cpp to print out rule name during test. * Remove changing file mode in shadow_open() in FileRules.cpp to OPEN_NO_MODE when status is not OP_OK. * Fix Random UT Failure: PosixFile (#2835) * Fix additional issue where randomly generate file name may be too large for POSIX. * Fix Random UT Failure: PosixFile (#2835) * Fix preallocate test from picking 0 for length, which causes unintentional error in preallocate cmd. * Fix seek() in SyntheticFileSystem and assert_file_seek() to allow for offset being 0. * Fix Random UT Failure: PosixFile (#2835) * Update get_test_filename() to exclude certain special characters and change minimum filename length to prevent posix open() from getting an unintentional bad file name.
@JohanBertrand the issue you found with |
Problem Description
The text was updated successfully, but these errors were encountered: