You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(snapshots): Add selective flag and rename all_image_names to all_image_file_names (#113006)
## Summary
Adds backend support for the new sentry-cli `--selective` flag
([sentry-cli PR
#3268](getsentry/sentry-cli#3268)).
- **`selective` boolean** added to upload API and manifest
- **`all_image_names` renamed to `all_image_file_names`** to match CLI
naming
- **Three categorization modes:**
- `selective` + `all_image_file_names`: can distinguish removed vs
skipped (like Happo/Chromatic)
- `selective` only: all missing base images treated as skipped, no
removals (like Argos `--subset`)
- Full build: missing = removed (existing behavior)
- **Validation:** `all_image_file_names` requires `selective`,
`selective` requires `base_sha`
- **Baseline guard:** selective builds excluded from
`find_base_snapshot_artifact` via `is_selective` DB field and don't
trigger waiting-heads comparisons
## Test plan
- [x] Unit tests for 3-branch categorization logic (selective+names,
selective-only, full)
- [x] API validation tests (selective requires base_sha, names requires
selective, names rejects empty)
- [x] Selective build without names: all missing = skipped
- [x] Selective build with names: removed vs skipped distinguished
- [x] Fingerprinting excludes skipped images for auto-approval
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments