Skip to content

fix(tests): Pass RpcOrganization to create_repositories in repository test - #129854

Merged
jamieQ merged 1 commit into
masterfrom
fix/integration-repository-test-typing
Nov 4, 2026
Merged

jamieQ merged 1 commit into
masterfrom
fix/integration-repository-test-typing

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Master's backend typing job is red. The cause is test_create_repositories__scopes_lookups_to_external_ids, which passes an Organization to IntegrationRepositoryProvider.create_repositories, but that method takes an RpcOrganization:

tests/sentry/plugins/test_integration_repository.py:340: error: Argument 2 to "create_repositories" of "IntegrationRepositoryProvider" has incompatible type "Organization"; expected "RpcOrganization"  [arg-type]

This is a semantic merge conflict. The test came in with #129473, whose typing check ran before strict mypy was enabled in #129614. This PR passes self.rpc_organization instead, the same way the other create_repositories tests in this file already do.

The red typing check is also failing checks on the getsentry-backend deploy pipelines, so they are blocked until this lands.

via jamieq.

--

View Session [Sentry]

@jamieQ
jamieQ enabled auto-merge (squash) November 4, 2026 13:04
@jamieQ
jamieQ merged commit 462f399 into master Nov 4, 2026
66 checks passed
@jamieQ
jamieQ deleted the fix/integration-repository-test-typing branch November 4, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant