Patch Detail
Show a patch.
GET /api/1.1/patches/22383/?format=api
{ "id": 22383, "url": "https://patchwork.libcamera.org/api/1.1/patches/22383/?format=api", "web_url": "https://patchwork.libcamera.org/patch/22383/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/1.1/projects/1/?format=api", "name": "libcamera", "link_name": "libcamera", "list_id": "libcamera_core", "list_email": "libcamera-devel@lists.libcamera.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20241217153153.140417-4-barnabas.pocze@ideasonboard.com>", "date": "2024-12-17T15:31:53", "name": "[libcamera-ci,RFC,v3,4/4] Add job to run lc-compliance on the virtual pipeline handler", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "aa2883f368965b7b576f85e20010e1ac540e2d9b", "submitter": { "id": 216, "url": "https://patchwork.libcamera.org/api/1.1/people/216/?format=api", "name": "Barnabás Pőcze", "email": "barnabas.pocze@ideasonboard.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/22383/mbox/", "series": [ { "id": 4906, "url": "https://patchwork.libcamera.org/api/1.1/series/4906/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=4906", "date": "2024-12-17T15:31:50", "name": "[libcamera-ci,RFC,v3,1/4] Enable `UDMABUF` in the kernel", "version": 3, "mbox": "https://patchwork.libcamera.org/series/4906/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/22383/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/22383/checks/", "tags": {}, "headers": { "Return-Path": "<libcamera-devel-bounces@lists.libcamera.org>", "X-Original-To": "parsemail@patchwork.libcamera.org", "Delivered-To": "parsemail@patchwork.libcamera.org", "Received": [ "from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id B13C0C3302\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 17 Dec 2024 15:32:04 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 3D7C867FE4;\n\tTue, 17 Dec 2024 16:32:02 +0100 (CET)", "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id F20E567FD6\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 17 Dec 2024 16:31:56 +0100 (CET)", "from pb-laptop.local (185.221.140.157.nat.pool.zt.hu\n\t[185.221.140.157])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id AE48C3E\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 17 Dec 2024 16:31:19 +0100 (CET)" ], "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"VTGMIQgn\"; dkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1734449479;\n\tbh=8mi7ue6C0vJSGTHux8ZZnItwqAkIwnXmd2/CM9XtRvY=;\n\th=From:To:Subject:Date:In-Reply-To:References:From;\n\tb=VTGMIQgnYc65bYvFO5XjXWHztj/9lYyNpnmTmTFWRB+Q5BmnA7wU6u6BI2U6DryrY\n\tlzkKIYBllX39hLqSYNjYrJvWFnGc+8kZl/GpN4nC7IfZlR9Q4WTdxqh7TQiF1D5b75\n\tqDZg62yp3WIf/sNH6PlolqBDzWBBmKObn+moLBFw=", "From": "=?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= <barnabas.pocze@ideasonboard.com>", "To": "libcamera-devel@lists.libcamera.org", "Subject": "[libcamera-ci] [RFC PATCH v3 4/4] Add job to run lc-compliance on\n\tthe virtual pipeline handler", "Date": "Tue, 17 Dec 2024 16:31:53 +0100", "Message-ID": "<20241217153153.140417-4-barnabas.pocze@ideasonboard.com>", "X-Mailer": "git-send-email 2.47.1", "In-Reply-To": "<20241217153153.140417-1-barnabas.pocze@ideasonboard.com>", "References": "<20241217153153.140417-1-barnabas.pocze@ideasonboard.com>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "libcamera-devel@lists.libcamera.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "<libcamera-devel.lists.libcamera.org>", "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>", "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>", "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>", "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>", "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "Add a new job named `test-lc-compliance:virtual` that uses the\nbuild artifacts created by the `build-package:debug` job\non amd64 to run `lc-compliance` on the \"Virtual0\" camera\nin a virtual machine.\n\nSigned-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>\n---\n\nThis needs libcamera changes to work and to run in reasonable time:\n * https://patchwork.libcamera.org/project/libcamera/list/?series=4874\n * https://patchwork.libcamera.org/patch/22379/\n * https://gitlab.freedesktop.org/pobrn/libcamera/-/commit/ed4b5bc179ea405f2f01b85b4114720f67ce3595\n\nChanges in v2:\n * publish lc-compliance results to gitlab\n * add and use script to install libcamera binary package\n\n---\n .gitlab-ci/test-lc-compliance.sh | 37 +++++++++++++++++++++++++++++++\n .gitlab-ci/unpackage-libcamera.sh | 17 ++++++++++++++\n gitlab-ci.yml | 22 +++++++++++++++++-\n 3 files changed, 75 insertions(+), 1 deletion(-)\n create mode 100755 .gitlab-ci/test-lc-compliance.sh\n create mode 100755 .gitlab-ci/unpackage-libcamera.sh\n\n--\n2.47.1", "diff": "diff --git a/.gitlab-ci/test-lc-compliance.sh b/.gitlab-ci/test-lc-compliance.sh\nnew file mode 100755\nindex 0000000..8c726fa\n--- /dev/null\n+++ b/.gitlab-ci/test-lc-compliance.sh\n@@ -0,0 +1,37 @@\n+#!/bin/bash\n+\n+# SPDX-License-Identifier: GPL-2.0-or-later\n+# SPDX-FileCopyrightText: © 2024 Google Inc.\n+\n+set -e\n+\n+source \"$(dirname \"$0\")/lib.sh\"\n+\n+libcamera_compliance() {\n+\techo \"Running libcamera compliance tests in a qemu VM\"\n+\n+\tvirtme-ng \\\n+\t\t--verbose \\\n+\t\t--skip-modules \\\n+\t\t--force-9p \\\n+\t\t--rwdir \"$PWD/build\" \\\n+\t\t--run /opt/linux/bzImage \\\n+\t\t--exec \" \\\n+\t\t\tLIBCAMERA_LOG_LEVELS=*:DEBUG \\\n+\t\t\tASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 \\\n+\t\t\tUBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 \\\n+\t\t\tGTEST_OUTPUT=xml:./build/lc-compliance-report.xml \\\n+\t\t\tlc-compliance -c Virtual0; \\\n+\t\t\techo \\\\\\$? > ./build/.test-status; \\\n+\t\t\"\n+\n+\tlocal status=$(cat build/.test-status)\n+\techo \"Test result exit state: $status\"\n+\trm build/.test-status\n+\n+\tif [[ $status != 0 ]] ; then\n+\t\texit $status\n+\tfi\n+}\n+\n+run libcamera_compliance\ndiff --git a/.gitlab-ci/unpackage-libcamera.sh b/.gitlab-ci/unpackage-libcamera.sh\nnew file mode 100755\nindex 0000000..9eb3192\n--- /dev/null\n+++ b/.gitlab-ci/unpackage-libcamera.sh\n@@ -0,0 +1,17 @@\n+#!/bin/bash\n+\n+# SPDX-License-Identifier: GPL-2.0-or-later\n+# SPDX-FileCopyrightText: © 2024 Google Inc.\n+\n+set -e\n+\n+source \"$(dirname \"$0\")/lib.sh\"\n+\n+libcamera_unpackage() {\n+\techo \"Unpackage libcamera binaries\"\n+\n+\ttar -xvf libcamera-${CI_COMMIT_SHA}.tar.xz -C /\n+\tldconfig -v\n+}\n+\n+run libcamera_unpackage\ndiff --git a/gitlab-ci.yml b/gitlab-ci.yml\nindex 205c6ff..701d02f 100644\n--- a/gitlab-ci.yml\n+++ b/gitlab-ci.yml\n@@ -273,7 +273,7 @@ build-package:debug:\n -D b_sanitize=address,undefined\n -D cpp_debugstl=true\n -D force_fallback_for=['gtest']\n- -D pipelines=['auto']\n+ -D pipelines=['auto','virtual']\n -D auto_features=disabled\n -D lc-compliance=enabled\n -D test=false\n@@ -408,3 +408,23 @@ test-unit:\n # artifacts:\n # reports:\n # junit: build/meson-logs/testlog.junit.xml\n+\n+test-lc-compliance:virtual:\n+ extends:\n+ - .fdo.distribution-image@debian\n+ - .libcamera-ci.debian:12\n+ - .libcamera-ci.scripts\n+ stage: test\n+ needs:\n+ - job: build-package:debug\n+ parallel:\n+ matrix:\n+ - ARCH: amd64\n+ tags:\n+ - kvm\n+ script:\n+ - $CI_PROJECT_DIR/.gitlab-ci/unpackage-libcamera.sh\n+ - $CI_PROJECT_DIR/.gitlab-ci/test-lc-compliance.sh\n+ artifacts:\n+ reports:\n+ junit: build/lc-compliance-report.xml\n", "prefixes": [ "libcamera-ci", "RFC", "v3", "4/4" ] }