Skip to content

Feature/bus fault injection - #10

Merged
glocker merged 2 commits into
mainfrom
feature/bus-fault-injection
Nov 16, 2026
Merged

glocker merged 2 commits into
mainfrom
feature/bus-fault-injection

Conversation

@glocker

@glocker glocker commented Nov 16, 2026

Copy link
Copy Markdown
Owner

No description provided.

A FaultInjectingTransport decorator applies explicit drop, delay, corrupt,
duplicate and reorder rules to CAN frames, on send or on receive, selected by
port, addresses and the Nth matching frame or a seeded probability. Rules come
from [bus_faults] in the setup or inject_bus_fault scenario steps. Delays are
virtual-time events and every random choice derives from the seed, so the same
seed gives a byte-identical trace. Every fault is reported in --trace, the text
and JSON output, the run result and the HTML report.

A telemetry payload the codec cannot read is now a reported dropped packet
(reason=undecodable) instead of aborting the run.
@glocker
glocker merged commit edd09ad into main Nov 16, 2026
1 check passed
@glocker
glocker deleted the feature/bus-fault-injection branch November 16, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant