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 yaml parser error when meets .nan (refactor on #754) #781

Merged
merged 3 commits into from
Sep 2, 2020

Conversation

brawner
Copy link
Contributor

@brawner brawner commented Sep 1, 2020

This is a rebased squash of #741. See that discussion for comments about the files. This PR was rebased and squashed into one commit after merging #754.

Fixes #555

Signed-off-by: Ada-King [email protected]

Correct code style

Signed-off-by: Ada-King [email protected]

Modify as suggested

Signed-off-by: Ada-King [email protected]

Improve test

Signed-off-by: Ada-King [email protected]

Fix minor flaw

Signed-off-by: Ada-King [email protected]

Fix minor flaw again

Signed-off-by: Ada-King [email protected]

Satisfy windows CI

Signed-off-by: Ada-King [email protected]

Change the match rule for special float

Signed-off-by: Ada-King [email protected]

Distinguish +.inf and -.inf

Signed-off-by: Ada-King [email protected]

Signed-off-by: Ada-King <[email protected]>

Correct code style

Signed-off-by: Ada-King <[email protected]>

Modify as suggested

Signed-off-by: Ada-King <[email protected]>

Improve test

Signed-off-by: Ada-King <[email protected]>

Fix minor flaw

Signed-off-by: Ada-King <[email protected]>

Fix minor flaw again

Signed-off-by: Ada-King <[email protected]>

Satisfy windows CI

Signed-off-by: Ada-King <[email protected]>

Change the match rule for special float

Signed-off-by: Ada-King <[email protected]>

Distinguish +.inf and -.inf

Signed-off-by: Ada-King <[email protected]>
@brawner brawner changed the title Fix yaml parser error when meets .nan Fix yaml parser error when meets .nan (refactor on #754) Sep 1, 2020
Copy link
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

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

This looks generally good to me. The one exception is that there are failing tests in the PR job. @brawner are these currently expected?

@brawner
Copy link
Contributor Author

brawner commented Sep 2, 2020

@clalancette, the rpr job has failures in rcl, so I think those are unrelated to this PR. I'll add rcl to the CI jobs just in case.

Testing --packages-select rcl_yaml_param_parser rcl

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@brawner brawner self-assigned this Sep 2, 2020
@brawner brawner marked this pull request as ready for review September 2, 2020 17:34
@brawner
Copy link
Contributor Author

brawner commented Sep 2, 2020

This passes CI for both rcl_yaml_param_parser and rcl. Thanks @Ada-King for the patch!

@brawner brawner merged commit bc4bbac into master Sep 2, 2020
@delete-merged-branch delete-merged-branch bot deleted the brawner/rcl-yaml-rebase-741 branch September 2, 2020 19:39
@brawner
Copy link
Contributor Author

brawner commented Sep 2, 2020

This will need a backport, but will be dependent on the backport of #754.

brawner added a commit that referenced this pull request Sep 2, 2020
* Fix yaml parser error when meets .nan

Signed-off-by: Ada-King <[email protected]>

Correct code style

Signed-off-by: Ada-King <[email protected]>

Modify as suggested

Signed-off-by: Ada-King <[email protected]>

Improve test

Signed-off-by: Ada-King <[email protected]>

Fix minor flaw

Signed-off-by: Ada-King <[email protected]>

Fix minor flaw again

Signed-off-by: Ada-King <[email protected]>

Satisfy windows CI

Signed-off-by: Ada-King <[email protected]>

Change the match rule for special float

Signed-off-by: Ada-King <[email protected]>

Distinguish +.inf and -.inf

Signed-off-by: Ada-King <[email protected]>

* Remove unnecessary #include change.

Signed-off-by: Chris Lalancette <[email protected]>

* Add in two more necessary includes.

Signed-off-by: Chris Lalancette <[email protected]>

Co-authored-by: Ada-King <[email protected]>
Co-authored-by: Chris Lalancette <[email protected]>
brawner added a commit that referenced this pull request Oct 6, 2020
* Fix yaml parser error when meets .nan

Signed-off-by: Ada-King <[email protected]>

Correct code style

Signed-off-by: Ada-King <[email protected]>

Modify as suggested

Signed-off-by: Ada-King <[email protected]>

Improve test

Signed-off-by: Ada-King <[email protected]>

Fix minor flaw

Signed-off-by: Ada-King <[email protected]>

Fix minor flaw again

Signed-off-by: Ada-King <[email protected]>

Satisfy windows CI

Signed-off-by: Ada-King <[email protected]>

Change the match rule for special float

Signed-off-by: Ada-King <[email protected]>

Distinguish +.inf and -.inf

Signed-off-by: Ada-King <[email protected]>

* Remove unnecessary #include change.

Signed-off-by: Chris Lalancette <[email protected]>

* Add in two more necessary includes.

Signed-off-by: Chris Lalancette <[email protected]>

Co-authored-by: Ada-King <[email protected]>
Co-authored-by: Chris Lalancette <[email protected]>
brawner added a commit that referenced this pull request Oct 6, 2020
* Fix yaml parser error when meets .nan

Signed-off-by: Ada-King <[email protected]>

Correct code style

Signed-off-by: Ada-King <[email protected]>

Modify as suggested

Signed-off-by: Ada-King <[email protected]>

Improve test

Signed-off-by: Ada-King <[email protected]>

Fix minor flaw

Signed-off-by: Ada-King <[email protected]>

Fix minor flaw again

Signed-off-by: Ada-King <[email protected]>

Satisfy windows CI

Signed-off-by: Ada-King <[email protected]>

Change the match rule for special float

Signed-off-by: Ada-King <[email protected]>

Distinguish +.inf and -.inf

Signed-off-by: Ada-King <[email protected]>

* Remove unnecessary #include change.

Signed-off-by: Chris Lalancette <[email protected]>

* Add in two more necessary includes.

Signed-off-by: Chris Lalancette <[email protected]>

Co-authored-by: Ada-King <[email protected]>
Co-authored-by: Chris Lalancette <[email protected]>
Signed-off-by: Stephen Brawner <[email protected]>
brawner added a commit that referenced this pull request Oct 6, 2020
* Fix yaml parser error when meets .nan

Signed-off-by: Ada-King <[email protected]>

Correct code style

Signed-off-by: Ada-King <[email protected]>

Modify as suggested

Signed-off-by: Ada-King <[email protected]>

Improve test

Signed-off-by: Ada-King <[email protected]>

Fix minor flaw

Signed-off-by: Ada-King <[email protected]>

Fix minor flaw again

Signed-off-by: Ada-King <[email protected]>

Satisfy windows CI

Signed-off-by: Ada-King <[email protected]>

Change the match rule for special float

Signed-off-by: Ada-King <[email protected]>

Distinguish +.inf and -.inf

Signed-off-by: Ada-King <[email protected]>

* Remove unnecessary #include change.

Signed-off-by: Chris Lalancette <[email protected]>

* Add in two more necessary includes.

Signed-off-by: Chris Lalancette <[email protected]>

Co-authored-by: Ada-King <[email protected]>
Co-authored-by: Chris Lalancette <[email protected]>
Signed-off-by: Stephen Brawner <[email protected]>

Co-authored-by: Ada-King <[email protected]>
Co-authored-by: Chris Lalancette <[email protected]>
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.

yaml parser raises an error "Sequence should be of same type" when meets .nan in list of doubles
4 participants