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

Add types to rosidl_cli #826

Merged
merged 12 commits into from
Oct 4, 2024
Merged

Conversation

InvincibleRMC
Copy link
Contributor

No description provided.

Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
@sloretz
Copy link
Contributor

sloretz commented Sep 27, 2024

@Mergifyio update

Copy link
Contributor

mergify bot commented Sep 27, 2024

update

☑️ Nothing to do

  • #commits-behind > 0 [📌 update requirement]
  • -closed [📌 update requirement]
  • -conflict [📌 update requirement]
  • queue-position = -1 [📌 update requirement]

@sloretz
Copy link
Contributor

sloretz commented Sep 27, 2024

Pulls: #826
Gist: https://gist.githubusercontent.com/sloretz/fc71d0aad0686a7a81376fbb32e57add/raw/59674849538b9c82b25472c1440de2e3e072fd98/ros2.repos
BUILD args: --packages-up-to rosidl_cli
TEST args: --packages-select rosidl_cli
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/14627

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

@sloretz
Copy link
Contributor

sloretz commented Sep 27, 2024

Mind adding <test_depend>ament_mypy</test_depend> to the package.xml?

ImportError while importing test module '/home/jenkins-agent/workspace/ci_linux/ws/src/InvincibleRMC/rosidl/rosidl_cli/test/test_mypy.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test/test_mypy.py:15: in <module>
    from ament_mypy.main import main
E   ModuleNotFoundError: No module named 'ament_mypy'

@InvincibleRMC
Copy link
Contributor Author

Mind adding <test_depend>ament_mypy</test_depend> to the package.xml?

ImportError while importing test module '/home/jenkins-agent/workspace/ci_linux/ws/src/InvincibleRMC/rosidl/rosidl_cli/test/test_mypy.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test/test_mypy.py:15: in <module>
    from ament_mypy.main import main
E   ModuleNotFoundError: No module named 'ament_mypy'

oops. Will do

Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Copy link

@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

@fujitatomoya
Copy link

CI:

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

Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
@InvincibleRMC
Copy link
Contributor Author

@fujitatomoya I have address the errors. should be re-runnable now.

@fujitatomoya
Copy link

CI:

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

Signed-off-by: Michael Carlstrom <[email protected]>
@InvincibleRMC
Copy link
Contributor Author

@fujitatomoya I made a change to fix the Windows error.

Signed-off-by: Michael Carlstrom <[email protected]>
@InvincibleRMC
Copy link
Contributor Author

@fujitatomoya This CI should be ready to re-run.

@ahcorde
Copy link
Contributor

ahcorde commented Oct 3, 2024

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

Signed-off-by: Michael Carlstrom <[email protected]>
@InvincibleRMC
Copy link
Contributor Author

I see I misunderstood the error but, it should be resolved now.

@fujitatomoya
Copy link

cc29d8a should fix the mypy failure.

CI:

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

@ahcorde ahcorde merged commit c71febc into ros2:rolling Oct 4, 2024
4 checks passed
@clalancette
Copy link
Contributor

This PR is causing regressions on Windows: https://ci.ros2.org/view/nightly/job/nightly_win_rel/3191/testReport/junit/(root)/projectroot/test_cli_extension/

Specifically, the code in https://github.com/ros2/rosidl/pull/826/files#diff-6867a0a0c2e4946ffe6fadc04c32c1e9362a9518bac9ca31629c7276d198a13cR24-R58 is not a direct replacement for what was there before (because it was overriding specs, that variable was always guaranteed to exist).

I'm going to propose a revert PR here.

clalancette added a commit that referenced this pull request Oct 6, 2024
@InvincibleRMC
Copy link
Contributor Author

InvincibleRMC commented Oct 7, 2024

Ah I see. I missed setting a default for specs_set. My apologies.

ahcorde pushed a commit that referenced this pull request Oct 7, 2024
@fujitatomoya
Copy link

@ahcorde @InvincibleRMC @clalancette

sorry about this.

I will make sure to run test CI with all dependent packages, it should have been able to detect this UnboundLocalError.

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.

5 participants