Skip to content

Depa ipc tracing feature flag usage - #1094

Open
devendrapat wants to merge 3 commits into
eclipse-score:mainfrom
devendrapat:depa_ipc_tracing_feature_flag_usage
Open

devendrapat wants to merge 3 commits into
eclipse-score:mainfrom
devendrapat:depa_ipc_tracing_feature_flag_usage

Conversation

@devendrapat

Copy link
Copy Markdown

Keeping the changes in this PR (https://github.com/eclipse-score/communication/pull/1022/changes) intact.
This PR also updates the version of score_baselibs for usage of required_typed_memory flag.

crimson11
crimson11 previously approved these changes Sep 16, 2026
limdor
limdor previously requested changes Sep 16, 2026
Comment thread MODULE.bazel Outdated
bazel_dep(name = "score_baselibs", version = "0.2.12")
single_version_override(
module_name = "score_baselibs",
commit = "4abf22407106ec2461f5f80a619cd15b5d294238",

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.

This would require all our customer to pin this exact version. Is a new release of baselibs planned? What is the ticket to track that? In general we only want to use release versions of baselibs.

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.

I created #1102 that bumps baselibs to the new released version. The new version contain the changes you need, you should just remove this check once the mentioned PR is merged.

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.

Currently we cannot bump because of eclipse-score/baselibs#527 (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.

Bump is done, you should be able to continue discarding the bump changes

@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If this PR is still relevant, please leave a comment or push new changes to keep it open.

@github-actions github-actions Bot added stale and removed stale labels Oct 3, 2026
@devendrapat
devendrapat force-pushed the depa_ipc_tracing_feature_flag_usage branch 6 times, most recently from 318eb84 to 658d017 Compare October 12, 2026 10:34
@limdor
limdor dismissed their stale review October 12, 2026 12:37

Requested changes have been addressed

@devendrapat
devendrapat force-pushed the depa_ipc_tracing_feature_flag_usage branch from db6d7c3 to ca91d3d Compare October 12, 2026 12:45
limdor
limdor previously approved these changes Oct 12, 2026
@limdor limdor added the test-qnx Enables the checks with QNX toolchains. Checks require committer approval to start execution. label Oct 12, 2026
@limdor
limdor deployed to workflow-approval October 12, 2026 12:51 — with GitHub Actions Active
@devendrapat
devendrapat force-pushed the depa_ipc_tracing_feature_flag_usage branch from 0b23e73 to 0d8eb93 Compare October 12, 2026 13:53
@devendrapat
devendrapat force-pushed the depa_ipc_tracing_feature_flag_usage branch from fdce4f0 to 441f66e Compare October 13, 2026 06:19
To decide, whether typed-mem should
be used in case of IPC-tracing, now
the corresponding feature flag is
consulted.
@devendrapat
devendrapat force-pushed the depa_ipc_tracing_feature_flag_usage branch from 441f66e to 320986a Compare October 13, 2026 06:21
@devendrapat
devendrapat marked this pull request as draft October 13, 2026 09:51
@devendrapat
devendrapat marked this pull request as ready for review October 13, 2026 09:57
skeleton_->PrepareOffer(events_, fields_, std::move(kEmptyRegisterShmObjectTraceCallback)).has_value());
}

#ifdef REQUIRE_TYPED_MEMORY

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.

Just had a look - interesstingly we never checked, that in case of "activated typed-mem" we are also calling SharedMemoryFactory::Create with prefer_typed_memory == true!
So in line 243 you see, that we have a call-expectation to the Create() func with prefer_typed_memory = false

... I guess we should add an explicit expectation here, that shared_memory_factory_mock_::Create is called with prefer_typed_memory = true for DATA and CTRL sections!

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

register_shm_object_trace_callback{};

// Given a Skeleton constructed from a valid identifier referencing a QM deployment
InitialiseSkeleton(GetValidInstanceIdentifier()).WithNoConnectedProxy();

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.

See my comment above. Here you should then have a call expectation prefer_typed_memory = false for the Create call ...

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@devendrapat
devendrapat force-pushed the depa_ipc_tracing_feature_flag_usage branch from 320986a to 5d749dd Compare October 14, 2026 08:04
@devendrapat
devendrapat requested a review from crimson11 October 14, 2026 08:15
crimson11
crimson11 previously approved these changes Oct 14, 2026
@devendrapat
devendrapat requested a review from limdor October 14, 2026 12:24
name = "skeleton_require_typed_memory",
testonly = True,
srcs = [
"skeleton.cpp",

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.

We should not duplicate a target and have one version with one value and another with another. This is just asking for trouble, most of the target is just repeated and copy pasted. You also have then the same translation unit in two libraries. The risk of ending up with ODR is way too high.
It should just be one target and through a feature flag the user can control it. We should not support having two version of the skeleton library in the same build tree.

This branch is waiting to be deployed

1 waiting deployment
workflow-approval — dc3b894e Waiting Oct 15, 2026 by devendrapat via approval #6642
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test-qnx Enables the checks with QNX toolchains. Checks require committer approval to start execution.

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

3 participants