Skip to content

ensure unmanaged plugins have an address#34380

Merged
jbardin merged 1 commit intomainfrom
jbardin/unmanaged-plugin-schema-cache
Dec 8, 2023
Merged

ensure unmanaged plugins have an address#34380
jbardin merged 1 commit intomainfrom
jbardin/unmanaged-plugin-schema-cache

Conversation

@jbardin
Copy link
Copy Markdown
Member

@jbardin jbardin commented Dec 8, 2023

Unmanaged plugins use a slightly different factory function which was missed when adding the address to the plugin struct. This made little difference in most cases, but now with the new global schema cache it would prevent the plugin's schema from being cached due to lack of a key. The end result was acceptance tests for very large providers would take considerably longer due to the overhead of repeatedly generating the schema.

There is no good way to check the internals of an unmanaged provider in a unit test, but this PR puts the setup functionality in a single helper function so that unmanaged providers use the same setup codepath as the standard set of plugins.

Unmanaged plugins use a slightly different factory function which was
missed when adding the address to the plugin struct. This made little
difference in most cases, but now with the new global schema cache it
would prevent the plugin's schema from being cached due to lack of a
key. The end result was acceptance tests for very large providers would
take considerably longer due to the overhead of repeatedly generating
the schema.

There is no good way to check the internals of an unmanaged provider in
a unit test, but this PR puts the setup functionality in a single helper
function so that unmanaged providers use the same setup codepath as the
standard set of plugins.
@jbardin jbardin added 1.6-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged 1.7-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged labels Dec 8, 2023
@jbardin jbardin requested a review from a team December 8, 2023 18:11
@jbardin jbardin merged commit e26ec58 into main Dec 8, 2023
@jbardin jbardin deleted the jbardin/unmanaged-plugin-schema-cache branch December 8, 2023 18:23
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 8, 2023

Reminder for the merging maintainer: if this is a user-visible change, please update the changelog on the appropriate release branch.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 8, 2024

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

1.6-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged 1.7-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants