Linux Perf Users
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Sasha Levin" <sashal@kernel.org>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: [PATCH] perf build: Do not use the mypy cache
Date: Fri, 04 Dec 2026 17:03:21 +0000	[thread overview]
Message-ID: <sashiko-outbox-250255@kernel.org> (raw)
In-Reply-To: <20261204164752.853673-1-sashal@kernel.org>

> 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:
> 
>   sqlite3.OperationalError: database is locked
> 
> mypy reports this as an internal error and the build fails:
> 
>   error: INTERNAL ERROR -- Please try using mypy master on GitHub:
>   [...]
> [ ... ]
> 
> Fixes: b3e9c396d0ac ("perf build: Make mypy build test opt-out (NO_MYPY=1)")
> Reported-by: kernelci.org bot <bot@kernelci.org>
> Closes: https://lore.kernel.org/all/179589234320.273234.15340882774679334017@kernelci.org/
> Signed-off-by: Sasha Levin <sashal@kernel.org>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204164752.853673-1-sashal@kernel.org?part=1

  reply	other threads:[~2026-12-04 17:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 16:47 [PATCH] perf build: Do not use the mypy cache Sasha Levin
2026-12-04 17:03 ` sashiko-bot [this message]
2026-12-04 17:36 ` Ian Rogers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-250255@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=sashal@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox