Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix user plugins case suite #1183

Merged
merged 4 commits into from
Feb 16, 2023

Conversation

bsculac
Copy link
Contributor

@bsculac bsculac commented Feb 14, 2023

Description

When submitting a case-suite that uses userPlugins, registration of the userPlugin with the plugin manager is attempted multiple times. The plugin manager does not allow this, and the case-suite fails.

To fix this, the registration of userPlugins now checks if the user plugin name has already been registered with the plugin manager.


Checklist

  • This PR has only one purpose or idea.
  • Tests have been added/updated to verify that the new/changed code works.
  • The release notes (location doc/release/0.X.rst) are up-to-date with any bug fixes or new features.
  • The documentation is still up-to-date in the doc folder.
  • The dependencies are still up-to-date in setup.py.

During the submission of cases, userPlugins are registered. This can result
in multiple attempts to load a specific userPlugin if a case-suite is
being submitted, as each loading of the input yaml attempts to register
the userPlugin.

A check has been added to skip the registration of the userPlugin if a
userPlugin with the same name already exists in the registry.
@keckler
Copy link
Member

keckler commented Feb 15, 2023

Somehow I have never run into this issue... I wonder what is different between your case suite and mine.

@bsculac bsculac marked this pull request as ready for review February 15, 2023 22:28
@john-science john-science added the bug Something is wrong: Highest Priority label Feb 16, 2023
@john-science john-science merged commit b4f472f into terrapower:main Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong: Highest Priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants