From 512d701469d44ddb94d515f1cd2d90d4a3cedb7c Mon Sep 17 00:00:00 2001 From: Ryan Brooks Date: Fri, 12 Sep 2025 16:18:57 -0700 Subject: [PATCH] Wireup comparisons to run upon size analysis completion --- src/sentry/preprod/tasks.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/sentry/preprod/tasks.py b/src/sentry/preprod/tasks.py index 36f5a25403bc01..843ffeaa57076d 100644 --- a/src/sentry/preprod/tasks.py +++ b/src/sentry/preprod/tasks.py @@ -19,6 +19,7 @@ ) from sentry.preprod.producer import produce_preprod_artifact_to_kafka from sentry.preprod.size_analysis.models import SizeAnalysisResults +from sentry.preprod.size_analysis.tasks import compare_preprod_artifact_size_analysis from sentry.preprod.vcs.status_checks.size.tasks import create_preprod_status_check_task from sentry.silo.base import SiloMode from sentry.tasks.assemble import ( @@ -441,6 +442,15 @@ def _assemble_preprod_artifact_size_analysis( } ) + # Trigger size analysis comparison if eligible + compare_preprod_artifact_size_analysis.apply_async( + kwargs={ + "project_id": project.id, + "org_id": org_id, + "artifact_id": artifact_id, + } + ) + @instrumented_task( name="sentry.preprod.tasks.assemble_preprod_artifact_size_analysis",