Skip to content

mw/com: Add integration tests for getter-enabled field variants - #821

Draft
bemerybmw wants to merge 3 commits into
mainfrom
sah_add_getter_integration_tests
Draft

mw/com: Add integration tests for getter-enabled field variants#821
bemerybmw wants to merge 3 commits into
mainfrom
sah_add_getter_integration_tests

Conversation

@bemerybmw

Copy link
Copy Markdown
Contributor

No description provided.

@bemerybmw
bemerybmw force-pushed the sah_add_getter_integration_tests branch from d1ae15a to 3749c23 Compare August 4, 2026 09:47
@bemerybmw
bemerybmw force-pushed the sah_add_getter_integration_tests branch 4 times, most recently from 17a720f to 74facfc Compare August 5, 2026 15:01
def test_field_get_and_notifier_value(target):
"""Test field get and notifier exchange between provider and consumer."""
with provider(target, FieldScenario.GET_AND_NOTIFIER, "mw_com_config.json"):
with consumer(target, FieldScenario.GET_AND_NOTIFIER, "mw_com_config.json"):

def test_field_get_and_notifier_same_process(target):
"""Test get-and-notifier field flow when consumer and provider run in the same process."""
with consumer_and_provider(target, FieldScenario.GET_AND_NOTIFIER, "mw_com_config.json"):

def test_field_get_value(target):
"""Test field get exchange between provider and consumer."""
with provider(target, FieldScenario.GET, "mw_com_config.json"):
def test_field_get_value(target):
"""Test field get exchange between provider and consumer."""
with provider(target, FieldScenario.GET, "mw_com_config.json"):
with consumer(target, FieldScenario.GET, "mw_com_config.json"):

def test_field_set_and_get_same_process(target):
"""Test set-and-get field flow when consumer and provider run in the same process."""
with consumer_and_provider(target, FieldScenario.SET_AND_GET, "mw_com_config.json"):

def test_field_set_get_and_notifier_value(target):
"""Test field set, get and notifier exchange between provider and consumer."""
with provider(target, FieldScenario.SET_GET_AND_NOTIFIER, "mw_com_config.json"):
@bemerybmw bemerybmw changed the title Sah add getter integration tests mw/com: Add integration tests for getter-enabled field variants Aug 5, 2026
Comment thread score/mw/com/test/fields/set_and_notifier/consumer.cpp Outdated
@bemerybmw
bemerybmw force-pushed the sah_add_getter_integration_tests branch 3 times, most recently from 2fbe1c4 to 43251c0 Compare August 6, 2026 06:33
@bemerybmw
bemerybmw force-pushed the sah_add_getter_integration_tests branch from 43251c0 to 9f6eeb0 Compare August 6, 2026 13:51

def test_field_set_and_get_value(target):
"""Test field set and get exchange between provider and consumer."""
with provider(target, FieldScenario.SET_AND_GET, "mw_com_config.json"):
def test_field_set_and_get_value(target):
"""Test field set and get exchange between provider and consumer."""
with provider(target, FieldScenario.SET_AND_GET, "mw_com_config.json"):
with consumer(target, FieldScenario.SET_AND_GET, "mw_com_config.json"):
mw/com: Fix race condition when using notifier in set handler

The notification is notified by the provider side when the handler is
called. However, this happens before the actual field handler is updated
based on the result of the set handler. We now use an interprocess
notifier so that the consumer can notify the provider once the full set
call including updating the field value is finished.
@bemerybmw
bemerybmw force-pushed the sah_add_getter_integration_tests branch from 9f6eeb0 to a6335a4 Compare August 6, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant