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

Deal with ParameterUninitializedException for parameter service #1033

Conversation

Barry-Xu-2018
Copy link
Contributor

Address #1030

@Barry-Xu-2018 Barry-Xu-2018 marked this pull request as draft November 1, 2022 09:14
Signed-off-by: Barry Xu <barry.xu@sony.com>
@Barry-Xu-2018 Barry-Xu-2018 force-pushed the topic-fix-not-deal-with-parameteruninitializedexception branch from 32a3792 to 9466d1d Compare November 1, 2022 09:28
Signed-off-by: Barry Xu <barry.xu@sony.com>
@Barry-Xu-2018
Copy link
Contributor Author

Not sure why test_parameter_client.py isn't included in CMakeLists.txt.

@fujitatomoya
Copy link
Collaborator

@Barry-Xu-2018 since this is draft, are you still working on this?

@Barry-Xu-2018
Copy link
Contributor Author

@Barry-Xu-2018 since this is draft, are you still working on this?

Yes.
iuhilnehc-ynos submitted a PR ros2/rclcpp#2036.
We should keep the same process for ParameterUninitializedException while getting parameter from parameter service.
We discussed it yesterday. So I marked the draft of this PR.

Signed-off-by: Barry Xu <barry.xu@sony.com>
@Barry-Xu-2018 Barry-Xu-2018 marked this pull request as ready for review November 2, 2022 03:57
Copy link
Collaborator

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

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

lgtm

rclpy/CMakeLists.txt Show resolved Hide resolved
@fujitatomoya
Copy link
Collaborator

@ivanpauno can you take a look at this too? it is the same change for ros2/rclcpp#2036

@fujitatomoya
Copy link
Collaborator

CI:

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

@Barry-Xu-2018
Copy link
Contributor Author

About Linux failure, the cause seems to be related to CI environment

19:22:05 FATAL: command execution failed
19:22:24 java.nio.channels.ClosedChannelException
19:22:24 	at org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLayer.java:154)
19:22:24 	at org.jenkinsci.remoting.protocol.impl.NIONetworkLayer.ready(NIONetworkLayer.java:142)
19:22:24 	at org.jenkinsci.remoting.protocol.IOHub$OnReady.run(IOHub.java:790)
19:22:24 	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
19:22:24 	at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
19:22:24 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
19:22:24 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
19:22:24 	at java.lang.Thread.run(Thread.java:748)
19:22:24 Caused: java.io.IOException: Backing channel 'JNLP4-connect connection from ip-10-0-1-44.ec2.internal/10.0.1.44:50798' is disconnected.

Copy link
Member

@ivanpauno ivanpauno left a comment

Choose a reason for hiding this comment

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

LGTM

rclpy/CMakeLists.txt Show resolved Hide resolved
@fujitatomoya fujitatomoya merged commit e442ad2 into ros2:rolling Nov 14, 2022
@Achllle
Copy link
Contributor

Achllle commented Nov 14, 2022

Given the crashing behavior, will this be backported to the currently supported Humble & Galactic?

@fujitatomoya
Copy link
Collaborator

@Mergifyio backport humble galactic foxy

mergify bot pushed a commit that referenced this pull request Nov 15, 2022
* Deal with ParameterUninitializedException for parameter service

Signed-off-by: Barry Xu <barry.xu@sony.com>

* Enable all tests in test_parameter_client.py

Signed-off-by: Barry Xu <barry.xu@sony.com>

* Get empty value for ParameterUninitializedException

Signed-off-by: Barry Xu <barry.xu@sony.com>

Signed-off-by: Barry Xu <barry.xu@sony.com>
(cherry picked from commit e442ad2)

# Conflicts:
#	rclpy/test/test_parameter_client.py
mergify bot pushed a commit that referenced this pull request Nov 15, 2022
* Deal with ParameterUninitializedException for parameter service

Signed-off-by: Barry Xu <barry.xu@sony.com>

* Enable all tests in test_parameter_client.py

Signed-off-by: Barry Xu <barry.xu@sony.com>

* Get empty value for ParameterUninitializedException

Signed-off-by: Barry Xu <barry.xu@sony.com>

Signed-off-by: Barry Xu <barry.xu@sony.com>
(cherry picked from commit e442ad2)

# Conflicts:
#	rclpy/test/test_parameter_client.py
mergify bot pushed a commit that referenced this pull request Nov 15, 2022
* Deal with ParameterUninitializedException for parameter service

Signed-off-by: Barry Xu <barry.xu@sony.com>

* Enable all tests in test_parameter_client.py

Signed-off-by: Barry Xu <barry.xu@sony.com>

* Get empty value for ParameterUninitializedException

Signed-off-by: Barry Xu <barry.xu@sony.com>

Signed-off-by: Barry Xu <barry.xu@sony.com>
(cherry picked from commit e442ad2)

# Conflicts:
#	rclpy/CMakeLists.txt
#	rclpy/rclpy/parameter_service.py
#	rclpy/test/test_parameter_client.py
@mergify
Copy link

mergify bot commented Nov 15, 2022

backport humble galactic foxy

✅ Backports have been created

Barry-Xu-2018 added a commit to Barry-Xu-2018/rclpy that referenced this pull request Apr 10, 2023
…#1033)

* Deal with ParameterUninitializedException for parameter service

Signed-off-by: Barry Xu <barry.xu@sony.com>

* Enable all tests in test_parameter_client.py

Signed-off-by: Barry Xu <barry.xu@sony.com>

* Get empty value for ParameterUninitializedException

Signed-off-by: Barry Xu <barry.xu@sony.com>

Signed-off-by: Barry Xu <barry.xu@sony.com>
(cherry picked from commit e442ad2)

# Conflicts:
#	rclpy/test/test_parameter_client.py
iuhilnehc-ynos pushed a commit to iuhilnehc-ynos/rclpy that referenced this pull request Apr 10, 2023
…#1033)

* Deal with ParameterUninitializedException for parameter service

Signed-off-by: Barry Xu <barry.xu@sony.com>

* Enable all tests in test_parameter_client.py

Signed-off-by: Barry Xu <barry.xu@sony.com>

* Get empty value for ParameterUninitializedException

Signed-off-by: Barry Xu <barry.xu@sony.com>

Signed-off-by: Barry Xu <barry.xu@sony.com>
(cherry picked from commit e442ad2)

# Conflicts:
#	rclpy/test/test_parameter_client.py
Signed-off-by: Chen Lihui <lihui.chen@sony.com>
iuhilnehc-ynos pushed a commit to iuhilnehc-ynos/rclpy that referenced this pull request Apr 10, 2023
…#1033)

* Deal with ParameterUninitializedException for parameter service

Signed-off-by: Barry Xu <barry.xu@sony.com>

* Enable all tests in test_parameter_client.py

Signed-off-by: Barry Xu <barry.xu@sony.com>

* Get empty value for ParameterUninitializedException

Signed-off-by: Barry Xu <barry.xu@sony.com>

Signed-off-by: Barry Xu <barry.xu@sony.com>
(cherry picked from commit e442ad2)

# Conflicts:
#	rclpy/test/test_parameter_client.py
Signed-off-by: Chen Lihui <lihui.chen@sony.com>
iuhilnehc-ynos pushed a commit to iuhilnehc-ynos/rclpy that referenced this pull request Apr 10, 2023
…#1033)

* Deal with ParameterUninitializedException for parameter service

Signed-off-by: Barry Xu <barry.xu@sony.com>

* Enable all tests in test_parameter_client.py

Signed-off-by: Barry Xu <barry.xu@sony.com>

* Get empty value for ParameterUninitializedException

Signed-off-by: Barry Xu <barry.xu@sony.com>

Signed-off-by: Barry Xu <barry.xu@sony.com>
(cherry picked from commit e442ad2)

# Conflicts:
#	rclpy/test/test_parameter_client.py
Signed-off-by: Chen Lihui <lihui.chen@sony.com>
Barry-Xu-2018 added a commit to Barry-Xu-2018/rclpy that referenced this pull request Apr 10, 2023
…#1033)

* Deal with ParameterUninitializedException for parameter service

Signed-off-by: Barry Xu <barry.xu@sony.com>

* Enable all tests in test_parameter_client.py

Signed-off-by: Barry Xu <barry.xu@sony.com>

* Get empty value for ParameterUninitializedException

Signed-off-by: Barry Xu <barry.xu@sony.com>

Signed-off-by: Barry Xu <barry.xu@sony.com>
(cherry picked from commit e442ad2)

# Conflicts:
#	rclpy/test/test_parameter_client.py
Signed-off-by: Barry Xu <barry.xu@sony.com>
Barry-Xu-2018 added a commit to Barry-Xu-2018/rclpy that referenced this pull request Apr 10, 2023
…#1033)

* Deal with ParameterUninitializedException for parameter service

Signed-off-by: Barry Xu <barry.xu@sony.com>

* Enable all tests in test_parameter_client.py

Signed-off-by: Barry Xu <barry.xu@sony.com>

* Get empty value for ParameterUninitializedException

Signed-off-by: Barry Xu <barry.xu@sony.com>

Signed-off-by: Barry Xu <barry.xu@sony.com>
(cherry picked from commit e442ad2)

# Conflicts:
#	rclpy/test/test_parameter_client.py
Signed-off-by: Barry Xu <barry.xu@sony.com>
fujitatomoya added a commit that referenced this pull request Apr 12, 2023
* Add parallel callback test (#1044) (#1052)

* Add parallel callback test
Signed-off-by: Florian Vahl <florian@flova.de>
(cherry picked from commit 40054ba)

Co-authored-by: Florian Vahl <florian@flova.de>
Signed-off-by: Barry Xu <barry.xu@sony.com>

* decorator should not be callable. (#1050) (#1051)

#1047

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
(cherry picked from commit 2da35a4)

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Barry Xu <barry.xu@sony.com>

* 3.3.6

Signed-off-by: Audrow Nash <audrow@openrobotics.org>
Signed-off-by: Barry Xu <barry.xu@sony.com>

* Fix `test_publisher` linter for pydocstyle 6.2.2 (backport #1063) (#1066)

Co-authored-by: Cristóbal Arroyo <69475004+Crola1702@users.noreply.github.com>
Signed-off-by: Barry Xu <barry.xu@sony.com>

* 3.3.7

Signed-off-by: Audrow Nash <audrow@openrobotics.org>
Signed-off-by: Barry Xu <barry.xu@sony.com>

* Fix #983 by saving future and checking for + raising any exceptions (#1073) (#1088)

* Fix #983 by saving future and checking for + raising any exceptions

Signed-off-by: Achille Verheye <achille.verheye@gmail.com>
Co-authored-by: Achille Verheye <achille.verheye@gmail.com>
Signed-off-by: Barry Xu <barry.xu@sony.com>

* Deal with ParameterUninitializedException for parameter service (#1033)

* Deal with ParameterUninitializedException for parameter service

Signed-off-by: Barry Xu <barry.xu@sony.com>

* Enable all tests in test_parameter_client.py

Signed-off-by: Barry Xu <barry.xu@sony.com>

* Get empty value for ParameterUninitializedException

Signed-off-by: Barry Xu <barry.xu@sony.com>

Signed-off-by: Barry Xu <barry.xu@sony.com>
(cherry picked from commit e442ad2)

# Conflicts:
#	rclpy/test/test_parameter_client.py
Signed-off-by: Barry Xu <barry.xu@sony.com>

* Fix conflict and use new testcase (#1053)

Signed-off-by: Barry Xu <barry.xu@sony.com>

* Changed for filename with alphabet order

Signed-off-by: Barry Xu <barry.xu@sony.com>

---------

Signed-off-by: Barry Xu <barry.xu@sony.com>
Signed-off-by: Audrow Nash <audrow@openrobotics.org>
Signed-off-by: Achille Verheye <achille.verheye@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Florian Vahl <florian@flova.de>
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Co-authored-by: Audrow Nash <audrow@openrobotics.org>
Co-authored-by: Cristóbal Arroyo <69475004+Crola1702@users.noreply.github.com>
Co-authored-by: Achille Verheye <achille.verheye@gmail.com>
fujitatomoya pushed a commit that referenced this pull request Apr 21, 2023
* Deal with ParameterUninitializedException for parameter service

Signed-off-by: Barry Xu <barry.xu@sony.com>

* Enable all tests in test_parameter_client.py

Signed-off-by: Barry Xu <barry.xu@sony.com>

* Get empty value for ParameterUninitializedException

Signed-off-by: Barry Xu <barry.xu@sony.com>

Signed-off-by: Barry Xu <barry.xu@sony.com>
(cherry picked from commit e442ad2)

# Conflicts:
#	rclpy/test/test_parameter_client.py
fujitatomoya added a commit that referenced this pull request Apr 21, 2023
* Add parallel callback test (#1044) (#1052)

* Add parallel callback test
Signed-off-by: Florian Vahl <florian@flova.de>
(cherry picked from commit 40054ba)

Co-authored-by: Florian Vahl <florian@flova.de>
Signed-off-by: Barry Xu <barry.xu@sony.com>

* decorator should not be callable. (#1050) (#1051)

#1047

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
(cherry picked from commit 2da35a4)

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Barry Xu <barry.xu@sony.com>

* 3.3.6

Signed-off-by: Audrow Nash <audrow@openrobotics.org>
Signed-off-by: Barry Xu <barry.xu@sony.com>

* Fix `test_publisher` linter for pydocstyle 6.2.2 (backport #1063) (#1066)

Co-authored-by: Cristóbal Arroyo <69475004+Crola1702@users.noreply.github.com>
Signed-off-by: Barry Xu <barry.xu@sony.com>

* 3.3.7

Signed-off-by: Audrow Nash <audrow@openrobotics.org>
Signed-off-by: Barry Xu <barry.xu@sony.com>

* Fix #983 by saving future and checking for + raising any exceptions (#1073) (#1088)

* Fix #983 by saving future and checking for + raising any exceptions

Signed-off-by: Achille Verheye <achille.verheye@gmail.com>
Co-authored-by: Achille Verheye <achille.verheye@gmail.com>
Signed-off-by: Barry Xu <barry.xu@sony.com>

* Deal with ParameterUninitializedException for parameter service (#1033)

* Deal with ParameterUninitializedException for parameter service

Signed-off-by: Barry Xu <barry.xu@sony.com>

* Enable all tests in test_parameter_client.py

Signed-off-by: Barry Xu <barry.xu@sony.com>

* Get empty value for ParameterUninitializedException

Signed-off-by: Barry Xu <barry.xu@sony.com>

Signed-off-by: Barry Xu <barry.xu@sony.com>
(cherry picked from commit e442ad2)

# Conflicts:
#	rclpy/test/test_parameter_client.py
Signed-off-by: Barry Xu <barry.xu@sony.com>

* Fix conflict and use new testcase (#1053)

Signed-off-by: Barry Xu <barry.xu@sony.com>

* Changed for filename with alphabet order

Signed-off-by: Barry Xu <barry.xu@sony.com>

---------

Signed-off-by: Barry Xu <barry.xu@sony.com>
Signed-off-by: Audrow Nash <audrow@openrobotics.org>
Signed-off-by: Achille Verheye <achille.verheye@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Florian Vahl <florian@flova.de>
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Co-authored-by: Audrow Nash <audrow@openrobotics.org>
Co-authored-by: Cristóbal Arroyo <69475004+Crola1702@users.noreply.github.com>
Co-authored-by: Achille Verheye <achille.verheye@gmail.com>
fujitatomoya pushed a commit that referenced this pull request Apr 25, 2023
…port #1033) (#1041)

Signed-off-by: Barry Xu <barry.xu@sony.com>
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.

None yet

4 participants