zephyr: Reorganize the test suite and add new unit tests #1627
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 250 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.331
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1627"
general
weight: 0.35
petejohanson-adi
PR Description
Reorganize the Zephyr test suite and add in-image unit tests for the backend, the iio device drivers, and log forwarding.
lib/,iiod/,drivers/,backend/), andtests.yamlscenario names follow the path, as in upstream Zephyr. Emulator overlays and the pytest transport fixtures are shared fromcommon/. Unused files are dropped, and the CI USB job points at a scenario that exists.io_channels(against the ADC emulator),sensor(against the generic emulated sensor), the ADC emul generator, and libiio → Zephyr log forwarding.-
io_channelsscale lost leading zeros in the fraction (0.50354 vs 0.050354) and overflowed above 4294 mV.- The iiod sample's emulator scenarios built with no emulated devices (
extra_configs→extra_args). Its never-run pytest copy is removed.- The shared sensor emulator config made every current fetch fail.
Known gap: DAC channels are not covered, because
zephyr,dac-emuldoes not declareio-channel-cells.No dependencies.
PR Type
PR Checklist