Skip to content

Conversation

kanterov
Copy link
Collaborator

Changes

Fix issues with multiple resource loaders.

Previously, we discarded outputs of all loaders except the last one. That worked well if there is only a single resource loader.

Tests

@kanterov kanterov temporarily deployed to test-trigger-is March 17, 2025 15:41 — with GitHub Actions Inactive
@kanterov kanterov marked this pull request as ready for review March 17, 2025 15:41
@kanterov kanterov force-pushed the python-fix-resource-loaders branch from b1d2e31 to fa94355 Compare March 17, 2025 15:43
@kanterov kanterov temporarily deployed to test-trigger-is March 17, 2025 15:45 — with GitHub Actions Inactive
@kanterov kanterov force-pushed the python-fix-resource-loaders branch from fa94355 to 774cd98 Compare March 17, 2025 15:51
@kanterov kanterov temporarily deployed to test-trigger-is March 17, 2025 15:51 — with GitHub Actions Inactive
_load_resources_from_function(bundle, function)
)

resources.add_resources(function_resources)
Copy link
Contributor

Choose a reason for hiding this comment

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

What happens if separate functions use the same resource key?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We will add a diagnostic error (that will prevent deployment) and return a bundle containing the first resource. There is a test for it.

@kanterov kanterov added this pull request to the merge queue Mar 18, 2025
Merged via the queue into main with commit d2ec690 Mar 18, 2025
15 checks passed
@kanterov kanterov deleted the python-fix-resource-loaders branch March 18, 2025 12:05
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.

2 participants