<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/59755>59755</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [lit] TestTimes.py is racy - file access should be atomic / there should be a lock
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            tools:llvm-lit
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          LebedevRI
      </td>
    </tr>
</table>

<pre>
    It does not do anything to ensure that there isn't a second instance of lit
that is also using the same `.lit_test_times.txt`. They may happen to write
into the same file at the same time, and now you've got corrupted `.lit_test_times.txt`,
and lit would not start, and you don't know what's wrong or how to fix it.

CC @davemgreen @davezarzycki


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0kk9vpDAMxT9NuFgdQYBSDhy6U41UaU-r3qsQPJBtiEexmSn99KtAq_ayF_4Y8_PL8zPMbgyInap_qfopM4tMFLvf2OOA1z_PWU_D2j0LDIQMgdIDmLDK5MIIQoCBl4ggkxGQCSOC46B0I2CA0VIYwAUWEywCncE7UfmTyh-3HxyD8Uyw8EabENjMCOo-P3gnr4Isr-Jm5IO8S6rCy4QrzGaFyVwuGJKCW3SCO9QFoW_M2XmEXdZeSCilj2DCAIFusNKidHNFGEnAUozLRXD4_3ilj_ucBPBO4EaLHzZXWEyUL_ZKCwy0u_CWBt0mI0o3DLdIYQSKMNEtaT-7d3By2Kn79XgEVeWDueI8RsTw9fZh4sdq39zP3mzoyqEtW5NhV9w3uqoe2qbOpi4356qptDWm7_M2f2hK27Z1Y4tCm3NR5JnrdK51ocsiL_K2rA9Nf1_aotXG9n1R6VZVOc7G-YP31_lAccwc84Jd3TZ1nXnTo-ctNFoLkWdVPqbOu7RgrVOUYrcV-mVkVeXesfA3TJz4LXSpv36CF2R52ay-rCkW0dgV7j5XaC0yA0-b233aKc3OgtKnz8j9-ASe7Fu2RN9NIpckS-mT0qfRybT0B0uz0qck4_N2d4n0F60ofdoOyEqftjP-CwAA___yqQSu">