Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/internals/requirements/requirements.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,7 @@ Safety Analysis (DFA + FMEA) Process to Tool Requirement Mapping
:parent_covered: YES

Docs-As-Code shall allow FMEA needs (``feat_saf_fmea``, ``comp_saf_fmea``)
to have an optional ``root_cause`` attribute with non-empty content.
to have an optional ``failure_root_cause`` attribute with non-empty content.


πŸ”’ Security Analysis
Expand Down
4 changes: 2 additions & 2 deletions src/extensions/score_metamodel/metamodel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ needs_types:
# req-Id: tool_req__docs_saf_attrs_safety_relevant
safety_relevant: ^(yes|no)$
# req-Id: tool_req__docs_saf_attrs_root_cause
root_cause: ^[\s\S]+$
failure_root_cause: ^[\s\S]+$
mitigation_issue: ^https://github\.com/[^/]+/[^/]+/issues/\d+$
mandatory_links:
# req-Id: tool_req__docs_saf_attrs_violates
Expand Down Expand Up @@ -878,7 +878,7 @@ needs_types:
optional_options:
# req-Id: tool_req__docs_saf_attrs_mitigation_issue
safety_relevant: ^(yes|no)$
root_cause: ^[\s\S]+$
failure_root_cause: ^[\s\S]+$
mitigation_issue: ^https://github\.com/[^/]+/[^/]+/issues/\d+$
mandatory_links:
# req-Id: tool_req__docs_saf_attrs_violates
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
Tests optional attributes for safety analysis types:
- mitigation_issue: GitHub issue URL pattern
- safety_relevant: yes/no for all SAF types
- root_cause: non-empty content for FMEA
- failure_root_cause: non-empty content for FMEA


.. feat_saf_dfa:: Valid mitigation issue
Expand Down Expand Up @@ -86,7 +86,7 @@
:failure_effect: component failure
:sufficient: no
:status: valid
:root_cause: manufacturing defect in solder joints
:failure_root_cause: manufacturing defect in solder joints
:expect_not: need_id


Expand All @@ -97,5 +97,5 @@
:failure_effect: software crash
:sufficient: yes
:status: valid
:root_cause: null pointer dereference in interrupt handler
:failure_root_cause: null pointer dereference in interrupt handler
:expect_not: need_id
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,15 @@
"null"
]
},
"failure_root_cause": {
"default": "",
"description": "Added by needs_fields config",
"field_type": "extra",
"type": [
"string",
"null"
]
},
"fault_id": {
"default": "",
"description": "Added by needs_fields config",
Expand Down Expand Up @@ -1054,15 +1063,6 @@
"null"
]
},
"root_cause": {
"default": "",
"description": "Added by needs_fields config",
"field_type": "extra",
"type": [
"string",
"null"
]
},
"safety": {
"default": "",
"description": "Added by needs_fields config",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,15 @@
"null"
]
},
"failure_root_cause": {
"default": "",
"description": "Added by needs_fields config",
"field_type": "extra",
"type": [
"string",
"null"
]
},
"fault_id": {
"default": "",
"description": "Added by needs_fields config",
Expand Down Expand Up @@ -1054,15 +1063,6 @@
"null"
]
},
"root_cause": {
"default": "",
"description": "Added by needs_fields config",
"field_type": "extra",
"type": [
"string",
"null"
]
},
"safety": {
"default": "",
"description": "Added by needs_fields config",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,15 @@
"null"
]
},
"failure_root_cause": {
"default": "",
"description": "Added by needs_fields config",
"field_type": "extra",
"type": [
"string",
"null"
]
},
"fault_id": {
"default": "",
"description": "Added by needs_fields config",
Expand Down Expand Up @@ -1054,15 +1063,6 @@
"null"
]
},
"root_cause": {
"default": "",
"description": "Added by needs_fields config",
"field_type": "extra",
"type": [
"string",
"null"
]
},
"safety": {
"default": "",
"description": "Added by needs_fields config",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,15 @@
"null"
]
},
"failure_root_cause": {
"default": "",
"description": "Added by needs_fields config",
"field_type": "extra",
"type": [
"string",
"null"
]
},
"fault_id": {
"default": "",
"description": "Added by needs_fields config",
Expand Down Expand Up @@ -1054,15 +1063,6 @@
"null"
]
},
"root_cause": {
"default": "",
"description": "Added by needs_fields config",
"field_type": "extra",
"type": [
"string",
"null"
]
},
"safety": {
"default": "",
"description": "Added by needs_fields config",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,15 @@
"null"
]
},
"failure_root_cause": {
"default": "",
"description": "Added by needs_fields config",
"field_type": "extra",
"type": [
"string",
"null"
]
},
"fault_id": {
"default": "",
"description": "Added by needs_fields config",
Expand Down Expand Up @@ -1092,15 +1101,6 @@
"null"
]
},
"root_cause": {
"default": "",
"description": "Added by needs_fields config",
"field_type": "extra",
"type": [
"string",
"null"
]
},
"safety": {
"default": "",
"description": "Added by needs_fields config",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,15 @@
"null"
]
},
"failure_root_cause": {
"default": "",
"description": "Added by needs_fields config",
"field_type": "extra",
"type": [
"string",
"null"
]
},
"fault_id": {
"default": "",
"description": "Added by needs_fields config",
Expand Down Expand Up @@ -1054,15 +1063,6 @@
"null"
]
},
"root_cause": {
"default": "",
"description": "Added by needs_fields config",
"field_type": "extra",
"type": [
"string",
"null"
]
},
"safety": {
"default": "",
"description": "Added by needs_fields config",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,15 @@
"null"
]
},
"failure_root_cause": {
"default": "",
"description": "Added by needs_fields config",
"field_type": "extra",
"type": [
"string",
"null"
]
},
"fault_id": {
"default": "",
"description": "Added by needs_fields config",
Expand Down Expand Up @@ -1094,15 +1103,6 @@
"null"
]
},
"root_cause": {
"default": "",
"description": "Added by needs_fields config",
"field_type": "extra",
"type": [
"string",
"null"
]
},
"safety": {
"default": "",
"description": "Added by needs_fields config",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,15 @@
"null"
]
},
"failure_root_cause": {
"default": "",
"description": "Added by needs_fields config",
"field_type": "extra",
"type": [
"string",
"null"
]
},
"fault_id": {
"default": "",
"description": "Added by needs_fields config",
Expand Down Expand Up @@ -1094,15 +1103,6 @@
"null"
]
},
"root_cause": {
"default": "",
"description": "Added by needs_fields config",
"field_type": "extra",
"type": [
"string",
"null"
]
},
"safety": {
"default": "",
"description": "Added by needs_fields config",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,15 @@
"null"
]
},
"failure_root_cause": {
"default": "",
"description": "Added by needs_fields config",
"field_type": "extra",
"type": [
"string",
"null"
]
},
"fault_id": {
"default": "",
"description": "Added by needs_fields config",
Expand Down Expand Up @@ -1183,15 +1192,6 @@
"null"
]
},
"root_cause": {
"default": "",
"description": "Added by needs_fields config",
"field_type": "extra",
"type": [
"string",
"null"
]
},
"safety": {
"default": "",
"description": "Added by needs_fields config",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,15 @@
"null"
]
},
"failure_root_cause": {
"default": "",
"description": "Added by needs_fields config",
"field_type": "extra",
"type": [
"string",
"null"
]
},
"fault_id": {
"default": "",
"description": "Added by needs_fields config",
Expand Down Expand Up @@ -1091,15 +1100,6 @@
"null"
]
},
"root_cause": {
"default": "",
"description": "Added by needs_fields config",
"field_type": "extra",
"type": [
"string",
"null"
]
},
"safety": {
"default": "",
"description": "Added by needs_fields config",
Expand Down
Loading
Loading