Skip to content

Comments

feat: gracefully handle unknown resource overwrites#1364

Merged
cotovanu-cristian merged 1 commit intomainfrom
feat/handle-unknown-overwrites
Feb 25, 2026
Merged

feat: gracefully handle unknown resource overwrites#1364
cotovanu-cristian merged 1 commit intomainfrom
feat/handle-unknown-overwrites

Conversation

@cotovanu-cristian
Copy link
Collaborator

@cotovanu-cristian cotovanu-cristian commented Feb 23, 2026

Summary

  • silent skip unknown resource overwrites; if the resource overwrite is unknown it means this is not used to actually overwrite a binding so this should be a soft dependency

@github-actions github-actions bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository labels Feb 23, 2026
@cotovanu-cristian cotovanu-cristian marked this pull request as ready for review February 25, 2026 08:23
@cotovanu-cristian cotovanu-cristian force-pushed the feat/handle-unknown-overwrites branch from 4ce542f to bd5ccda Compare February 25, 2026 08:23
@cotovanu-cristian cotovanu-cristian force-pushed the feat/handle-unknown-overwrites branch from bd5ccda to 868a777 Compare February 25, 2026 08:49
Comment on lines +184 to +191
try:
overwrites_dict[key] = ResourceOverwriteParser.parse(key, value)
except Exception as e:
logger.warning(
"Skipping unrecognized resource overwrite '%s': %s",
key,
e,
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my one gripe is that this will catch any and all exceptions, including validation issues for existing resource types. It's unclear how this will behave in those cases, it will probably fail down the line due to some other errors.

Since I think it's not introducing any regression and given the urgency it is probably fine, but we should revisit

@cotovanu-cristian cotovanu-cristian merged commit f08f414 into main Feb 25, 2026
129 of 130 checks passed
@cotovanu-cristian cotovanu-cristian deleted the feat/handle-unknown-overwrites branch February 25, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants