Skip to content

Event sample data type alignment fix - #931

Merged
LittleHuba merged 1 commit into
eclipse-score:mainfrom
NemanjaTrifunovicRTRK:main
Aug 24, 2026
Merged

Event sample data type alignment fix#931
LittleHuba merged 1 commit into
eclipse-score:mainfrom
NemanjaTrifunovicRTRK:main

Conversation

@NemanjaTrifunovicRTRK

@NemanjaTrifunovicRTRK NemanjaTrifunovicRTRK commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Added API for getting alignment of event data type.
Issue #852

Also fixed alignment of event data type in GatewayApplication.
Alignment was hardcoded to 0U, now it is collected from memory::DataTypeSizeInfo.
Issue #387

Documentation updated

  • score/mw/com/dependability/software_architectural_design/mw_com_dii/README.md
  • score/mw/com/design/skeleton_proxy/generic_proxy/generic_proxy_model.puml

Implementation extended:

  • score/mw/com/gateway/gateway_application/gateway_application.cpp
  • score/mw/com/impl/bindings/lola/generic_proxy_event.cpp
  • score/mw/com/impl/bindings/lola/generic_proxy_event.h
  • score/mw/com/impl/generic_proxy_event.cpp
  • score/mw/com/impl/generic_proxy_event.h
  • score/mw/com/impl/generic_proxy_event_binding.h

Tests updated:

  • score/mw/com/impl/bindings/lola/generic_proxy_event_test.cpp
  • score/mw/com/impl/bindings/mock_binding/generic_proxy_event.h
  • score/mw/com/impl/generic_proxy_event_test.cpp

Comment thread score/mw/com/impl/bindings/lola/generic_proxy_event_test.cpp Outdated

@limdor limdor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What are all these IDs added? like 14035185 or 31545523. They seem completly random

@NemanjaTrifunovicRTRK

Copy link
Copy Markdown
Contributor Author

@limdor

What are all these IDs added? like 14035185 or 31545523. They seem completly random

Yes, it is random. I didn't find there is instructions for ID decision.
Inform me if these IDs should be created to have a specific value.
Thank you.

Comment thread score/mw/com/impl/generic_proxy_event_binding.h Outdated

@btirunagaru btirunagaru left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Please fix the typos.

@limdor

limdor commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

@limdor

What are all these IDs added? like 14035185 or 31545523. They seem completly random

Yes, it is random. I didn't find there is instructions for ID decision. Inform me if these IDs should be created to have a specific value. Thank you.

@NemanjaTrifunovicRTRK the ids are legacy from when we had this code internally. We will remove all these ids long term. For now, just do not add new IDs and make the linking via requirement name.
You can see an example on how it will look like in https://github.com/eclipse-score/communication/pull/952/changes

@NemanjaTrifunovicRTRK

Copy link
Copy Markdown
Contributor Author

@limdor

What are all these IDs added? like 14035185 or 31545523. They seem completly random

Yes, it is random. I didn't find there is instructions for ID decision. Inform me if these IDs should be created to have a specific value. Thank you.

@NemanjaTrifunovicRTRK the ids are legacy from when we had this code internally. We will remove all these ids long term. For now, just do not add new IDs and make the linking via requirement name. You can see an example on how it will look like in https://github.com/eclipse-score/communication/pull/952/changes

@limdor, done.

@NemanjaTrifunovicRTRK

Copy link
Copy Markdown
Contributor Author

Please fix the typos.

@btirunagaru, done.

LittleHuba
LittleHuba previously approved these changes Aug 21, 2026

@bemerybmw bemerybmw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please also squash the commits into a single commit with an informative message

Comment thread score/mw/com/impl/generic_proxy_event.h Outdated
version = 1
}

/* broken_link_c/issue/14035184 */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you please create a ticket to remove the deprecated function and link it here? I don't think we have a mechanism to deprecate requirements, so just adding a comment saying it's deprecated and linking the ticket would be fine.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please add a comment here linking the ticket to remove the deprecated requirement

Comment thread score/mw/com/impl/generic_proxy_event_binding.h Outdated
Comment thread score/mw/com/impl/generic_proxy_event.h Outdated
Comment thread score/mw/com/impl/generic_proxy_event.h Outdated
Comment thread score/mw/com/impl/generic_proxy_event_binding.h Outdated
auto-merge was automatically disabled August 21, 2026 08:21

Head branch was pushed to by a user without write access

@bemerybmw

Copy link
Copy Markdown
Contributor

@NemanjaTrifunovicRTRK Please don't resolve the reviewer comments yourself. You can put a thumbs up or a comment indicating that you've addressed the comment and then the reviewer can resolve the comment once they've checked your change.

@bemerybmw bemerybmw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You missed one comment. Apart from that, please squash the commits again. We shouldn't have merge commits. If you want to update the pr with latest master, then do a rebase instead of a merge:

Image

version = 1
}

/* broken_link_c/issue/14035184 */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please add a comment here linking the ticket to remove the deprecated requirement

Added API for getting alignment of event data type.
Issue eclipse-score#852

Also fixed alignment of event data type in GatewayApplication.
Alignment was hardcoded to 0U, now it is collected from memory::DataTypeSizeInfo.
Issue eclipse-score#387
@NemanjaTrifunovicRTRK

Copy link
Copy Markdown
Contributor Author

You missed one comment. Apart from that, please squash the commits again. We shouldn't have merge commits. If you want to update the pr with latest master, then do a rebase instead of a merge:

Image

@bemerybmw, thank you for the instructions.

I fixed it now, you can check.

@LittleHuba
LittleHuba added this pull request to the merge queue Aug 24, 2026
Merged via the queue into eclipse-score:main with commit af8571c Aug 24, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants