<#1147 fix: raise DeploymentError for unknown imag...
# flyte-github
a
#1147 fix: raise DeploymentError for unknown image ref name Pull request opened by EngHabu Problem When a
TaskEnvironment
references an image by a name that is not present in the deploy config,
_build_images
raised a bare
ValueError
that escaped into the SDK's Sentry project as if it were an SDK crash. This is a user configuration mistake (a typo'd or missing image ref), not an SDK bug. Fix In
src/flyte/_deploy.py:_build_images
, raise
flyte.errors.DeploymentError
(a
RuntimeUserError
already filtered by
flyte/_sentry.py:_is_user_error
) instead of
ValueError
. The message is unchanged. Closes • FLYTE-SDK-4C —
ValueError: Image name 'usda-firecon' not found in config. Available: ['solution_image']
.
fixes FLYTE-SDK-4C
Tests • Added
test_build_images_unknown_ref_name_raises_deployment_error
, which builds an image via
Image.from_ref_name("usda-firecon")
and asserts
_build_images
raises
DeploymentError
when the ref is absent from
image_refs
. šŸ¤– Generated with Claude Code flyteorg/flyte-sdk