File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
src/sentry/preprod/snapshots Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 2020# This is NOT a minimum % changed value, but
2121# rather adjusts the sensitivity of pixel change detection.
2222ODIFF_SENSITIVITY_DIFF_THRESHOLD = 0.01
23+ DIFF_ALGORITHM_VERSION = 1
2324
2425
2526def _as_image (source : bytes | Image .Image ) -> Image .Image :
Original file line number Diff line number Diff line change 1414
1515from sentry .objectstore import get_preprod_session
1616from sentry .preprod .models import PreprodArtifact , PreprodComparisonApproval
17- from sentry .preprod .snapshots .image_diff .compare import compare_images_batch
17+ from sentry .preprod .snapshots .image_diff .compare import DIFF_ALGORITHM_VERSION , compare_images_batch
1818from sentry .preprod .snapshots .image_diff .odiff import OdiffServer
1919from sentry .preprod .snapshots .manifest import (
2020 ComparisonManifest ,
@@ -668,6 +668,7 @@ def _fetch_hash(h: str) -> None:
668668 extras = comparison .extras or {}
669669 # EME-896: Could become a proper column on PreprodSnapshotComparison
670670 extras ["comparison_key" ] = comparison_key
671+ extras ["diff_algorithm_version" ] = DIFF_ALGORITHM_VERSION
671672 comparison .extras = extras
672673 comparison .save (
673674 update_fields = [
You can’t perform that action at this time.
0 commit comments