Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(grouping): Use optimized grouping logic for 40% of non-transitioning projects #76679

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/sentry/grouping/ingest/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,5 @@ def project_uses_optimized_grouping(project: Project) -> bool:
project.organization,
)
or (is_in_transition(project))
or project.id % 5 < 1 # 20% of all non-transition projects
or project.id % 5 < 2 # 40% of all non-transition projects
)
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ def test_uses_regular_or_optimized_grouping_as_appropriate(
# Keep making projects until we get an id which matches `id_qualifies`
org = Factories.create_organization()
project = Factories.create_project(organization=org)
while (project.id % 5 >= 1) if id_qualifies else (project.id % 5 < 1):
while (project.id % 5 >= 2) if id_qualifies else (project.id % 5 < 2):
project = Factories.create_project(organization=org)

with (
Expand Down
Loading