Re: [PATCH] perf build: Do not use the mypy cache

From: Namhyung Kim

Date: Sun Dec 06 2026 - 02:18:42 EST


On Fri, 04 Dec 2026 11:47:52 -0500, Sasha Levin wrote:
> The build runs one mypy process per Python file, in parallel, and since
> commit b3e9c396d0ac ("perf build: Make mypy build test opt-out
> (NO_MYPY=1)") it does so whenever mypy is installed. All of them use
> the default cache, .mypy_cache in tools/perf of the source tree.
>
> Since mypy 1.20 that cache is an SQLite database by default. mypy 2.4.1
> sets the journal mode of the database every time it opens it, and that
> fails if another process has the database locked at that moment:
>
> [...]

Applied to perf-tools-next, thanks!

Best regards
Namhyung