Repository navigation
Conversation
Whole-file requests for large Linguist samples overflowed the 256 KiB scanner buffer.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Whole-file requests for large Linguist samples overflowed the 256 KiB scanner buffer.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
The weekly Linguist sync has failed every run since 2026-10-19 (https://github.com/git-pkgs/languages/actions/runs/46495120930). The most recent failure was a casing mismatch for "Vim9 Script" in Linguist's heuristics; github-linguist/linguist#8391 fixed it upstream. The runs from 2026-11-02 to 2026-11-23 failed in "Evaluate upstream samples" with
bufio.Scanner: token too long:cmd/evaluatesends whole files to the enry baseline for the full-size row, and several Linguist samples are larger than the 256 KiB line buffer intools/enryonce encoded. (The two October runs failed on govulncheck findings in Go 1.26.8; the toolchain has since moved to 1.26.10.) The helper now reads requests with ajson.Decoder, which reads each value whole whatever its length, and a new test sends a request over 256 KiB. Against Linguist main, generate, modelgen and evaluate complete with this change; evaluate fails on the same corpus with the old helper.A new
reportjob in the sync workflow opens or comments on an issue titled "Sync Linguist workflow is failing" when the sync fails, with a link to the run, and the next successful run closes it.Summary by CodeRabbit