Skip to content

[red-knot] Disable linter-corpus tests#14391

Merged
sharkdp merged 1 commit intomainfrom
david/disable-corpus-linter-tests
Nov 16, 2024
Merged

[red-knot] Disable linter-corpus tests#14391
sharkdp merged 1 commit intomainfrom
david/disable-corpus-linter-tests

Conversation

@sharkdp
Copy link
Contributor

@sharkdp sharkdp commented Nov 16, 2024

Summary

Disable the no-panic tests for the linter corpus, as there are too many problems right now, requiring linter-contributors to add their test files to the allow-list.

We can still run the tests using cargo test -p red_knot_workspace -- --ignored linter_af linter_gz. This is also why I left the crates/ruff_linter/ entries in the allow list for now, even if they will get out of sync. But let me know if I should rather remove them.

@sharkdp sharkdp added internal An internal refactor or improvement ty Multi-file analysis & type inference labels Nov 16, 2024
Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

We can still run the tests using cargo test -p red_knot_workspace -- --ignored linter_af linter_gz. This is also why I left the crates/ruff_linter/ entries in the allow list for now, even if they will get out of sync. But let me know if I should rather remove them.

I think it makes sense to leave the allowlist entries for the linter crate in there. Leaving the entries there probably allows us to examine a specific file in isolation more easily when we're running these tests manually using --ignored. That in turn may make it easier to whittle down the files we panic on.

@sharkdp sharkdp merged commit d470f29 into main Nov 16, 2024
@sharkdp sharkdp deleted the david/disable-corpus-linter-tests branch November 16, 2024 22:33
@github-actions
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

dylwil3 pushed a commit to dylwil3/ruff that referenced this pull request Nov 17, 2024
## Summary

Disable the no-panic tests for the linter corpus, as there are too many
problems right now, requiring linter-contributors to add their test
files to the allow-list.

We can still run the tests using `cargo test -p red_knot_workspace --
--ignored linter_af linter_gz`. This is also why I left the
`crates/ruff_linter/` entries in the allow list for now, even if they
will get out of sync. But let me know if I should rather remove them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal An internal refactor or improvement ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants