Kyron Module Verification Report#
Kyron Module Verification Report
|
status: draft
security: YES
safety: QM
|
||||
Verification report of the Kyron module. The requirement and architecture traceability, the linked tests and the structural coverage below are generated from the documentation build. The sections after them describe the verification methods and where the results of each run and each release are kept. |
|||||
Components#
Component Overview#
Component |
Safety |
Security |
Status |
|---|---|---|---|
QM |
YES |
valid |
|
QM |
YES |
valid |
Kyron Runtime#
Component Requirements#
Statistics#
What the colours mean
Status ASIL Bvalid_inspected — agreed and formally inspectedvalid — agreed, formal inspection still outstandinginvalid — not agreed; metamodel checks are skipped
Status QMvalid — agreed; QM needs are not formally inspected, so this is their final state (valid_inspected counts here too)invalid — not agreed; metamodel checks are skipped
Test coveragefully — at least one test fully verifies the needpartially — only partially verifying testsnot covered — no verifying test at all
ASIL B — Requirements
QM — Requirements
Traceability#
The following table lists all requirements of this component together with their verification status and the tests that (fully or partially) verify them:
Show requirements table
Component Architecture#
Statistics#
ASIL B — Architecture Elements
QM — Architecture Elements
Traceability#
The following table lists the architectural elements of this component
together with their inspection status. Elements that have been formally
inspected carry the valid_inspected status; elements with another
status have not yet been inspected.
Show architectural elements table
ID |
Title |
Safety |
Status |
Tags |
|---|---|---|---|---|
Kyron Runtime Static View |
QM |
valid |
||
Task Life Cycle |
QM |
valid |
||
I/O Wait and Wake |
QM |
valid |
||
Safety Worker Error Handling |
QM |
valid |
Test Coverage#
Coverage measurements available for 52/66 selected source files. Green: covered; red: not covered. Percentages describe the available measurements.
Verification & Safety Analysis Documents#
Presence of the standard verification and safety analysis work products for
this component. A dash (—) means the corresponding document is missing.
Show work products table
Work Product |
Kind |
Realized by |
Status |
||
|---|---|---|---|---|---|
Requirements Inspection |
|
||||
Architecture Inspection |
|
||||
Implementation Inspection |
|
||||
DFA |
No needs passed the filters |
No needs passed the filters |
|||
FMEA |
No needs passed the filters |
No needs passed the filters |
Kyron Foundation#
Component Requirements#
Statistics#
What the colours mean
Status ASIL Bvalid_inspected — agreed and formally inspectedvalid — agreed, formal inspection still outstandinginvalid — not agreed; metamodel checks are skipped
Status QMvalid — agreed; QM needs are not formally inspected, so this is their final state (valid_inspected counts here too)invalid — not agreed; metamodel checks are skipped
Test coveragefully — at least one test fully verifies the needpartially — only partially verifying testsnot covered — no verifying test at all
ASIL B — Requirements
QM — Requirements
Traceability#
The following table lists all requirements of this component together with their verification status and the tests that (fully or partially) verify them:
Show requirements table
No needs passed the filters
Component Architecture#
Statistics#
ASIL B — Architecture Elements
QM — Architecture Elements
Traceability#
The following table lists the architectural elements of this component
together with their inspection status. Elements that have been formally
inspected carry the valid_inspected status; elements with another
status have not yet been inspected.
Show architectural elements table
ID |
Title |
Safety |
Status |
Tags |
|---|---|---|---|---|
Kyron Foundation Static View |
QM |
valid |
||
Task Queue Push, Overflow and Steal |
QM |
valid |
Test Coverage#
Coverage measurements available for 14/21 selected source files. Green: covered; red: not covered. Percentages describe the available measurements.
Verification & Safety Analysis Documents#
Presence of the standard verification and safety analysis work products for
this component. A dash (—) means the corresponding document is missing.
Show work products table
Work Product |
Kind |
Realized by |
Status |
||
|---|---|---|---|---|---|
Requirements Inspection |
|
||||
Architecture Inspection |
|
||||
Implementation Inspection |
|
||||
DFA |
No needs passed the filters |
No needs passed the filters |
|||
FMEA |
No needs passed the filters |
No needs passed the filters |
Verification Methods#
Method |
Tool |
CI workflow |
Result handling |
|---|---|---|---|
Build for all supported targets |
Bazel: Linux x86_64 (Ferrocene), QNX 8 x86_64 and aarch64 |
|
must pass |
Unit tests |
Rust |
|
must pass |
Component integration tests |
pytest scenarios in |
|
must pass; results are linked to the requirements in this report |
Concurrency and undefined-behaviour checks |
Loom (atomics), Miri |
|
must pass; skipped on draft pull requests. Miri skips four multi-threaded queue tests, which are listed in its report |
Structural coverage |
LLVM source-based coverage ( |
|
line coverage gate of 72 %, with justifications in
|
Static code analysis |
clippy ( |
|
must pass |
Complexity analysis |
lizard, with the limits below |
|
reported, not gated |
Vulnerability scan |
cargo-audit (RustSec) on |
|
fails on a known vulnerability |
Complexity Analysis#
The complexity analysis follows gd_req__impl_complexity_analysis. Exceedances of the following limits are reported for both safety levels:
Measure |
ASIL B |
QM |
Measured by |
|---|---|---|---|
Lines of code per function |
100 |
200 |
lizard |
Lines of code per file |
2000 |
4000 |
|
Cyclomatic complexity per function |
10 |
20 |
lizard |
Number of parameters per function |
5 |
7 |
lizard |
Number of public interfaces per component |
3 |
10 |
not measured yet |
The analysis covers src/kyron, src/kyron-foundation and src/kyron-macros. It
includes the unit tests that are part of these source files.
Results#
Pull requests and main: each workflow writes its results to the summary of its CI run and uploads them as a workflow artifact.
Releases:
release.ymlverifies the head of the release branch (mainby default) to be released. The QNX 8 build and unit tests, the Cargo tests, Miri, Loom, the component integration tests, the documentation build, the static analysis and the vulnerability scan must pass. Only then does it create the tag and a draft release with the evidence as assets: the coverage archive (including the unit test results), the component integration test results, the Miri report, the static analysis report (clippy and complexity), the vulnerability scan results, the product SBOM (SPDX 2.3 and CycloneDX 1.6,//:sbom_product), the documentation and SHA256 checksums. A maintainer reviews and publishes the draft.
Known Limitations#
The Rust unit tests are not linked to requirements. Requirement-based verification is done by the component integration tests.
The number of public interfaces per component is not measured yet.
Ignored vulnerability advisories are listed with their justification in
.cargo/audit.toml(cargo-audit) andosv-scanner.toml(SBOM scan). The SBOM scan ignores expire, so the scan fails again unless the justification is renewed.The iceoryx2 crates are built from the
score_cratesgit source. Their package URLs in the SBOM point to crates.io, so the SBOM scan cannot match advisories for them.