Skip to content

[ty] Enable more corpus tests#18531

Merged
AlexWaygood merged 2 commits intomainfrom
alex/more-corpus-tests
Jun 7, 2025
Merged

[ty] Enable more corpus tests#18531
AlexWaygood merged 2 commits intomainfrom
alex/more-corpus-tests

Conversation

@AlexWaygood
Copy link
Member

Summary

We now no longer panic on any of the files covered by the linter_stubs_no_panic() test, so we can safely enable that without adding any new files to the KNOWN_FAILURES list 🎉

We still do panic on several files in typeshed when attempting to pull types, but the number is now low enough that we can just list the failing files in KNOWN_FAILURES. Somewhat concerning is that we appear to have stack overflows when attempting to pull types in any typeshed files where the last segement of the path is "types.pyi". We should look into that -- but I still think it's worth expanding the corpus test to run over most typeshed files for now, to prevent future regressions.

Test Plan

cargo test -p ty_project --test check

@AlexWaygood AlexWaygood added testing Related to testing Ruff itself ty Multi-file analysis & type inference labels Jun 7, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Jun 7, 2025

mypy_primer results

No ecosystem changes detected ✅

@AlexWaygood AlexWaygood force-pushed the alex/more-corpus-tests branch from 9aac8be to c2b3a68 Compare June 7, 2025 12:56
@AlexWaygood AlexWaygood merged commit 5034278 into main Jun 7, 2025
35 checks passed
@AlexWaygood AlexWaygood deleted the alex/more-corpus-tests branch June 7, 2025 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Related to testing Ruff itself ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants