hauntsaninja / mypy_primer

Run mypy and pyright over millions of lines of code
MIT License
57 stars 30 forks source link

Normalize stacktrace diffs #18

Closed JelleZijlstra closed 2 years ago

JelleZijlstra commented 3 years ago

Reference: https://github.com/python/mypy/pull/10686#issuecomment-905110424

It would be nice if mypy-primer didn't tell us that the stacktrace for a crash now uses "new_mypy" instead of "old_mypy" in its path, or that the version of mypy changed due to a new commit hash.

JukkaL commented 3 years ago

Also, we could filter out line numbers from tracebacks.

Somewhat unrelated: What about always reporting crashes, even if they happen with old mypy? These are usually something we'd want to fix quickly.

hauntsaninja commented 3 years ago

Makes sense, although the current lack of stacktrace special casing effectively amounts to "always report crashes". The arviz crash is something I added to mypy_primer this week: we've had multiple crashes in the past reported by people using the xarray library so I went looking for projects that would give us better coverage of that.

hauntsaninja commented 2 years ago

I pushed b4e8559 to normalise filenames. So for typeshed's CI should no longer see mypy crashes (that were not caused by the relevant typeshed change).

Given this, I'll probably add an option to always report a crash, since for mypy's CI, we're still very interested in seeing all crashes. However this is low pri: