Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/133904/?format=api
http://patches.dpdk.org/api/patches/133904/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20231106171601.160749-4-juraj.linkes@pantheon.tech/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20231106171601.160749-4-juraj.linkes@pantheon.tech>", "list_archive_url": "https://inbox.dpdk.org/dev/20231106171601.160749-4-juraj.linkes@pantheon.tech", "date": "2023-11-06T17:15:41", "name": "[v5,03/23] dts: add basic developer docs", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "dca71e5339ab2afb48317f50c3b37fc6627e37b9", "submitter": { "id": 1626, "url": "http://patches.dpdk.org/api/people/1626/?format=api", "name": "Juraj Linkeš", "email": "juraj.linkes@pantheon.tech" }, "delegate": { "id": 2642, "url": "http://patches.dpdk.org/api/users/2642/?format=api", "username": "mcoquelin", "first_name": "Maxime", "last_name": "Coquelin", "email": "maxime.coquelin@redhat.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20231106171601.160749-4-juraj.linkes@pantheon.tech/mbox/", "series": [ { "id": 30173, "url": "http://patches.dpdk.org/api/series/30173/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=30173", "date": "2023-11-06T17:15:38", "name": "dts: add dts api docs", "version": 5, "mbox": "http://patches.dpdk.org/series/30173/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/133904/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/133904/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 932A6432BB;\n\tMon, 6 Nov 2023 18:16:32 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 53CAD40E6E;\n\tMon, 6 Nov 2023 18:16:12 +0100 (CET)", "from mail-ej1-f48.google.com (mail-ej1-f48.google.com\n [209.85.218.48]) by mails.dpdk.org (Postfix) with ESMTP id B048C40E5E\n for <dev@dpdk.org>; Mon, 6 Nov 2023 18:16:09 +0100 (CET)", "by mail-ej1-f48.google.com with SMTP id\n a640c23a62f3a-9dbb3d12aefso676739266b.0\n for <dev@dpdk.org>; Mon, 06 Nov 2023 09:16:09 -0800 (PST)", "from jlinkes-PT-Latitude-5530.. (ip-46.34.243.197.o2inet.sk.\n [46.34.243.197]) by smtp.gmail.com with ESMTPSA id\n s10-20020a170906354a00b009b947aacb4bsm47016eja.191.2023.11.06.09.16.07\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 06 Nov 2023 09:16:08 -0800 (PST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=pantheon.tech; s=google; t=1699290969; x=1699895769; darn=dpdk.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=s/LAysoQdX2M5M3GcSGuAwQq2xnpB5HA3Nq0pkeiaOA=;\n b=iyCVjEuAJsBcjQpDAogQ1t0aYDUEvwXkz6Q3iiTOxRXOgYCL+UtjTM2cM/z9g74lL4\n HbiX09sC7jSdxpqg6DQISZa9dMz/Kfj8iJ8plI5Gtcl+cff1I4CzoJJX0wpMf7PffmdN\n Eniz0/yEzIsTDRMoimFKkqG/8IkvwvJdptRPtrh0VZvCDxHhKOW5+walCl7eTGqDrCjX\n rRolY7Qp3GG5LfuTSSh6TFogVCuSrhZ0c1qIsTFF+p1Tl9rzxaRBHhWDfqMDlVO987Wp\n zj41cbM7QIC8asP5VbQ5aFqUliopB5AGe++JTgJUsqz/qZIE9RfP/RRdkeCcXy4ezzcc\n mYbA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1699290969; x=1699895769;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=s/LAysoQdX2M5M3GcSGuAwQq2xnpB5HA3Nq0pkeiaOA=;\n b=MFbXqhzVkH9mGY3+XiLk2FGDq8E0HFRb8hYap4QNmkhC5295KU11Jdht/wWD0J5Se4\n uflmCdbCp0NE3JWCqhTF2dTR7RJIOHhl7+LU/luCXOxO8qbAJRGZW+3/VjgpSCSB/K/5\n YrKwvenLVJHsdc2MRT3VcL/HdHARSRQrfdxxBnqqfSMMSoVVvdMzFV0kwOgywo6Cd4WY\n 5iCi0kRtq03OnTEtFVw70RomdWLLk0LlrYKiLYwz3l7R4NhdKgN+Hi6/zH6bv4nQrlIp\n emIkMzmZ0k4dtB9Cb+jaHvMa6huPPwW8SCtPhOxdMh6ajA+MAERfnPFncqm9zM9zbqGQ\n h2WQ==", "X-Gm-Message-State": "AOJu0YxFiA0yS3nZz151qxciihRF5BmNiPZgE0ocu+1bZg0U1A9FLpef\n CP6r8mkA23LzHp54qmH6KfV2MA==", "X-Google-Smtp-Source": "\n AGHT+IFP3SdSrEvGH/rKHUUzMbiCwmV7x9e2/sx1N9mC7hAZSTBVyXDbCFBoVT6xOgKqK0cHARaMPg==", "X-Received": "by 2002:a17:907:84a:b0:9be:c2cd:aa29 with SMTP id\n ww10-20020a170907084a00b009bec2cdaa29mr12022936ejb.77.1699290969085;\n Mon, 06 Nov 2023 09:16:09 -0800 (PST)", "From": "=?utf-8?q?Juraj_Linke=C5=A1?= <juraj.linkes@pantheon.tech>", "To": "thomas@monjalon.net, Honnappa.Nagarahalli@arm.com,\n bruce.richardson@intel.com, jspewock@iol.unh.edu, probb@iol.unh.edu,\n paul.szczepanek@arm.com, yoan.picchi@foss.arm.com", "Cc": "dev@dpdk.org, =?utf-8?q?Juraj_Linke=C5=A1?= <juraj.linkes@pantheon.tech>", "Subject": "[PATCH v5 03/23] dts: add basic developer docs", "Date": "Mon, 6 Nov 2023 18:15:41 +0100", "Message-Id": "<20231106171601.160749-4-juraj.linkes@pantheon.tech>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20231106171601.160749-1-juraj.linkes@pantheon.tech>", "References": "<20230831100407.59865-1-juraj.linkes@pantheon.tech>\n <20231106171601.160749-1-juraj.linkes@pantheon.tech>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "Expand the framework contribution guidelines and add how to document the\ncode with Python docstrings.\n\nSigned-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>\n---\n doc/guides/tools/dts.rst | 73 ++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 73 insertions(+)", "diff": "diff --git a/doc/guides/tools/dts.rst b/doc/guides/tools/dts.rst\nindex 32c18ee472..b1e99107c3 100644\n--- a/doc/guides/tools/dts.rst\n+++ b/doc/guides/tools/dts.rst\n@@ -264,6 +264,65 @@ which be changed with the ``--output-dir`` command line argument.\n The results contain basic statistics of passed/failed test cases and DPDK version.\n \n \n+Contributing to DTS\n+-------------------\n+\n+There are two areas of contribution: The DTS framework and DTS test suites.\n+\n+The framework contains the logic needed to run test cases, such as connecting to nodes,\n+running DPDK apps and collecting results.\n+\n+The test cases call APIs from the framework to test their scenarios. Adding test cases may\n+require adding code to the framework as well.\n+\n+\n+Framework Coding Guidelines\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+\n+When adding code to the DTS framework, pay attention to the rest of the code\n+and try not to divert much from it. The :ref:`DTS developer tools <dts_dev_tools>` will issue\n+warnings when some of the basics are not met.\n+\n+The code must be properly documented with docstrings. The style must conform to\n+the `Google style <https://google.github.io/styleguide/pyguide.html#38-comments-and-docstrings>`_.\n+See an example of the style\n+`here <https://www.sphinx-doc.org/en/master/usage/extensions/example_google.html>`_.\n+For cases which are not covered by the Google style, refer\n+to `PEP 257 <https://peps.python.org/pep-0257/>`_. There are some cases which are not covered by\n+the two style guides, where we deviate or where some additional clarification is helpful:\n+\n+ * The __init__() methods of classes are documented separately from the docstring of the class\n+ itself.\n+ * The docstrigs of implemented abstract methods should refer to the superclass's definition\n+ if there's no deviation.\n+ * Instance variables/attributes should be documented in the docstring of the class\n+ in the ``Attributes:`` section.\n+ * The dataclass.dataclass decorator changes how the attributes are processed. The dataclass\n+ attributes which result in instance variables/attributes should also be recorded\n+ in the ``Attributes:`` section.\n+ * Class variables/attributes, on the other hand, should be documented with ``#:`` above\n+ the type annotated line. The description may be omitted if the meaning is obvious.\n+ * The Enum and TypedDict also process the attributes in particular ways and should be documented\n+ with ``#:`` as well. This is mainly so that the autogenerated docs contain the assigned value.\n+ * When referencing a parameter of a function or a method in their docstring, don't use\n+ any articles and put the parameter into single backticks. This mimics the style of\n+ `Python's documentation <https://docs.python.org/3/index.html>`_.\n+ * When specifying a value, use double backticks::\n+\n+ def foo(greet: bool) -> None:\n+ \"\"\"Demonstration of single and double backticks.\n+\n+ `greet` controls whether ``Hello World`` is printed.\n+\n+ Args:\n+ greet: Whether to print the ``Hello World`` message.\n+ \"\"\"\n+ if greet:\n+ print(f\"Hello World\")\n+\n+ * The docstring maximum line length is the same as the code maximum line length.\n+\n+\n How To Write a Test Suite\n -------------------------\n \n@@ -293,6 +352,18 @@ There are four types of methods that comprise a test suite:\n | These methods don't need to be implemented if there's no need for them in a test suite.\n In that case, nothing will happen when they're is executed.\n \n+#. **Configuration, traffic and other logic**\n+\n+ The ``TestSuite`` class contains a variety of methods for anything that\n+ a test suite setup or teardown or a test case may need to do.\n+\n+ The test suites also frequently use a DPDK app, such as testpmd, in interactive mode\n+ and use the interactive shell instances directly.\n+\n+ These are the two main ways to call the framework logic in test suites. If there's any\n+ functionality or logic missing from the framework, it should be implemented so that\n+ the test suites can use one of these two ways.\n+\n #. **Test case verification**\n \n Test case verification should be done with the ``verify`` method, which records the result.\n@@ -308,6 +379,8 @@ There are four types of methods that comprise a test suite:\n and used by the test suite via the ``sut_node`` field.\n \n \n+.. _dts_dev_tools:\n+\n DTS Developer Tools\n -------------------\n \n", "prefixes": [ "v5", "03/23" ] }{ "id": 133904, "url": "