Skip to content

fix(nimbus): skip cloning screenshots with no associated image file#14912

Merged
jaredlockhart merged 1 commit intomainfrom
2026-03-13-clone-screenshot-valueerror
Mar 16, 2026
Merged

fix(nimbus): skip cloning screenshots with no associated image file#14912
jaredlockhart merged 1 commit intomainfrom
2026-03-13-clone-screenshot-valueerror

Conversation

@jaredlockhart
Copy link
Collaborator

Because

  • Cloning an experiment with a branch screenshot whose image file is
    missing from storage raises ValueError: The 'image' attribute has no file associated with it., crashing the clone operation
  • This was reported via Sentry (EXPERIMENTER-PROD-197)

This commit

  • Adds a guard in NimbusBranchScreenshot.clone() to return None when
    the image field has no file associated, skipping the broken screenshot
  • Adds a test that reproduces the ValueError from the Sentry report

Fixes #14911

Because

* Cloning an experiment with a branch screenshot whose image file is
  missing from storage raises ValueError, crashing the clone operation
* This was reported via Sentry (EXPERIMENTER-PROD-197)

This commit

* Adds a guard in NimbusBranchScreenshot.clone() to return None when
  the image field has no file associated
* Adds a test that reproduces the ValueError from the Sentry report

Fixes #14911

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jaredlockhart jaredlockhart added this pull request to the merge queue Mar 16, 2026
Merged via the queue into main with commit 417935d Mar 16, 2026
17 checks passed
@jaredlockhart jaredlockhart deleted the 2026-03-13-clone-screenshot-valueerror branch March 16, 2026 17:19
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.

ValueError: The 'image' attribute has no file associated with it.

2 participants