Use absolute imports for generated local type support#261
Open
Lidang-Jiang wants to merge 1 commit intoros2:rollingfrom
Open
Use absolute imports for generated local type support#261Lidang-Jiang wants to merge 1 commit intoros2:rollingfrom
Lidang-Jiang wants to merge 1 commit intoros2:rollingfrom
Conversation
Signed-off-by: Lidang-Jiang <lidangjiang@gmail.com>
Member
|
@Lidang-Jiang did you use AI to write all/some of this code or open this PR? |
Author
|
Thanks for checking. Yes, I used OpenAI Codex (GPT-5) to help investigate the issue, prepare the code and test changes, and draft/update this PR description. I updated the PR body with a Generative AI disclosure section as well. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #257.
import builtin_interfaces.msg.check_fieldsassertions.builtin_interfaces/Duration.Did you use Generative AI?
Yes. I used OpenAI Codex (GPT-5) to help investigate the issue, prepare the code and test changes, and draft/update this PR description. I reviewed the changes and ran the local tests listed below before opening the PR.
Before / After
Before
Command:
Output:
After
Command:
rg -n "builtin_interfaces\\.msg|from builtin_interfaces\\.msg" \ build_pr/rosidl_generator_py/rosidl_generator_py/rosidl_generator_py/msg/_duration.py \ build_pr/rosidl_generator_py/rosidl_generator_py/rosidl_generator_py/msg/_duration_array_sequence.pyOutput:
Tests
Command:
env -i HOME=$HOME USER=$USER PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin bash -c 'source /opt/ros/rolling/setup.bash && export PYTHONPATH=$WORKSPACE/public-oss/ros2-prs/rosidl_python-257/rosidl_generator_py:${PYTHONPATH:-} && colcon --log-base log_pr build --paths $WORKSPACE/public-oss/ros2-prs/deps/ament_cmake_ros/ament_cmake_ros_core $WORKSPACE/public-oss/ros2-prs/rosidl-911/rosidl_pycommon $WORKSPACE/public-oss/ros2-prs/rosidl-911/rosidl_buffer $WORKSPACE/public-oss/ros2-prs/rosidl-911/rosidl_runtime_c $WORKSPACE/public-oss/ros2-prs/rosidl-911/rosidl_buffer_py rosidl_generator_py --packages-select rosidl_generator_py --allow-overriding rosidl_generator_py rosidl_pycommon rosidl_runtime_c --event-handlers console_direct+ --build-base build_pr --install-base install_pr && colcon --log-base log_pr test --paths $WORKSPACE/public-oss/ros2-prs/deps/ament_cmake_ros/ament_cmake_ros_core $WORKSPACE/public-oss/ros2-prs/rosidl-911/rosidl_pycommon $WORKSPACE/public-oss/ros2-prs/rosidl-911/rosidl_buffer $WORKSPACE/public-oss/ros2-prs/rosidl-911/rosidl_runtime_c $WORKSPACE/public-oss/ros2-prs/rosidl-911/rosidl_buffer_py rosidl_generator_py --packages-select rosidl_generator_py --allow-overriding rosidl_generator_py rosidl_pycommon rosidl_runtime_c --event-handlers console_direct+ --build-base build_pr --install-base install_pr && colcon test-result --verbose --test-result-base build_pr'Result: