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

    <tr>
        <th>Summary</th>
        <td>
            GitHub Actions CI error annotations
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            infrastructure
      </td>
    </tr>

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

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

<pre>
    A nice feature of the buildkite premerge CI was that [it showed a summary of the failed tests from lit at the top](https://discourse.llvm.org/t/fyi-new-test-result-reporting-in-pre-commit-builds/83114).

Is it possible to do something similar for GitHub Actions? At least on the runs I've been looking at there's no extra information:

<img width="433" alt="Image" src="https://github.com/user-attachments/assets/c8540d25-c149-48ff-9e6d-b422ae51440c" />

 There's [this `::error` format](https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#setting-an-error-message) you can use when logging to have github pick it up as an annotation I wonder if lit could be taught to emit errors this way when passed a flag.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx8VMGSrDYM_BrPReUpMDADBw6zbzPJ3vMDxghw1tiUJS-Zv0-Z2bfJVqXeCWyXWt1qSZrIzh6xF82LaF5POvESYu_SO7ruehrC-Ohv4K1BmFBzighhAl4QhmTd-G4ZYYu4YpwRfrzBrgl40QyiebEMtIQdR9BAaV11fPwMnrR1OAIjMcEUwwrOMmg-HjlsonkVql2YNxLVTai7UPfRkgkpEp6d-1jPIc5C3Vmo-_Sw0uMuM5qMSMnlzxYiWz9L6-UWUZqwrpblwZqEurdVWdZCdWdR3ERxeyOwDFsgsoPLFGAMQGFFXqyfgexqnY4whQi_W_4jDXAzbIMnUd3hxuBQE0Pwh4CYPMGbUNcPhAHRgwvhPcM8BUYU6krgA-DfHDVYP4W46gyXxR58RPXDrjPsduRFVK9CqbqqhFKgHT_Pb6ueMd9QNM-b7-WaLS9pOJuwCnVPhFFqZm2WFT3nAmgiPH5M29TFqBppyrqTdTtNssPLKIdaKY1NWdeFyXkybPXbkx78-SVDNC-8WAJxKXLu6oYxhiguBTxV_a-VwdD5G0H0mdJnSdV9j_Ywbw_xfXJhP3guIdBxuWiWj5Di17McAx5hP8_Zbe1HklOI8plIfqFXhHygay8PsnJFoqOaHTxCAqM9JELYl8O7ec7ecYBFfyA80WCz5j23TNpAE2gP2vvAh4nwBnvwI0aw09HXJiQ3woDAOs0LZyhcLcORPM-LJdj145lvy8bkkZmcns-nsa_Grur0CfvyWrf1tWgu5WnpVdm1oxlx6lrTmXIclGnLeiiw1tW1nPTJ9qpQTdGoVqnyUpTnQRVm0O3Uqq5ta3URdYGrtu5rnE6WKGFf1mV7aU9OD-jo2AtKWT9FTRyTyStAKJV3RexzpBzSTKIunCWmf7HYssP--6zkBXFo_k-x6JSi63_Ruhnx8yO3GP5Ck2f-oJot_2T70at_AgAA__9tkJjC">