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 CLI parsing of C++ enum values #676

Merged
8 commits merged into from
Feb 13, 2023

Conversation

dagardner-nv
Copy link
Contributor

C++ enums exposed to Python via pybind11 are not subclasses of enum.Enum causing them to not be parsed properly by the CLI.

Hot-patching this into 23.01

fixes #675

C++ enums exposed by pybind11 are not subclasses of enum.Enum, but
instead are enum-work-alikes.

In additon to this the pybind11 enum keys are strings.
@dagardner-nv dagardner-nv added bug Something isn't working non-breaking Non-breaking change 2 - In Progress labels Feb 7, 2023
@dagardner-nv dagardner-nv requested a review from a team as a code owner February 7, 2023 21:48
@mdemoret-nv mdemoret-nv requested a review from a team as a code owner February 9, 2023 21:58
@mdemoret-nv
Copy link
Contributor

/merge

@ghost ghost merged commit 31c92b3 into nv-morpheus:branch-23.01 Feb 13, 2023
ghost pushed a commit that referenced this pull request Feb 14, 2023
* Add new `log_level` constructor argument to `MonitorStage`
* `MonitorStage` only adds itself to the MRC pipeline if the `morpheus.stages.general.monitor_stage` logger is configured at or below `log_level`

Allows pipeline authors to control the inclusion of progress output via the Morpheus logger. By default monitor stage output will only be present for `INFO` level and below.

Marking this as a breaking change for pipelines authors who expect to see monitor stage output when configuring Morpheus with `WARNING` level and higher.

Requires #676 to be merged, and forward-merged into 23.03 first.

fixes #553

Authors:
  - David Gardner (https://github.com/dagardner-nv)

Approvers:
  - Michael Demoret (https://github.com/mdemoret-nv)

URL: #659
jjacobelli pushed a commit to jjacobelli/Morpheus that referenced this pull request Mar 7, 2023
C++ enums exposed to Python via pybind11 are not subclasses of `enum.Enum` causing them to not be parsed properly by the CLI.

Hot-patching this into 23.01

fixes nv-morpheus#675

Authors:
  - David Gardner (https://github.com/dagardner-nv)
  - Michael Demoret (https://github.com/mdemoret-nv)

Approvers:
  - Michael Demoret (https://github.com/mdemoret-nv)

URL: nv-morpheus#676
jjacobelli pushed a commit to jjacobelli/Morpheus that referenced this pull request Mar 7, 2023
* Add new `log_level` constructor argument to `MonitorStage`
* `MonitorStage` only adds itself to the MRC pipeline if the `morpheus.stages.general.monitor_stage` logger is configured at or below `log_level`

Allows pipeline authors to control the inclusion of progress output via the Morpheus logger. By default monitor stage output will only be present for `INFO` level and below.

Marking this as a breaking change for pipelines authors who expect to see monitor stage output when configuring Morpheus with `WARNING` level and higher.

Requires nv-morpheus#676 to be merged, and forward-merged into 23.03 first.

fixes nv-morpheus#553

Authors:
  - David Gardner (https://github.com/dagardner-nv)

Approvers:
  - Michael Demoret (https://github.com/mdemoret-nv)

URL: nv-morpheus#659
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
! - Hotfix Related to a Hotfix Release bug Something isn't working non-breaking Non-breaking change
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants