Skip to content

chore(tests): delete removed tests from pyproject - #118320

Merged
cvxluo merged 1 commit into
masterfrom
cvxluo/delete-removed-tests-from-pyproject
Jun 23, 2026
Merged

cvxluo merged 1 commit into
masterfrom
cvxluo/delete-removed-tests-from-pyproject

Conversation

@cvxluo

@cvxluo cvxluo commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

#118313 removed some test files, which caused a linting failure in CI.

@cvxluo
cvxluo marked this pull request as ready for review June 23, 2026 23:33
@cvxluo
cvxluo requested a review from a team as a code owner June 23, 2026 23:33
@cvxluo
cvxluo requested a review from wedamija June 23, 2026 23:33
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 23, 2026
@cvxluo
cvxluo requested a review from a team June 23, 2026 23:35
Comment thread pyproject.toml
"tests.sentry.models.test_apikey",
"tests.sentry.models.test_apitoken",
"tests.sentry.models.test_auditlogentry",
"tests.sentry.models.test_authidentity",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@cvxluo
cvxluo enabled auto-merge (squash) June 23, 2026 23:47
@cvxluo
cvxluo merged commit f38bd94 into master Jun 23, 2026
85 checks passed
@cvxluo
cvxluo deleted the cvxluo/delete-removed-tests-from-pyproject branch June 23, 2026 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants