<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/69311>69311</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[CI] Increase the commit depth for code_formatter
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
zyn0217
</td>
</tr>
</table>
<pre>
Currently, we're using 100 as the limit for the fetch depth in our code_formatter action.
https://github.com/llvm/llvm-project/blob/f0601c7569c6e2001b180136e1b699f577fd5c06/.github/workflows/pr-code-format.yml#L15-L20
If I understand correctly, this performs a comparison operation against the contributor's forked branch with only 100 commits from the top of the main branch. This implies that the contributor should keep the forked branch at most 100 commits behind the main before submitting a PR, in order to properly trigger the CI.
I'd argue that this is not a reasonable number: Given that we're likely to reach this number in about *one day* now, is it possible to increase the limit to a number that covers a longer time period, for example, a month? It is not always cheap for people to rebase their branches and rebuild all the stuff locally.
CC @tru and @HighCommander4
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVE1v8zYT_DX0ZRFDor6igw55HfitgedQFL0X_FhJbCiuQK7iur--oJS0CXrqxRYh7c7sznBUSm4KiINo_iea15PaeKY4_PkIhSy7kyb7GC5bjBjYP4S8wB2F7CLCllyYoCwKUAl4RvBucQwjxf00IpsZLK48gwtAWwRDFn8bKS6KGSMow47CWRSvong5fmfmNYnqRcirkNfJ8bzps6FFyKv3759_T2uk39GwkFftSQt5HYu2KE3XtL1pURZFqcvnoqxaLHXb92PTdaNtTNEKeT0fXYW83im-jZ7uScjrGp8yu6eD3fmxeCGrH2Xz9EMWXwneRrjBFizGxCpYMBQjmo_N8OwSrBhzkwQKDC2rii5RAFoxqjwuqEm5kHjfkaHA0emNKQrZpby7N7SgowpmhrvjGSj4x75kQ8viOMEYadmLmVagcX9clAsfVWf4NbNwy-odZl3Uv6AgzbR5C2-I6yHVN1jFsFDib6AaZxfsFywcKSKkTS-OOftAwc-_5B1kqaPFCEywxjy2fwBHN014-OJy-6b4TcjOgorThp9kM_0EgRgURFSJgtIeIWyLxiiqF_i_e8dwfP1pRu_eMANRrjDz0eWoyJSUpo1ByBcKCFY9hHyBQPedcALHsFJKLqMwgQsmw-IXUzOB-my34xp6x5g19hT2ydyCWXpHNjfNlwD_UMvqMR8VLBR4FtUVbvz3cP6uHgnMjGrdC1ak9WAQUX_gu_ghCybIfouoN-ctKO93eom3cQRPRnn_-LbYywVEXXDc9jpRFz-5ab7Qsqjs3hpOdqhsX_XqhEPZ9l1TNc9dfZqHZ2NsZdqxRtPpElFh39b6ubGNxdHW5uQGWciqLMqu6Ou6qs-V6bRVvRpHW5Zj9yzqAhfl_Dlf1jPF6eRS2nBo-6osT15p9GmPGykD3mF_KaTM6ROH_YLrbUqiLrxLnP7pwo79nlOXm2he4fZVp8OpH3mTt_k9bE5b9MN_TpedWY6HnflfAQAA___Zyr4w">