Skip to content

Running pyright with --threads will exit with success when it OOMs #11253

Closed

Description

@tjni

Describe the bug

This is related to #11252. In my code base, we had some code trigger an OOM. That code is really very weird and I'm not convinced we should keep it. But the bigger issue we ran into was that we were running pyright with --threads 4 and that returned a successful error code.

Code or Screenshots

In the reproducer in #11252, run as-is and check the exit code. It will be non-zero. Now modify the script to add --threads 4 to the pyright invocation and run it. It will report an exit code of zero.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions