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

    <tr>
        <th>Summary</th>
        <td>
            lit::max-failures.py is flaky, sometimes hangs
        </td>
    </tr>

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

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

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

<pre>
    At the moment, I don't know how to reproduce the issue. Possibly <10%
Seems Output/%t.out shows lit hangs up before SKIPPED.

Environment:
- AWS c6g.x4large and c6a.x4large
- Ubuntu 20.04 (py3.8)

As far as I investigated, multiprocess terminate() might be the culprit.
Could we change the behavior of --max-failures as soft termination?
(eg. when max-failures count reaches, don't terminate running jobs but will not start new jobs)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxVUktvozAQ_jVwGQURm5DkwCHbNlK1h61UrfZswwBujY3scdL8-x3oY7uHENnj-R7zjfbdrTkR0Igw-QkdZeIOHqHzLhN7glfnrzDyjzwEnIPvUovraxNjwgKefIxG2xtk8m5bZmKXlfdZeXpGnCL8SjQnRjzzPRU-EUTGimANwajcECHNoLH3AeH55-PT08N98d7__n1wFxO8W2XJj7sNnP48Q1sPxVtlVRgQlOv4rD7Pn89-6-QogSiLsoJMHOabLA6ZOH4nOEXoVQAV2bJxF4xkBkXYLUOYkiXDjluMEQjDZByXGIgxYDLDSCx9HUWb7BwMfUi_88l2cOXrxeL7C42juhgfwPew2UzqbdMrY1PAuHBH39MXg-HJy_OHSHHAoYDriA7-a2o9e-NAVDtiXMR-5vWlE0JyzrgBXryOoHn0V2MtOM8ZkAoEDq9rjd3kXSO7ozyqnAxZbDieZdzy9J2zmG-cOfRWvd4WxsjbQmZiMWuSeQq2GYnmuLQuiZ8HQ2PSResnPlh7-fzb8FBfsF32Yl0ilnDe1VLW-dhUfavkvq51L3fVsT50XY2qPMpetrruUedWabSxyXY_MiHIe7vwraiLaiGy3X1uGlEKUe7L7baq9rIqWpT9sWy3ut6KVvV1VpU4sa9iaSx8GPLQrBg6DZGL1kSK_4qKV3xwiCsr46tEow8N5zsnZ_LVRLM6-AuxXBUu">