tests/net/gcoap_fileserver: Fix failing nightlies#19856
tests/net/gcoap_fileserver: Fix failing nightlies#19856bors[bot] merged 1 commit intoRIOT-OS:masterfrom
Conversation
|
bors try |
tryBuild failed: |
|
bors try |
|
bors try |
tryAlready running a review |
tryBuild failed: |
|
bors try |
tryBuild succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
|
bors try |
tryBuild succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
|
bors try |
tryBuild succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
|
bors try |
tryBuild succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
|
bors try |
tryBuild succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
0c03ba5 to
653bd61
Compare
|
bors try |
benpicco
left a comment
There was a problem hiding this comment.
I don't quite understand why it would work (Linux should be aware of it's page cache even when things are not synced to disc yet) but if it fixes things ¯\(ツ)/¯
|
I am not sure if it fixes things I just cannot fail them anymore... I also see that there is a sleep 10 so an extra 0.5 seconds of sleep is probably not too bad (and it is commented) |
|
bors merge |
|
🕐 Waiting for PR status (GitHub check) to be set, probably by CI. Bors will automatically try to run when all required PR statuses are set. |
tryBuild succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
|
bors merge |
1 similar comment
|
bors merge |
|
Already running a review |
|
Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
|
Looks like this didn't help much 😕 |
|
shoot, flakey failures really makes life hard... |
|
Well at least we know it isn't a race condition. What about adding a print on error and retry send if they don't match, just to get some more info on the issue (if it is a toggled bit or missing byte vs missing file might tell us a bit more)? |
Contribution description
This test has been failing inconsistently in the nightlies and sometimes on unrelated PRs. I was able to reproduce it with murdock and as soon as I added some print statements to the test it went away. Since the issue is something to do with a failure when comparing 2 files after a node sends a file I am guessing that the comparison comes occasionally too fast and the file is not ready.
Maybe there is some more synchronization needed after a
ncputbut for now just adding a small sleep should prevent this issue.Testing procedure
Run murdock multiple times or try to get it failing on a local setup then apply the PR...
Issues/PRs references