[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: deviations tagging


  • To: Stefano Stabellini <stefano.stabellini@xxxxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Wed, 15 Jun 2022 09:19:21 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=TGX0xP+YMx8wMfHAJFLlahaNOADTROIFuJkydMYgEuY=; b=oBseqT9Y6qq2M8fIiixV4kUAkwYNXiDW+1F9+uaFYn+9rsLHNwjxIEKuV5l9ywvQFTeQljzaGO+Bne1T9J7FiE07E44NIpc2HtokuNAe1qRQv1CgCJ1yHUOQXPIAJYU4tlz40/UyIo0HJYmbcGUlxRGO95bZFDll8kSlWghWgJptoBE8BjdVhovG6yD6AOsYr1f9HpqtupH6yWnRqz7SB36IQsXvLfeTbEuRDZa7gJjTNVyckbbpFUIwmmsBwqNKxlVu21CSUB19kYcShGYKq3H+8wlfNRVaXSyNoXi3qXz2dGbEb3MpFXxewBEtUAWEnJZi6n4BlgUmD4fFGvDGoQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VQ2ZSn9cRzjBpNmBgzLQsoXr5EFjHXgTMBfT7eBRtm9UG7pcniycWdHD95SFfaJuW7plGFLGXjB9zClk2nhR1R9h/Pjn7Vcj9J4pgpDyb0rOgNOeI2LBKJ2cwXZzk04+nmwQzBDkkrRsyYDc5zacxuYMOZ4ErfqApwAR6m3BvaD2AXkRS61wUO8CRvXnDW3JXcXfeJK5YYwEORkWkylineVK9RhHv1Y/a/w/tqOvNW/CUfS4PItXt+cJKzPP/jC/hA6BABBzByFS03N1Pjsz5BGWw3c8QQTAedzJT5ab58I0VV3FvQ3NLu/WD7LkJbGAVAylV3ms60oMFT27ykfclQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: fusa-sig@xxxxxxxxxxxxxxxxxxxx, stefanos@xxxxxxxxxx, roberto.bagnara@xxxxxxxxxxx, jbeulich@xxxxxxxx, andrew.cooper3@xxxxxxxxxx, julien@xxxxxxx, Bertrand.Marquis@xxxxxxx, Artem_Mygaiev@xxxxxxxx
  • Delivery-date: Wed, 15 Jun 2022 16:04:51 +0000
  • Ironport-data: A9a23:h2ERpqlgueoWVk/hHTmFn1Lo5gxzJ0RdPkR7XQ2eYbSJt1+Wr1Gzt xIfWjiOPPmKN2v3foh3Oou1p0oDusfSy4RrSANlqn8wRSMWpZLJC+rCIxarNUt+DCFioGGLT Sk6QoOdRCzhZiaE/n9BCpC48T8kk/vgqoPUUIYoAAgoLeNfYHpn2EsLd9IR2NYy24DnWl/V4 rsenuWEULOb828sWo4rw/rrRCNH5JwebxtB4zTSzdgS1LPvvyF94KA3fMldHFOhKmVgJcaoR v6r8V2M1jixEyHBqD+Suu2TnkUiGtY+NOUV45Zcc/DKbhNq/kTe3kunXRa1hIg+ZzihxrhMJ NtxWZOYTRkHBJaRw/4hXxAFFQp+EbJA+r35Pi3q2SCT5xWun3rE5dxLVRlzF6tHv+F9DCdJ6 OASLy0LYlabneWqzbmnS+5qwMM+MM3sO4BZsXZlpd3bJa9+HdafHOOVvZkBhGpYasNmRJ4yY +IDbjVidlLYagBnMVYLEpMu2uyvgxETdhUH8wzO//dtvQA/yiRsy+jKaODIWOejQMRtr3m0o WD7o0HQV0Ry2Nu3jGDtHmiXrvTTkC3yXoVUD6Gx/PNuhFyVx0QDCRkXU0v9qv684mawRslWb lcV9QIqrLMu7wq7Q9/lRRq6rXWY+BkGVLJ4CPE35giLzbH88wedB24UCDVGbbQOrsg8SCY20 RmDltzvDCZmmLeIRmmQ8LjSpjS3UQAXJ2IfYS4PTSMe/sLu5oo0i3rnTMtnEaOzps34H3f32 T/ihAIznakJhMgHkYCy50nagimEr4LMCAUy423/d3i54wZOQZ+qbo2l93DW9f9Fao2eSzG8U GMsnsGf6KUEC86LnSnUGOEVRujxurCCLSHWhkNpE9857TOx9nW/fIdWpjZjOENuNcVCcjjsC KPOhT5sCFZoFCPCRcdKj0iZUqzGEYCI+QzZa83p
  • Ironport-hdrordr: A9a23:X0qfmqCpKF/X2SflHegwsceALOsnbusQ8zAXPh9KJCC9I/bzqy nxpp8mPH/P5wr5lktQ/OxoHJPwOU80lKQFmLX5WI3PYOCIgguVxe1ZnOjfKnjbalbDH41mpN tdmspFebrN5DFB5K6VgTVQUexQpuVvmJrY+Ns2pE0dKT2CBZsQjTuQXW2gYzdLrUR9dOwEPa vZwvACiyureHwRYMj+Ln4ZX9Lbr9mOsJ79exYJCzMu9QHL1FqTmfbHOind+i1bfyJEwL8k/2 SAuwvl5p+7u/X+7hPHzWfc47lfhdOk4NpeA86njNQTN1zX+0+VTbUkf4fHkCE+oemp5lpvuN 7Qoy04N8A20H/VdnHdm2qZ5yDQlBIVr1Pyw16RhnXu5ebjQighNsZHjYVFNjPE9ksJprhHoe 529lPck6ASIQLLnSz76dSNfQptjFCIrX0rlvNWp2BDULEZdKRaoeUkjQ5o+a87bWzHAb0cYa hT5Jm23ocXTbraVQGSgoBX+q3iYpxpdS32AXTruaSuokprdT5CvgklLfck7wk9HaIGOuZ5Dt v/Q9VVfZF1P7srhPFGdZA8qfXeMB28fTv8dESvHH/AKIYrf1rwlr+f2sRH2AjtQu1C8KcP
  • List-id: This is a discussion list for members of the Xen Project FuSa SIG <fusa-sig.lists.xenproject.org>

On Tue, Jun 14, 2022 at 03:47:12PM -0700, Stefano Stabellini wrote:
> Hi all,
> 
> Roberto was suggesting to use the following different categories for
> tagging deviations. We could pick any "TAG" we like for the in-code
> comments (or other tagging systems).
> 
> I am also CCing the MISRA C team to give them early visibility on this.
> Feel free to provide early feedback if you have any. The plan is to
> discuss it further during the next fusa-sig call and come up with a more
> detailed proposal (including the actual tags, how to use them and more)
> for xen-devel next.
> 
> Cheers,
> 
> Stefano
> 
> 
> 
> adopted
> 
>    The report should be considered originated by adopted code without any
>    contribution of native code to the report.
> 
> safe
> 
>    The report is correct but the specific behavior is safe under every
>    aspect assumed to be covered by the guideline.
> 
> relied
> 
>    The report is correct but the rule concerns exclusively "developer
>    confusion" or readability matters that are not relevant for adopted code,
>    which is assumed to work as is and it is not meant to be read, reviewed
>    or modified by human programmers.  To be used for adopted code only.
> 
> false-positive
> 
>    In the opinion of the developer the violation report is not correct
>    and the problem has been notified to the tool provider.
>    To be used only for violation reports.

Do we want to tag false positives?  There's no benefit at all from our
code base tagging false positives, I think those should get fixed in
the checker tool, or otherwise marked as false positives somewhere
else (ie: in the tool itself).

> 
> compliant
> 
>    The developer can prove that the possible non-compliance shown by
>    caution report cannot happen in any situation and can motivate such
>    claim.  To be used only for caution reports.
> 
> false-negative
> 
>    The developer has found a non-compliance not shown by the tool and the
>    problem has been notified to the tool provider.

I'm also not sure tagging false-negatives is helpful either, specially
if we want to consider this tag system is not bound to any specific
tool.  What could be a false negative to a specific checker tool might
not be to another, and hence the tag would cause confusion.  False
negatives should be tagged like any other violation, ignoring the fact
a specific checker tool hasn't been able to spot it.

Overall I think this would need some clarification of the terms used,
for example what's 'adapted code'.

Also I think the usage of 'report' in the descriptions is confusing.
AFAICT this is supposed to mean tags are added in reaction to reports
by checker tools, but what about deviations that are find by humans,
there's no 'report' in that case likely to refer to.  The language
seem to be focused against a tags being a reaction to a report from
checker tools.

Thanks, Roger.



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.