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(autoware_carla_interface): resolve init file error and colcon marker warning #9115

Conversation

JesusAnaya
Copy link
Contributor

Description

This PR resolves the colcon warning and errors in the autoware_carla_interface package:

  • Renamed the resource file to autoware_carla_interface for proper ROS 2 package indexing.
  • Added missing __init__.py files for Python package recognition, which previously caused the following error:
    package init file 'src/autoware_carla_interface/__init__.py' not found (or not a regular file).
  • Fixed the warning:
    WARNING:colcon.colcon_ros.task.ament_python.build: Package 'autoware_carla_interface' doesn't explicitly install a marker in the package index.

Related links

Parent Issue:

  • Link (if applicable)

How was this PR tested?

Build and colcon test for the autoware_carla_interface module, verifying that the marker warning and colcon errors are resolved.

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

@github-actions github-actions bot added the component:simulation Virtual environment setups and simulations. (auto-assigned) label Oct 18, 2024
Copy link

github-actions bot commented Oct 18, 2024

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@maxime-clem maxime-clem added run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) simulator:carla Issue related to CARLA simulator labels Oct 18, 2024
Copy link

codecov bot commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 27.50%. Comparing base (92868c0) to head (3a8aedb).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9115   +/-   ##
=======================================
  Coverage   27.50%   27.50%           
=======================================
  Files        1303     1303           
  Lines      101046   101046           
  Branches    39180    39180           
=======================================
  Hits        27794    27794           
  Misses      70544    70544           
  Partials     2708     2708           
Flag Coverage Δ *Carryforward flag
differential 0.00% <ø> (?)
total 27.50% <ø> (ø) Carriedforward from 92868c0

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

…dules directories

- Added __init__.py to autoware_carla_interface to ensure it is treated as a Python package.
- Added __init__.py to the modules directory for proper subpackage handling.

Signed-off-by: Jesus Armando Anaya <jesus@armandoanaya.com>
…er warning

- Renamed the resource file to `autoware_carla_interface` as required for ROS 2 package indexing.
- Updated `setup.py` to include the correct marker file path in `data_files`, resolving the colcon warning about missing explicit markers in the ament resource index.

Signed-off-by: Jesus Armando Anaya <jesus@armandoanaya.com>
@JesusAnaya JesusAnaya force-pushed the fix/missing-init-py-autoware-carla-interface branch from b336d87 to 3a8aedb Compare October 18, 2024 07:10
@github-actions github-actions bot added the component:evaluator Evaluation tools for planning, localization etc. (auto-assigned) label Oct 18, 2024
@JesusAnaya JesusAnaya force-pushed the fix/missing-init-py-autoware-carla-interface branch from d3b7386 to 3a8aedb Compare October 18, 2024 07:28
@github-actions github-actions bot removed the component:evaluator Evaluation tools for planning, localization etc. (auto-assigned) label Oct 18, 2024
Copy link
Contributor

@maxime-clem maxime-clem left a comment

Choose a reason for hiding this comment

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

Thank you for this fix !

@maxime-clem maxime-clem merged commit ae24913 into autowarefoundation:main Oct 18, 2024
45 of 50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:simulation Virtual environment setups and simulations. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) simulator:carla Issue related to CARLA simulator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants