Skip to content

[22893] Add modules support to idl_serialize #5691

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

Merged
merged 20 commits into from
Mar 21, 2025
Merged

Conversation

juanjo4936
Copy link
Contributor

@juanjo4936 juanjo4936 commented Mar 6, 2025

In this PR we implement the capabilities to resolve the module structure in IDL types, so they are written in a nested structure. A new function is introduced to resolve the structure, and the final writing of the IDL is modified to accommodate the new structure.

@Mergifyio backport 3.1.x

Contributor Checklist

  • Commit messages follow the project guidelines.
  • The code follows the style guidelines of this project.
  • Tests that thoroughly check the new feature have been added/Regression tests checking the bug and its fix have been added; the added tests pass locally
  • N/A Any new/modified methods have been properly documented using Doxygen.
  • N/A Any new configuration API has an equivalent XML API (with the corresponding XSD extension)
  • Changes are backport compatible: they do NOT break ABI nor change library core behavior.
  • Changes are API compatible.
  • N/A New feature has been added to the versions.md file (if applicable).
  • N/A New feature has been documented/Current behavior is correctly described in the documentation.
  • Applicable backports have been included in the description.

Reviewer Checklist

  • The PR has a milestone assigned.
  • The title and description correctly express the PR's purpose.
  • Check contributor checklist is correct.
  • N/A If this is a critical bug fix, backports to the critical-only supported branches have been requested.
  • Check CI results: changes do not issue any warning.
  • Check CI results: failing tests are unrelated with the changes.

@juanjo4936 juanjo4936 requested a review from richiprosima March 6, 2025 15:06
@github-actions github-actions bot added the ci-pending PR which CI is running label Mar 6, 2025
Juanjo Garcia added 3 commits March 6, 2025 16:12
Juanjo Garcia added 2 commits March 6, 2025 16:47
@juanjo4936 juanjo4936 marked this pull request as ready for review March 7, 2025 12:55
@juanjo4936 juanjo4936 requested review from richiprosima and removed request for richiprosima March 7, 2025 12:55
Signed-off-by: Juanjo Garcia <[email protected]>
@juanjo4936 juanjo4936 requested review from richiprosima and removed request for richiprosima March 7, 2025 13:04
@juanjo4936 juanjo4936 added this to the v3.2.0 milestone Mar 7, 2025
@juanjo4936 juanjo4936 requested review from richiprosima and removed request for richiprosima March 7, 2025 13:06
@juanjo4936 juanjo4936 modified the milestone: v3.2.0 Mar 7, 2025
@juanjo4936 juanjo4936 requested review from richiprosima and removed request for richiprosima March 7, 2025 13:07
Signed-off-by: Juanjo Garcia <[email protected]>
@juanjo4936 juanjo4936 requested review from richiprosima and removed request for richiprosima March 10, 2025 08:37
@juanjo4936 juanjo4936 requested review from richiprosima and removed request for richiprosima March 18, 2025 14:30
Juanjo Garcia added 2 commits March 18, 2025 15:36
Signed-off-by: Juanjo Garcia <[email protected]>
Signed-off-by: Juanjo Garcia <[email protected]>
@juanjo4936 juanjo4936 requested review from richiprosima and removed request for richiprosima March 18, 2025 14:41
@juanlofer-eprosima juanlofer-eprosima changed the title [22893] Implementation of modules for IDLs [22893] Add modules support to idl_serialize Mar 19, 2025
Copy link
Contributor

@juanlofer-eprosima juanlofer-eprosima left a comment

Choose a reason for hiding this comment

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

Could you please update the versions.md file?

@juanjo4936 juanjo4936 requested review from richiprosima and removed request for richiprosima March 20, 2025 08:03
Signed-off-by: Juanjo Garcia <[email protected]>
@juanjo4936 juanjo4936 requested review from richiprosima and removed request for richiprosima March 20, 2025 08:08
Signed-off-by: Juan Lopez Fernandez <[email protected]>
Copy link
Contributor

@juanlofer-eprosima juanlofer-eprosima left a comment

Choose a reason for hiding this comment

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

LGTM

@juanlofer-eprosima juanlofer-eprosima requested review from richiprosima and removed request for richiprosima March 20, 2025 11:09
MiguelCompany added a commit that referenced this pull request Mar 20, 2025
Squashed commit of the following:

commit c13bdad
Author: Juan Lopez Fernandez <[email protected]>
Date:   Thu Mar 20 12:08:57 2025 +0100

    Refs 22893: last suggestions

    Signed-off-by: Juan Lopez Fernandez <[email protected]>

commit a82d132
Author: Juanjo Garcia <[email protected]>
Date:   Thu Mar 20 09:07:54 2025 +0100

    Refs 22893: corrected typo

    Signed-off-by: Juanjo Garcia <[email protected]>

commit a9b6ffe
Author: Juanjo Garcia <[email protected]>
Date:   Thu Mar 20 09:02:54 2025 +0100

    Refs 22893: refatoring of tabulation function

    Signed-off-by: Juanjo Garcia <[email protected]>

commit c6ee6bb
Author: Juanjo Garcia <[email protected]>
Date:   Tue Mar 18 15:38:46 2025 +0100

    Refs 22893: corrected typo

    Signed-off-by: Juanjo Garcia <[email protected]>

commit be5a35a
Author: Juanjo Garcia <[email protected]>
Date:   Tue Mar 18 15:36:32 2025 +0100

    Refs 22893: uncrustify

    Signed-off-by: Juanjo Garcia <[email protected]>

commit 12092ad
Author: Juanjo Garcia <[email protected]>
Date:   Tue Mar 18 15:29:24 2025 +0100

    Refs 22893: added explicit appendable extensibility (like the rest)

    Signed-off-by: Juanjo Garcia <[email protected]>

commit 6e03bbc
Author: Juanjo Garcia <[email protected]>
Date:   Tue Mar 18 14:36:08 2025 +0100

    Refs 22893: applied most of reviewer suggestions

    Signed-off-by: Juanjo Garcia <[email protected]>

commit d5cd099
Author: Juanjo Garcia <[email protected]>
Date:   Thu Mar 13 12:59:34 2025 +0100

    Refs 22893: corrected extensibility issue

    Signed-off-by: Juanjo Garcia <[email protected]>

commit e2cd5d0
Author: Juanjo Garcia <[email protected]>
Date:   Mon Mar 10 14:47:18 2025 +0100

    Refs 22893: corrected small typo

    Signed-off-by: Juanjo Garcia <[email protected]>

commit 3dd472a
Author: Juanjo Garcia <[email protected]>
Date:   Mon Mar 10 14:41:12 2025 +0100

    Refs 22893: Uncrustify

    Signed-off-by: Juanjo Garcia <[email protected]>

commit f84d74e
Author: Juanjo Garcia <[email protected]>
Date:   Mon Mar 10 14:37:56 2025 +0100

    Refs 22893: Refatored the test for the new feature

    Signed-off-by: Juanjo Garcia <[email protected]>

commit 9b74502
Author: Juanjo Garcia <[email protected]>
Date:   Mon Mar 10 10:49:29 2025 +0100

    Refs 22893: added test to test the new feature

    Signed-off-by: Juanjo Garcia <[email protected]>

commit c8ce3ec
Author: Juanjo Garcia <[email protected]>
Date:   Mon Mar 10 09:36:38 2025 +0100

    Refs 22893: Solved failing CI

    Signed-off-by: Juanjo Garcia <[email protected]>

commit e4737ff
Author: Juanjo Garcia <[email protected]>
Date:   Fri Mar 7 14:04:01 2025 +0100

    Refs 22893: Uncrustufy

    Signed-off-by: Juanjo Garcia <[email protected]>

commit 111f050
Author: Juanjo Garcia <[email protected]>
Date:   Fri Mar 7 13:55:03 2025 +0100

    Refs 22893: Expanded funtionality to accept all types

    Signed-off-by: Juanjo Garcia <[email protected]>

commit c68b8d7
Author: Juanjo Garcia <[email protected]>
Date:   Thu Mar 6 16:47:54 2025 +0100

    Refs 22893: Corrected some issues

    Signed-off-by: Juanjo Garcia <[email protected]>

commit e5ef077
Author: Juanjo Garcia <[email protected]>
Date:   Thu Mar 6 16:24:51 2025 +0100

    Refs 22893: Complete IDL module resolution

    Signed-off-by: Juanjo Garcia <[email protected]>

commit 5e2bbc3
Author: Juanjo Garcia <[email protected]>
Date:   Thu Mar 6 16:16:11 2025 +0100

    Refs 22893: Corrected typo

    Signed-off-by: Juanjo Garcia <[email protected]>

commit af01efe
Author: Juanjo Garcia <[email protected]>
Date:   Thu Mar 6 16:12:00 2025 +0100

    Refs 22893: Corrected some errors in IDL

    Signed-off-by: Juanjo Garcia <[email protected]>

commit 7f681b3
Author: Juanjo Garcia <[email protected]>
Date:   Thu Mar 6 16:01:15 2025 +0100

    Refs 22893: First implementation of module resolution for IDLs

    Signed-off-by: Juanjo Garcia <[email protected]>
@MiguelCompany MiguelCompany merged commit a020c1d into master Mar 21, 2025
14 of 17 checks passed
@MiguelCompany MiguelCompany deleted the add/idl_modules branch March 21, 2025 05:55
@juanlofer-eprosima
Copy link
Contributor

https://github.com/Mergifyio backport 3.1.x

Copy link
Contributor

mergify bot commented Mar 21, 2025

backport 3.1.x

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Mar 21, 2025
* Refs 22893: First implementation of module resolution for IDLs

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: Corrected some errors in IDL

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: Corrected typo

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: Complete IDL module resolution

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: Corrected some issues

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: Expanded funtionality to accept all types

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: Uncrustufy

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: Solved failing CI

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: added test to test the new feature

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: Refatored the test for the new feature

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: Uncrustify

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: corrected small typo

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: corrected extensibility issue

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: applied most of reviewer suggestions

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: added explicit appendable extensibility (like the rest)

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: uncrustify

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: corrected typo

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: refatoring of tabulation function

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: corrected typo

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: last suggestions

Signed-off-by: Juan Lopez Fernandez <[email protected]>

---------

Signed-off-by: Juanjo Garcia <[email protected]>
Signed-off-by: Juan Lopez Fernandez <[email protected]>
Co-authored-by: Juan Lopez Fernandez <[email protected]>
(cherry picked from commit a020c1d)
MiguelCompany added a commit that referenced this pull request Mar 21, 2025
Squashed commit of the following:

commit 286f7bb
Author: Miguel Company <[email protected]>
Date:   Fri Mar 21 10:35:25 2025 +0100

    Refs #22974. Setup port_queue_capacity.

    Signed-off-by: Miguel Company <[email protected]>

commit 8cc2092
Author: Miguel Company <[email protected]>
Date:   Fri Mar 21 10:30:15 2025 +0100

    Refs #22974. Add constexpr `SharedMemTransportDescriptor::shm_implicit_segment_size`

    Signed-off-by: Miguel Company <[email protected]>

commit caffd9f
Author: Miguel Company <[email protected]>
Date:   Fri Mar 21 10:21:59 2025 +0100

    Refs #22974. Increase segment size on large data / easy mode.

    Signed-off-by: Miguel Company <[email protected]>

commit a3aea07
Author: Miguel Company <[email protected]>
Date:   Fri Mar 21 10:14:17 2025 +0100

    Refs #22974. Only override buffer sizes when they are 0.

    Signed-off-by: Miguel Company <[email protected]>

commit a020c1d
Author: juanjo4936 <[email protected]>
Date:   Fri Mar 21 06:55:28 2025 +0100

    Add modules support to idl_serialize (#5691)

    * Refs 22893: First implementation of module resolution for IDLs

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: Corrected some errors in IDL

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: Corrected typo

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: Complete IDL module resolution

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: Corrected some issues

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: Expanded funtionality to accept all types

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: Uncrustufy

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: Solved failing CI

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: added test to test the new feature

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: Refatored the test for the new feature

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: Uncrustify

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: corrected small typo

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: corrected extensibility issue

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: applied most of reviewer suggestions

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: added explicit appendable extensibility (like the rest)

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: uncrustify

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: corrected typo

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: refatoring of tabulation function

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: corrected typo

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: last suggestions

    Signed-off-by: Juan Lopez Fernandez <[email protected]>

    ---------

    Signed-off-by: Juanjo Garcia <[email protected]>
    Signed-off-by: Juan Lopez Fernandez <[email protected]>
    Co-authored-by: Juan Lopez Fernandez <[email protected]>

commit 3fcf91b
Author: Mario Domínguez López <[email protected]>
Date:   Thu Mar 20 16:38:50 2025 +0100

    Update types with Fast DDS Gen v4.0.4 (#5720)

    Signed-off-by: Mario Dominguez <[email protected]>
MiguelCompany added a commit that referenced this pull request Mar 21, 2025
Squashed commit of the following:

commit 286f7bb
Author: Miguel Company <[email protected]>
Date:   Fri Mar 21 10:35:25 2025 +0100

    Refs #22974. Setup port_queue_capacity.

    Signed-off-by: Miguel Company <[email protected]>

commit 8cc2092
Author: Miguel Company <[email protected]>
Date:   Fri Mar 21 10:30:15 2025 +0100

    Refs #22974. Add constexpr `SharedMemTransportDescriptor::shm_implicit_segment_size`

    Signed-off-by: Miguel Company <[email protected]>

commit caffd9f
Author: Miguel Company <[email protected]>
Date:   Fri Mar 21 10:21:59 2025 +0100

    Refs #22974. Increase segment size on large data / easy mode.

    Signed-off-by: Miguel Company <[email protected]>

commit a3aea07
Author: Miguel Company <[email protected]>
Date:   Fri Mar 21 10:14:17 2025 +0100

    Refs #22974. Only override buffer sizes when they are 0.

    Signed-off-by: Miguel Company <[email protected]>

commit a020c1d
Author: juanjo4936 <[email protected]>
Date:   Fri Mar 21 06:55:28 2025 +0100

    Add modules support to idl_serialize (#5691)

    * Refs 22893: First implementation of module resolution for IDLs

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: Corrected some errors in IDL

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: Corrected typo

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: Complete IDL module resolution

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: Corrected some issues

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: Expanded funtionality to accept all types

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: Uncrustufy

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: Solved failing CI

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: added test to test the new feature

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: Refatored the test for the new feature

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: Uncrustify

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: corrected small typo

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: corrected extensibility issue

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: applied most of reviewer suggestions

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: added explicit appendable extensibility (like the rest)

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: uncrustify

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: corrected typo

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: refatoring of tabulation function

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: corrected typo

    Signed-off-by: Juanjo Garcia <[email protected]>

    * Refs 22893: last suggestions

    Signed-off-by: Juan Lopez Fernandez <[email protected]>

    ---------

    Signed-off-by: Juanjo Garcia <[email protected]>
    Signed-off-by: Juan Lopez Fernandez <[email protected]>
    Co-authored-by: Juan Lopez Fernandez <[email protected]>

commit 3fcf91b
Author: Mario Domínguez López <[email protected]>
Date:   Thu Mar 20 16:38:50 2025 +0100

    Update types with Fast DDS Gen v4.0.4 (#5720)

    Signed-off-by: Mario Dominguez <[email protected]>
juanlofer-eprosima pushed a commit that referenced this pull request Mar 24, 2025
* Refs 22893: First implementation of module resolution for IDLs

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: Corrected some errors in IDL

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: Corrected typo

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: Complete IDL module resolution

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: Corrected some issues

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: Expanded funtionality to accept all types

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: Uncrustufy

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: Solved failing CI

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: added test to test the new feature

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: Refatored the test for the new feature

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: Uncrustify

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: corrected small typo

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: corrected extensibility issue

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: applied most of reviewer suggestions

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: added explicit appendable extensibility (like the rest)

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: uncrustify

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: corrected typo

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: refatoring of tabulation function

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: corrected typo

Signed-off-by: Juanjo Garcia <[email protected]>

* Refs 22893: last suggestions

Signed-off-by: Juan Lopez Fernandez <[email protected]>

---------

Signed-off-by: Juanjo Garcia <[email protected]>
Signed-off-by: Juan Lopez Fernandez <[email protected]>
Co-authored-by: Juan Lopez Fernandez <[email protected]>
(cherry picked from commit a020c1d)

Co-authored-by: juanjo4936 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-pending PR which CI is running
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants