From patchwork Wed Feb 21 18:05:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Adler X-Patchwork-Id: 1902298 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20230601 header.b=XJwblTs4; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::23b; helo=mail-lj1-x23b.google.com; envelope-from=swupdate+bncbclp7i7wwmhrbgpx3cxamgqeainda7a@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-lj1-x23b.google.com (mail-lj1-x23b.google.com [IPv6:2a00:1450:4864:20::23b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Tg43668K3z23d5 for ; Thu, 22 Feb 2024 05:06:25 +1100 (AEDT) Received: by mail-lj1-x23b.google.com with SMTP id 38308e7fff4ca-2d22ff0aad9sf36976761fa.2 for ; Wed, 21 Feb 2024 10:06:25 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1708538778; cv=pass; d=google.com; s=arc-20160816; b=XoUpbzmYjaKCKvRhPXUeurGUGsZ2K/bXFor0Ab7MWiFDw1YFmIgtvKFJy7vl8u6ice wbBpa7RSvrfMkGgDlWTWiyh6EiMfx+W1LhjttQ0MEH7vx7l6aFUPLphoTcFmQCzIohGu 2u76Aeukn5kdtMASFsdonWUmFoTA0GLpthEmb/OV2JRqjyKaDEiz+M6YK5CtVDlxhHh3 2nmLTZ0VeAch/xHCMYYyqDXncO2FRFhv2hQqlfyKCQinrdywtehjwv81BNFvuoag5cI7 fHxyapPM4WIKPVjFyqIK5Tdz53l3iIqNnUXL489VGEhnngjIY5jaWN9rV1I8QJSPjAZg HjsQ== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version :content-transfer-encoding:message-id:date:subject:cc:to:from :dkim-signature; bh=2nW/pwH6I7c6aZbwB3TstrMAz2Da6SX9vDpyrXMj6VU=; fh=7PbqACBZIi7URyYJVhs61CGPelnlkkR+TPzvOQOojSo=; b=kedEJzLvJ2aVsx6uIUzt+yGe1mf3wSmvmFkxBjoqJqsxHpm2MhctdvzKrQ+yB0FSy4 jhiq+FBGpjq2beaJBMLObAuP4XIkeKtSdhX/cTM487zQrwuW7deRB58oo2UXZoEWIog2 QnmNSjDmlCi4PYhmASZ4AcoTPtZDnguSvSCSxVtnFgujk3vnRViGdyj0QQP/eALZDglN 5LtICvUYcLiz6Mhqh+LJ7HDS1ekIzRvZhOwZsRwcEkvXvwq/J+45BNDh+6aErvHIR6R/ OKH/3RErsQa28875Cj5SVaBxWnaHFk2199Wa2uPTpYVDsNK5AiC4gSHwCgd3IXbEV2ra HIyg==; darn=patchwork.ozlabs.org ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=ZaiWFnT2; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of michael.adler@siemens.com designates 2a01:111:f400:fe1e::60d as permitted sender) smtp.mailfrom=michael.adler@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1708538778; x=1709143578; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :content-transfer-encoding:message-id:date:subject:cc:to:from:from :to:cc:subject:date:message-id:reply-to; bh=2nW/pwH6I7c6aZbwB3TstrMAz2Da6SX9vDpyrXMj6VU=; b=XJwblTs4Kh+xnwna3kjt31zpjUnfoQEak0eriWe/mSV9JhiU9RrncNIPtVoowFqcR3 Bed9JCMV8a70nPJE/PH/3KmEG/oFdxIOexSWmbtnZwkTpfmQyPp/+f9ogbmwtQH3B60O dC1OI+95nTqSOFZL87MVUe2lTMyHAQoEmVk0FxGi+9WBYr6JqyM0OA/vAOV7i7HmPlgm h/+p1OiEEy5n9FrHYREGkozh0EB9TEVwGHfaEfQz2HBwFB7s6pLzIq4fdng//MvsD63D 3ClpvrV0j0NO3Gb6cYZHxEWXZEccMAUt+T0B7PM6qbkbGQ2IR2ER4kKL5xLQmSoGeIOl YSQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708538778; x=1709143578; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :content-transfer-encoding:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2nW/pwH6I7c6aZbwB3TstrMAz2Da6SX9vDpyrXMj6VU=; b=bWMSwfr7haKkcRE78gHLpcIcqh6GKWAWPnbrEBlPQ5umC4B8SlN8t5FEXHG3tkRDK1 u1qZCSWCHJJbikoRxtjF6lwxWXafbRIipoHhVNoldTM6xAyUN7tNewo+6Ygw99323TwL n7vCu6/WintXTgCtstbbPqP5w6SqvTbmZjBGK5DH34/aXs88LUvmvxeiv0WigmrCekGZ J/4xs6b/ROTQl7fYHd6LpVOP8qjJaHHx273ZVNV0Fd+Cki5LQR9ewdqKGTJfoh6O/IzP 7WRS4gZ8TPNO7RxUHYFKASHRYGSBoLK2kPsA4cg1E7zRy0/MjVqF/pVAepXt+GWyLjvb RHMw== X-Forwarded-Encrypted: i=3; AJvYcCVeuPwxkDIlqpLZpab8r/g2kFMdBxlr1Qtvsy0Gd05bJEGPYVpW31Cp1kYsWPeU2JSGVZBL/h0F40Bg5HpVh29GecpXp+QegVaSgIBQDQ== X-Gm-Message-State: AOJu0YxRaN1X6MmimfFZzxB2+qJbWpZoR9NpIxgXYFgAUzHkYHxLGkLa DSu3aClpalN78/ZDcARg0WAwIKJED/l+okqM3cmEiEiCuNrkP0XS X-Google-Smtp-Source: AGHT+IHOrJ/YibW+6TvVd5UEogoCakpu7zDfTdRiRwf39zVCUxPj62ZW2I2VxNTE8QxzSk3hSxA3pQ== X-Received: by 2002:a2e:a716:0:b0:2d2:413a:4063 with SMTP id s22-20020a2ea716000000b002d2413a4063mr5083319lje.43.1708538777946; Wed, 21 Feb 2024 10:06:17 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a2e:a4c5:0:b0:2d2:4480:de0a with SMTP id p5-20020a2ea4c5000000b002d24480de0als360997ljm.1.-pod-prod-04-eu; Wed, 21 Feb 2024 10:06:15 -0800 (PST) X-Received: by 2002:a05:651c:1043:b0:2d2:329f:7a7e with SMTP id x3-20020a05651c104300b002d2329f7a7emr8138975ljm.6.1708538775471; Wed, 21 Feb 2024 10:06:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708538775; cv=pass; d=google.com; s=arc-20160816; b=ZC5/o3U4zdHYKRVroXPA+8jgU8sInPKtjz2cfTWKuvtDWIVmLz6GN3AcjwJR0WXVq0 wlg9hmeCWV5QdVa4WiK12v9E+Zw3Z5osKp3K6UBTmg/zuBkLdoEnedn7t7MWLv2F80/p pIkr8+0jeNxF6ta4wmUhy26bbhMhNVqdN9XeI20tHiziiNiC46Xw13JWevJ/kxwuaVl+ ZP1pIHapMBW2zS2H1g95X/ZrT5XcC+JEB+gyTV5okpW+05vS8Tp9+ll/YMbs7bD+OHp2 Ajoamv4jvJKY+Sc801ca3/uztYL1uiat1P0wUSzm/H9YKgBpsFEfgiWGKhgH9u8sz1l1 j6Dw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-transfer-encoding:message-id:date:subject:cc :to:from:dkim-signature; bh=iG1TiFkDVSca+Fki4rwWp00VD6ynM3aCjuCEv0tMz9U=; fh=GrQWgLgt0quleRr6oESwL+HHFhFuQlBITu5P+WzyrJ0=; b=Byw5wq13K1EJo6VZeKXZcWN4cqZU9zemy+uHWQH2MmfPB0dtaP3RxvrFGaFT0fVE2r Y7XHJlpP03mHIguSjZtTAnHtp3CPYLtIks8toLVgoNspUgEkz976f0Uy54Fv/P+4YxJd 8EewJnJ9iXUKGBENah8vogsnhQEYgunIpw7JodGDivh6XRIko+zoDW/j6xKWiJ8AcIJN Wgy35hh9vwYQAXhdwsl6EVORND1KHJ1Rgbt49YOmzG2MQcmrU/4sdYL4mZ2bjEONVMpE Y0OCKw7EKnQhCszS8veo2D/aB7ee7h7LjuiK71SlMHWVuTnDt4q44N2v5VU/IfKPzn+4 2Gjw==; dara=google.com ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=ZaiWFnT2; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of michael.adler@siemens.com designates 2a01:111:f400:fe1e::60d as permitted sender) smtp.mailfrom=michael.adler@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on060d.outbound.protection.outlook.com. [2a01:111:f400:fe1e::60d]) by gmr-mx.google.com with ESMTPS id l13-20020a05600c4f0d00b004126ebe1087si55292wmq.1.2024.02.21.10.06.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Feb 2024 10:06:15 -0800 (PST) Received-SPF: pass (google.com: domain of michael.adler@siemens.com designates 2a01:111:f400:fe1e::60d as permitted sender) client-ip=2a01:111:f400:fe1e::60d; ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ILpRV0tOiVxtny1bboe2ChrtP5DnxA37AUavKrsuxDYBeHkq2eo1tugixFkJPaj09uPlX7gIOXOsGzCfT3OsuywNDZdvCdcNr1rmH3FvuIl7LDs1pIXrW6wad1ySHhsJ3/FZ97MKUM580P3cLONUkppE56/khj39yeJxGlTFTUzw4QgQYglI0BjdYYXm65NjONLqEyIkWcuIAofcDQSkK4mqClRW+AA09Y2mntrdx5HpsidEls4QTQ23bWiXyZcAwLMSBd5eqPvyE3guS2bWPWj5c6vwwJTYmHIZqLjIHpuEpMch8vE+9Bm0JGWSeypdzFSDRjVmlZZdu7cmpZQHrg== 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=iG1TiFkDVSca+Fki4rwWp00VD6ynM3aCjuCEv0tMz9U=; b=GxG5bLZ29gpxpGDiUo26wqx3M5J8R9uqM5mCbkUEtYm+HRZhCaNTacSwdYWfFqAOIWJHAvbfSKTX7vNuespsnFoY5K5K/2dFacmXPQ5I9f97TfGtMPCqXqE/4TVTw2moLhh83CDqzzsa3ZKQmKGrID42ztXU7Vm3zYRZqjLbHdghh3UNV7Njs0q7Mt9uFFtH4fbFN5MEkYNSuQW6FJnjYl+wPbqruPIeP6vOXQqdguCmh2OMDcQL9UErNSmBEv7I2iFKiU1wQ6QX8sAKSynmplc+zGa5IcicL/sOSoVJ9IGDbqx/fQPNLeJKrf096RjyvcyT4nr8mhvBr4DM773K2A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siemens.com; dmarc=pass action=none header.from=siemens.com; dkim=pass header.d=siemens.com; arc=none Received: from PAXPR10MB4734.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:12e::15) by AS8PR10MB6271.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:560::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.22; Wed, 21 Feb 2024 18:06:13 +0000 Received: from PAXPR10MB4734.EURPRD10.PROD.OUTLOOK.COM ([fe80::7720:2de0:b5f0:63aa]) by PAXPR10MB4734.EURPRD10.PROD.OUTLOOK.COM ([fe80::7720:2de0:b5f0:63aa%7]) with mapi id 15.20.7292.033; Wed, 21 Feb 2024 18:06:13 +0000 X-Patchwork-Original-From: "'Michael Adler' via swupdate" From: Michael Adler To: swupdate@googlegroups.com Cc: Christian Storm , Michael Adler Subject: [swupdate] [PATCH 1/3] suricatta/lua: Update specification Date: Wed, 21 Feb 2024 19:05:29 +0100 Message-ID: <20240221180540.37058-1-michael.adler@siemens.com> X-Mailer: git-send-email 2.43.0 X-ClientProxiedBy: FR3P281CA0179.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a0::16) To PAXPR10MB4734.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:12e::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR10MB4734:EE_|AS8PR10MB6271:EE_ X-MS-Office365-Filtering-Correlation-Id: 1a490c8e-742d-4b0a-1d7c-08dc3307ca95 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0jbxNxgzy8FWfehV6MtEBfj1tUhkDC/cAMzv9IfNHseiJyUvBvqWLK0xdrWTz70zy8D2U74TyZMOt4CWKTTB98weq2BI0lTW5QrKLd6LE7agbwzt/zHDxvc5reh8187626RwQy7EMITUJfRjoqyUnr4530Iwuo6rl/4Rl5R6MByNVp+ciW4lbvWBTL+4jPKuxKFtqJxw1BxbIJUJu1QEdR0eJgYejfRC730RZbZIt+vXYKCPiMkCl6q7YxJ90Fuhh2NCyiyzDFEc/4iuyxG1GftGj8nX5cSobzvH5ADDD/mVoA/DniKVDk/SC1GP6VzkE/HfNtMPtZZVlAdJphoq9puw80LewyUE5hmHMxEhzzZ9c5tnn4YDMMgeCd8AQCAd4cZrxUbWAcHcEhQEB+DAml6gWAWynAx3y+bPXx/kCDXjffpThNbmMf0iWDoW1T0EtALoOxNwph39Nplx2/NTdQLCyX4KMeTFtyENwzVbbepUoTxuostR4ZxF6Gn2FRZvl/RB3dTq3sqChbcN6exMVjZZbIKGkFHg7ElhTcEHF34= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR10MB4734.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230031);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?ytKVlyU+44uKdiZNWRdpAHVbVz6w?= =?utf-8?q?nxWy6ex5sdMUrcl1UJq9pBYNj8Rju9cH/hHrDgCoP3XIl9lUPVH7BPugN5CS8xaBY?= =?utf-8?q?miSRqEVCRPyq8kWNKALBV7mJ5e+2L3zgDkWbWiwx4SomBlTDxwl7zHFRjD/T+1g0v?= =?utf-8?q?wwAYJgd4rivwxtY4pzKs5Kc2yuf7xrw0tWuIG4ac2JBbVxL+fd7dc+VwxvJBNttNZ?= =?utf-8?q?2payxGw7AQOhIpivqwhRwUww3riWXrV7IOfs/kWIb9cGHCyXiz1m0gAlryG8NY7gp?= =?utf-8?q?5FZ3jjECkDnwMmtthe0/N2bxSWRovYcwU29vgYDkzok0z2KsM6frzaH4RBYYTkiu+?= =?utf-8?q?zLD6X7JSPAKguNdmlcgrevb7nHG9x82pObxif7FK8OkQPqKI/vQzdf6DMOI+dMmpH?= =?utf-8?q?uRKuOQJsID/0fLl7J5VholaC1cqJkqi5jI0Y+5I+RZHekQ9hMJZSoh7lJlk9XskxH?= =?utf-8?q?C8hmN8q4egQ8e+yMb47bcIXy8/uSGmDraZxydqLcrtZkmEW8xJxJNBhbgwbqX1Xo9?= =?utf-8?q?G8+tffI4XkE7Ryd45IPGHMuxeus8wHo1FlDbHW+WhLjmBFUEU3LMtbfbNvPeqbuL3?= =?utf-8?q?Eel1mM//OuequfMwA1xchuRf0B2Ho923Arn7waqBQyEyD6J2IcntAecpS6PMnS3Wh?= =?utf-8?q?KowU5jUI7wqc8mDXk3x6iIi6ijnGkXGq6NzG1HyDZvNwBv0WdgUO1R0uQP2QZ/l3d?= =?utf-8?q?VX8my0osj9Kaiwh353BZywriyZ/FG+3f0mIH4qt2RT87TQFbNoI/GuC04U3UjmL4L?= =?utf-8?q?pUT5hCaIyM/kylhHaNhPqwcaVYleL2oobeXbOe0ipXv5z33PcTmnB9PGUeWNpN1SL?= =?utf-8?q?EkmHNPyrH3LlqwJDdzx7tps9R7M9dlGU5D/jXDjZu9uIDv9R9y4wtSgIC9T8a9bsP?= =?utf-8?q?yFl1yZ/wiOB23HzEX9N2WZd6e147L1PFMUQ6Gjh8KJHKPqrSzCXNyxH+LxxFCg/NV?= =?utf-8?q?ATySxnqoXHRsG7HsEK7IS+ZLRYomxPIHnMcknbzwpmVqXtzmdGGDka4OjOmMFqeOH?= =?utf-8?q?FbtUZVdOr6vATk2oLMHAkf0V+YaNpfg4JYwgjmIbOi0/mkUZrVwwyXljoJmFn/MpU?= =?utf-8?q?2XtSGtRaznH6n7jaR9rA5f87/ryqM/IfCQb3HspPFw2tr2YW3WyaVDYgcapwsOeb3?= =?utf-8?q?mAgmvX7/NWuwULeZnixtHPebQlW4UBWcp0AlIBHiyk1jI558+dKCBsUewkoLtzkvg?= =?utf-8?q?BPS/niepMM1dC7/IFYgRhy80TPPNveFxODUxmvEFyvckYtmg0L2VeaunPTnY+TKnf?= =?utf-8?q?2f8bkIz+igetmb/Ea8Jr8rUR6NDZC3FQ+HsP5G7JG2EiIE566YtSGLStC3+qhf9bl?= =?utf-8?q?58osihHbEtCizLAVksAlh+bACgwC1YF6qwNobvgN/+RpDSjtyDSUZDNW7ymMV67y7?= =?utf-8?q?luLD/f9QlFyDuF8FmNut/o3U7PshjyHrhfbYy3EuNoQagtNmxqkAF4VNfWKrzx/VC?= =?utf-8?q?GZZ9ecFY+M1wDibK4Agbu10Vkzg3mBAldpWWRxC5SycnN5as0B1YjxlhLSrorOv6I?= =?utf-8?q?Zv8L9Di3CD5bxBNgRpXLBMtvaN01xb6kLQ=3D=3D?= X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1a490c8e-742d-4b0a-1d7c-08dc3307ca95 X-MS-Exchange-CrossTenant-AuthSource: PAXPR10MB4734.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Feb 2024 18:06:13.7557 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: KqJB9tsnGvfbXmBPf9LbbAF4HJEuM23KfbzOovD3Mtbg2a2cIaRb/nij4QVKPgHYrMg1je1iBxM++AwQ3mUnTFqDRCEbGL9nFFea9qET+nQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR10MB6271 X-Original-Sender: Michael.Adler@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=ZaiWFnT2; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of michael.adler@siemens.com designates 2a01:111:f400:fe1e::60d as permitted sender) smtp.mailfrom=michael.adler@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: Michael Adler Reply-To: Michael Adler Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , From: Christian Storm LuaLS recently implemented stricter inference checks. Adapt the Suricatta Lua Module Interface Specification. Signed-off-by: Christian Storm Signed-off-by: Michael Adler --- suricatta/suricatta.lua | 70 ++++++++++++++++++++--------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/suricatta/suricatta.lua b/suricatta/suricatta.lua index 6a4fa131..303e8639 100644 --- a/suricatta/suricatta.lua +++ b/suricatta/suricatta.lua @@ -77,11 +77,6 @@ suricatta.bootloader = { GRUB = "grub", UBOOT = "uboot", }, - - --- Operations on the currently set bootloader's environment. - -- - --- @class suricatta.bootloader.env - env = {} } --- Get currently set bootloader's name. @@ -95,6 +90,11 @@ suricatta.bootloader.get = function() end --- @return boolean # True if `name` is currently set bootloader, false otherwise suricatta.bootloader.is = function(name) end +--- Operations on the currently set bootloader's environment. +-- +--- @class suricatta.bootloader.env +suricatta.bootloader.env = {} + --- Get value of a bootloader environment variable. -- --- @param variable string Name of the bootloader environment variable to get value for @@ -222,33 +222,33 @@ suricatta.channel = { --- Channel options as in `include/channel_curl.h`. -- --- @class suricatta.channel.options - --- @field url string `CURLOPT_URL` - URL for this transfer - --- @field cached_file string Resume download from cached file at path - --- @field auth string `CURLOPT_USERPWD` - user name and password to use in authentication - --- @field request_body string Data to send to server for `PUT` and `POST` - --- @field iface string `CURLOPT_INTERFACE` - source interface for outgoing traffic - --- @field dry_run boolean `swupdate_request`'s dry_run field as in `include/network_ipc.h` - --- @field cafile string `CURLOPT_CAINFO` - path to Certificate Authority (CA) bundle - --- @field sslkey string `CURLOPT_SSLKEY` - private key file for TLS and SSL client cert - --- @field sslcert string `CURLOPT_SSLCERT` - SSL client certificate - --- @field ciphers string `CURLOPT_SSL_CIPHER_LIST` - ciphers to use for TLS - --- @field proxy string `CURLOPT_PROXY` - proxy to use - --- @field info string `swupdate_request`'s info field as in `include/network_ipc.h` - --- @field auth_token string String appended to Header - --- @field content_type string `Content-Type:` and `Accept:` appended to Header - --- @field retry_sleep number Time to wait prior to retry and resume a download - --- @field method suricatta.channel.method Channel transfer method to use - --- @field retries number Maximal download attempt count - --- @field low_speed_timeout number `CURLOPT_LOW_SPEED_TIME` - low speed limit time period - --- @field connection_timeout number `CURLOPT_CONNECTTIMEOUT` - timeout for the connect phase - --- @field format suricatta.channel.content Content type passed over the channel - --- @field debug boolean Set channel debug logging - --- @field usessl boolean Enable SSL hash sum calculation - --- @field strictssl boolean `CURLOPT_SSL_VERIFYHOST` + `CURLOPT_SSL_VERIFYPEER` - --- @field nocheckanswer boolean Whether the reply is interpreted/logged and tried to be parsed - --- @field nofollow boolean `CURLOPT_FOLLOWLOCATION` - follow HTTP 3xx redirects - --- @field max_download_speed string `CURLOPT_MAX_RECV_SPEED_LARGE` - rate limit data download speed - --- @field headers_to_send table Header to send + --- @field url string | nil `CURLOPT_URL` - URL for this transfer + --- @field cached_file string | nil Resume download from cached file at path + --- @field auth string | nil `CURLOPT_USERPWD` - user name and password to use in authentication + --- @field request_body string | nil Data to send to server for `PUT` and `POST` + --- @field iface string | nil `CURLOPT_INTERFACE` - source interface for outgoing traffic + --- @field dry_run boolean | nil `swupdate_request`'s dry_run field as in `include/network_ipc.h` + --- @field cafile string | nil `CURLOPT_CAINFO` - path to Certificate Authority (CA) bundle + --- @field sslkey string | nil `CURLOPT_SSLKEY` - private key file for TLS and SSL client cert + --- @field sslcert string | nil `CURLOPT_SSLCERT` - SSL client certificate + --- @field ciphers string | nil `CURLOPT_SSL_CIPHER_LIST` - ciphers to use for TLS + --- @field proxy string | nil `CURLOPT_PROXY` - proxy to use + --- @field info string | nil `swupdate_request`'s info field as in `include/network_ipc.h` + --- @field auth_token string | nil String appended to Header + --- @field content_type string | nil `Content-Type:` and `Accept:` appended to Header + --- @field retry_sleep number | nil Time to wait prior to retry and resume a download + --- @field method suricatta.channel.method | nil Channel transfer method to use + --- @field retries number | nil Maximal download attempt count + --- @field low_speed_timeout number | nil `CURLOPT_LOW_SPEED_TIME` - low speed limit time period + --- @field connection_timeout number | nil `CURLOPT_CONNECTTIMEOUT` - timeout for the connect phase + --- @field format suricatta.channel.content | nil Content type passed over the channel + --- @field debug boolean | nil Set channel debug logging + --- @field usessl boolean | nil Enable SSL hash sum calculation + --- @field strictssl boolean | nil `CURLOPT_SSL_VERIFYHOST` + `CURLOPT_SSL_VERIFYPEER` + --- @field nocheckanswer boolean | nil Whether the reply is interpreted/logged and tried to be parsed + --- @field nofollow boolean | nil `CURLOPT_FOLLOWLOCATION` - follow HTTP 3xx redirects + --- @field max_download_speed string | nil `CURLOPT_MAX_RECV_SPEED_LARGE` - rate limit data download speed + --- @field headers_to_send table | nil Header to send options = {}, --- Open a new channel. @@ -267,9 +267,9 @@ suricatta.channel = { -- and specific options to the download / installation operation, e.g., `drain_messages`. -- --- @class suricatta.operation_channel ---- @field channel suricatta.open_channel Channel table as returned by `suricatta.channel.open()` ---- @field drain_messages? boolean Whether to flush all progress messages or only those while in-flight operation (default) ---- @field ∈? suricatta.channel.options Channel options to override for this operation +--- @field channel suricatta.open_channel Channel table as returned by `suricatta.channel.open()` +--- @field drain_messages boolean | nil Whether to flush all progress messages or only those while in-flight operation (default) +--- @field ∈ suricatta.channel.options | nil Channel options to override for this operation --- Install an update artifact from remote server or local file. -- From patchwork Wed Feb 21 18:05:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Adler X-Patchwork-Id: 1902297 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20230601 header.b=mYBn/BIH; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::440; helo=mail-wr1-x440.google.com; envelope-from=swupdate+bncbclp7i7wwmhrbgpx3cxamgqeainda7a@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-wr1-x440.google.com (mail-wr1-x440.google.com [IPv6:2a00:1450:4864:20::440]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Tg4365SlNz20RF for ; Thu, 22 Feb 2024 05:06:25 +1100 (AEDT) Received: by mail-wr1-x440.google.com with SMTP id ffacd0b85a97d-33d39bc6bf4sf20310f8f.0 for ; Wed, 21 Feb 2024 10:06:25 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1708538779; cv=pass; d=google.com; s=arc-20160816; b=lTW4xnNUcRiquYvGf8sWHdOPMqrsKGt6vmMujCGfSRYfL3A/qyxNzBi9gTYhzSX0wi u+ZC1MkGg4DDp+MUVWLVugfdxZNE5YavVeTg4mEkbriyCe/gr6F3SZL9JuaHVeOwM8Rz bsOPWEgoVDRgPC0lttx6K7+EaXEPndpfoRnqWAe7d/fwz3wuBTLyBT5IwSLgi5M9Bm1u JPerCkqEm7+wjkkkKaA0Anp8iE1cRJe3kldj73iEe3dbFtw4TMHM6pD8IYMP6Y6yL2QD m5aEpHVkypV2B7GlSVZvm9T4QRjshkejPRul/sWJv2sXq3yDA7sK+N25baVrGG2z3O9d Gh3w== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=fCPQjDGI0WhHbOnmcuamxy8OwWx0svUpIeZGJarAtgc=; fh=rSHHfHkGhj6M5WpDuutblcmZHNVEhEacXOT7UbCLpPc=; b=vhSftQh3hxkqkRyEh2SjJEXYX+meqzga5n+4yULgvz506J38Mv0Q39cjw4orD9SpnL PZ6FyOF9I2AcDIy8gNTSAxIaJOLLROxjGysdoz1/1vaKgYSpytOhmI3F686gcKKaJp3L +Aq98QCQlDL/5+3Ukr4ds3qebMQadUy2H5UzREr4IZwP/N4fgovLnUoVkaiS3mXQKGLR iBrg/HAAYe0L+4FnI48beN4f18KZp6xxNt5aCyr0rM1yP+17VYMDNUs3CDMhfm8vVRHS CZ2ELzMJo5L3Z5bPIH9FBYmmnDh4eKckBSwyurbL+LOGwrsN4kHihrm6XBCIFJ7dPnnv ftDg==; darn=patchwork.ozlabs.org ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=nm2q23qo; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of michael.adler@siemens.com designates 2a01:111:f400:fe1e::60d as permitted sender) smtp.mailfrom=michael.adler@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1708538779; x=1709143579; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=fCPQjDGI0WhHbOnmcuamxy8OwWx0svUpIeZGJarAtgc=; b=mYBn/BIHm0S+bWlCDjTgKk33PXy0uZXvzo7eAG6ETZElpuVbuutTAOaEtCpr4pdUHQ 2o5FFNNbMRVpLNCkrcACbgo1+kjdLkBqBYpvTAjuetR7HrDEed5zPYkULN0E+M/fZWRg 106jyHRr1onmGHhKxa3Xg1sNqwDKC9k0Us88bOy7kQIEntQDdNXbk2VR4aM0ontz5z3c NO9eRHqm80w3nt2cRyu7ccVaIIibdlzvllqu8ygKbc9Ornp3MbdXYFCUcM34cAdants8 hA3c0dR2/PpZmnJMMsYjJTi2j5jQe6/WaLaEX2cl3cBDUga49GBKgMCgwj68UBhEw0tt dj/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708538779; x=1709143579; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fCPQjDGI0WhHbOnmcuamxy8OwWx0svUpIeZGJarAtgc=; b=qaMe/7YYxIAfKWkx4nM5lltbxUsUIOUKce2uFm8tYgEpKI66usr6PByD43FibmIh+w 5LDKjbVx1UNEcKPXhw7Ar35hVOv+IXn5jgA6q+s3jF4cHZxE+ZX73ndCB/pJv1pJ1oZ6 W/JVDrRAUfBtXPPfVbcSXBcFzsn9FvgEkZ8ZVeuC82fws7//9skBk7tvoukBJn4anwDL +GpIZ4eJ2D0YxGeq2MSezcskmXrssTmZU7Y0d8Nm9m+m3MG/brwEnalRiceAaElVjSbA i3fBAPb5IG00enXmHRH4DaP1pX0xPJ4K0+JXyErHdBc+FtQ5xgTa37ziSWepCrhqdWEl xz0Q== X-Forwarded-Encrypted: i=3; AJvYcCW4I83GMpyqu6ESlAd/VlPiz4JTYT4QE2fBVvrB6KocFfJgygrAxh7DVjNQLjYei4VaIT9MfHmgwoEKTaK0NVbUrAtvIoxv9Ycgqh0OCw== X-Gm-Message-State: AOJu0YwxAjNJ5+YnisIkeS/Bi6rzbtyO50wHRwLIUTQt4UNeE5cL1okO 7fsQjzzQl4Ue+V1lEw7awZDz+bZM0w1DYBPEmSOON6QpsDgeRrlx X-Google-Smtp-Source: AGHT+IG1zocPys4kwLVUbCSS+FC7EmrfG4twdOZy+bDQJ+bfz3kfu/4fHIVyD+obc6GBjqf98bI+iA== X-Received: by 2002:a5d:4707:0:b0:33c:e728:c88b with SMTP id y7-20020a5d4707000000b0033ce728c88bmr206893wrq.24.1708538778012; Wed, 21 Feb 2024 10:06:18 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:600c:3d87:b0:412:7db0:4a6 with SMTP id bi7-20020a05600c3d8700b004127db004a6ls3959wmb.1.-pod-prod-00-eu; Wed, 21 Feb 2024 10:06:16 -0800 (PST) X-Received: by 2002:a05:600c:1c9b:b0:412:6de4:cbe1 with SMTP id k27-20020a05600c1c9b00b004126de4cbe1mr222637wms.15.1708538775958; Wed, 21 Feb 2024 10:06:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708538775; cv=pass; d=google.com; s=arc-20160816; b=jfLol7FyrxbSk/3EmmFAC3ansfmfmyJ07c8ul9ojSTSVTWD6sVWrGAkJZ3qWl+MlHC 12eXxgssM6Tge5UaLfgmnSvMbI5j9InDI30ipQQ8PivsB8/scGScS/JZCfx2TUOUDlIF of41otlFbAR13/DpXlNxdrlZbzRG+jQlwwbapJTz0UUYmmtE6H38IATSdlkqtsM5s0OM BtzQ3ppBDVLVJXJWJBwgR6wjbPeu/93nxcu2mVaHXy9nd1zAS4umvDcHKxCU/v2oz15n qduWqnRQkDmHFAopSbO+vy/PzZyDgFCDTCfo5TphlWGeJ5K0KwgPUdJrwNi34LtWlisL FUiw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-transfer-encoding:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=THoSkBEPjtLMpHvIF37w26XzQfu5eNMSAbHtefeqqJk=; fh=GrQWgLgt0quleRr6oESwL+HHFhFuQlBITu5P+WzyrJ0=; b=e41ZwpgvWY7Fjb5gpx1Hkr7iqISv1j/Aw50164UbKPUUBjr/FrXK7veIXSIbQM2Sw8 JQ1zfCg7vmgA+B/4btzAEjuVZkdQ/dtuLkOgKR/E0wnvEBwXOvDt86L1G7HcWxWU1Pru rNIxzXVTb9Hu9MmdkSTSgbxskyX8bfIpWv2FawDWNBOQ9Qc3DiGe3143sBXT8qrjJlN1 GbJp+YtWwkNKNf5A9IkPu4ip+pMGiN+Mq4VZTjdf1J+yGVyPueMQUBgLCsvzIzlAcqIl 06b+2P2bf8RvX7mmcEV/1mtbXQdWMQAt4Fovi4lVPOoECu9UmSTRcZHzO64+wABd2YUs vXUA==; dara=google.com ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=nm2q23qo; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of michael.adler@siemens.com designates 2a01:111:f400:fe1e::60d as permitted sender) smtp.mailfrom=michael.adler@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on060d.outbound.protection.outlook.com. [2a01:111:f400:fe1e::60d]) by gmr-mx.google.com with ESMTPS id l13-20020a05600c4f0d00b004126ebe1087si55292wmq.1.2024.02.21.10.06.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Feb 2024 10:06:15 -0800 (PST) Received-SPF: pass (google.com: domain of michael.adler@siemens.com designates 2a01:111:f400:fe1e::60d as permitted sender) client-ip=2a01:111:f400:fe1e::60d; ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bRBpQiBwoqjNlkRCtbkmtWWQ29UMRTePIudSsSDDoZAmhtVS3HAZ7U7LG7XHhFCHyKlSZhlGuyC3UOQlnt7OGWvgWi2XWYKbTa+ihBOy2gdyZLVKriEPmjVIsif3jwGsvh7va5+WtO0M6HiMygRxRwtEZZdxnqM8cmoQg4fPi/CnFrPY7Aj8c63v+6Gk+g0NtUqR9Y4120NpJ/Xp/Rto9IoAuTg/FBoD1Az82ESw8zHVoNt0lodIBvCqnKIYUnmsyTNj/Vl0K3Un3F90/FosSvAOdZOGBc6uAXMhmh1gMvpywoVnLgFz/MtO5FPmFk2MVUhR4aTj6Ug7HrwLsqGK7A== 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=THoSkBEPjtLMpHvIF37w26XzQfu5eNMSAbHtefeqqJk=; b=dFvRRa3qsab2gVAdNfrfFXa6xspzumKxMTE/0N3U5bSBqAiYQSjuN+xR/d51ZG2whOzoJLC9y4MX6A2FnXPBUYa3YMMwv5WtMCNukC3g20c2EF0Bpghuy25hFu9oeJ7SIpS/LwrAO7Zsj6Tg9111w3ayOu9w//l/pCL08KHpLVifTLMWZr+oEt1hQ4/r9e/JcmJZBx1gCyZZwvo4WSpjLW79JdhgWjSH6jI2USqYBJOi92Xdkgp+1XJOgy8Ov9bts30/YhY0eQBFB5u5CdF+6/eRN/6vkffcIJqpoqDcjcaAGmoB1fkiWmBLstkCionVuTpFdLoUDKXenQN8niIIxA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siemens.com; dmarc=pass action=none header.from=siemens.com; dkim=pass header.d=siemens.com; arc=none Received: from PAXPR10MB4734.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:12e::15) by AS8PR10MB6271.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:560::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.22; Wed, 21 Feb 2024 18:06:14 +0000 Received: from PAXPR10MB4734.EURPRD10.PROD.OUTLOOK.COM ([fe80::7720:2de0:b5f0:63aa]) by PAXPR10MB4734.EURPRD10.PROD.OUTLOOK.COM ([fe80::7720:2de0:b5f0:63aa%7]) with mapi id 15.20.7292.033; Wed, 21 Feb 2024 18:06:14 +0000 X-Patchwork-Original-From: "'Michael Adler' via swupdate" From: Michael Adler To: swupdate@googlegroups.com Cc: Christian Storm , Michael Adler Subject: [swupdate] [PATCH 2/3] suricatta/wfx: Adapt to updated specification Date: Wed, 21 Feb 2024 19:05:30 +0100 Message-ID: <20240221180540.37058-2-michael.adler@siemens.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240221180540.37058-1-michael.adler@siemens.com> References: <20240221180540.37058-1-michael.adler@siemens.com> X-ClientProxiedBy: FR0P281CA0154.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:b3::11) To PAXPR10MB4734.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:12e::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR10MB4734:EE_|AS8PR10MB6271:EE_ X-MS-Office365-Filtering-Correlation-Id: 21f67d41-bfb2-41c2-46f0-08dc3307cb10 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Mlvu3b/kWhI1yaFIcK+yEarzth9TmZpdsxgdiNLx/VmImnrWw6R2lu51No31671Ro93ydd2Kw5AhIvLSXzcyAvWal0VxN3o6RldyQamxU5CZmv4Y87bNntNcslfk6wNJH2iVQohsuYjxb7v3gTKjRRhRsM0soRQ9eF/tNSTNhkjzPnlOo3zyNrASC18LEhcNm2IJEJKPEKfOd3Pqye1Q4dkbH0KJ3JIjlVyq2UhSrHSprZXY51hMj7G8jfdwL+fkgVg8I9yUGwjAaofvktQD8c16CiPTBX3Jyds1JsbiQdLqWruMMn0RB/lUWP1hcAyIzeeze4LynHoA+eCz61WKAp9j7L9UeR5bnIqJHaRGPKjtePAYAK/rF1fNSUK9tbdEYekiD1tot/hNoj8yFD/osBnAYQsiO1kAU7KCD2Ke1aMO6HAmxKW7kjzVMwxtsLkHIoTRoxNRp0oU17uUVZJEM+1qXEc0kI468aFc8HtxwDMXweH54hSeulY8r6Cw68H3RT2fNdiG4rRsduxZxg66o0oVnqbJ75CVjtT26ZZXerw= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR10MB4734.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230031);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: B/NkUie1lwdXee4TkeWyBmZTXPuQ/rolfAhCh5tUcZ9VJR5O9peIYk6NPbHGwrffgSB281lk2YIaVS0odhQl9fN/EPf3J7hhzq9aAIar97h8D6EhkLFJDHcdECIL+EzaekfmJEv8lsX45KskTs4D2w3yJA1tJOVJiaoa7ECNXF6It2WAoDNhEqIbHl8Lewz+2Np5c55sbyckC8ZBNz+SxHtFui1CuRKUmwWWTOzC84asmtoQXnPCHJSz3n6o4J/k85ZyBsKIqyI1IU//cUF4AdCLoD4gJDj55/cY41KpuQIU3L2FPhwDDeuCYHXz8/x7cGMnp/jOseZIDA5VW/Ss4GgPbtvlnPKY5mnlzkxkuW2RQFbbuTjfUsh/Cxwnp0j1j13lZElJts2QQ2ZUavTDBDmeuSjdsTQTcOcAA4rSOMM5MFAAmUkYgd6GyhGqKmp/s5IAjOYKTBOySso6YGP5NsKzFZkqeZQ67c7X2Ys07PQRIiHz1tOanefQCLPlDb/I5EmrGz/zIDWogcWm4SA+Gew/sjeySuSzDI7ag7auFWbfLCZbrdwTMWggTT9xIkRxTaGPAmaHvuhNXgTB/ADUWehwckz+7yilfcyqEGN3b7ron2EWV+Ab9zypldNWG3GzoK7NPrOkScmregvbQTKfQt3r+kzsmikZDln7+oFLRt+M7DDUvxje29zp6HHRkqeBUVq9kQAMTV6c5ZHyHXHPh6QTFA6/OEPqJUSn84bT0qMW9dizWyydFDDRNTAnwuRsV/EJOEg/0eNQ8g7dahg/2tNhuxDosREa8Bdfk4BNIvEoU+rb2Bh1slLjWVBcEM8/j7WlKgO72T+n9Pp//4bEq2xjOBesZ0Q8GY2zGM1Pz6J/AzD4fQ9EGc4Iw6/zauK8dFWhEqrvkmeRt7byE97B8AVrBhe/cYSFs0t8/K9b9UsPLLeN83L2FHvR3Mx1iNb0GNnzSgxJPIKlaA+/AOTKfCcyTDci620DxuNRK9qN1fWK443Wkyuk7tnh5P5Q7kxwFq4poyHpCpeAgj1j0OLlHnzulvKrdCz06HaugCjuDPNcDPfZ1YIbY9lfS8Cj+UguPwIk8A0ftC57GLiebC2sF4yGO0/shWGVpS8jz7ER7Y8M3xUoQFpRo93SbzrvfJM7vBZ92wKJsINTrYJMJnac5o+ZNu0GHODvBy7aC7mxYEhViIz+ps71itWTu1PU4+qiwC7QWICm0UYUftD4N+m2Vj7W27lTnapp8oS+D6zkeWHFvPioC8LMrU5gMktDDiNxZsgBrQ38rtjt5GGri/Z33qwbcL4jaq1nuSFbjh05XTJqwTWGt37XTBTNvKfi3P69+5RND1BRI9QVdAK/pfuCDiJAERwu71SrUPOLZSD/yRzaPE1FqMTNjaGeOOI2ofCbOJPQZFBxAtiNhBvXbjOczuQU0g5w5GRDx/ghjx2sVgqGEw4ycRGjJk+nNvXj8/eLDdTX2pKgAShnLiO3sZMtPNuDohyn8Zzpw8vN/uHz1GqWPWdiKOfgN1L/0qioFA/wRTeMo3V1x4KkV6ZX2tA1/AC0sfqoOeaTXgN5ucBVX6KGu9bwSkByTX87EVq+Zvj5PAHhc8RfBbp+98CyXUoAtA== X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-Network-Message-Id: 21f67d41-bfb2-41c2-46f0-08dc3307cb10 X-MS-Exchange-CrossTenant-AuthSource: PAXPR10MB4734.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Feb 2024 18:06:14.5165 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 4BBviZ9FMEuYGlljgPEJF2LtAv+A2J9K8WURqwhqsDYhMXrcGbeS24RbD42lVqHYr1Cg+aICW0epPGNH/kK+ncni+0q668b52B9y/5VvUQ8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR10MB6271 X-Original-Sender: Michael.Adler@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=nm2q23qo; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of michael.adler@siemens.com designates 2a01:111:f400:fe1e::60d as permitted sender) smtp.mailfrom=michael.adler@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: Michael Adler Reply-To: Michael Adler Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , From: Christian Storm Adapt to Suricatta Lua Module Interface Specification updates due to LuaLS's recently implemented stricter inference checks. While at it, also clarify some comments and add a missed `local` keyword. Signed-off-by: Christian Storm Signed-off-by: Michael Adler --- suricatta/server_wfx.lua | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/suricatta/server_wfx.lua b/suricatta/server_wfx.lua index 2bd7478d..c3ad4c9c 100644 --- a/suricatta/server_wfx.lua +++ b/suricatta/server_wfx.lua @@ -463,7 +463,7 @@ M.transition = { --- @field mtime string Date and time (ISO8601) when the job was last modified --- @field stime string Date and time (ISO8601) when the job was created --- @field status job.status Job Status Information ---- @field tags string[] Job tags +--- @field tags string[] Job tags (unused) --- @field workflow job.workflow Job's Workflow M.job = setmetatable({}, { --- @param self job This job instance @@ -648,8 +648,8 @@ function M.job.status:set(status) end --- @class retry_settings ---- @field retries number Number of (re-)tries ---- @field retry_sleep number Number of seconds between retries +--- @field retries number | nil Number of (re-)tries +--- @field retry_sleep number | nil Number of seconds between retries --- Send job status information and update job with response. -- @@ -660,8 +660,9 @@ end --- @return boolean # `true` if job status information sent, `false` on error function M.job.status:send(chan, retry) chan = chan or M.channel.main - local retries = (retry or {}).retries or chan.options.retries - local retry_sleep = (retry or {}).retry_sleep or chan.options.retry_sleep + -- Last resort defaults as in `include/channel.h` + local retries = (retry or {}).retries or chan.options.retries or 5 + local retry_sleep = (retry or {}).retry_sleep or chan.options.retry_sleep or 5 local msg = tostring(self) return M.utils.do_retry(retries, retry_sleep, function() local res, _, data = chan.put { @@ -733,15 +734,15 @@ M.job.workflow = { --- @field description string Description of the transition --- @field eligible transition.eligibles Actor that may execute the transition --- @field execute dispatch_fn Transition execution function - - --- Transition execution function Dispatch. - -- - -- Table holding transition execution functions and their access functions. - -- - --- @class job.workflow.dispatch - dispatch = {}, } +--- Transition execution function Dispatch. +-- +-- Table holding transition execution functions and their access functions. +-- +--- @class job.workflow.dispatch +M.job.workflow.dispatch = {} + --- Get a transition execution function. -- --- @param from string Source state name @@ -1112,7 +1113,7 @@ function M.job.definition:update(chan) end) end ---- Augment job Definition with meta functionality. +--- Prepare and Check Job definition. -- --- @return boolean # `true` if preparation succeeded, `false` otherwise function M.job.definition:prepare() @@ -1196,6 +1197,7 @@ local function sync_job_status(status) local transition = status[1] local job = status[2] return job.status + ---@diagnostic disable-next-line: missing-fields :set({ state = status.state or transition.to.name, message = status.message or "", @@ -2124,7 +2126,7 @@ function M.suricatta_funcs.server_start(defaults, argv, fconfig) local url = ("%s/swagger.json"):format(M.channel.main.options.url) suricatta.notify.debug("Suricatta querying %q", url) repeat - res, _, data = M.channel.main.get { url = url } + local res, _, data = M.channel.main.get { url = url } if not res then suricatta.notify.warn( "Got HTTP error code %d, sleeping %d seconds ...", From patchwork Wed Feb 21 18:05:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Adler X-Patchwork-Id: 1902296 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20230601 header.b=QKlXKiqa; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::13c; helo=mail-lf1-x13c.google.com; envelope-from=swupdate+bncbclp7i7wwmhrbgxx3cxamgqenfsu3ta@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-lf1-x13c.google.com (mail-lf1-x13c.google.com [IPv6:2a00:1450:4864:20::13c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Tg4365g2mz23d4 for ; Thu, 22 Feb 2024 05:06:25 +1100 (AEDT) Received: by mail-lf1-x13c.google.com with SMTP id 2adb3069b0e04-512a4abdb3fsf4838964e87.3 for ; Wed, 21 Feb 2024 10:06:25 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1708538780; cv=pass; d=google.com; s=arc-20160816; b=LoVPRtMlx6sG70aed+8/LnX59BBmy+juyZYNQn+bwYmM5JZIfzvc7rOtdxHr2pdLbS W0xztAo1l//MMnNfm6ISEXS7ecyOehhwHBVLp/Uiy00wiAxUc8BCVOZnr1wSDGNqQiKT alUhJq+T6EsDnKUMds1ydG91ZKqEImcaK2sM4/49+FXFmLQPnDcaxmuMmzrLHWgnsRP8 pt2SOUW/Nrk0sYTZKU1OT6Q+jZVa5EST9aIpzkMtQWhXuM9pwE5I9PYsqwv/5X4832K4 HE/AOY2Tp3NQLjxU4axZi7gaEsbqo8Cr0jGAK/TIKWXXBkPCNwJIwekpWfdBRIzo5XBq 44Eg== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=TDEnpdEemmJMCuIfgzYYgWL1GbdHO9Z9PX7WxmQifWg=; fh=4F9t0NprqwztSqus+U2ZQOGF+KoWkLV85+IdLUwcOaQ=; b=JZ5XbaRqgnQF7tW9uxhlaaRA6a0vid8CgZdITnlaA7UD2Ca6cbLPeZH0uE+yhW29AZ 9gZ/W8JDL6RHkakEWniRWueq4B9fW5S74l5lfnTWfF7UsUwFspms68wFWBF4zrMPdq4t SKB5Cvmi/7yTc6AIvdeC2U/esccIxNBhoSdwOpFXd4s0lei8zqzAAoItl4PyBwB9+iHF ZacVw3lqgn0oINsNbgcGwxlFiFQkEE1A+CV0U1uDTUFexdqQXuG416abhE9CLF0U21/x NAmhL2Y4DdcYcun3y7aut/NJBFn3YttqUyPfGjwVX+4xNIr64zzE358FMZMD3F1HOacn 3UzA==; darn=patchwork.ozlabs.org ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=gjp7m2ay; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of michael.adler@siemens.com designates 2a01:111:f400:fe1e::614 as permitted sender) smtp.mailfrom=michael.adler@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1708538780; x=1709143580; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=TDEnpdEemmJMCuIfgzYYgWL1GbdHO9Z9PX7WxmQifWg=; b=QKlXKiqac21qNTiXXBrl5xOIHIk5BK4sbRP1f+Iu85D/Jy6U/Lik9iHhIrWPrMZMhc rDxvT6sG85pW1RQRFLm7c1VRYdI15LgAiaUZPFd5HuqYUkIZLYPmilkkCeKvEy1FJ7pe OblKO0N+jgDBLsRi2G4IVeAfkn+xJajv69j7MpQmrrUlnMcQ+o7bWs4zJ1ROUrFe/NTL E3kpr6/xVfmF9F60OZExGkrzeV+fKF0+P4j8B8YkT96NyikGV3DAJhCQtfke9KYUD2Gt Xjp7LhOBetiVYb7JVPJ6YxnaJOHUGSj/p1tOUxLralyx7nqj4MRjNLvmLTn42/S/aral 2iZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708538780; x=1709143580; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TDEnpdEemmJMCuIfgzYYgWL1GbdHO9Z9PX7WxmQifWg=; b=b237gQ5rmohAwrvGqIbu4k8GoU8r3rVSb5ZeFwKy/e+P0AEMhpsw4jWKdkvgB5N69y R/QjQBWUASgtoSPl5Tcd4Bxe+LVUqWnz8ACnGMeMaHzfAtlkSU8DBQUDpfpGV6oG1P+n SIm62rFtvFI2qhU5jZkV0T5y6u7+vkik6kU2VzCP/AIzl5WRm88gp1nhCPqVQEPFnTjZ 5vcr3hS2cFhF3FDTYAPfm4e8vakfGSvl+d6yMz9UHqpVCR+PNM1q475Vxq59o4aXvJEx yMfsLI4dvcvtGQ0hjB7WIVHXcOdKEgecMBXsX6pccFicmaL4smF73qNFPrW/EEC+cqH8 KMQQ== X-Forwarded-Encrypted: i=3; AJvYcCW6lPAhS/Fn9RtN6us6QbgM3tiX3xYtex6B5WlTe58j6bllmiHxJoLYSnuGbCxvNK1ifzsW5U7zyjNgyVEePALQVv/9dULyxn694y+GFw== X-Gm-Message-State: AOJu0Yz0SNbAm3STmsiciklX30oZdKSWxzGkmrSpOB5rNLvPkJwZjgIA QyDtVyYLyfTQ4gv/DH51md75zeZUFl+HVk30ovyY0U8TJVg7Rce+ X-Google-Smtp-Source: AGHT+IFOSHfoQgNVZVkgCGoY1UGLuWL+CFAjsqy8BdjlTqp1o0Kk7sRy0PaeX/ZmNdiyL5gbBmEtGQ== X-Received: by 2002:a05:6512:33cf:b0:512:a3d8:5d2a with SMTP id d15-20020a05651233cf00b00512a3d85d2amr12426987lfg.32.1708538779469; Wed, 21 Feb 2024 10:06:19 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:6512:280c:b0:512:aa25:9c52 with SMTP id cf12-20020a056512280c00b00512aa259c52ls1079729lfb.0.-pod-prod-01-eu; Wed, 21 Feb 2024 10:06:17 -0800 (PST) X-Received: by 2002:a05:651c:509:b0:2d2:2ce1:1196 with SMTP id o9-20020a05651c050900b002d22ce11196mr13355544ljp.53.1708538777052; Wed, 21 Feb 2024 10:06:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708538777; cv=pass; d=google.com; s=arc-20160816; b=VA9x4XFm8kT/sRNfiyaDo112wx5miZmRKddjXec97wNAN1ZA7ymw3kAt9uyfd3nSDP tgUgmsMsKqXfI1pHqRiSocttb940bmcjnMvwEknM58PfAXWiUuHIKvKVsjwOqsAs2bRh uA58tVQiXm7PWXYUXmt0XfwjvOPKf70OfWTptdCxPn1BIc8wn96mD4zhCnvp/IvGa76S T/uAc9SB/Bffiw1Y2LpCaLAWLYiFmZOBatWKyWwejJKB6iAFGjREBRWfuNsyWkpR2erC zUHzGYprMyBpyBVw8G2/txg/dmP6G3+spZ5/Q+AYPsjt8otDCxbA1AqCRcFNPDUVvyFe wTNQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-transfer-encoding:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=AI+E+i/jWqN4UK8UtwN9Ecdjb6Jw4ih7C4qDm3kIuOo=; fh=GrQWgLgt0quleRr6oESwL+HHFhFuQlBITu5P+WzyrJ0=; b=Yvh9WrqUU/SJ0JfYsEVWI4Zlh783ecwz6NKcDUeT+0WU/mXYAdv9xRtcS6+xEYKYsX e2KbB22Owc5YM+iBqS5HV+A7DxqN/s5Tg2hnEC9GTg5oh1Px5jQNdfaV7s/HCFHbF2YJ ytu//mUCt8fSHvqNTToKpWa+lebm5jPh7fxnb9SjtvbWCpvcX3/qiE+zTR9P5/cpZKFW 47F/RdMPd2nnWuQohrz8yb1/Y3Vzw94de0rEiWELt0BVjby4hAYGvRdDnm/aA9D1yPPO 2GvbvltbjEpohMnhs4QduSS6arsVKMjGbPj9Q0xchtXNwaAgov9iCdT1SEGdbBnu8ruH 5ggw==; dara=google.com ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=gjp7m2ay; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of michael.adler@siemens.com designates 2a01:111:f400:fe1e::614 as permitted sender) smtp.mailfrom=michael.adler@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0614.outbound.protection.outlook.com. [2a01:111:f400:fe1e::614]) by gmr-mx.google.com with ESMTPS id m26-20020a05600c3b1a00b004127b4d36f1si4258wms.0.2024.02.21.10.06.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Feb 2024 10:06:16 -0800 (PST) Received-SPF: pass (google.com: domain of michael.adler@siemens.com designates 2a01:111:f400:fe1e::614 as permitted sender) client-ip=2a01:111:f400:fe1e::614; ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SCWQnlgVU3a1Rp7f5bXGT+KCPJQh9AyPKHz09dbOexCSHVnco4vFlkok5P+Xaib/zvQ3hSXykcgUomLEpOM4OzzMWFjFS373jsGP7c9Cy8rE2t4G/3Q9IJmNCMr7wOK1OXMXpOLrdeZA32L9+HdEQGADAMqCYMqIfbVOuSrYxaQLRUazD2ffWyFZLJkuq1x7BQnfypefNdyecxK5DaaKrKQVyAw0BRem9QOTOhyDnKjw2wxTNfkaSuPFRsIL+WIFKg0QGuJjhcou78dTbjAmkKjke3kv9RoyJ+1dHnejwPZXDetrlxWJItvsS+1NeqL0HqbTEs1ej6jioCtIrCSNsA== 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=AI+E+i/jWqN4UK8UtwN9Ecdjb6Jw4ih7C4qDm3kIuOo=; b=Z5AJglgiZPGjPIpAdv7vjVqAibH6qY8LWej/zTKLaiMKxLb1GmKvUO4/tv8Aek535OgL1nhWwYNUL3yVzEI5cH4Z4QfKptgZhz8qRO0X3CqqJWydHuxpzND287RFLyO3V1+NShp0hYqNPe2x1uFN8uR3ZNHOgCAjFdkosFQJDmI8Rc7idU9VRWbJjOEvYXYA1bQN+xwC2XKCnURO3nLRpCKcvPHHqdAFNRFSsJkdMwdlFuxCLO1O4wV8jDWv0LQ1KTFDWaZDSb+CUftlr3ta2pucFFYgJGwbgo4+o2k2TPR1Z7rZcRSMR8YOnU3KQd4Hy5yTzDYkxD1xIgwItckW3A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siemens.com; dmarc=pass action=none header.from=siemens.com; dkim=pass header.d=siemens.com; arc=none Received: from PAXPR10MB4734.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:12e::15) by AS8PR10MB6271.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:560::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.22; Wed, 21 Feb 2024 18:06:15 +0000 Received: from PAXPR10MB4734.EURPRD10.PROD.OUTLOOK.COM ([fe80::7720:2de0:b5f0:63aa]) by PAXPR10MB4734.EURPRD10.PROD.OUTLOOK.COM ([fe80::7720:2de0:b5f0:63aa%7]) with mapi id 15.20.7292.033; Wed, 21 Feb 2024 18:06:15 +0000 X-Patchwork-Original-From: "'Michael Adler' via swupdate" From: Michael Adler To: swupdate@googlegroups.com Cc: Christian Storm , Michael Adler Subject: [swupdate] [PATCH 3/3] suricatta/lua: Adapt General HTTP Server to updated specification Date: Wed, 21 Feb 2024 19:05:31 +0100 Message-ID: <20240221180540.37058-3-michael.adler@siemens.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240221180540.37058-1-michael.adler@siemens.com> References: <20240221180540.37058-1-michael.adler@siemens.com> X-ClientProxiedBy: FR3P281CA0187.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a4::15) To PAXPR10MB4734.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:12e::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR10MB4734:EE_|AS8PR10MB6271:EE_ X-MS-Office365-Filtering-Correlation-Id: 7f050492-71e1-45b8-d0d6-08dc3307cb99 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SnPaVo9Z3L1S2co4+tyD2mFXCBbxQ+Plg6WG1wNVbjkXeBUyNnCr4QwlYUQNUiqr14pRNX6FzvEIjgpKhP/9z/BCbAJZNlXWRZHV85EWP412yeflOjiQWwvftbbbmFzXmTpe9j/7ysz7xLIyFOF+bb/SkfnVVYfcZY0rsj/DzagJWaPyM/q6Y1fdVFhnDfiwGZtQwVvfe1DOAHPoSJZvsnJ48uPUfJCJy6EFMVHFt1dKx24ICDf2qlj6kp5Tj5k2WDsPY3dAngDaR48zxk4HVMX6JvtgN45J4GVLtIRYo3omRT3cNCd9KMsbKXtBnt8GiGjP3Sxh+vBs57NVeZ3Rw6NPZbPAcy3I1RfCubOSrtWQ9jKf29a1p7K+QSOYhjU98WakfP6ZjdTARxTVc1JuBbYD+aVfCbCyDOD4lfZvUdhVuspzM4UDbtr4Vdvh13i3V2ycR/+MuIVHRZc7hwcKZU9omLV31i7mrc8L2mjJhbsJltHLvsyFxjaupJeGuUODzpG3LuwY7U3jwKfmpoCKsDEKpXlhBMueJzBiQPr0uCk= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR10MB4734.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230031);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: VsJkGRr00j+oz7Ep6p963/AxhwW1XwpDvZkBx7Jkevm30omW1UH/fesUj/fpXVnPLoHr/5Rah8UtSA+30dfx7pZzGivaNbpgV2n8f/GDCHrzyU+4Y4eeV+rVZd+VNr+/r7D4mcDI2DP6ArgFlsQtoKZJHhIUVuOpnJb3c9HrW/1jQyVYb6NR/4dbnLE5kGpqhHPfN3lavMZxIGPk8ClEmEYqlQ4xrfP1QHMDbCF66HAfeNShLjlHhLW8oCATaeXpZVzWZfX6QM6W9CtddKHPkTKod4V7+pBQz9U2b3WBCUgqt7jI3cL3+CJz/Eu30lZ6PtFPJaCdytCgn8g7PaJcjR8LYhWFRBFAFhCRqTbEDL/tRVjlsDzYJZVv4VL36085bln5YuTiNIBZYIQDr7iUxck0ppT60gZPdgoFF5PqAC5PEyyxGmyShNG8nFHfzEsMbf31mjOdl4zsePc8VuXM9uzAgDWD14XaSO036atKshpYOpsMY8ds5jONCKtK9LGUuAIn7ZXvLiLpfNEa+frb7ke4YbYIq3WwSYuBlOGbRWDW2IYhe/s+nXw7ZjzFpSiiC0vLbTM4gVnWLV/wzkJ4+bd+xLdzf7lUTsIS6lwDemnvggdDXGqBg3lIuwrSD+IFRbzCASSTmf5lxEjV8dsAyqJpwAaB17QeZPaXjG/KBpkiRF1ivo+It4c9MwM4qcHN0tidZzJJL2QRSVZotyhhbk8c9UXHfB6drisxnNUXLFtoUqSZL6uOmgv7JQEmI4CpgKPYxEici+E5noOROpvJPrqbYdoQjKu0d4hv9RmHAb9IMvRi10uZdAJNLQtKaVIWuIPRKh5VZ2r+XcPxOiHcRU7cP8ptGVA77ibW/2ya7KWkTlLJklaTpmNwDbgoUc++4i9Hw0vvnRKoONRyWgWC4SOuGGQ6VEYejWN3DZftrG1Tv+v3e/VSWKSTsRB9RbvFlGbqW+j/2YSgipPOCN5uuDhU8/Duoaq1zdO3RxI89u1aVCp6JSaMLYcnioRjLGHx3i7PfDqU5dzbFHzWMOg9agMrX4xFJmjBJ0rwZdnG+LPK5ybznRky2ea79yceWIiJcy0+8W5tIllxnZXlKi+71j2zE9lJA0F3YvnGN6XxcWXLv7fLyD3S2XPoUbMoDDFe7HpM7M4joiHUQLwGEHpPtDxnXd4qm0+qQobjur+j02OY6SIiA39UnXpAVMrjobstT2VeJR9CqmhsZyl1oBMME8e64WwlLdbmbWRbDjoTRcJTVZT5YLvl9KHCVDmAyanJFqc8rDyQ40MEkep8nq+GGXf8Tga+zk6Fn+6LZKnu6WlAYyQ3epsdyNrTpzLkaA7PGTP3PH+OkRr9Uj2frGP7CfK/AXtiKE4yO14FSiAWak+8PVlnr3C06pRLM719cKqn9HCuLLLYFh/2RkFVoGkX1LGOkXGfcYAcWXthz48I/u/V+RClCQRNLKz5hDFzoN5DGRkHLdefcm081OclxOfuHnMdEa4HIjGAmNUtmZKSn3ue7sNZ5DAR2fSBF7Oak5CqMwS2Ax8Gf+IRDDq2C9YajwLUgfUT+5cOLl+97Pkqm9jh1oyfggKv6WTCnebGGj4kb6R3RshAvb4rYmAmGnGQWA== X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7f050492-71e1-45b8-d0d6-08dc3307cb99 X-MS-Exchange-CrossTenant-AuthSource: PAXPR10MB4734.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Feb 2024 18:06:15.4570 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Z0mVkvroVKVXsznlGHxfoHwj13NAcS1/izZDkeHjEsZ0dN/MGKMvo1emoSuQLPRcuCXg6aljEM+OxW+1KIRMgyijkTDnKpkGBcxHbv9Alwk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR10MB6271 X-Original-Sender: Michael.Adler@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=gjp7m2ay; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of michael.adler@siemens.com designates 2a01:111:f400:fe1e::614 as permitted sender) smtp.mailfrom=michael.adler@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: Michael Adler Reply-To: Michael Adler Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , From: Christian Storm Adapt to Suricatta Lua Module Interface Specification updates due to LuaLS's recently implemented stricter inference checks. Signed-off-by: Christian Storm Signed-off-by: Michael Adler --- examples/suricatta/swupdate_suricatta.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/suricatta/swupdate_suricatta.lua b/examples/suricatta/swupdate_suricatta.lua index a74905c9..434663fc 100644 --- a/examples/suricatta/swupdate_suricatta.lua +++ b/examples/suricatta/swupdate_suricatta.lua @@ -137,9 +137,9 @@ jobtype = { --- A Job. -- --- @class job ---- @field md5 string MD5 sum of the artifact ---- @field url string URL of the artifact ---- @field typ job.type Type of job +--- @field md5 string | nil MD5 sum of the artifact +--- @field url string | nil URL of the artifact +--- @field typ job.type | nil Type of job --- Configuration for the General Purpose HTTP Server. @@ -476,7 +476,7 @@ function server_stop() gs.channel_config = {} for channel, _ in pairs(gs.channel) do gs.channel[channel].close() - gs.channel[channel] = {} + gs.channel[channel] = nil end return suricatta.status.OK end