• Bug#1108809: ledgerhelpers: FTBFS randomly: AssertionError: 1.00 CHF !=

    From Marcin Owsiany@21:1/5 to All on Sat Jul 5 14:00:01 2025
    Seems to be the same as https://github.com/Rudd-O/ledgerhelpers/issues/28
    but we had fixed this one a while back :-/
    I'll take a closer look.

    <div dir="ltr"><div dir="ltr">Seems to be the same asĀ <a href="https://github.com/Rudd-O/ledgerhelpers/issues/28">https://github.com/Rudd-O/ledgerhelpers/issues/28</a> but we had fixed this one a while back :-/</div><div>I&#39;ll take a closer look.</
    </div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Santiago Vila@21:1/5 to Marcin Owsiany on Tue Jul 8 22:00:02 2025
    On Sat, Jul 05, 2025 at 04:55:59PM +0200, Marcin Owsiany wrote:
    Looks like `st_mtime` is a lie, and Linux filesystems don't work the way I thought they would :-D

    https://github.com/Rudd-O/ledgerhelpers/issues/28#issuecomment-3039053708

    Not sure what's the best way to avoid these failures without a sleep()....

    I've seen quite a number of race conditions in tests being solved by a
    simple sleep, so using a sleep() looks completely ok to me. But there
    is more, I see you wrote this in the PR:

    As for the sleep duration, I tried 2 milliseconds at first, but then
    it failed after a few hundred runs. Without a sleep, it failed after a
    dozen or so runs. With 10ms it didn't fail even after a few dozen
    thousand runs.

    It is awesome that you took the time to do that to ensure that the
    build always happens reliably. I wish everybody here had those
    high standards.

    Thanks a lot!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)