feat(preprod): Add snapshot comparison task#109382
Merged
NicoHinderling merged 4 commits intomasterfrom Feb 27, 2026
Merged
Conversation
f4a0ef2 to
925d6b9
Compare
d3c1b90 to
85baf2d
Compare
This was referenced Feb 25, 2026
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
3 tasks
925d6b9 to
bbf23d9
Compare
85baf2d to
cf39e6f
Compare
5bc8093 to
e05fbd9
Compare
bbf23d9 to
8c12f49
Compare
Closed
8c12f49 to
bbba6eb
Compare
e05fbd9 to
d5d5560
Compare
bbba6eb to
99c5a0b
Compare
d5d5560 to
1f0aee4
Compare
1f0aee4 to
700c27e
Compare
99c5a0b to
6e0d8b2
Compare
6e78d64 to
a898675
Compare
afa3fe6 to
e6c85dd
Compare
a898675 to
10c00d6
Compare
e6c85dd to
43dd7c4
Compare
10c00d6 to
4fe9275
Compare
4fe9275 to
8e0de3f
Compare
43dd7c4 to
6ec6bde
Compare
6ec6bde to
e1a67cb
Compare
rbro112
reviewed
Feb 26, 2026
rbro112
reviewed
Feb 26, 2026
rbro112
reviewed
Feb 26, 2026
|
|
||
| logger = logging.getLogger(__name__) | ||
|
|
||
| MAX_DIFF_PIXELS = 40_000_000 |
Member
There was a problem hiding this comment.
Where do these limits come from?
Contributor
Author
There was a problem hiding this comment.
the same values used in the emerge code for now
rbro112
reviewed
Feb 26, 2026
rbro112
reviewed
Feb 26, 2026
rbro112
reviewed
Feb 26, 2026
rbro112
reviewed
Feb 26, 2026
| comparison.images_added = len(added) | ||
| comparison.images_removed = len(removed) | ||
| extras = comparison.extras or {} | ||
| extras["comparison_key"] = comparison_key |
Member
There was a problem hiding this comment.
I'd be open to adding this as a col in the future
Contributor
Author
There was a problem hiding this comment.
added an inline comment and linear ticket to track this
Add compare_snapshots task that loads manifests from objectstore, diffs matched images in pixel-budget batches via OdiffServer, uploads diff masks, and writes comparison results with state machine guards.
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
rbro112
reviewed
Feb 27, 2026
src/sentry/preprod/api/models/snapshots/project_preprod_snapshot_models.py
Outdated
Show resolved
Hide resolved
rbro112
approved these changes
Feb 27, 2026
This was referenced Feb 27, 2026
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
compare_snapshotsinstrumented task that loads manifests from objectstore, diffs matched images in pixel-budget batches, uploads diff masks, and writes comparison resultsserver.pyStack: 3/3 — depends on #109381