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

Validate QoS profile values are not negative. #483

Merged
merged 15 commits into from
Aug 5, 2020

Conversation

jikawa-az
Copy link
Contributor

Closes #431

Signed-off-by: Jesse Ikawa [email protected]

@jikawa-az
Copy link
Contributor Author

Need to add unit test

Signed-off-by: Jesse Ikawa <[email protected]>
@jikawa-az
Copy link
Contributor Author

After confirming this test case works, split into 4 test cases to individually test: depth, deadline, lifespan, liveliness_lease_duration

Signed-off-by: Jesse Ikawa <[email protected]>
Signed-off-by: Jesse Ikawa <[email protected]>
Signed-off-by: Jesse Ikawa <[email protected]>
Signed-off-by: Jesse Ikawa <[email protected]>
Signed-off-by: Jesse Ikawa <[email protected]>
@jikawa-az jikawa-az requested a review from emersonknapp August 4, 2020 05:23
@jikawa-az
Copy link
Contributor Author

Will 'sec' and 'nsec' be the only time duration values for QoS profile in the future? If not I should revise to cover any time duration value.

Signed-off-by: Jesse Ikawa <[email protected]>
Signed-off-by: Jesse Ikawa <[email protected]>
Signed-off-by: Jesse Ikawa <[email protected]>
Signed-off-by: Jesse Ikawa <[email protected]>
Signed-off-by: Jesse Ikawa <[email protected]>
Signed-off-by: Jesse Ikawa <[email protected]>
@jikawa-az jikawa-az requested a review from dabonnie August 4, 2020 20:28
Copy link
Collaborator

@emersonknapp emersonknapp left a comment

Choose a reason for hiding this comment

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

lgtm with green CI

@emersonknapp
Copy link
Collaborator

emersonknapp commented Aug 5, 2020

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

Linux-aarch64 infra failure, automated re-run Build Status

@jikawa-az jikawa-az merged commit 97bf49b into master Aug 5, 2020
@delete-merged-branch delete-merged-branch bot deleted the jikawa/negative-override-values branch August 5, 2020 03:07
@Karsten1987
Copy link
Collaborator

@jikawa-az @emersonknapp can this PR be backported? If so, it would be great if you could come up with a backport PR today so we can cut a new release for rosbag2.

dabonnie pushed a commit that referenced this pull request Aug 5, 2020
* add negative check to init py

Signed-off-by: Jesse Ikawa <[email protected]>

* add unit test

Signed-off-by: Jesse Ikawa <[email protected]>

* modify unit test

Signed-off-by: Jesse Ikawa <[email protected]>

* revert test_play

Signed-off-by: Jesse Ikawa <[email protected]>

* typo string to int

Signed-off-by: Jesse Ikawa <[email protected]>

* add history value to unit tests

Signed-off-by: Jesse Ikawa <[email protected]>

* add validation to duration keys

Signed-off-by: Jesse Ikawa <[email protected]>

* modify duration validation

Signed-off-by: Jesse Ikawa <[email protected]>

* fix syntax

Signed-off-by: Jesse Ikawa <[email protected]>

* modify duration validation

Signed-off-by: Jesse Ikawa <[email protected]>

* fix syntax

Signed-off-by: Jesse Ikawa <[email protected]>

* modify comparison

Signed-off-by: Jesse Ikawa <[email protected]>

* fix syntax

Signed-off-by: Jesse Ikawa <[email protected]>

* modify style

Signed-off-by: Jesse Ikawa <[email protected]>

* modify style

Signed-off-by: Jesse Ikawa <[email protected]>
dabonnie pushed a commit that referenced this pull request Aug 5, 2020
* add negative check to init py

Signed-off-by: Jesse Ikawa <[email protected]>

* add unit test

Signed-off-by: Jesse Ikawa <[email protected]>

* modify unit test

Signed-off-by: Jesse Ikawa <[email protected]>

* revert test_play

Signed-off-by: Jesse Ikawa <[email protected]>

* typo string to int

Signed-off-by: Jesse Ikawa <[email protected]>

* add history value to unit tests

Signed-off-by: Jesse Ikawa <[email protected]>

* add validation to duration keys

Signed-off-by: Jesse Ikawa <[email protected]>

* modify duration validation

Signed-off-by: Jesse Ikawa <[email protected]>

* fix syntax

Signed-off-by: Jesse Ikawa <[email protected]>

* modify duration validation

Signed-off-by: Jesse Ikawa <[email protected]>

* fix syntax

Signed-off-by: Jesse Ikawa <[email protected]>

* modify comparison

Signed-off-by: Jesse Ikawa <[email protected]>

* fix syntax

Signed-off-by: Jesse Ikawa <[email protected]>

* modify style

Signed-off-by: Jesse Ikawa <[email protected]>

* modify style

Signed-off-by: Jesse Ikawa <[email protected]>
Signed-off-by: Devin Bonnie <[email protected]>
Karsten1987 pushed a commit that referenced this pull request Aug 5, 2020
* add negative check to init py

Signed-off-by: Jesse Ikawa <[email protected]>

* add unit test

Signed-off-by: Jesse Ikawa <[email protected]>

* modify unit test

Signed-off-by: Jesse Ikawa <[email protected]>

* revert test_play

Signed-off-by: Jesse Ikawa <[email protected]>

* typo string to int

Signed-off-by: Jesse Ikawa <[email protected]>

* add history value to unit tests

Signed-off-by: Jesse Ikawa <[email protected]>

* add validation to duration keys

Signed-off-by: Jesse Ikawa <[email protected]>

* modify duration validation

Signed-off-by: Jesse Ikawa <[email protected]>

* fix syntax

Signed-off-by: Jesse Ikawa <[email protected]>

* modify duration validation

Signed-off-by: Jesse Ikawa <[email protected]>

* fix syntax

Signed-off-by: Jesse Ikawa <[email protected]>

* modify comparison

Signed-off-by: Jesse Ikawa <[email protected]>

* fix syntax

Signed-off-by: Jesse Ikawa <[email protected]>

* modify style

Signed-off-by: Jesse Ikawa <[email protected]>

* modify style

Signed-off-by: Jesse Ikawa <[email protected]>
Signed-off-by: Devin Bonnie <[email protected]>

Co-authored-by: Jesse Ikawa <[email protected]>
@jikawa-az jikawa-az restored the jikawa/negative-override-values branch August 6, 2020 04:07
@jikawa-az jikawa-az deleted the jikawa/negative-override-values branch August 6, 2020 04:08
@jikawa-az jikawa-az self-assigned this Sep 14, 2020
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.

Negative values allowed in QoS overrides file
4 participants