Skip to content

Fix: issue with mypy in multi-process scenarios - #214

Merged
Green-Sky merged 1 commit into
TokTok:masterfrom
nickolay168:nickolay168/fix_mypy
Sep 12, 2026
Merged

Green-Sky merged 1 commit into
TokTok:masterfrom
nickolay168:nickolay168/fix_mypy

Conversation

@nickolay168

@nickolay168 nickolay168 commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Multiple instances of mypy are trying to access the same cache database, resulting in failure:

  File "/opt/hostedtoolcache/Python/3.13.15/x64/lib/python3.13/site-packages/mypy/__main__.py", line 16, in console_entry
    main()
    ~~~~^^
  File "mypy/main.py", line 154, in main
  File "mypy/main.py", line 244, in run_build
    res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
  File "mypy/build.py", line 385, in build
  File "mypy/build.py", line 1908, in create_metastore
    mds: MetadataStore = SqliteMetadataStore(
  File "mypy/metastore.py", line 200, in __init__
  File "mypy/metastore.py", line 174, in connect_db
    db.execute("PRAGMA journal_mode=WAL")

Fix: Skip using cache dir.

This change is Reviewable

@github-actions

github-actions Bot commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Tip

Preview URL:

@nickolay168
nickolay168 marked this pull request as ready for review September 12, 2026 09:25
@nickolay168
nickolay168 requested a review from a team as a code owner September 12, 2026 09:25
@Green-Sky Green-Sky added this to the v0.8.5 milestone Sep 12, 2026
@Green-Sky
Green-Sky merged commit 8e2d640 into TokTok:master Sep 12, 2026
29 checks passed

This branch was successfully deployed

1 active deployment
netlify 8e2d6405 Deployed Sep 12, 2026 by Green-Sky via netlify / deploy #401
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants