Skip to content

Comments

[red-knot] mypy_primer: Fail job on panic or internal errors#17389

Merged
sharkdp merged 1 commit intomainfrom
david/mypy_primer-fail-job-on-panics
Apr 14, 2025
Merged

[red-knot] mypy_primer: Fail job on panic or internal errors#17389
sharkdp merged 1 commit intomainfrom
david/mypy_primer-fail-job-on-panics

Conversation

@sharkdp
Copy link
Contributor

@sharkdp sharkdp commented Apr 14, 2025

Summary

Let the mypy_primer job fail if Red Knot panics or exits with code 2 (indicating an internal error).

Corresponding mypy_primer commit: astral-sh/mypy_primer@90808f4

In addition, we may also want to make a successful mypy_primer run required for merging?

Test Plan

Made sure that mypy_primer exits with code 70 locally on panics, which should result in a pipeline failure, since we only allow code 0 and 1 in the pipeline here:

--debug > mypy_primer.diff || [ $? -eq 1 ]

Test PR: #17389

@sharkdp sharkdp added ci Related to internal CI tooling ty Multi-file analysis & type inference labels Apr 14, 2025
@github-actions
Copy link
Contributor

mypy_primer results

No ecosystem changes detected ✅

@sharkdp sharkdp enabled auto-merge (squash) April 14, 2025 11:49
@sharkdp sharkdp merged commit 701aecb into main Apr 14, 2025
22 checks passed
@sharkdp sharkdp deleted the david/mypy_primer-fail-job-on-panics branch April 14, 2025 11:50
dcreager added a commit that referenced this pull request Apr 15, 2025
* main: (31 commits)
  [red-knot] Add some knowledge of `__all__` to `*`-import machinery (#17373)
  Update taiki-e/install-action digest to be7c31b (#17379)
  Update Rust crate mimalloc to v0.1.46 (#17382)
  Update PyO3/maturin-action action to v1.49.1 (#17384)
  Update Rust crate anyhow to v1.0.98 (#17380)
  dependencies: switch from `chrono` to `jiff`
  Update Rust crate bstr to v1.12.0 (#17385)
  [red-knot] Further optimize `*`-import visibility constraints (#17375)
  [red-knot] Minor 'member_lookup_with_policy' fix (#17407)
  [red-knot] Initial support for `dataclass`es (#17353)
  Sync vendored typeshed stubs (#17402)
  [red-knot] improve function/bound method type display (#17294)
  [red-knot] Move relation methods from `CallableType` to `Signature` (#17365)
  [syntax-errors] `await` outside async functions (#17363)
  [red-knot] optimize is_subtype_of for literals (#17394)
  [red-knot] add a large-union-of-string-literals benchmark (#17393)
  Update pre-commit dependencies (#17383)
  [red-knot] mypy_primer: Fail job on panic or internal errors (#17389)
  [red-knot] Document limitations of diagnostics-silencing in unreachable code (#17387)
  [red-knot] detect unreachable attribute assignments (#16852)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Related to internal CI tooling ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant