Skip to content

Brem fields mixed criticality test - #858

Draft
bemerybmw wants to merge 4 commits into
mainfrom
brem_fields_mixed_criticality_test
Draft

Brem fields mixed criticality test#858
bemerybmw wants to merge 4 commits into
mainfrom
brem_fields_mixed_criticality_test

Conversation

@bemerybmw

Copy link
Copy Markdown
Contributor

No description provided.

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 brem_fields_mixed_criticality_test branch from ea251da to ad765b4 Compare August 6, 2026 06:38


def test_mixed_criticality_consumer_provider(target):
with provider(target, Criticality.ASILB):

def test_mixed_criticality_consumer_provider(target):
with provider(target, Criticality.ASILB):
with consumer(target, consumer_criticality=Criticality.ASILB):


def test_mixed_criticality_consumer_provider(target):
with provider(target, Criticality.QM):


def test_mixed_criticality_consumer_provider(target):
with provider(target, Criticality.ASILB):

def test_mixed_criticality_consumer_provider(target):
with provider(target, Criticality.ASILB):
with consumer(target, consumer_criticality=Criticality.QM):


def test_mixed_criticality_consumer_provider(target):
with provider(target, Criticality.QM):

def test_mixed_criticality_consumer_provider(target):
with provider(target, Criticality.QM):
with consumer(target, consumer_criticality=Criticality.QM):

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"):
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"):
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