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 ...",