get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/57328/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 57328,
    "url": "https://patches.dpdk.org/api/patches/57328/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20190731145030.19956-3-aconole@redhat.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<20190731145030.19956-3-aconole@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190731145030.19956-3-aconole@redhat.com",
    "date": "2019-07-31T14:50:30",
    "name": "[2/2] ci: enable unit tests under travis-ci",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "f5236ea22bb9abd460bd5fa2107ba999b1b28e74",
    "submitter": {
        "id": 332,
        "url": "https://patches.dpdk.org/api/people/332/?format=api",
        "name": "Aaron Conole",
        "email": "aconole@redhat.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20190731145030.19956-3-aconole@redhat.com/mbox/",
    "series": [
        {
            "id": 5858,
            "url": "https://patches.dpdk.org/api/series/5858/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=5858",
            "date": "2019-07-31T14:50:28",
            "name": "Enable fast-unit tests under travis",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/5858/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/57328/comments/",
    "check": "warning",
    "checks": "https://patches.dpdk.org/api/patches/57328/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id A18D91C1AC;\n\tWed, 31 Jul 2019 16:50:46 +0200 (CEST)",
            "from mx1.redhat.com (mx1.redhat.com [209.132.183.28])\n\tby dpdk.org (Postfix) with ESMTP id DA8921C133\n\tfor <dev@dpdk.org>; Wed, 31 Jul 2019 16:50:41 +0200 (CEST)",
            "from smtp.corp.redhat.com\n\t(int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id 68507A3B60;\n\tWed, 31 Jul 2019 14:50:40 +0000 (UTC)",
            "from dhcp-25.97.bos.redhat.com (unknown [10.18.25.67])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id B65235D6A7;\n\tWed, 31 Jul 2019 14:50:39 +0000 (UTC)"
        ],
        "From": "Aaron Conole <aconole@redhat.com>",
        "To": "dev@dpdk.org",
        "Cc": "Michael Santana <msantana@redhat.com>,\n\tDavid Marchand <dmarchan@redhat.com>,\n\tBruce Richardson <bruce.richardson@intel.com>,\n\tFerruh Yigit <ferruh.yigit@intel.com>, Luca Boccassi <bluca@debian.org>",
        "Date": "Wed, 31 Jul 2019 10:50:30 -0400",
        "Message-Id": "<20190731145030.19956-3-aconole@redhat.com>",
        "In-Reply-To": "<20190731145030.19956-1-aconole@redhat.com>",
        "References": "<20190731145030.19956-1-aconole@redhat.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Scanned-By": "MIMEDefang 2.79 on 10.5.11.15",
        "X-Greylist": "Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.30]); Wed, 31 Jul 2019 14:50:40 +0000 (UTC)",
        "Subject": "[dpdk-dev] [PATCH 2/2] ci: enable unit tests under travis-ci",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "When building under Travis (or another linux CI service), enable running the\nfast-tests for selected builds.  Only the shared builds are enabled at this\npoint, since they are the ones passing.  Builds that are statically linked\nstill show some issues in some of the eal_flags tests.  Additionally,\nthe command to invoke fast tests includes a timeout multiplier, since\nsome CI environments don't have enough resources to complete the tests in\nthe default 10s timeout period.\n\nSigned-off-by: Aaron Conole <aconole@redhat.com>\n---\n .ci/linux-build.sh | 8 ++++++++\n .ci/linux-setup.sh | 8 +++++++-\n .travis.yml        | 9 ++++++++-\n 3 files changed, 23 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh\nindex d5783c1a4..75f740648 100755\n--- a/.ci/linux-build.sh\n+++ b/.ci/linux-build.sh\n@@ -22,3 +22,11 @@ fi\n OPTS=\"$OPTS --default-library=$DEF_LIB\"\n meson build --werror -Dexamples=all $OPTS\n ninja -C build\n+\n+if [ \"$RUN_TESTS\" = \"1\" ]; then\n+    # On the test build, also build the documentation, since it's expensive\n+    # and we shouldn't need to build so much of it.\n+    ninja -C build doc\n+\n+    sudo meson test -C build --suite fast-tests -t 3\n+fi\ndiff --git a/.ci/linux-setup.sh b/.ci/linux-setup.sh\nindex acdf9f370..a40e62eaa 100755\n--- a/.ci/linux-setup.sh\n+++ b/.ci/linux-setup.sh\n@@ -1,3 +1,9 @@\n #!/bin/sh\n \n-python3 -m pip install --upgrade meson --user\n+# need to install as 'root' since some of the unit tests won't run without it\n+sudo python3 -m pip install --upgrade meson\n+\n+# setup hugepages\n+cat /proc/meminfo\n+sudo sh -c 'echo 1024 > /proc/sys/vm/nr_hugepages'\n+cat /proc/meminfo\ndiff --git a/.travis.yml b/.travis.yml\nindex 7b167fa64..c0c27bb7f 100644\n--- a/.travis.yml\n+++ b/.travis.yml\n@@ -30,6 +30,7 @@ env:\n   - DEF_LIB=\"shared\"\n   - DEF_LIB=\"static\" OPTS=\"-Denable_kmods=false\"\n   - DEF_LIB=\"shared\" OPTS=\"-Denable_kmods=false\"\n+  - DEF_LIB=\"shared\" RUN_TESTS=1\n \n matrix:\n   include:\n@@ -51,7 +52,7 @@ matrix:\n       apt:\n         packages:\n           - *extra_packages\n-  - env: DEF_LIB=\"shared\" EXTRA_PACKAGES=1\n+  - env: DEF_LIB=\"shared\" EXTRA_PACKAGES=1 RUN_TESTS=1\n     compiler: gcc\n     addons:\n       apt:\n@@ -81,6 +82,12 @@ matrix:\n       apt:\n         packages:\n           - *extra_packages\n+  - env: DEF_LIB=\"shared\" EXTRA_PACKAGES=1 RUN_TESTS=1\n+    compiler: clang\n+    addons:\n+      apt:\n+        packages:\n+          - *extra_packages\n   - env: DEF_LIB=\"static\" OPTS=\"-Denable_kmods=false\" EXTRA_PACKAGES=1\n     compiler: clang\n     addons:\n",
    "prefixes": [
        "2/2"
    ]
}