-
Notifications
You must be signed in to change notification settings - Fork 15
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
[20274] Validate the YAML configuration file on parsing #113
base: main
Are you sure you want to change the base?
Conversation
5073eb6
to
6dd9484
Compare
6dd9484
to
d2c218b
Compare
d2c218b
to
25a6936
Compare
25a6936
to
3b77e66
Compare
ddsrecorder_yaml/include/ddsrecorder_yaml/recorder/YamlReaderConfiguration.hpp
Outdated
Show resolved
Hide resolved
Signed-off-by: tempate <danieldiaz@eprosima.com> Validate YAML tags on parsing Signed-off-by: tempate <danieldiaz@eprosima.com> Validate new YAML options Signed-off-by: tempate <danieldiaz@eprosima.com> Make sets static Signed-off-by: tempate <danieldiaz@eprosima.com>
Signed-off-by: tempate <danieldiaz@eprosima.com>
Signed-off-by: tempate <danieldiaz@eprosima.com>
Signed-off-by: tempate <danieldiaz@eprosima.com>
Signed-off-by: tempate <danieldiaz@eprosima.com>
Signed-off-by: tempate <danieldiaz@eprosima.com>
Signed-off-by: tempate <danieldiaz@eprosima.com>
fb34fba
to
36e33f9
Compare
@@ -337,10 +378,60 @@ void RecorderConfiguration::load_recorder_configuration_( | |||
} | |||
} | |||
|
|||
void RecorderConfiguration::load_output_configuration_( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are not using this method, delete it or complete it.
int exit(ProcessReturnCode code) | ||
{ | ||
// Delete the consumers before closing | ||
eprosima::utils::Log::ClearConsumers(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this flush as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently it is called in ClearConsumers , so I guess not.
// NOTE: | ||
// It will not filter any log, so Fast DDS logs will be visible unless Fast DDS is compiled | ||
// in non debug or with LOG_NO_INFO=ON. | ||
// This is the easiest way to allow to see Warnings and Errors from Fast DDS. | ||
// Change it when Log Module is independent and with more extensive API. | ||
// utils::Log::SetCategoryFilter(std::regex("(DDSRECORDER)")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this note make sense anymore?
}; | ||
|
||
YamlValidator::validate_tags(yml, tags); | ||
|
||
mcap::McapWriterOptions mcap_writer_options{"ros2"}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inner tags are not validated right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe they are
@@ -136,7 +149,6 @@ void RecorderConfiguration::load_ddsrecorder_configuration_( | |||
|
|||
///// | |||
// Get optional specs configuration | |||
// WARNING: Parse builtin topics (dds tag) AFTER specs, as some topic-specific default values are set there |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this warning is important, I would update it not delete it.
|
||
This release includes the following **Recording features**: | ||
|
||
* :ref:`Resource Limits <recorder_specs_logging>`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete.
Signed-off-by: Lucia Echevarria <luciaechevarria@eprosima.com>
In this version, the DDS Recorder and the DDS Replayer throw a warning when a YAML tag is ignored to prevent typos, misplacements, and wrong configurations.
Merge after: