Skip to content
Draft
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
113 changes: 76 additions & 37 deletions docs/components/mw_log/requirements/chklst_req_inspection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,99 +60,138 @@ See also :need:`doc_concept__wp_inspections` for further information about revie
* - REQ_01_01
- Is the requirement formulation template used?
- see :need:`gd_temp__req_formulation`, this includes the use of "shall".
-
- Yes
-
-
* - REQ_02_01
- Is the requirement description *comprehensible* ?
- If you think the requirement is hard to understand, comment here.
-
-
- No
- :need:`comp_req__log__send_to_datarouter` uses "logging library" which doesn't make sense
-
* - REQ_02_02
- Is the requirement description *unambiguous* ?
- Especially search for "weak words" like "about", "etc.", "relevant" and others (see the internet documentation on this). This check shall be supported by tooling.
-
-
-
* - REQ_02_03
- No
- Following are too vague:
:need:`comp_req__log__inactive_logstream` uses the vague wording "useful activity", second sentence tries to clarify but maybe the first should be removed.
:need:`comp_req__log__avoid_locks`
- TBD
* - REQ_02_02
- Is the requirement description *atomic* ?
- A good way to think about this is to consider if the requirement may be tested by one (positive) test case or needs more of these. The requirement formulation template should also avoid being non-atomic already. Note that there are cases where also non-atomic requirements are the better ones, for example if those are better understandable.
-
-
-
- No
- :need:`comp_req__log__send_to_datarouter` specifies the interaction for 3 elements,
:need:`comp_req__log__local_allocation_strategy` 2 requirements,
:need:`comp_req__log__avoid_locks` contain multiple requirements,
:need:`comp_req__log__send_to_datarouter` 2 or 3 requirements.
- TBD
* - REQ_02_04
- Is the requirement description *feasible* ?
- If at the time of the inspection the requirement has already some implementation, the answer is yes. This can be checked via traces, but also :need:`gd_req__req_attr_impl` shows this. In case the requirement has no implementation at the time of inspection (i.e. not implemented at least as "proof-of-concept"), a development expert should be invited to the Pull-Request review to explicitly check this item.
-
-
-
- No
- The requirement :need:`comp_req__log__autosar_log_trace_spec`
references a whole other specification. We cannot also use it legally.
- TBD
* - REQ_02_05
- Is the requirement description *independent from implementation* ?
- This checkpoint should improve requirements definition in the sense that the "what" is described and not the "how" - the latter should be described in architecture/design derived from the requirement. But there can also be a good reason for this, for example we would require using a file format like JSON and even specify the formatting standard already on stakeholder requirement level because we want to be compatible. A finding in this checkpoint does not mean there is a safety problem in the requirement.
-
-
-
- No
- :need:`comp_req__log__send_to_datarouter` prescribes internal use of a logging library.
:need:`comp_req__log__file_descriptor_flags` and
:need:`comp_req__log__shm_file_permissions` detail the permissions of
particular resources which are implementation details.
- TBD
* - REQ_03_01
- Is the *linkage to the parent requirement* correct?
- Linkage to correct levels and ASIL attributes is checked automatically, but it needs checking if the child requirement implements (at least) a part of the parent requirement.
-
-
-
- No
- :need:`comp_req__log__forward_to_system_logger` derives from
:need:`feat_req__logging__log_sinks_console`, but forwarding to the
native system logger is not clearly the same as supporting console as a
log sink.
:need:`comp_req__log__shm_file_permissions` parent seems to talk about
file logs, while the component requirement this is talking about shared
memory files.
- TBD
* - REQ_04_01
- Is the requirement *internally and externally consistent*?
- Does the requirement contradict other requirements within the same or higher levels? One may restrict the search to the feature for component requirements, for features to other features using same components. Is the description of the requirement consistent with all its attributes (if not already part of another check, e.g. does the title fit?).
-
- Yes
-
-
* - REQ_05_01
- Do the software requirements consider *timing constraints*?
- This checkpoint encourages to think about timing constraints even if those are not explicitly mentioned in the parent requirement. If the reviewer of a requirement already knows or suspects that the code execution will be consuming a lot of time, one should think of the expectation of a "user".
-
-
- Yes
- Some timing mentioned in :need:`comp_req__log__avoid_locks`.
-
* - REQ_06_01
- Does the requirement consider *external interfaces*?
- The SW platform's external interfaces (to the user) are defined in the Feature Architecture, so the Feature and Component Requirements should determine the input data use and setting of output data for these interfaces. Are all output values defined?
-
- Yes
-
-
* - REQ_07_01
- Is the *safety* attribute set correctly?
- Derived requirements are checked automatically, see :need:`gd_req__req_linkage_safety`. But for the top level requirements (and also all AoU) this needs to be checked manually for correctness.
-
- Yes
-
-
* - REQ_07_02
- Is the attribute *security* set correctly?
- For component requirements this checklist item is supported by automated check: "Every requirement which satisfies a feature requirement with security attribute set to YES inherits this". But the component requirements/architecture may additionally also be subject to a :need:`wp__sw_component_security_analysis`.
-
- Yes
-
-
* - REQ_08_01
- Is the requirement *verifiable*?
- If at the time of the inspection already tests are created for the requirement, the answer is yes. This can be checked via traces, but also :need:`gd_req__req_attr_test_covered` shows this. In case the requirement is not sufficiently traced to test cases already, a test expert is invited to the inspection to give their opinion whether the requirement is formulated in a way that supports test development and the available test infrastructure is sufficient to perform the test.
-
-
-
- No
- :need:`comp_req__log__inactive_logstream` the wording being vague means
that it's not clear what code shall pass here with a manual review.
:need:`comp_req__log__no_endless_loops` also might be hard to review.
- TBD
* - REQ_08_02
- Is the requirement verifiable by design or code review in case it is not feasibly testable?
- In very rare cases a requirement may not be verifiable by test cases, for example a specific non-functional requirement. In this case a requirement analysis verifies the requirement by design/code review. If such a requirement is in scope of this inspection, please check this here and link to the respective review record. A test expert is invited to the inspection to confirm their opinion that the requirement is not testable.
-
-
-
- No
- Review-based verification may be needed for
:need:`comp_req__log__avoid_signal_processing`,
:need:`comp_req__log__no_endless_loops`,
:need:`comp_req__log__avoid_locks`,
:need:`comp_req__log__cross_locking`.
- TBD
* - REQ_09_01
- Do the requirements that define a safety mechanism specify the error reaction leading to a safe state?
- Alternatively to the safe state there could also be "repair" mechanisms. Also do not forget to consider REQ_05_01 for these.
-
-
-
- No
- :need:`comp_req__log__index_size_checking` and
:need:`comp_req__log__memory_bound_checking` define checks for
safety-relevant data handling, but they do not specify the error
reaction when a check fails.
- TBD
* - REQ_10_01
- Is the requirement description *complete* ?
- For every requirement in the inspection, follow to its parent (feature) requirement(s) and then check if this/these are fulfilled completely by its/their linked children (component requirements, including those which are not in scope of the inspection).
-
-
-
- No
- The following feature requirements have no links
:need:`feat_req__logging__log_sinks_local_fs`
:need:`feat_req__logging__boot_logging`
:need:`feat_req__logging__error_handling_recoverable`
- TBD
* - EXTRA
- **Other Findings** Platform coding guidlines as component requirements
- The following look more like platform coding guidlines, and not component requirements.
- No
- :need:`comp_req__log__cross_locking`,
:need:`comp_req__log__local_allocation_strategy`,
:need:`comp_req__log__index_size_checking`,
:need:`comp_req__log__memory_bound_checking`,
:need:`feat_req__logging__compat_os`,
:need:`feat_req__logging__compat_languages`,
:need:`feat_req__logging__resource_storage` - ok if it's not already defined as platform req.
- TBD

.. attention::
The above checklist entries must be filled according to your component requirements in scope.
Expand Down
Loading