rust/lintcheck/src
bors be8234098b Auto merge of #13139 - xFrednet:lintcheck-limit-summery-output, r=Alexendoo
Lintcheck: Rework and limit diff output for GH's CI

### Background

While working on https://github.com/rust-lang/rust-clippy/pull/13136 I found an amazing limitation of GH's CI. The summary can at most have be 1MB of text. Here is the warning message:

> $GITHUB_STEP_SUMMARY upload aborted, supports content up to a size of 1024k, got 46731k. For more information see: https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-markdown-summary

[The PR](https://github.com/rust-lang/rust-clippy/pull/13136) produced a *casual* 61808 changes. Guess that's why those lints are not *warn-by-default* :P.

### Changes:

This PR limits the lintcheck diff output in two ways.

1. The diff is limited to 200 messages per lint per section. Hidden messages are indicated by a message at the end of the section.
2. The output is first written to a file and only the first 1MB is written to ` >> $GITHUB_STEP_SUMMARY`. The entire file is also written to the normal CI log. This helps for cases where several lints change and the total size exceeds the 1MB limit.

An example of these changes can be seen here: https://github.com/xFrednet/rust-clippy/actions/runs/10028799118?pr=4

---

changelog: none

r? `@Alexendoo`

Sorry for bombarding you with so many PR's lately 😅 Feel free to pass some of you reviews to me.
2024-07-25 12:11:35 +00:00
..
config.rs Lintcheck: Order summary by lint and truncate messages 2024-07-22 17:59:26 +02:00
driver.rs Lintcheck: Construct links for sources 2024-07-18 15:28:14 +02:00
input.rs Lintcheck: Support underscores replacement in URL crate names 2024-07-23 09:46:59 +02:00
json.rs Lintcheck: Review comments <3 2024-07-24 22:45:41 +02:00
main.rs Lintcheck: Order summary by lint and truncate messages 2024-07-22 17:59:26 +02:00
output.rs Auto merge of #13133 - xFrednet:lintcheck-linkify-summary, r=Alexendoo 2024-07-21 12:37:00 +00:00
popular_crates.rs Lintcheck: Refactor structs and only take one version per crate 2024-07-09 22:00:58 +02:00
recursive.rs Lintcheck: Include the crate name in the CI job summary 2024-07-20 13:25:44 +02:00