shuke987 opened a new pull request, #71301: URL: https://github.com/apache/doris/pull/71301
### Background Doris starts a separate event resolver and a large-file job to warn contributors about new files. In a December 2 sample, the warning job's queue P95 was nearly 24 minutes. Its file-list, size and reporting steps together averaged eight seconds. ### What problem does this PR solve? Issue Number: None Related PR: #71294 (master Code Style), #70832 (PR event relay) PR Type: Build/CI/Chore Problem Summary: Run the size check before checkout in the existing master Code Style job. Adding a file larger than 1 MiB produces a warning with the filename and byte count in the Actions summary. A shared PR event resolver still dispatches review-status updates and sends eligible non-master events to the existing comment job. ### Details - **Affected:** GitHub Actions on Ubuntu for pull requests targeting master and the trusted PR event dispatcher on the default branch. - **Developer and release impact:** Master PR authors see large-file warnings in Code Style, including for documentation-only changes. Release branches keep their existing checks and require no backports. Review comments and dismissals retain their handlers. - **License and third-party:** None. - **Rollback:** Revert this PR to restore the separate resolver and commenter on master. - **CI permissions and secrets:** Code Style uses its existing read-only token. The trusted dispatcher grants write permissions only to the jobs that publish review status or post the non-master warning. - **Behavior change:** Only newly added files strictly over 1,048,576 bytes are flagged. A truncated compare falls back to comparing the exact Git commits. An incomplete size lookup is reported without blocking style checks or the merge. ### Testing Actionlint passed on all four changed workflows. All 61 tests in the four resolver, checkout, API and status suites passed, including master and fork/release routing. Thirteen style-selection cases passed, including four historical PR snapshots. Two local Git comparisons each examined 3,002 additions, flagged the last large file and excluded a rename. Read-only GitHub API checks verified PR #71294 and a 1,183,086-byte repository blob. The non-master file-list, size and comment steps and the review aggregation job were compared with the base. ### Release note None. ### Check List (For Author) - Behavior changed: Yes (see Details). - Does this need documentation: No. - Pre-submission status: Partially verified. GitHub-hosted execution is pending. ### AI Disclosure - Tool: OpenAI Codex. - Generated: Implementation, tests and PR description. - Human review: Pending. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
