Skip to content

feat(snapshots): Add --all-image-file-names and --all-image-file-names-file flags#3312

Open
NicoHinderling wants to merge 3 commits into
masterfrom
feat/snapshots-all-image-file-names-manifest
Open

feat(snapshots): Add --all-image-file-names and --all-image-file-names-file flags#3312
NicoHinderling wants to merge 3 commits into
masterfrom
feat/snapshots-all-image-file-names-manifest

Conversation

@NicoHinderling
Copy link
Copy Markdown
Contributor

Add two mutually exclusive flags to snapshots upload that allow selective
builds to provide a complete list of image file names from the full test suite.
The backend uses this list to distinguish genuinely removed images from images
that were simply not included in a selective upload.

  • --all-image-file-names <NAMES> accepts a comma-separated list inline
  • --all-image-file-names-file <PATH> reads one name per line from a file
  • Either flag implicitly enables --selective
  • CLI validates that every discovered image appears in the list before uploading

Companion to sentry#113006
which adds the backend support for all_image_file_names.

Follows up on #3268
which added the --selective flag.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 27, 2026

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 2c493c9

@NicoHinderling NicoHinderling force-pushed the feat/snapshots-all-image-file-names-manifest branch from 0b55bb0 to 5735d1c Compare May 27, 2026 21:54
@NicoHinderling NicoHinderling marked this pull request as ready for review May 27, 2026 21:58
@NicoHinderling NicoHinderling requested review from a team as code owners May 27, 2026 21:58
Comment thread src/commands/snapshots/upload.rs
…s-file flags

Add two mutually exclusive flags to `snapshots upload` that allow selective
builds to provide a complete list of image file names from the full test suite.
The backend uses this list to distinguish genuinely removed images from images
that were simply not included in a selective upload.

- `--all-image-file-names <NAMES>` accepts a comma-separated list inline
- `--all-image-file-names-file <PATH>` reads one name per line from a file
- Either flag implicitly enables `--selective`
- CLI validates that every discovered image appears in the list before uploading

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@NicoHinderling NicoHinderling force-pushed the feat/snapshots-all-image-file-names-manifest branch from 5735d1c to 5ccaa62 Compare May 27, 2026 22:07
Comment thread src/commands/snapshots/upload.rs
Paths produced by tools like `find .` include a `./` prefix, but the
internal relative paths do not. Strip the prefix from user-provided
names so validation doesn't falsely reject valid images.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Comment thread src/commands/snapshots/upload.rs
Fixes clippy str_to_string lint in normalize_image_names and its test.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant