Skip to content

Commit

Permalink
document: add v2.5 content
Browse files Browse the repository at this point in the history
add summary page for v2.5.0, some details still pending

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
  • Loading branch information
hakehuang committed Feb 7, 2021
1 parent 5023d8e commit f25858f
Show file tree
Hide file tree
Showing 6 changed files with 269 additions and 5 deletions.
9 changes: 8 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@
'sphinx.ext.ifconfig',
'sphinx.ext.githubpages',
'rst2pdf.pdfbuilder',
'sphinx.ext.autosectionlabel',
]

autosectionlabel_prefix_document = True

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

Expand All @@ -66,7 +69,7 @@
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path .
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', 'duplicate']

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
Expand Down Expand Up @@ -162,5 +165,9 @@
(master_doc, 'ZephyrQualityManagement', 'Zephyr Quality Management Documentation', author),
]

suppress_warnings = [
'autosectionlabel.*',
]


# -- Extension configuration -------------------------------------------------
4 changes: 3 additions & 1 deletion doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ Welcome to Zephyr Test Result Report
:caption: Contents:

reports/prelude.rst
reports/summary.rst
reports/summary_2.4.rst
reports/summary_2.5.rst
reports/appendix_footprint.rst



Expand Down
42 changes: 42 additions & 0 deletions doc/reports/appendix_footprint.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@

.. _Appendix Footprint :

Appendix Footprint
##################


Steps:
******

To generate a binary footprint for your board use that sequence of actions:

assume your code SHA number is 7a3b253

#. checkout code base

$ git checkout 7a3b253

#. check west version

Verify that your version of west is v0.7.3 or higher

$ west --version

Build an application using the command:

#. build footprint application

$ west build -b <your_board_name> tests/benchmarks/footprints/


#. view the ROM results output run.

$ west build -t rom_report

The result will be a list of all compiled objects and their ROM usage in a tabular form with bytes per symbol and the percentage it uses.

#. view the RAM results output run.

$ west build -t ram_report

The result will be a list of all compiled objects and their RAM usage in a tabular form with bytes per symbol and the percentage it uses.
6 changes: 5 additions & 1 deletion doc/reports/prelude.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ Revison 0.5
| | | Cross-reference plugin in add-ons that cover automatic enumeration |
| | | andcross-referencing for tables and figure |
+------------+-----------------------+------------------------------------------------------------------------------------+

| 0.6 | Jan 29, 2021 | add release summary for v2.5.0 |
+------------+-----------------------+------------------------------------------------------------------------------------+

`Zephyr Testing Working Group
<mailto:testing-wg@lists.zephyrproject.org>`_
Expand Down Expand Up @@ -73,5 +74,8 @@ Documents
`Zephyr 2.4 release notes
<https://docs.zephyrproject.org/latest/releases/release-notes-2.4.html>`_

`Zephyr 2.5 release notes
<https://docs.zephyrproject.org/latest/releases/release-notes-2.5.html>`_

`Zephyr security overview
<https://docs.zephyrproject.org/1.11.0/security/security-overview.html>`_
4 changes: 2 additions & 2 deletions doc/reports/summary.rst → doc/reports/summary_2.4.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

Test Result
############
Test Result v2.4
################

Summary of testing activities and its results performed for the Zephyr RTOS.

Expand Down
209 changes: 209 additions & 0 deletions doc/reports/summary_2.5.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,209 @@

Test Result v2.5
################

Summary of testing activities and its results performed for the Zephyr RTOS.

Build tests
===========

This plan checks if all Zephyr tests and samples properly build on all platforms available in the release, that support corresponding features. Note that during this plan none of these tests is executed. More information about the plan can be found here [wiki link]. Figure X.X shows a chart with the summary of this plan’s `results
<https://buildkite.com/zephyr/zephyr-daily>`_


On-target tests
===============

The on-target tests for a given version of Zephyr are executed by contributors on their sites. The status of all the tests executed for this release is found
`here
<https://testing.zephyrproject.org/daily_tests/index.html>`_
Summary of these tests results is given in Fig. X.X


Test coverage of new deliverables
=================================

`Table 1`_ shows a summarized scoring board for test coverage of new deliverables. A score for a given deliverable type is equal to the percentage of tested items of this type. A detailed table with an expanded explanation is given in the Appendix

`Table 1`_: Delivery Metrics scoring board
******************************************

.. _Table 1:

+--------------------+---------------+-----------------------+-----------+-----------+
| Summary | Verified | Total | Failed | Score |
+====================+===============+=======================+===========+===========+
|New platforms | 2 | 22 | ? | ? |
+--------------------+---------------+-----------------------+-----------+-----------+
|Platform removed | - | 1 | - | 100 |
+--------------------+---------------+-----------------------+-----------+-----------+
|Platform updated | 4 | 11 | ? | ? |
+--------------------+---------------+-----------------------+-----------+-----------+
|API Changes | ? | 12 | ? | ? |
+--------------------+---------------+-----------------------+-----------+-----------+
|MCU Boot | ? | 2 | ? | ? |
+--------------------+---------------+-----------------------+-----------+-----------+
|Trusted-Firmware-M | ? | 1 | ? | ? |
+--------------------+---------------+-----------------------+-----------+-----------+
|Subsystems | ? | 5 | ? | ? |
+--------------------+---------------+-----------------------+-----------+-----------+


.. _Deliveries: https://docs.zephyrproject.org/latest/releases/release-notes-2.5.html


Maintenance and performance metrics
===================================


Consistency metrics
*******************

`Table 2`_ lists all key features that we want to track, like a binary footprint, standard compatibility, etc., and test statuses of those. It serves to monitor consisten cy between the releases.

`Table 2`_: Consistency Metrics
-------------------------------

.. _Table 2:

+---------------------+---------------------------------------------+-----------------------+
|Category | Name | Steps |
+=====================+=============================================+=======================+
|Binary footprint |app for commonly used kernel funcs footprint | `Binary footprint`_ |
+---------------------+---------------------------------------------+-----------------------+
|Standard compatible | - | Not Tested |
+---------------------+---------------------------------------------+-----------------------+
|API compatible | Not compatible with v2.3, | |
| | but keeps compatible with former posix | Not Tested |
+---------------------+---------------------------------------------+-----------------------+


.. _Binary footprint: https://github.com/zephyrproject-rtos/zephyr/wiki/%5BHOW-TO%5D-Generate-a-binary-footprint-for-a-basic-Zephyr-application


Footprint metrics
*****************

A test from Zephyr’s codebase called “footprints” (footprints_) is used to measure footprint results for the Zephyr application. Using this test application one can have the first impression about RAM and ROM usage, which will vary depending on the chosen platform (see Table 3). To know the detailed footprint for your board/platform/architecture run that test on your board (HOW TO). More details about the test are found in the Appendix. One can view the detailed test results by opening the “Detailed results link” in the RAM or ROM cell in `Table 3`_. Current release (`code base`_). Please read :ref:`Appendix Footprint` for steps on how to.

.. _footprints : https://github.com/zephyrproject-rtos/zephyr/tree/master/tests/benchmarks/footprints

.. _code base : https://github.com/zephyrproject-rtos/zephyr/commit/ef1b4d45b0ae1fe3cfd9e85d45acdf595a23a3b1


`Table 3`_: Basic Zephyr application binary footprint
-----------------------------------------------------

.. _Table 3:

+---------------------+---------------+-----------------------+
|Board |RAM (bytes) |ROM (bytes) |
+=====================+===============+=======================+
|reel_board | | |
+---------------------+---------------+-----------------------+
|up_squared | | |
+---------------------+---------------+-----------------------+
| iotdk | | |
+---------------------+---------------+-----------------------+
|frdm_k64f | | |
|(arm/cortex-m4) | 8290 | 24160 |
+---------------------+---------------+-----------------------+
|mimxrt685_evk_cm33 | | |
|(arm/cortex-m33) | 8023 | 29684 |
+---------------------+---------------+-----------------------+
|mimxrt1064_evk | | |
|(arm/cortex-m7) | 8866 | 31730 |
+---------------------+---------------+-----------------------+

Security metrics
================

In this section, we summarized the test results of the security functionality and exception protection items defined by the Zephyr Security process (reference below) (see `Table 4`_). The aim of security metrics is to provide consistent insurance of security functionalities. A detailed description is given in the Reference Document.


`Table 4`_: Security Metrics Scoring Board
******************************************

.. _Table 4:

+-----------------------+----------+------+----------+
|Summary |Verified |Total | Failed |
+=======================+==========+======+==========+
|Security Functionality | 2 | 2 | 0 |
+-----------------------+----------+------+----------+
|Execution Protection | 3 | 3 | 0 |
+-----------------------+----------+------+----------+


Static scan indexes
===================

`Security Link`_ summarizes the Coverity scan issues by providing a number of defects that remained open, grouped by severity level. This metric can help to estimate the code vulnerability.

.. _Security Link: https://docs.zephyrproject.org/latest/releases/release-notes-2.5.html#security-vulnerability-related

Defect metrics
==============

This chapter lists issues that are found by the release test(2020-09-06). The metrics are to provide the release defects index.
We use the `defect filter`_ out issues found by test cases.


.. _defect filter: https://github.com/zephyrproject-rtos/zephyr/issues?q=is%3Aissue+label%3Abug+sort%3Aupdated-desc+label%3A%22area%3A+Tests%22+created%3A%3E2020-09-06


`Table 6`_ is the scoring board for the metrics.

`Table 6`_: Release Defect Scoring Board
****************************************

.. _Table 6:

+-------------------------+---------------------------------+--------------------------+
|Index name | count | scores |
+=========================+=================================+==========================+
| Issue reported per line| 2(high),30(medium), 117 (low) | -1*(2*3+30*2+117)=-183 |
+-------------------------+---------------------------------+--------------------------+
| pass rate | - | 100 |
+-------------------------+---------------------------------+--------------------------+
| remain issues | -1*2(low) | -2 |
+-------------------------+---------------------------------+--------------------------+

Note: the Scoring rules are
---------------------------

#. -1 x count of founded issues during release test x severity(3: High, 2: medium, 1: low)

#. Pass rate x 100

#. -1 x Remianing issues x severity(3: High, 2: medium, 1: low)

Open Issues
===========

The release-readiness status is based on the number of open issues obtained with the community-defined filters being applied to the Zephyr RTOS GitHub repository. The current backlog of prioritized bugs was used as a quality metric to gate the final release. The limits are defined in the release process section of Zephyr documentation. `Table 7`_ shows the number of existing issues with the above filters applied and the allowed limits for each priority.

`Table 7`_: Number of currently open issues (with filters applied) and limits for each priority level
*****************************************************************************************************

.. _Table 7:

+-------------------------+---------------------+--------------------------+
|Priority | Current | Max allowed |
+=========================+=====================+==========================+
|High | 3 | 0 |
+-------------------------+---------------------+--------------------------+
|Medium | 18 | 20 |
+-------------------------+---------------------+--------------------------+
|Low | 82 | 150 |
+-------------------------+---------------------+--------------------------+

The numbers of new issues found: highlight or list the most significant issues, especially if any issues are considered blocking issues. High-level comments, including a discussion of blocking issues, testing gaps, and recommendations. Only labeled for the current release.


*Add table to track Coverage of the requirements. HTML page which is generated by Sanitycheck coverage option.*

**TBD**



0 comments on commit f25858f

Please sign in to comment.