Repository navigation
chore(tests): delete removed tests from pyproject - #118320
Merged
Merged
Conversation
cvxluo
marked this pull request as ready for review
June 23, 2026 23:33
| "tests.sentry.models.test_apikey", | ||
| "tests.sentry.models.test_apitoken", | ||
| "tests.sentry.models.test_auditlogentry", | ||
| "tests.sentry.models.test_authidentity", |
Contributor
There was a problem hiding this comment.
Bug: Removing test modules from the mypy override list will cause CI to fail because these files are not strictly typed and still exist.
Severity: MEDIUM
Suggested Fix
Re-add the entries for "tests.sentry.models.test_auditlogentry" and "tests.sentry.models.test_groupsearchview" to the [[tool.mypy.overrides]] section in pyproject.toml to ensure they continue to use the relaxed type-checking rules and prevent CI failures.
Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.
Location: pyproject.toml#L1982
Potential issue: The pull request removes `tests.sentry.models.test_auditlogentry` and
`tests.sentry.models.test_groupsearchview` from the `[[tool.mypy.overrides]]` section in
`pyproject.toml`. This section provides relaxed type-checking rules for modules that are
not yet strongly typed. By removing these entries, the files will be subjected to the
global strict mypy settings. Since the files are not strictly typed, this change will
cause the mypy type-checking step in CI to fail, breaking the build. The removal was
based on the incorrect assumption that these test files were deleted.
Also affects:
pyproject.toml:2006~2006
Did we get this right? 👍 / 👎 to inform future reviews.
roggenkemper
approved these changes
Jun 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#118313 removed some test files, which caused a linting failure in CI.