[{"id":3676247,"web_url":"http://patchwork.ozlabs.org/comment/3676247/","msgid":"<09762b24-7d87-4356-a177-5a8dcd118b1e@swupdate.org>","list_archive_url":null,"date":"2026-04-12T08:48:23","subject":"Re: [swupdate] [RFC PATCH 2/3] tools/swupdate-progress: sticky\n FAILURE state modifications","submitter":{"id":86869,"url":"http://patchwork.ozlabs.org/api/people/86869/","name":"Stefano Babic","email":"stefano.babic@swupdate.org"},"content":"Hi Konrad,\n\nOn 4/11/26 21:45, Konrad Schwarz wrote:\n> From: Konrad Schwarz <konrad.schwarz@siemens.com>\n> \n> tools/swupdate-progress can trigger various mechanisms\n> when the FAILURE state has been reached, e.g.,\n> run a \"post script\".\n> \n> The previous patch turned the state=FAILURE message into\n> a \"sticky\" state: all further messages continue to report\n> state=FAILURE until the next update starts, as reported\n> by state=START.  This makes the messages state field\n> mirror the state of the current update attempt,\n> and not a \"state transition\" field.\n> \n> To prevent multiple (back-to-back) messages with state=FAILURE\n> from tools/swupdate-progress triggering the post script multiple times,\n> this patch includes an edge-filter: triggering only\n> occurs on the transition to state=FAILURE.\n> \n\nThis seems tricky and it is not how this is thought.\n\npostscript \"failure\" scripts were introduced. A script can be \npreinstall, postinstall and failure. Last ones are called in case the \nupdate fails to restore the status before the update is started. This is \nunder the control of SWUpdate and it is already guaranteed that each \nscript is called just once.\n\nA second important advantage is that the behavior is update specific, \nthat is each SWU can have the own set of f\"failure\" script, while a \nscript in the progress tool is global.\n\nBest regards,\nStefano\n\n> Signed-off-by: Konrad Schwarz <konrad.schwarz@siemens.com>\n> ---\n>   tools/swupdate-progress.c | 11 ++++++++++-\n>   1 file changed, 10 insertions(+), 1 deletion(-)\n> \n> diff --git a/tools/swupdate-progress.c b/tools/swupdate-progress.c\n> index 94cd84e1..26f260c8 100644\n> --- a/tools/swupdate-progress.c\n> +++ b/tools/swupdate-progress.c\n> @@ -300,7 +300,9 @@ int main(int argc, char **argv)\n>   \tconnfd = -1;\n>   \tredirected = !isatty(fileno(stdout));\n>   \n> +\tbool failure = false;\n>   \twhile (1) {\n> +\n>   \t\tif (connfd < 0) {\n>   \t\t\tconnfd = progress_ipc_connect(opt_w);\n>   \t\t}\n> @@ -423,8 +425,14 @@ int main(int argc, char **argv)\n>   \t\t}\n>   \n>   \t\tswitch (msg.status) {\n> -\t\tcase SUCCESS:\n> +\t\tcase START:\n> +\t\t\tfailure = false;\n> +\t\t\tbreak;\n>   \t\tcase FAILURE:\n> +\t\t\tif (failure)\n> +\t\t\t\tgoto progress_case;\n> +\t\t\tfailure = true;\n> +\t\tcase SUCCESS:\n>   \t\t\tif (opt_c) {\n>   \t\t\t\tif (msg.status == FAILURE)\n>   \t\t\t\t\ttextcolor(BLINK, RED, BLACK);\n> @@ -466,6 +474,7 @@ int main(int argc, char **argv)\n>   \t\t\tfprintf(stdout, \"\\nDONE.\\n\\n\");\n>   \t\t\tbreak;\n>   \t\tcase PROGRESS:\n> +progress_case:\n>   \t\t\t/*\n>   \t\t\t * Could also check for \"source\": <sourcetype> as sent\n>   \t\t\t * by wfx but that's left for later when we have full","headers":{"Return-Path":"<swupdate+bncBD2ZDGN6SEKRBWVY5XHAMGQE4S5FAKY@googlegroups.com>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=googlegroups.com header.i=@googlegroups.com\n header.a=rsa-sha256 header.s=20251104 header.b=cRAIPYF1;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com\n (client-ip=2a00:1450:4864:20::63c; helo=mail-ej1-x63c.google.com;\n envelope-from=swupdate+bncbd2zdgn6sekrbwvy5xhamgqe4s5faky@googlegroups.com;\n receiver=patchwork.ozlabs.org)"],"Received":["from mail-ej1-x63c.google.com (mail-ej1-x63c.google.com\n [IPv6:2a00:1450:4864:20::63c])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4ftkhv6fv5z1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 12 Apr 2026 18:48:31 +1000 (AEST)","by mail-ej1-x63c.google.com with SMTP id\n a640c23a62f3a-b9c0d081061sf112566066b.1\n        for <incoming@patchwork.ozlabs.org>;\n Sun, 12 Apr 2026 01:48:31 -0700 (PDT)","by 2002:a05:6402:a58a:10b0:66a:5de4:adb1 with SMTP id\n 4fb4d7f45d1cf-6706dfe230cls1496461a12.1.-pod-prod-06-eu; Sun, 12 Apr 2026\n 01:48:24 -0700 (PDT)","from mout.kundenserver.de (mout.kundenserver.de. [212.227.126.135])\n        by gmr-mx.google.com with ESMTPS id\n 4fb4d7f45d1cf-670703e757esi161050a12.1.2026.04.12.01.48.24\n        for <swupdate@googlegroups.com>\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Sun, 12 Apr 2026 01:48:24 -0700 (PDT)","from client.hidden.invalid by mrelayeu.kundenserver.de (mreue012\n [212.227.15.136]) with ESMTPSA (Nemesis) id 1Mq1GE-1vgeft3ePS-00ZMnL; Sun, 12\n Apr 2026 10:48:23 +0200"],"ARC-Seal":["i=2; a=rsa-sha256; t=1775983708; cv=pass;\n        d=google.com; s=arc-20240605;\n        b=JrJY/YakFhrhm5XLS5WoHub7wbrv+/Gh4LLUoKyFivZyBmg2V1JX9LJdf4JuUwWFcd\n         lLGZCM14MLiHChlrTnc5fbM7oC7eve45o5ZMiQOHkLkLcOtxUjjtYIYA6rL0eByVpaVk\n         rb49i67P/I4VFSalSowuClTL5giscTVxE+v6OVO6QooIk37ipmNuWTgvPOUi4FBOzDhl\n         enouYN6gXZXxLxM3Q4XMnfALBy+z5lfdDbsZaW6JY4DgKVrNK/X4J6CcflNS9FKDMUQH\n         tCSkiQZ6pDyiZCvRLunnmzqlrzy9M+Q6QkzXfnOFlF3kACOmj3s2kJa5xUyj6kmnqUzK\n         QTMA==","i=1; a=rsa-sha256; t=1775983704; cv=none;\n        d=google.com; s=arc-20240605;\n        b=biXlmo0uM44Q3RZAnVuDxjBuYgCZ2JIYeMsNBRIMcPyUnCscsuN+negH9k9Vic/HjK\n         xya3Jl9sJanfTONgkiWnHkTI2QubbbYfalDcARlU25z825FCCsJ7vqdqqbMZXZRPOkf/\n         RePJPXofM+l09mLljqrX7nFDAHULlyy11vNXhl3z0R86q6pLcsKEfQX1q+5rkW9hDIpG\n         lsK10N1AJd6kluLWb5NzmZL2uTO02jdsv/CnONjgRmWNTpQkEgkjhCjLWZTTZGaCh0OL\n         VuM5yEDxFSkGPYw6MfnLXE6u2ah79fErvJmU8R4tgkq3yMZeu7Pu+7mDUy+fiE89Hb7k\n         vmBQ=="],"ARC-Message-Signature":["i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:ui-outboundreport:in-reply-to:from\n         :content-language:references:cc:to:subject:user-agent:mime-version\n         :date:message-id:sender:dkim-signature;\n        bh=daEm7IznvBDaHnsl6A8L2l+mBHepAvWRjtwY5TWxLGk=;\n        fh=fvPEb3sLaN7V7tL9x3jWpiQmpeF0pyp5Yo23Fxn+Cdw=;\n        b=XmqPs+GN/v6uPjGIIvUskRAcEh22I///ot3SG9afVcsoZDxnIPeW8/jl04KAhdDMny\n         umHHJdemZWa2zeUz4LFcodMwaZR4oNcfUqyQqkZ861rT0OslKiI94w/+lUj4i705Pfhk\n         cArPR5aZpRMZEFkbMjEvkGsPYvnpJOD5UX8aGH9QUEsPEcskk8zdPdXQqiKqEs21tayd\n         cuSb4B43Y41L/idJATnbOgEyrrP+D2UF9J9Uafm6sDPhLkIwZvCzhDknYcBc7OpIYBKk\n         7LylRpssfNr6d1FzVq0g99s0sucQUDy9ciA0X1s2Yxp7u8AQdtVGvR5UlFsyFBtu0zM8\n         mmrg==;\n        darn=patchwork.ozlabs.org","i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=ui-outboundreport:content-transfer-encoding:in-reply-to:from\n         :content-language:references:cc:to:subject:user-agent:mime-version\n         :date:message-id:dkim-signature;\n        bh=6ojlMwk/Udgr5OLlLwrKgBQhXvaADeOgGKXnXMHyzUE=;\n        fh=e0pslPoEYHMct8mvmK/xEon6Qxluv582qPk+estjgZo=;\n        b=SGF4DEiSOE49EprScjuaYIRVjmNwsM52qwMws3Ig5RZkOgQbHn2zavuVlNqJZTW0hd\n         PVb9GIXLPZJkD35R5DOXol3HbbleXywwkPbhOfX6JL0shFLHIgs3038hZ0zFlY5iRUFY\n         ajd4e/yzRVOWHoUohqCE/OQwIGEDLrWy6baY/9Pz6KLErNMqNJQ9zdVD+QhMWAtkyJ4o\n         H6seztmau4i6sZpulDNTG97Ve3+uH7SzUaNAYkwNKYeD0p/enFe//KMwvFQysjqGfqn/\n         OHcrvXU73abcaeV5iLuS7M9EcQv0xWhMby6WsgHlDnNjouX78V048GlbNBewDPRdzsrM\n         qQCw==;\n        dara=google.com"],"ARC-Authentication-Results":["i=2; gmr-mx.google.com;\n       dkim=pass header.i=@swupdate.org header.s=s1-ionos header.b=xxCD+Phx;\n       spf=pass (google.com: domain of stefano.babic@swupdate.org designates\n 212.227.126.135 as permitted sender)\n smtp.mailfrom=stefano.babic@swupdate.org;\n       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=swupdate.org","i=1; gmr-mx.google.com;\n       dkim=pass header.i=@swupdate.org header.s=s1-ionos header.b=xxCD+Phx;\n       spf=pass (google.com: domain of stefano.babic@swupdate.org designates\n 212.227.126.135 as permitted sender)\n smtp.mailfrom=stefano.babic@swupdate.org;\n       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=swupdate.org"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=googlegroups.com; s=20251104; t=1775983708; x=1776588508;\n darn=patchwork.ozlabs.org;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:x-original-authentication-results\n         :x-original-sender:ui-outboundreport:in-reply-to:from\n         :content-language:references:cc:to:subject:user-agent:mime-version\n         :date:message-id:sender:from:to:cc:subject:date:message-id:reply-to;\n        bh=daEm7IznvBDaHnsl6A8L2l+mBHepAvWRjtwY5TWxLGk=;\n        b=cRAIPYF1Z5HAxf42ndEP4QXrdG/OeTqyxOgcAUpi5//zShMzDNJCbSc1NTWoEZJlnW\n         16IPhrOxFXWKrRqY5rf0aj6y5pa4ZGRopVK8xlN06e9lGoOlsQUesLzgn+dAwYjEHLGA\n         HtNzNNOMZD+bj+6FskhSUuStRuU+1c6Q//0P3PH1Sq5r8qQSYiz0FhDhiO87SVK5Yy3J\n         MgibAy3dZpSzx7C7dUQZfAHhVuV95tXKChDJ68UOpduV21xfuWjU21DebLLiUkkMbPgA\n         yL037oYe8QH2nEAuiFeWUM23I34XdshI5IG8Qjazl4xVteQ0jnnjzUwkO7YhQvxS5Tyw\n         534A==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1775983708; x=1776588508;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :x-spam-checked-in-group:list-id:mailing-list:precedence\n         :x-original-authentication-results:x-original-sender\n         :ui-outboundreport:in-reply-to:from:content-language:references:cc\n         :to:subject:user-agent:mime-version:date:message-id:x-beenthere\n         :x-gm-message-state:sender:from:to:cc:subject:date:message-id\n         :reply-to;\n        bh=daEm7IznvBDaHnsl6A8L2l+mBHepAvWRjtwY5TWxLGk=;\n        b=BWHdsgiBkX5DveOyVXkXL/1Zwaw46FPp6DqfPPWgfQ9LniFjZy35dlkHW3t3BeLBL9\n         HpERIYtbTibqXD5VgfTn8DIPKlQC3fsvnEMtARQSmPCxZvGjBU9dw4O77JDkH1l7t6sE\n         iTz1bw2odxNdVzK6Ov52nOOrNv+7XAAoEGC6TMmWCV7KypSXWFu7dmUi8l1cSZaKMaAS\n         16MSIXNaMJqBGyvm3rIf/FuRW4Q9tu7QaiYcMwdrlcbVxrbrxQ7C/IWVRRYmZl3ED82Q\n         n/PkDnuNBOrmyJ6CdnodbUe+d0HJ7J4qOS/um7VKUv2mY4vxy7BtzzPFdOjun6ARJ+zG\n         Y+uA==","Sender":"swupdate@googlegroups.com","X-Forwarded-Encrypted":["i=2;\n AFNElJ/Wdmq9H50r+N+X9A7F078sW5JEC7eisNPcOzNXAvOvGmUCqpyrd5OTy4a4WTsJJVp7PgK3sC1/Bg==@patchwork.ozlabs.org","i=2;\n AFNElJ/+jFD5f8NqrsM0rXYtTNciWeDzhJBs6pWhBRiMlrzz9SD4ngKF6RAx+sOb4kouadcueK1UsWMiXg==@googlegroups.com"],"X-Gm-Message-State":"AOJu0YzxnVpfxLZHpxWnR39I/leNhrCkc18tjIFZYnFQxWmA74aw5Im7\n\tGG4wHcyJIeAVc+o9cYU4CqO3JnW+FxhcayEKnNhjjpAbzT7j4R6CTDT9","X-Received":["by 2002:a17:907:c80f:b0:b9c:ad1f:51c3 with SMTP id\n a640c23a62f3a-b9d7267ee5bmr568021266b.39.1775983708075;\n        Sun, 12 Apr 2026 01:48:28 -0700 (PDT)","by 2002:a05:6402:4410:b0:66e:68e1:fc18 with SMTP id\n 4fb4d7f45d1cf-6707a47f88fmr4091320a12.23.1775983704318;\n        Sun, 12 Apr 2026 01:48:24 -0700 (PDT)"],"X-BeenThere":"swupdate@googlegroups.com;\n h=\"AYAyTiKE36r98X/102tJj1aRYWogkSuo3cBlBMkGbPa/ALgMEg==\"","Received-SPF":"pass (google.com: domain of stefano.babic@swupdate.org\n designates 212.227.126.135 as permitted sender) client-ip=212.227.126.135;","X-UI-Sender-Class":"55c96926-9e95-11ee-ae09-1f7a4046a0f6","Message-ID":"<09762b24-7d87-4356-a177-5a8dcd118b1e@swupdate.org>","Date":"Sun, 12 Apr 2026 10:48:23 +0200","MIME-Version":"1.0","User-Agent":"Mozilla Thunderbird","Subject":"Re: [swupdate] [RFC PATCH 2/3] tools/swupdate-progress: sticky\n FAILURE state modifications","To":"Konrad Schwarz <konrad.schwarz@gmail.com>, swupdate@googlegroups.com","Cc":"Konrad Schwarz <konrad.schwarz@siemens.com>","References":"<cover.1775844632.git.konrad.schwarz@siemens.com>\n <5c7a7e7b9dc54a5c5cf144fcd63298beea3d3383.1775844632.git.konrad.schwarz@siemens.com>","Content-Language":"en-US","From":"Stefano Babic <stefano.babic@swupdate.org>","In-Reply-To":"\n <5c7a7e7b9dc54a5c5cf144fcd63298beea3d3383.1775844632.git.konrad.schwarz@siemens.com>","Content-Type":"text/plain; charset=\"UTF-8\"; format=flowed","X-Provags-ID":"V03:K1:4LlvjiV/Vq24zO8gRZ+IieaJqAe/LMDql/qKpLN8LInx4le6lVO\n NuwSzcyHhIN505jpJlVmb7vfh/IHIVzymkK5aUONCffBq0/a6WgHQmbsF12MPn2TSXX7AZg\n UCbOg+iE7LNbunwnz/JkGST0TiCpMAlX0uom9uRP27e+POs/us3QpXjX6C4myYdW7qezdm7\n c8hd+EXMLGbHOB5Vp2Tqg==","X-Spam-Flag":"NO","UI-OutboundReport":"notjunk:1;M01:P0:UxmQ1la9Zls=;faydXyDGd3BCu8JFWVlvgkJUBd8\n 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","X-Original-Sender":"stefano.babic@swupdate.org","X-Original-Authentication-Results":"gmr-mx.google.com;       dkim=pass\n header.i=@swupdate.org header.s=s1-ionos header.b=xxCD+Phx;       spf=pass\n (google.com: domain of stefano.babic@swupdate.org designates 212.227.126.135\n as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org;\n       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=swupdate.org","Precedence":"list","Mailing-list":"list swupdate@googlegroups.com;\n contact swupdate+owners@googlegroups.com","List-ID":"<swupdate.googlegroups.com>","X-Spam-Checked-In-Group":"swupdate@googlegroups.com","X-Google-Group-Id":"605343134186","List-Post":"<https://groups.google.com/group/swupdate/post>,\n <mailto:swupdate@googlegroups.com>","List-Help":"<https://groups.google.com/support/>,\n <mailto:swupdate+help@googlegroups.com>","List-Archive":"<https://groups.google.com/group/swupdate","List-Subscribe":"<https://groups.google.com/group/swupdate/subscribe>,\n <mailto:swupdate+subscribe@googlegroups.com>","List-Unsubscribe":"\n <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>,\n <https://groups.google.com/group/swupdate/subscribe>"}},{"id":3676295,"web_url":"http://patchwork.ozlabs.org/comment/3676295/","msgid":"<5191cb21-e617-4b68-b9d0-15638e307ba6n@googlegroups.com>","list_archive_url":null,"date":"2026-04-12T14:13:10","subject":"Re: [swupdate] [RFC PATCH 2/3] tools/swupdate-progress: sticky\n FAILURE state modifications","submitter":{"id":92117,"url":"http://patchwork.ozlabs.org/api/people/92117/","name":"Konrad Schwarz","email":"konrad.schwarz@gmail.com"},"content":"Hello Stefano,\n\nfor some reason,  my 1+3 patch series was pulled apart in groups.google.com \n-- I'm not exactly sure why this happened,\nit seems I omitted --thread=shallow to git format-patch by accident.  I \napologize for that.\n\nIn any case, patch 1 and 2 are *not *independent: if you decide to apply \npatch 1, you should also apply patch 2, which \"undoes\" the effects of patch \n1 in tools/swupdate-progress.  If not, the post-failure script can run \nmultiple times -- a big change in semantics!\n\nI would understand rejecting the entire patch series, that's why I marked \nthem RFC.  But applying only 1 without 2 would be dangerous.\n\nBest Regards,\n\nKonrad\n\nOn Sunday, April 12, 2026 at 10:48:28 AM UTC+2 Stefano Babic wrote:\n\n> Hi Konrad,\n>\n> On 4/11/26 21:45, Konrad Schwarz wrote:\n> > From: Konrad Schwarz <konrad....@siemens.com>\n> > \n> > tools/swupdate-progress can trigger various mechanisms\n> > when the FAILURE state has been reached, e.g.,\n> > run a \"post script\".\n> > \n> > The previous patch turned the state=FAILURE message into\n> > a \"sticky\" state: all further messages continue to report\n> > state=FAILURE until the next update starts, as reported\n> > by state=START. This makes the messages state field\n> > mirror the state of the current update attempt,\n> > and not a \"state transition\" field.\n> > \n> > To prevent multiple (back-to-back) messages with state=FAILURE\n> > from tools/swupdate-progress triggering the post script multiple times,\n> > this patch includes an edge-filter: triggering only\n> > occurs on the transition to state=FAILURE.\n> > \n>\n> This seems tricky and it is not how this is thought.\n>\n> postscript \"failure\" scripts were introduced. A script can be \n> preinstall, postinstall and failure. Last ones are called in case the \n> update fails to restore the status before the update is started. This is \n> under the control of SWUpdate and it is already guaranteed that each \n> script is called just once.\n>\n> A second important advantage is that the behavior is update specific, \n> that is each SWU can have the own set of f\"failure\" script, while a \n> script in the progress tool is global.\n>\n> Best regards,\n> Stefano\n>\n> > Signed-off-by: Konrad Schwarz <konrad....@siemens.com>\n> > ---\n> > tools/swupdate-progress.c | 11 ++++++++++-\n> > 1 file changed, 10 insertions(+), 1 deletion(-)\n> > \n> > diff --git a/tools/swupdate-progress.c b/tools/swupdate-progress.c\n> > index 94cd84e1..26f260c8 100644\n> > --- a/tools/swupdate-progress.c\n> > +++ b/tools/swupdate-progress.c\n> > @@ -300,7 +300,9 @@ int main(int argc, char **argv)\n> > connfd = -1;\n> > redirected = !isatty(fileno(stdout));\n> > \n> > + bool failure = false;\n> > while (1) {\n> > +\n> > if (connfd < 0) {\n> > connfd = progress_ipc_connect(opt_w);\n> > }\n> > @@ -423,8 +425,14 @@ int main(int argc, char **argv)\n> > }\n> > \n> > switch (msg.status) {\n> > - case SUCCESS:\n> > + case START:\n> > + failure = false;\n> > + break;\n> > case FAILURE:\n> > + if (failure)\n> > + goto progress_case;\n> > + failure = true;\n> > + case SUCCESS:\n> > if (opt_c) {\n> > if (msg.status == FAILURE)\n> > textcolor(BLINK, RED, BLACK);\n> > @@ -466,6 +474,7 @@ int main(int argc, char **argv)\n> > fprintf(stdout, \"\\nDONE.\\n\\n\");\n> > break;\n> > case PROGRESS:\n> > +progress_case:\n> > /*\n> > * Could also check for \"source\": <sourcetype> as sent\n> > * by wfx but that's left for later when we have full\n>\n>","headers":{"Return-Path":"<swupdate+bncBCM7PUF6Q4ORB6OQ53HAMGQEZCYTQJQ@googlegroups.com>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=googlegroups.com header.i=@googlegroups.com\n header.a=rsa-sha256 header.s=20251104 header.b=OYwdDZ0u;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=lLvixbot;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com\n (client-ip=2607:f8b0:4864:20::23a; helo=mail-oi1-x23a.google.com;\n envelope-from=swupdate+bncbcm7puf6q4orb6oq53hamgqezcytqjq@googlegroups.com;\n receiver=patchwork.ozlabs.org)"],"Received":["from mail-oi1-x23a.google.com (mail-oi1-x23a.google.com\n [IPv6:2607:f8b0:4864:20::23a])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4ftsvl03Bdz1yCx\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 13 Apr 2026 00:13:21 +1000 (AEST)","by mail-oi1-x23a.google.com with SMTP id\n 5614622812f47-467e00b684esf1677963b6e.3\n        for <incoming@patchwork.ozlabs.org>;\n Sun, 12 Apr 2026 07:13:21 -0700 (PDT)","by 2002:a05:6870:9709:b0:41c:5212:2c74 with SMTP id\n 586e51a60fabf-423dd96939els1167882fac.1.-pod-prod-05-us; Sun, 12 Apr 2026\n 07:13:12 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=googlegroups.com; s=20251104; t=1776003194; x=1776607994;\n darn=patchwork.ozlabs.org;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:x-original-sender:mime-version\n         :subject:references:in-reply-to:message-id:to:from:date:sender:from\n         :to:cc:subject:date:message-id:reply-to;\n        bh=3QQjGnjZuN7rCAB8bVYAM0vHHZRy6nBGjq00cM6n7lo=;\n        b=OYwdDZ0uaEweyiBcii1edvW3pi7Fz6jIRyw691ERMhsKpLg+EUQvpw5l9iI4UhHmog\n         98hyqvuqWL7MaM+TIdQDK7ugqgbHLKaoIUCGSQC/tMYnh37puyDax2YVsvZIS50p4nLR\n         66n4+6ODl8hwfzU0luDAXM6Xxi2zJXnWkicLr9d9x6EMoQo+YurgXQDweMXAJz4wX2rd\n         GatZFugro94hQGQw1Xo9dcuzpEFaTH1f/kulMenlXhLe6Mq0AZXDxhwgDBxV3nXec7ou\n         7DwrB9fE8wSMz1tH4l0BVZKU2yrgqXsO6WFhDdOlML3uvRJz0dAp7ZkKBg1HU5k60oiC\n         nktQ==","v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1776003194; x=1776607994;\n darn=patchwork.ozlabs.org;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:x-original-sender:mime-version\n         :subject:references:in-reply-to:message-id:to:from:date:from:to:cc\n         :subject:date:message-id:reply-to;\n        bh=3QQjGnjZuN7rCAB8bVYAM0vHHZRy6nBGjq00cM6n7lo=;\n        b=lLvixbot/JA/bU+fvN7JFtqMrT77uSHEkV5+FHf3SAH1yUyDqNqD/bK6quvemmYI46\n         huEVa7kxuTj21+NuIhBJ+qB3gfVlnarVMm+iv91qA6I/ZH43hBtZRg/7pwq9fUfBI9mw\n         V/X/1Gywwcp26lhSkdxg32NdtzwWjtssTcPt7NkWdxA9/0O/x85IhA1sPFfzpZqNrG9G\n         TMx4clRB8J7s1z1v2psx/yZlif/4ABZd68XpRw4pyE2B5iujqfM1Dna1hQOW5VsUTbJx\n         UrIUYVmNJbxKLJ1slS1QLkIsamPlN49IO+ER9kJ6PuDu9UaH0xXcW1qrqsy+StSD9Eyi\n         eJVw=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1776003194; x=1776607994;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :x-spam-checked-in-group:list-id:mailing-list:precedence\n         :x-original-sender:mime-version:subject:references:in-reply-to\n         :message-id:to:from:date:x-beenthere:x-gm-message-state:sender:from\n         :to:cc:subject:date:message-id:reply-to;\n        bh=3QQjGnjZuN7rCAB8bVYAM0vHHZRy6nBGjq00cM6n7lo=;\n        b=l1mnftNtCOXcRWvFTjP1qjAXapefoDgpGjFfTRcwAx7hoPeU77odq/RA78P+3jjBgE\n         hDBsLGBdJZF/mnjpzA4BHRPR9Zm/fHB48T1jkITI1CjUhv2yJiZFgROV0q9Weu5aJ33X\n         +wPmDfb/0ZZWw8CaNApdh7VBm7q46NPC146d/a3wtceGpwLtro7rjZGm+A34fDUaniYV\n         94rlEguij1JenF5hLRoh74prsy5VFb5ciNgdqrBB622kcoyLypCHRZOfs3N8rfRXypAd\n         5bkx36bt0c5M1SAYAMTrjLJW9TVZXokPQ4OUZ00Em9HrMXTSb9FzoEXgAUrPN2t0NP7K\n         rqlg==","Sender":"swupdate@googlegroups.com","X-Forwarded-Encrypted":"i=1;\n AJvYcCWGKrX4Ghx4rvRa/LhP8i3CrqInelIwPw7Xn2ykTPvTUC/vw5dPUxcf0oS2jGipodHPBXCQxmGLdg==@patchwork.ozlabs.org","X-Gm-Message-State":"AOJu0Yy6BuYKYEwAqjWfZ4ZAPc06M2Tf17PiQXCMnzYaXCRhE7A+XJcA\n\tSfJdO4BzM/IzdO/h69b4LVEKKvQeWsWswM/BJGYfb+Y4vnxP/0zlu0Xz","X-Received":["by 2002:a05:6808:244e:b0:467:4fb:f225 with SMTP id\n 5614622812f47-4789c64a258mr5139989b6e.9.1776003194379;\n        Sun, 12 Apr 2026 07:13:14 -0700 (PDT)","by 2002:a05:6808:1790:b0:467:1941:1f18 with SMTP id\n 5614622812f47-4789d14fe92mr4826600b6e.14.1776003192485;\n        Sun, 12 Apr 2026 07:13:12 -0700 (PDT)"],"X-BeenThere":"swupdate@googlegroups.com;\n h=\"AYAyTiIu7+bXTT16reBoxLQdpXs5mt1IqnhnurohQelRCCqn1A==\"","Date":"Sun, 12 Apr 2026 07:13:10 -0700 (PDT)","From":"Konrad Schwarz <konrad.schwarz@gmail.com>","To":"swupdate <swupdate@googlegroups.com>","Message-Id":"<5191cb21-e617-4b68-b9d0-15638e307ba6n@googlegroups.com>","In-Reply-To":"<09762b24-7d87-4356-a177-5a8dcd118b1e@swupdate.org>","References":"<cover.1775844632.git.konrad.schwarz@siemens.com>\n <5c7a7e7b9dc54a5c5cf144fcd63298beea3d3383.1775844632.git.konrad.schwarz@siemens.com>\n <09762b24-7d87-4356-a177-5a8dcd118b1e@swupdate.org>","Subject":"Re: [swupdate] [RFC PATCH 2/3] tools/swupdate-progress: sticky\n FAILURE state modifications","MIME-Version":"1.0","Content-Type":"multipart/mixed;\n\tboundary=\"----=_Part_330518_2012693362.1776003190804\"","X-Original-Sender":"konrad.schwarz@gmail.com","Precedence":"list","Mailing-list":"list swupdate@googlegroups.com;\n contact swupdate+owners@googlegroups.com","List-ID":"<swupdate.googlegroups.com>","X-Spam-Checked-In-Group":"swupdate@googlegroups.com","X-Google-Group-Id":"605343134186","List-Post":"<https://groups.google.com/group/swupdate/post>,\n <mailto:swupdate@googlegroups.com>","List-Help":"<https://groups.google.com/support/>,\n <mailto:swupdate+help@googlegroups.com>","List-Archive":"<https://groups.google.com/group/swupdate","List-Subscribe":"<https://groups.google.com/group/swupdate/subscribe>,\n <mailto:swupdate+subscribe@googlegroups.com>","List-Unsubscribe":"\n <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>,\n <https://groups.google.com/group/swupdate/subscribe>"}},{"id":3676307,"web_url":"http://patchwork.ozlabs.org/comment/3676307/","msgid":"<f7a7b8f2-118a-4a32-b93d-ac2150116759@swupdate.org>","list_archive_url":null,"date":"2026-04-12T15:32:13","subject":"Re: [swupdate] [RFC PATCH 2/3] tools/swupdate-progress: sticky\n FAILURE state modifications","submitter":{"id":86869,"url":"http://patchwork.ozlabs.org/api/people/86869/","name":"Stefano Babic","email":"stefano.babic@swupdate.org"},"content":"Hi Konrad,\n\nOn 4/12/26 16:13, Konrad Schwarz wrote:\n> Hello Stefano,\n> \n> for some reason,  my 1+3 patch series was pulled apart in \n> groups.google.com -- I'm not exactly sure why this happened,\n> it seems I omitted --thread=shallow to git format-patch by accident.  I \n> apologize for that.\n> \n\nIt is not an issue.\n\n> In any case, patch 1 and 2 are *not *independent: if you decide to apply \n> patch 1, you should also apply patch 2, which \"undoes\" the effects of \n> patch 1 in tools/swupdate-progress.  If not, the post-failure script can \n> run multiple times -- a big change in semantics!\n> \n\nThey are not supposed to be applied singularly.\n\nThe series seems to want to address different topics:\n\n1) the progress interface sends some messages that can confuse a monitor \napplication. This should be specified, but then it should be fixed \ninside SWUpdate.\n\n2) some actions are to be taken if an update fails, and you do it by \nadding a sort of post process + filtering.\n\nPoint 1) should be identified. I have foreseen at the beginning some \nadditional state transitions (DONE state), that was unnecessary. So \nwhich are the transitions after a FAILURE that seems confusing ?\n\nNote: progress interfaces are waitig for a START after a \nSUCCESS/FAILURE. Other state are ignored.\n\nPoint 2) is solved in another way by adding post-failure scripts. These \nare guaranteed to run once, and they run at the right time in the update.\n\nSo patches weren't applied, but point 1) can be better investigated and \ncheck if something should be done.\n\nBest regards,\nStefano\n\n\n\n> I would understand rejecting the entire patch series, that's why I \n> marked them RFC.  But applying only 1 without 2 would be dangerous.\n> \n> Best Regards,\n> \n> Konrad\n> \n> On Sunday, April 12, 2026 at 10:48:28 AM UTC+2 Stefano Babic wrote:\n> \n>     Hi Konrad,\n> \n>     On 4/11/26 21:45, Konrad Schwarz wrote:\n>      > From: Konrad Schwarz <konrad....@siemens.com>\n>      >\n>      > tools/swupdate-progress can trigger various mechanisms\n>      > when the FAILURE state has been reached, e.g.,\n>      > run a \"post script\".\n>      >\n>      > The previous patch turned the state=FAILURE message into\n>      > a \"sticky\" state: all further messages continue to report\n>      > state=FAILURE until the next update starts, as reported\n>      > by state=START. This makes the messages state field\n>      > mirror the state of the current update attempt,\n>      > and not a \"state transition\" field.\n>      >\n>      > To prevent multiple (back-to-back) messages with state=FAILURE\n>      > from tools/swupdate-progress triggering the post script multiple\n>     times,\n>      > this patch includes an edge-filter: triggering only\n>      > occurs on the transition to state=FAILURE.\n>      >\n> \n>     This seems tricky and it is not how this is thought.\n> \n>     postscript \"failure\" scripts were introduced. A script can be\n>     preinstall, postinstall and failure. Last ones are called in case the\n>     update fails to restore the status before the update is started.\n>     This is\n>     under the control of SWUpdate and it is already guaranteed that each\n>     script is called just once.\n> \n>     A second important advantage is that the behavior is update specific,\n>     that is each SWU can have the own set of f\"failure\" script, while a\n>     script in the progress tool is global.\n> \n>     Best regards,\n>     Stefano\n> \n>      > Signed-off-by: Konrad Schwarz <konrad....@siemens.com>\n>      > ---\n>      > tools/swupdate-progress.c | 11 ++++++++++-\n>      > 1 file changed, 10 insertions(+), 1 deletion(-)\n>      >\n>      > diff --git a/tools/swupdate-progress.c b/tools/swupdate-progress.c\n>      > index 94cd84e1..26f260c8 100644\n>      > --- a/tools/swupdate-progress.c\n>      > +++ b/tools/swupdate-progress.c\n>      > @@ -300,7 +300,9 @@ int main(int argc, char **argv)\n>      > connfd = -1;\n>      > redirected = !isatty(fileno(stdout));\n>      >\n>      > + bool failure = false;\n>      > while (1) {\n>      > +\n>      > if (connfd < 0) {\n>      > connfd = progress_ipc_connect(opt_w);\n>      > }\n>      > @@ -423,8 +425,14 @@ int main(int argc, char **argv)\n>      > }\n>      >\n>      > switch (msg.status) {\n>      > - case SUCCESS:\n>      > + case START:\n>      > + failure = false;\n>      > + break;\n>      > case FAILURE:\n>      > + if (failure)\n>      > + goto progress_case;\n>      > + failure = true;\n>      > + case SUCCESS:\n>      > if (opt_c) {\n>      > if (msg.status == FAILURE)\n>      > textcolor(BLINK, RED, BLACK);\n>      > @@ -466,6 +474,7 @@ int main(int argc, char **argv)\n>      > fprintf(stdout, \"\\nDONE.\\n\\n\");\n>      > break;\n>      > case PROGRESS:\n>      > +progress_case:\n>      > /*\n>      > * Could also check for \"source\": <sourcetype> as sent\n>      > * by wfx but that's left for later when we have full\n> \n> -- \n> You received this message because you are subscribed to the Google \n> Groups \"swupdate\" group.\n> To unsubscribe from this group and stop receiving emails from it, send \n> an email to swupdate+unsubscribe@googlegroups.com \n> <mailto:swupdate+unsubscribe@googlegroups.com>.\n> To view this discussion visit https://groups.google.com/d/msgid/ \n> swupdate/5191cb21-e617-4b68-b9d0-15638e307ba6n%40googlegroups.com \n> <https://groups.google.com/d/msgid/swupdate/5191cb21-e617-4b68- \n> b9d0-15638e307ba6n%40googlegroups.com?utm_medium=email&utm_source=footer>.","headers":{"Return-Path":"<swupdate+bncBD2ZDGN6SEKRBAHW53HAMGQECDLV2NY@googlegroups.com>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=googlegroups.com header.i=@googlegroups.com\n header.a=rsa-sha256 header.s=20251104 header.b=RlFuo+ob;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com\n (client-ip=2a00:1450:4864:20::33f; helo=mail-wm1-x33f.google.com;\n envelope-from=swupdate+bncbd2zdgn6sekrbahw53hamgqecdlv2ny@googlegroups.com;\n receiver=patchwork.ozlabs.org)"],"Received":["from mail-wm1-x33f.google.com (mail-wm1-x33f.google.com\n [IPv6:2a00:1450:4864:20::33f])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4ftvfz3Khgz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 13 Apr 2026 01:32:26 +1000 (AEST)","by mail-wm1-x33f.google.com with SMTP id\n 5b1f17b1804b1-4839fc4cef6sf29090815e9.0\n        for <incoming@patchwork.ozlabs.org>;\n Sun, 12 Apr 2026 08:32:25 -0700 (PDT)","by 2002:a05:600c:1e28:b0:477:9e7d:40a2 with SMTP id\n 5b1f17b1804b1-488d5c388b1ls12327175e9.0.-pod-prod-00-eu; Sun, 12 Apr 2026\n 08:32:15 -0700 (PDT)","from mout.kundenserver.de (mout.kundenserver.de. [212.227.126.134])\n        by gmr-mx.google.com with ESMTPS id\n 5b1f17b1804b1-488d67a1149si785765e9.3.2026.04.12.08.32.14\n        for <swupdate@googlegroups.com>\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Sun, 12 Apr 2026 08:32:14 -0700 (PDT)","from client.hidden.invalid by mrelayeu.kundenserver.de (mreue012\n [212.227.17.165]) with ESMTPSA (Nemesis) id 1MaHOX-1vzaxc2bzh-00JcLS; Sun, 12\n Apr 2026 17:32:13 +0200"],"ARC-Seal":["i=2; a=rsa-sha256; t=1776007938; cv=pass;\n        d=google.com; s=arc-20240605;\n        b=d+RjYqDXmuSJuHP2M6VMVexyUlJZXoJfh3eJ+nzamlQN2FdoErX7gpGYU7d2j+tB93\n         S3wxWVpc41NAXD0DJ4UyTWNlBBcZWIbIRdS1OD5EPWB9MqOXSxTbE2zX69qvI0JHCN7+\n         rrrb834rVJKXKqAx4UaJ2mW1Xcph/7LPPFv1+rYVKabNOG8YcRc8/V6k5ClRGSGIyxKq\n         JJ7HQwPoOmuhLDA3KIus6GbiUW8lcgtdNxV02Sx1kJnyRwfLmRj3fDAxw52jF/FD5KqP\n         Z9d+DUUmEka0J5fF1bCHGFe9I07hT4nP3M3/mTaiJDRdTGcSAIuQaMLrkvF6e2KlVsIE\n         99sA==","i=1; a=rsa-sha256; t=1776007934; cv=none;\n        d=google.com; s=arc-20240605;\n        b=Ul5oCDd9CenDD8ZSiwafzNlDpiIJ7TO1YTqS1pdFUfhV/yyNtU08WEEt/r2ORF4xIT\n         2DuGwyTchMLMc7m83qqoHCBzoBEfHoizt9RYQ78Cd3pi6nI1sMRE5plXv0s8YNeaMWSk\n         eR5PWObIY63Q7ajWHRKJsYfaVZtaVCjGraYYMiwvwtjxu6AYFzspSCuoyFClgLgglz0m\n         X6wriH6xanUQgsjS3IZsby7rZ9jsmfPPy2DZv/BddjUo68Dv6vUf9UmokBw3fq6YJZgx\n         /JcubCXIk6CUKPqG4VPpGmKQmVsSJQZP3TypNBOZRJazq+zHQMh3hFlSblo73bs1jIr6\n         o6OQ=="],"ARC-Message-Signature":["i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:ui-outboundreport\n         :content-transfer-encoding:in-reply-to:from:content-language\n         :references:to:subject:user-agent:mime-version:date:message-id\n         :sender:dkim-signature;\n        bh=Iz7mj7I74piBrdW8a36t4/3K1WwNCwSzUOu79js6qdY=;\n        fh=Hj19QOdt3yuak/dZTAOo/r7xbpfRD/zTmnhu0nQznhI=;\n        b=ZPnEygddhUfANq2AY4NFJWDfaefvP4uZ5QQv3VSdX5HUGd0IADrFlBzPoVCZXBGzPU\n         dUaYTPjfkJLwyqOBI1TcLKd8cMHxyuii8hWJ8oNa8jT3HoTaWcZTMkS3slR1nBQqXNY7\n         ECnW9BCbJvbNDqiwPSNf0iKmQ/zRHn4a9p/7DJYvw8nDSLrnkeFVk8KkQvxRTNADou2m\n         bs5lCPXRPEUvBW2NI2alx+Tj98/Gu+BjqDZqY5WOIAL3u3qwvC+aOTNUJKGomlBVJKH/\n         ZsYs9J4fkxtyZ51dhkk8hGAaHXO4fqfY9sdi3E9DToGJCIdc2r1yx75w1zljL4A/2In/\n         MxMQ==;\n        darn=patchwork.ozlabs.org","i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=ui-outboundreport:content-transfer-encoding:in-reply-to:from\n         :content-language:references:to:subject:user-agent:mime-version:date\n         :message-id:dkim-signature;\n        bh=Z2NeqDRhG/hWFLA7NwHhac+GKtD9kqrxF8wf+hyQxUg=;\n        fh=rARrJrbJ/zC7LyzeCP1zzspJrvL3QNIn7T5XSt3joeA=;\n        b=cB+/VKPylf44/lvVkU59bdlqjBAeDm1ick6AtFgZWrSD31bLw3inu+Wi0+BMeQCepB\n         bSD0UBo30JktRLMmj5gEWjJDwGyaq8Kz3uYH6vkCpCDgIgcNSOF6Bwmp4S2tyd63mjmy\n         u4XX4TckM+zCHENyACCWvGi9nNYVzQTm35x1g/p94nxSQWnVChIHGzrreJs5xkD7javZ\n         8oW9UmlhDqn/qw72G9ZU6d3e8aPPpWWwuRLq3n9cGnvXx+qNedDTuN5EQGdCqHIL+CyQ\n         woPx6EjaMwQth0bJ1eMHz3+PW0fyux93MpdqlEHsv5Nsxmh7eDn74oixb6n53hiOBgAz\n         XBvQ==;\n        dara=google.com"],"ARC-Authentication-Results":["i=2; gmr-mx.google.com;\n       dkim=pass header.i=@swupdate.org header.s=s1-ionos header.b=GPz6vFPO;\n       spf=pass (google.com: domain of stefano.babic@swupdate.org designates\n 212.227.126.134 as permitted sender)\n smtp.mailfrom=stefano.babic@swupdate.org;\n       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=swupdate.org","i=1; gmr-mx.google.com;\n       dkim=pass header.i=@swupdate.org header.s=s1-ionos header.b=GPz6vFPO;\n       spf=pass (google.com: domain of stefano.babic@swupdate.org designates\n 212.227.126.134 as permitted sender)\n smtp.mailfrom=stefano.babic@swupdate.org;\n       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=swupdate.org"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=googlegroups.com; s=20251104; t=1776007938; x=1776612738;\n darn=patchwork.ozlabs.org;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:x-original-authentication-results\n         :x-original-sender:ui-outboundreport:content-transfer-encoding\n         :in-reply-to:from:content-language:references:to:subject:user-agent\n         :mime-version:date:message-id:sender:from:to:cc:subject:date\n         :message-id:reply-to;\n        bh=Iz7mj7I74piBrdW8a36t4/3K1WwNCwSzUOu79js6qdY=;\n        b=RlFuo+ob7n9hv4pVwPaxbfg//8/M3/jMyz6THfjqc0srKM5VtjzGpd1bflA/TnbckP\n         +79Mq5nn7IwHdj72cVmkZyo5Fw9/DeJ4OW0Ay42c00YP8su9dAX81nKIj2zR+Yo9u06m\n         Nwbes6qUl2RzizrtUQjIlMAEDDtOBN52hK1UjQQf24s6OiNv1mBwcxUX6V/FrXgPA2HT\n         cd+fCagGaVO4iY2Qvirph4ih3Lw4cYVsEtD1W18gBhwDt7IL+1lqQgtLHOqUZug7hyzO\n         dM0uSemSWypY5mFVZ7ux27y2Bx8UIbUZL2RYGFTUQG4JckMUEjxwsA7Gkvk40ET8grpB\n         kU5w==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1776007938; x=1776612738;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :x-spam-checked-in-group:list-id:mailing-list:precedence\n         :x-original-authentication-results:x-original-sender\n         :ui-outboundreport:content-transfer-encoding:in-reply-to:from\n         :content-language:references:to:subject:user-agent:mime-version:date\n         :message-id:x-beenthere:x-gm-message-state:sender:from:to:cc:subject\n         :date:message-id:reply-to;\n        bh=Iz7mj7I74piBrdW8a36t4/3K1WwNCwSzUOu79js6qdY=;\n        b=EBpHPaIGUbUdAs0f5EwB6KeYVE7dnjI2tRPlpCdMCvAj1oDFqQHFT89c6rwoF1qAgK\n         IM6pczP0cswqTiTDtAkDrLxijzrbEjKrpUik9OuAsSIQH6MQGwgEgokoKsLvVw+orlAw\n         xtmnk9ZoeNFLSNdMESdHZsMrKYPbO97C21nIisMCtWFyLMcfdLULW6Hv7ZPWu6m6EeHI\n         tuQT52u1YuHdk/muld93xFwuKVRUshfATSL/zWT/BBCmIqbUL1s0jWMZ7L1zyS0CeB0+\n         Nvk9kV99firXUr54wkJIs52f2+1/a/O9n8fmjlsFVQwV8BBQC1/WHdU/nq/1TmBvADax\n         NC6g==","Sender":"swupdate@googlegroups.com","X-Forwarded-Encrypted":["i=2;\n AJvYcCVyPtN2kdtuYizMW7yuSvOnnmPV/pElDOueFDvxpl9Qa5NydOQevNK/Lm9+PRTepXl/z4vORtoe3g==@patchwork.ozlabs.org","i=2;\n AJvYcCVvxe1gZIJlJb3ASF9fXHo38uDH6SoOPx/xke0SFeT0kGXx143rZO088SIXbLPvWeAQWfscFt8yRA==@googlegroups.com"],"X-Gm-Message-State":"AOJu0YwrwZmcp0AcErfWJWdOxsN1CJJM80w9ZOgWfzKIA9lfnvqnxo+Z\n\t7VmCTPZTq0Q++JhFyUwRI73ZWVOETbmSSlcqgaLRgUEOaPQSKfF1Yazk","X-Received":["by 2002:a05:600c:154d:b0:485:3989:b3e4 with SMTP id\n 5b1f17b1804b1-488d685b6ddmr133101995e9.6.1776007938184;\n        Sun, 12 Apr 2026 08:32:18 -0700 (PDT)","by 2002:a05:600c:698d:b0:487:22ad:403e with SMTP id\n 5b1f17b1804b1-488d6ac9ce5mr141774705e9.14.1776007934721;\n        Sun, 12 Apr 2026 08:32:14 -0700 (PDT)"],"X-BeenThere":"swupdate@googlegroups.com;\n h=\"AYAyTiIwAT+GgfL7YbEkE6i7+rpcpiABXrk55cUUA3YcNqch/Q==\"","Received-SPF":"pass (google.com: domain of stefano.babic@swupdate.org\n designates 212.227.126.134 as permitted sender) client-ip=212.227.126.134;","X-UI-Sender-Class":"55c96926-9e95-11ee-ae09-1f7a4046a0f6","Message-ID":"<f7a7b8f2-118a-4a32-b93d-ac2150116759@swupdate.org>","Date":"Sun, 12 Apr 2026 17:32:13 +0200","MIME-Version":"1.0","User-Agent":"Mozilla Thunderbird","Subject":"Re: [swupdate] [RFC PATCH 2/3] tools/swupdate-progress: sticky\n FAILURE state modifications","To":"Konrad Schwarz <konrad.schwarz@gmail.com>,\n swupdate <swupdate@googlegroups.com>","References":"<cover.1775844632.git.konrad.schwarz@siemens.com>\n <5c7a7e7b9dc54a5c5cf144fcd63298beea3d3383.1775844632.git.konrad.schwarz@siemens.com>\n <09762b24-7d87-4356-a177-5a8dcd118b1e@swupdate.org>\n <5191cb21-e617-4b68-b9d0-15638e307ba6n@googlegroups.com>","Content-Language":"en-US","From":"Stefano Babic <stefano.babic@swupdate.org>","In-Reply-To":"<5191cb21-e617-4b68-b9d0-15638e307ba6n@googlegroups.com>","Content-Type":"text/plain; charset=\"UTF-8\"; format=flowed","Content-Transfer-Encoding":"quoted-printable","X-Provags-ID":"V03:K1:Idp+34D3d9ULCez3MXgjUnHdBjoEQebqA6PpAWsyhI6GoRfC9ZL\n q/xRfQL+7Lx9YH3JdaUYkErN08bHlYbpe/EWzVanoiW/eKjwJmKE//i8B+jZMkI0JR/rGFk\n 4imB+hKG4TPim72DOdVKyPhUcnER7RC5D/GQgaaqKcq2iR7nf26s3DuRCS2NM/yaj9DDMpG\n BeciyMXp1/+wOqzosFBTw==","X-Spam-Flag":"NO","UI-OutboundReport":"notjunk:1;M01:P0:cIno0MeNCYw=;nc7o8KLb2Gsr6LBLNzDVqf+XnaA\n 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","X-Original-Sender":"stefano.babic@swupdate.org","X-Original-Authentication-Results":"gmr-mx.google.com;       dkim=pass\n header.i=@swupdate.org header.s=s1-ionos header.b=GPz6vFPO;       spf=pass\n (google.com: domain of stefano.babic@swupdate.org designates 212.227.126.134\n as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org;\n       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=swupdate.org","Precedence":"list","Mailing-list":"list swupdate@googlegroups.com;\n contact swupdate+owners@googlegroups.com","List-ID":"<swupdate.googlegroups.com>","X-Spam-Checked-In-Group":"swupdate@googlegroups.com","X-Google-Group-Id":"605343134186","List-Post":"<https://groups.google.com/group/swupdate/post>,\n <mailto:swupdate@googlegroups.com>","List-Help":"<https://groups.google.com/support/>,\n <mailto:swupdate+help@googlegroups.com>","List-Archive":"<https://groups.google.com/group/swupdate","List-Subscribe":"<https://groups.google.com/group/swupdate/subscribe>,\n <mailto:swupdate+subscribe@googlegroups.com>","List-Unsubscribe":"\n <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>,\n <https://groups.google.com/group/swupdate/subscribe>"}},{"id":3676508,"web_url":"http://patchwork.ozlabs.org/comment/3676508/","msgid":"<00c101dccb17$cb45d530$61d17f90$@gmail.com>","list_archive_url":null,"date":"2026-04-13T07:33:14","subject":"RE: [swupdate] [RFC PATCH 2/3] tools/swupdate-progress: sticky\n FAILURE state modifications","submitter":{"id":92117,"url":"http://patchwork.ozlabs.org/api/people/92117/","name":"Konrad Schwarz","email":"konrad.schwarz@gmail.com"},"content":"> -----Original Message-----\n> From: Stefano Babic <stefano.babic@swupdate.org>\n> > In any case, patch 1 and 2 are *not *independent: if you decide to\n> > apply patch 1, you should also apply patch 2, which \"undoes\" the\n> > effects of patch 1 in tools/swupdate-progress.  If not, the\n> > post-failure script can run multiple times -- a big change in semantics!\n> >\n> \n> They are not supposed to be applied singularly.\n> \n> The series seems to want to address different topics:\n> \n> 1) the progress interface sends some messages that can confuse a monitor\n> application. This should be specified, but then it should be fixed inside SWUpdate.\n\nI was writing a monitor application that displayed the current state using an industrial\n\"status light\" with five colors stacked upon each other.  Different color patterns\nindicate different stati.  This was done for a trade fair, as an eye catcher.\n\nThe funny thing was that in case of a failure, the FAILULRE state didn't appear.  Upon\ncloser examination, this was because some PROGRESS messages were being\nsent *after* the FAILURE message, so the simple logic in the lamp switched from\nFAILURE (blinking red) to the PROGRESS pattern (blinking green, IIRC).\n\nThis is obviously easy to filter; the first patch does this in SWUpdate.  All messages\nafter a FAILURE message have their state changed to FAILURE, until the next START\nmessage comes.  (For the fair, I added the filter to the lamp code; but it affects\nevery progress monitor, hence, the patch to core).\n\n \n> 2) some actions are to be taken if an update fails, and you do it by adding a sort of\n> post process + filtering.\n\nSWUpdates own tools/swupdate_progress is not just a passive progress monitor,\nbut can call an external script / reboot the machine upon certain state transitions.\n\nThe logic there up to now has been that when receiving a FAILURE message,\nthe post script is invoked.  Because of my change above, multiple FAILURE\nmessages are being generated: the first (real) one, and then the re-labeled PROGRESS messages.\n\nThe second patch is to prevent tools/swupdate_progress from starting the post script multiple times:\nthe script is invoked only on the first FAILURE message.\n \n> Point 1) should be identified. I have foreseen at the beginning some additional state\n> transitions (DONE state), that was unnecessary. So which are the transitions after\n> a FAILURE that seems confusing ?\n\nSee above: PROGRESS messages are appearing after FAILURE, which in naïve \ninterpretation would mean that some sort of progress is occurring after FAILURE.\n\n(Unfortunately, I didn't save the trace showing this and it's not easy for me to recreate it).\n\n> \n> Note: progress interfaces are waitig for a START after a SUCCESS/FAILURE.\n> Other state are ignored.\n> \n> Point 2) is solved in another way by adding post-failure scripts. These are\n> guaranteed to run once, and they run at the right time in the update.","headers":{"Return-Path":"<swupdate+bncBCM7PUF6Q4ORBQFY6LHAMGQET7PSXKY@googlegroups.com>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=googlegroups.com header.i=@googlegroups.com\n header.a=rsa-sha256 header.s=20251104 header.b=Gu6CuHdg;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=Xbfcvr+7;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com\n (client-ip=2a00:1450:4864:20::539; helo=mail-ed1-x539.google.com;\n envelope-from=swupdate+bncbcm7puf6q4orbqfy6lhamgqet7psxky@googlegroups.com;\n receiver=patchwork.ozlabs.org)"],"Received":["from mail-ed1-x539.google.com (mail-ed1-x539.google.com\n [IPv6:2a00:1450:4864:20::539])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fvJzq31wSz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 13 Apr 2026 17:33:26 +1000 (AEST)","by mail-ed1-x539.google.com with SMTP id\n 4fb4d7f45d1cf-66ee04c60e6sf4478626a12.0\n        for <incoming@patchwork.ozlabs.org>;\n Mon, 13 Apr 2026 00:33:25 -0700 (PDT)","by 2002:aa7:c411:0:b0:670:a233:cb5e with SMTP id\n 4fb4d7f45d1cf-670a233da59ls2241116a12.2.-pod-prod-03-eu;\n Mon, 13 Apr 2026 00:33:18 -0700 (PDT)","from mail-wm1-x335.google.com (mail-wm1-x335.google.com.\n [2a00:1450:4864:20::335])\n        by gmr-mx.google.com with ESMTPS id\n 4fb4d7f45d1cf-6707091e005si187572a12.4.2026.04.13.00.33.18\n        for <swupdate@googlegroups.com>\n        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);\n        Mon, 13 Apr 2026 00:33:18 -0700 (PDT)","by mail-wm1-x335.google.com with SMTP id\n 5b1f17b1804b1-488b0046078so39783855e9.1\n        for <swupdate@googlegroups.com>; Mon, 13 Apr 2026 00:33:18 -0700 (PDT)","from dinmPF4XJWP1 ([195.145.170.204])\n        by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-488d67ce3e4sm192806625e9.5.2026.04.13.00.33.15\n        (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);\n        Mon, 13 Apr 2026 00:33:16 -0700 (PDT)"],"ARC-Seal":["i=2; a=rsa-sha256; t=1776065603; cv=pass;\n        d=google.com; s=arc-20240605;\n        b=QY0aG3MInwDZgqprB4WePLZZNEl08rM/+7fAeNiLWy+kv5XlQK8tT0XIDBSuEllhyB\n         ngS1zfLFf6k4yjNx+7AYZSvMkI7K9onkhX+Rw7BHI4+KyckuqET2oF0UCxK17FxYhFua\n         iTVCDUhk2vUtn6H/KckqVq8JF4YZxMI7HbXJ7DlGj2xGQMj1847XzAPZVZnmFjKPY2hc\n         4CkA3Yx0c+2kkA8KEKGBwCL93LvwKmrTZBMhHG0s1MY7gGZ+JMkpO5DchMcnFrwrDXzQ\n         Rf/tdNUvsBr6iR/sD2oCvNXdaaLiK4n1jDO2C0tv4NGItu/LECxgu+kNLkW0gcLNfU0v\n         7o4Q==","i=1; a=rsa-sha256; t=1776065598; cv=none;\n        d=google.com; s=arc-20240605;\n        b=bt4oaAc7AKpOayGXK1KAkazxjpkGVJcUloT5lxujIVr9Rreubmr1z4WcluYiqV4t5f\n         whs5scG0YcfG6EUGvDwGvuz8ETii6DcAeQGwi1eWRrXSn/UN/Ie9EASA/j5ApQJqnByN\n         93fZIOdumNcLYAGqQB2L9YDfQ3ZGxA92d8RycQXu0xwHDlykvNOIWA1costg6fgAMI7/\n         g4rv4UPt6veZTDyLOC2dl+E2kMSaz8Nnc7GmeR/mIxFX11DmiSnkTH7tuzUdqmgkZ33t\n         gVFS74i9VgeMFcfdUqZL5aTaHwE0F/ApvBmQUd95JMycPMihyda7yn9rxsatNi4OlfSn\n         VPWw=="],"ARC-Message-Signature":["i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:content-language:thread-index\n         :content-transfer-encoding:mime-version:message-id:date:subject\n         :in-reply-to:references:to:from:sender:dkim-signature:dkim-signature;\n        bh=XEbO0JLP20Aefql3udUx4+uYEHW/DGcK2rRLmxAAaa8=;\n        fh=harIgHp4gsy23tFozicunebieNiqpKKJZB4IPUltu/k=;\n        b=YzdQsjZRXncriEcNlTnkMCJpvy2cvh2GTQgZig7bLjvhZpOIZCt35V1uPdvjdfVCJP\n         fw37OwOKSXpDFB5cbJEbccyRTVpDso/TfC+j2EavFTlvwfl4FZktEODBW/bKHcAK3XEC\n         khTqZw0xzRjYU1kSFJ7heRwTtP4KnNh9ZhraNNHnZksENvCma0e+4vyB+lltpUMe5PAV\n         nl8oWWpZFwTBowEhZRoE68Ugkr1V6PSEmubJy7feXbprSb1cZOs69OuiLzIcqYuhItSx\n         T4B1IC9Zl6eg4TT8GV+61JYOQxbVFa2GKIFslYPHZUPtkk0+ECV9/Sw/Gz0Xqutd6ZZD\n         pt3w==;\n        darn=patchwork.ozlabs.org","i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=content-language:thread-index:content-transfer-encoding\n         :mime-version:message-id:date:subject:in-reply-to:references:to:from\n         :dkim-signature;\n        bh=xGh4izSKU2KZ40ZyR5z+K8HsM2SsSXALra4KB18+PUw=;\n        fh=pptht/4zTxL4uEiuqRqD2oTo9LE9Jpbr6/Yu0k2f1mo=;\n        b=ADlvW3RnMVK8mBkoBl2449GNsDvdXxF4wyIeZG9ILJ7h5unVa9Oisls/gfSDfqWbjF\n         tlmzs0O41IMyHlc0i4kqWszpv/Htox8im2ywriHDPac58VutsKqVUE3O/S5A4es2Z96d\n         GM0gkGRW5q/QTIsvHgRkDh3iZWZFvCM6PR5qYcwQEVd5wQ1Gko4VdD3F8o6xvU7Sr4N4\n         xixTlSa58shEYkuDqGmc1+mAYb9Mf7v1HmV8f+UWbY8BYvjiLJAuNzIvXl4iDj8ZCciG\n         uke1j1orgDpyZitZmRY8yZ5NlYo2KWoUhAZihLvROcxlCalDt1pmfM9lJWtbCKW2CXQO\n         wauA==;\n        dara=google.com"],"ARC-Authentication-Results":["i=2; gmr-mx.google.com;\n       dkim=pass header.i=@gmail.com header.s=20251104 header.b=NckUY825;\n       spf=pass (google.com: domain of konrad.schwarz@gmail.com designates\n 2a00:1450:4864:20::335 as permitted sender)\n smtp.mailfrom=konrad.schwarz@gmail.com;\n       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com;\n       dara=pass header.i=@googlegroups.com","i=1; gmr-mx.google.com;\n       dkim=pass header.i=@gmail.com header.s=20251104 header.b=NckUY825;\n       spf=pass (google.com: domain of konrad.schwarz@gmail.com designates\n 2a00:1450:4864:20::335 as permitted sender)\n smtp.mailfrom=konrad.schwarz@gmail.com;\n       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com;\n       dara=pass header.i=@googlegroups.com"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=googlegroups.com; s=20251104; t=1776065603; x=1776670403;\n darn=patchwork.ozlabs.org;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:x-original-authentication-results\n         :x-original-sender:content-language:thread-index\n         :content-transfer-encoding:mime-version:message-id:date:subject\n         :in-reply-to:references:to:from:sender:from:to:cc:subject:date\n         :message-id:reply-to;\n        bh=XEbO0JLP20Aefql3udUx4+uYEHW/DGcK2rRLmxAAaa8=;\n        b=Gu6CuHdgju59dVIx4nVclc9CdS4DaxvYG8zK5LQo4IWiiu59d6JfzMq90iYiKWpfcI\n         oXBolzHkFBdaaDdeZ0+stpL/XiZ59AnkRq3m3yivFNpod2pBhW/kJzI7wit86s18pfvJ\n         +9vulXMy7JAKHnnvUzjDVNluAsJUN6S+IMCyEZQsoh6DkNrZCEXJ/MOFy2JgfWbhurkj\n         KwgFF8NgZBQQg2fleRNPPZGyuxyCvsJyFPHKxMDpahndlGi1ZGD7ezor71JvJlkcXCF0\n         HCAUoqwoIJ6vA0iclufAl00HU5DPo+SdT8+g27xOA93Pws+7lReQbBVC6P8PLvBX2oLT\n         5yfQ==","v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1776065603; x=1776670403;\n darn=patchwork.ozlabs.org;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:x-original-authentication-results\n         :x-original-sender:content-language:thread-index\n         :content-transfer-encoding:mime-version:message-id:date:subject\n         :in-reply-to:references:to:from:from:to:cc:subject:date:message-id\n         :reply-to;\n        bh=XEbO0JLP20Aefql3udUx4+uYEHW/DGcK2rRLmxAAaa8=;\n        b=Xbfcvr+7gjrEw4kpLMSiWceP5LnbIpM6QqrqXz0Lq5nQ/EdGKLO8PaJ706ZYkJoHPy\n         +EBBL460QYeoxUzH4hb5eR/WKtO27ruiuF39WjnKh4v5KZeNGwKjogLAwuzfaKmPXpSd\n         mIgYbmI1yhtHv2+HrbcNsMNaEYXBDEqcv4An0h+znbA6IM43hdOqFEt+sY22Ei7fjzq+\n         KlYjDBJIQToRyufIukGvICYsspFJbAYsRv9+RhuR1lz/shivNiO4GvP2BS2tTshwtOvg\n         NYYZNOK2lAbfCzkkFIeq1qNsH4F+Elz1uvq84L6G/YOOOHrYYojmkoA2QrP/ubdwf1cE\n         PhPg=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1776065603; x=1776670403;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :x-spam-checked-in-group:list-id:mailing-list:precedence\n         :x-original-authentication-results:x-original-sender\n         :content-language:thread-index:content-transfer-encoding\n         :mime-version:message-id:date:subject:in-reply-to:references:to:from\n         :x-gm-gg:x-beenthere:x-gm-message-state:sender:from:to:cc:subject\n         :date:message-id:reply-to;\n        bh=XEbO0JLP20Aefql3udUx4+uYEHW/DGcK2rRLmxAAaa8=;\n        b=joUaQf32w9XzH3hy7DoIxuvxKvS9dFJx0/VaBCKyM3vTkXyd3WgeYcY8oypmOMcTEr\n         s8gsmKPVUUCpfV4OGpTnA6CoosqSpvBejxo6vtCkT+SgPsktJuVe0iSlnw8ABz3fBRas\n         Mh3mklAfXts7NY+ZNTClATXJ3CfbxPqtzq/d+iqIgZ8FzqNBgntohs1fQCK60UMTSx2x\n         NBgMrt0U4wAnKMYeEy3yvqMZ/GxlgrDFD14+fgKWM1fCNwuu5FempQU21vzBx+DSkgWw\n         +QQGz4kVr6PjLIW63W9kPav1ErpzJdK3VBxYJ37LmeUtmfAfk7NtBO1SQJGRcNAqTaBu\n         HOTQ==","Sender":"swupdate@googlegroups.com","X-Forwarded-Encrypted":["i=2;\n AFNElJ/oE6bEsGs07GTz59DO0iUT4/Dy060CJTwgvD+TVHZux5igvZHx+rrRC4SzukH41yOO97Z0Ksdw7g==@patchwork.ozlabs.org","i=2;\n AJvYcCXlSKKH5+kQEIQdV/J8tSji5+5dD6i6V8RR2FoxuKizR/sMO23BjmN9a07HCmpnJtVQqQshDKvllA==@googlegroups.com","i=1;\n AFNElJ9VZPbCOQLbt50+QhcaFeZ+2a8uzY5SmcDKMu/ODAJg314WvFkHwDXFUdKCeJyJSV3f9GG5o2jMgw==@googlegroups.com"],"X-Gm-Message-State":"AOJu0Yyvg4yyO2ADMCGMTAcy5fMZgF7LQ/lQkR0esfM848esx2k3sOR2\n\t3HPUZuhVAFLJW6jmGryGjJnlDKBXKZhzs8BFmi++ZmxmWMGj01x10lGv","X-Received":["by 2002:a05:6402:430c:b0:671:b112:4cca with SMTP id\n 4fb4d7f45d1cf-671b1124d5dmr33809a12.16.1776065602813;\n        Mon, 13 Apr 2026 00:33:22 -0700 (PDT)","by 2002:a17:906:ee8d:b0:b83:1433:78de with SMTP id\n a640c23a62f3a-b9d7260da9fmr595721166b.12.1776065598280;\n        Mon, 13 Apr 2026 00:33:18 -0700 (PDT)","by 2002:a05:600c:46cb:b0:488:c51f:e04e with SMTP id\n 5b1f17b1804b1-488d67f3a0fmr167104165e9.13.1776065597630;\n        Mon, 13 Apr 2026 00:33:17 -0700 (PDT)"],"X-BeenThere":"swupdate@googlegroups.com;\n h=\"AYAyTiKYLHkfmdiAgSXj7OxcOmowsPAw3L5nm8IOXKwpe7ffSA==\"","Received-SPF":"pass (google.com: domain of konrad.schwarz@gmail.com designates\n 2a00:1450:4864:20::335 as permitted sender) client-ip=2a00:1450:4864:20::335;","X-Gm-Gg":"AeBDieuXyGZ+9IHlVbhKXJW/6+hlPZhqjFFZ7ids/xvwWW8TfAlI1loLj51GPfKSu0l\n\tb8f30bGCP9gHLn6ullu8sLlBgz7+V3WVv6vzzPdDuqpabhE0GaK1tKPYeTBPxZaKqgqC++LiNkz\n\teGTekt3DDFQzAEYI5WDMIm10bmdXm7viv7fAW7jTsiZVXaAQ5kcyIAopN6qTmbv2dVzz9qb7NCO\n\tqc0Vu7lQ8qoAZp2msx76uAsFE1H9LF4cwL8FoAW6/KH/eGBHIky21j8PrWEoLDtfdD7TxESPceF\n\tscl8VAXP/WUP72lzqSZmbL68YNHfYwcvxdlOV4Dggal28t4/98kCZmqjcc3dAjQWq0MjeIDJ+P/\n\tzhub4GvqEEfqATSllWk8Ki0y/Yt+UK79b8kQ0vOZ/0JLIW0C3vR4aaoWk5CB44LhaSRen3WBdEL\n\t4VZgqQy366Pqg5of/0I9BPsXSS4WvKTHrzXw35","From":"<konrad.schwarz@gmail.com>","To":"\"'Stefano Babic'\" <stefano.babic@swupdate.org>,\n\t\"'swupdate'\" <swupdate@googlegroups.com>","References":"<cover.1775844632.git.konrad.schwarz@siemens.com>\n <5c7a7e7b9dc54a5c5cf144fcd63298beea3d3383.1775844632.git.konrad.schwarz@siemens.com>\n <09762b24-7d87-4356-a177-5a8dcd118b1e@swupdate.org>\n <5191cb21-e617-4b68-b9d0-15638e307ba6n@googlegroups.com>\n <f7a7b8f2-118a-4a32-b93d-ac2150116759@swupdate.org>","In-Reply-To":"<f7a7b8f2-118a-4a32-b93d-ac2150116759@swupdate.org>","Subject":"RE: [swupdate] [RFC PATCH 2/3] tools/swupdate-progress: sticky\n FAILURE state modifications","Date":"Mon, 13 Apr 2026 09:33:14 +0200","Message-ID":"<00c101dccb17$cb45d530$61d17f90$@gmail.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"UTF-8\"","Content-Transfer-Encoding":"quoted-printable","X-Mailer":"Microsoft Outlook 16.0","Thread-Index":"AQHPW2OrZPMVFhV0YbsHciL7GseKDQHpTAu/AgYpbR8CGGzJNQIeywettbY+UzA=","Content-Language":"en-us","X-Original-Sender":"konrad.schwarz@gmail.com","X-Original-Authentication-Results":"gmr-mx.google.com;       dkim=pass\n header.i=@gmail.com header.s=20251104 header.b=NckUY825;       spf=pass\n (google.com: domain of konrad.schwarz@gmail.com designates\n 2a00:1450:4864:20::335 as permitted sender)\n smtp.mailfrom=konrad.schwarz@gmail.com;\n       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com;\n       dara=pass header.i=@googlegroups.com","Precedence":"list","Mailing-list":"list swupdate@googlegroups.com;\n contact swupdate+owners@googlegroups.com","List-ID":"<swupdate.googlegroups.com>","X-Spam-Checked-In-Group":"swupdate@googlegroups.com","X-Google-Group-Id":"605343134186","List-Post":"<https://groups.google.com/group/swupdate/post>,\n <mailto:swupdate@googlegroups.com>","List-Help":"<https://groups.google.com/support/>,\n <mailto:swupdate+help@googlegroups.com>","List-Archive":"<https://groups.google.com/group/swupdate","List-Subscribe":"<https://groups.google.com/group/swupdate/subscribe>,\n <mailto:swupdate+subscribe@googlegroups.com>","List-Unsubscribe":"\n <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>,\n <https://groups.google.com/group/swupdate/subscribe>"}},{"id":3676559,"web_url":"http://patchwork.ozlabs.org/comment/3676559/","msgid":"<1143c629-ad35-4370-8e90-98d3369e9e09@swupdate.org>","list_archive_url":null,"date":"2026-04-13T08:37:25","subject":"Re: [swupdate] [RFC PATCH 2/3] tools/swupdate-progress: sticky\n FAILURE state modifications","submitter":{"id":86869,"url":"http://patchwork.ozlabs.org/api/people/86869/","name":"Stefano Babic","email":"stefano.babic@swupdate.org"},"content":"Hi Konrad,\n\nOn 4/13/26 09:33, konrad.schwarz@gmail.com wrote:\n>> -----Original Message-----\n>> From: Stefano Babic <stefano.babic@swupdate.org>\n>>> In any case, patch 1 and 2 are *not *independent: if you decide to\n>>> apply patch 1, you should also apply patch 2, which \"undoes\" the\n>>> effects of patch 1 in tools/swupdate-progress.  If not, the\n>>> post-failure script can run multiple times -- a big change in semantics!\n>>>\n>>\n>> They are not supposed to be applied singularly.\n>>\n>> The series seems to want to address different topics:\n>>\n>> 1) the progress interface sends some messages that can confuse a monitor\n>> application. This should be specified, but then it should be fixed inside SWUpdate.\n> \n> I was writing a monitor application that displayed the current state using an industrial\n> \"status light\" with five colors stacked upon each other.  Different color patterns\n> indicate different stati.  This was done for a trade fair, as an eye catcher.\n> \n\nOk, nice.\n\n> The funny thing was that in case of a failure, the FAILULRE state didn't appear.  Upon\n> closer examination, this was because some PROGRESS messages were being\n> sent *after* the FAILURE message, so the simple logic in the lamp switched from\n> FAILURE (blinking red) to the PROGRESS pattern (blinking green, IIRC).\n\nThis exactly what should be found. Somewhere the PROGRESS status is set, \nand I would like to check when it happens and how.\n\n> \n> This is obviously easy to filter; the first patch does this in SWUpdate.\n\nYes, but the patch simply overwrite the status instead of fixing where \nit occurs. So it won't be applied.\n\n\n>  All messages\n> after a FAILURE message have their state changed to FAILURE, until the next START\n> message comes.  (For the fair, I added the filter to the lamp code; but it affects\n> every progress monitor, hence, the patch to core).\n\nOk\n\n> \n>   \n>> 2) some actions are to be taken if an update fails, and you do it by adding a sort of\n>> post process + filtering.\n> \n> SWUpdates own tools/swupdate_progress is not just a passive progress monitor,\n> but can call an external script / reboot the machine upon certain state transitions.\n> \n> The logic there up to now has been that when receiving a FAILURE message,\n> the post script is invoked.  Because of my change above, multiple FAILURE\n> messages are being generated: the first (real) one, and then the re-labeled PROGRESS messages.\n\nOk - but why ist this not done with post-failure scripts in the SWU, as \nthese are thought for this purpose ?\n\nThe post script in swupdate-progress is global, and it is called from \neach SWU. It is also unrelated to the SWU, so it is maybe already in the \nold (the running) version and this adds a bad dependency between \nsoftware versions.\n\n> \n> The second patch is to prevent tools/swupdate_progress from starting the post script multiple times:\n> the script is invoked only on the first FAILURE message.\n\nThat is clear, but it is a work-around for the first work-around.\n\n>   \n>> Point 1) should be identified. I have foreseen at the beginning some additional state\n>> transitions (DONE state), that was unnecessary. So which are the transitions after\n>> a FAILURE that seems confusing ?\n> \n> See above: PROGRESS messages are appearing after FAILURE, which in naïve\n> interpretation would mean that some sort of progress is occurring after FAILURE.\n> \n> (Unfortunately, I didn't save the trace showing this and it's not easy for me to recreate it).\n\nThis is what should be necessary to identify the issue.\n\n> \n>>\n>> Note: progress interfaces are waitig for a START after a SUCCESS/FAILURE.\n>> Other state are ignored.\n>>\n>> Point 2) is solved in another way by adding post-failure scripts. These are\n>> guaranteed to run once, and they run at the right time in the update.\n\nBest regards,\nStefano","headers":{"Return-Path":"<swupdate+bncBD2ZDGN6SEKRBSOW6LHAMGQEMJU3EFA@googlegroups.com>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=googlegroups.com header.i=@googlegroups.com\n header.a=rsa-sha256 header.s=20251104 header.b=dlxmSk5E;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com\n (client-ip=2a00:1450:4864:20::338; helo=mail-wm1-x338.google.com;\n envelope-from=swupdate+bncbd2zdgn6sekrbsow6lhamgqemju3efa@googlegroups.com;\n receiver=patchwork.ozlabs.org)"],"Received":["from mail-wm1-x338.google.com (mail-wm1-x338.google.com\n [IPv6:2a00:1450:4864:20::338])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fvLPv5h83z1yDG\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 13 Apr 2026 18:37:39 +1000 (AEST)","by mail-wm1-x338.google.com with SMTP id\n 5b1f17b1804b1-4836abfc742sf29361855e9.0\n        for <incoming@patchwork.ozlabs.org>;\n Mon, 13 Apr 2026 01:37:39 -0700 (PDT)","by 2002:a05:6000:2306:b0:43b:5003:e2eb with SMTP id\n ffacd0b85a97d-43d62da5a84ls2181325f8f.2.-pod-prod-04-eu; Mon, 13 Apr 2026\n 01:37:28 -0700 (PDT)","from mout.kundenserver.de (mout.kundenserver.de. [217.72.192.74])\n        by gmr-mx.google.com with ESMTPS id\n ffacd0b85a97d-43d7b1d62desi23012f8f.7.2026.04.13.01.37.27\n        for <swupdate@googlegroups.com>\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Mon, 13 Apr 2026 01:37:27 -0700 (PDT)","from client.hidden.invalid by mrelayeu.kundenserver.de (mreue106\n [212.227.15.153]) with ESMTPSA (Nemesis) id 1MuDsZ-1vIJI32NAL-00t8IV; Mon, 13\n Apr 2026 10:37:26 +0200"],"ARC-Seal":["i=2; a=rsa-sha256; t=1776069451; cv=pass;\n        d=google.com; s=arc-20240605;\n        b=jvutpW3bsPvuFeO/Bh70QiBxvSAbRzq1P9oHK6QAbHhQHgYJue1m138c8XS8K3aj4z\n         ff2yYI1MIWpemSRiARFGLhkLXa6aYat0wfAkv+muGrP0agfj9vZQOxQVoR5YmLcYnpxo\n         lzbruwDOz+Owz06yl0RKTz8KynPNGXx84iPocGgFI0kUSlVRG4d54r9FODxgIUs8oPM7\n         gw4qnkWKvW5H7SGHpNn2AmvWDSBso24JyfaHbZvkQcMoAckthBjD47Pnqn5gqUqTztL7\n         ck3bh9gtANuf1iuj+XoHMQy96hr2sNbMc2+SJjyhdkSryu/A8oTo2muVNJX2h154YDtn\n         9KMQ==","i=1; a=rsa-sha256; t=1776069447; cv=none;\n        d=google.com; s=arc-20240605;\n        b=d0t6otaX5I4z7Nx4SQgMUpeIfF3qYn1Je8bZzJT5viQmwa8qsBUADllh4xKqofOqtO\n         /gkHWm0ubHtpMYNHK0HyieORHruny5yPjpjBxZpA0Vn4PkxiAj47QMJds+JtWROSilYq\n         gKUqWWeMRGyaNb+skG8Ckyx+dWDBc2jLWnbDh7uooaHrKNIdc4zGosXUhJQpR5mJFz/J\n         YgHqbzM07zrq5JizYPzuwkooSgr9siO7hCKUriHnadLyOQz/FKovRPVT1SZEoQ02LYEO\n         drmibCI42lp0tl5f0X7B+CeRez4UNCKPThx0V4hm5XergEwtl35tAhOZ5Y8ociRXqYXQ\n         2qhA=="],"ARC-Message-Signature":["i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:ui-outboundreport\n         :content-transfer-encoding:in-reply-to:from:content-language\n         :references:to:subject:user-agent:mime-version:date:message-id\n         :sender:dkim-signature;\n        bh=YfNQ8ONEqlRJONSjXMjBnI3XH0JxaPaDwSMAUaISjuQ=;\n        fh=Yp4VH7p/bzDKEzSfbjbPq/1oB8tPybkqOOODeBLNscA=;\n        b=UastyfnNhkfBAv0AI4xyFvnOlLWMoZMnutd/EDuTpKJUPpCg7MFgxcAwhGtD42IVGQ\n         2yITB+bQ48kbU+nRzVycfmn8osg1+Ki/0Df7wL2DCYHHD9XOrsUvwTSwVFj5xQvCYkvC\n         9uvXpUMSIxZmh7dUr8SbC7EeA/XcoFdrP+A5XrLOpJMKRTp+7hZNYFItCKQAOZE9WLk5\n         00z6TCxxZ/jsvA1xjRWXa/ZTfqwiHGmqt2ozuQvKtI6B2OamIZY5KPlduFQASiOm0wcs\n         09g1ef33HqeWny9whTqfTZAstJMjDe/BXtXvoiQXZkRwGbNYXZbArU+Z3nU1AA+m0T+t\n         tcFA==;\n        darn=patchwork.ozlabs.org","i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=ui-outboundreport:content-transfer-encoding:in-reply-to:from\n         :content-language:references:to:subject:user-agent:mime-version:date\n         :message-id:dkim-signature;\n        bh=whpPV1vDGUl1juN+9otCbIKnwIFwmJ+CMXdcKLKPwoc=;\n        fh=hJJjpcSVygjGuVbnfLOt1c5zhDtC9aEoh0u6feU31XM=;\n        b=Zavq7EBpG8vZR33mWfWjUFFfaiaU6WeLnGX6FjEgMqcJFkNo8uXUfJ9K0RnVoHRjqc\n         KMCUJOoLZvRUteYXVlAeYzxGjHQV9ieEpkdA6ojcf8f/hdaAnPusmI4hzhDz4FJln0JS\n         fmQMMmiBc8u68InHU+Ru+RHpRji3djkm8udbxQNJfrscC6E0oQKxdggr0tHzP1CbEeSM\n         gozj7e/aRBaTzDvdVptJlreTdmaJpMJg6OjxsmnHbJS+1NkSOl3EJ20y2qHYO1ovfW3Q\n         o2qQ9twkBxw9PRTGcWlfOCHeSkxDMm9asTKRQwZ5nkI6AVCqIAn1IKvVWq95wH/AXXT7\n         5kKQ==;\n        dara=google.com"],"ARC-Authentication-Results":["i=2; gmr-mx.google.com;\n       dkim=pass header.i=@swupdate.org header.s=s1-ionos header.b=e1GvNp2J;\n       spf=pass (google.com: domain of stefano.babic@swupdate.org designates\n 217.72.192.74 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org;\n       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=swupdate.org","i=1; gmr-mx.google.com;\n       dkim=pass header.i=@swupdate.org header.s=s1-ionos header.b=e1GvNp2J;\n       spf=pass (google.com: domain of stefano.babic@swupdate.org designates\n 217.72.192.74 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org;\n       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=swupdate.org"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=googlegroups.com; s=20251104; t=1776069451; x=1776674251;\n darn=patchwork.ozlabs.org;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:x-original-authentication-results\n         :x-original-sender:ui-outboundreport:content-transfer-encoding\n         :in-reply-to:from:content-language:references:to:subject:user-agent\n         :mime-version:date:message-id:sender:from:to:cc:subject:date\n         :message-id:reply-to;\n        bh=YfNQ8ONEqlRJONSjXMjBnI3XH0JxaPaDwSMAUaISjuQ=;\n        b=dlxmSk5EbY5WvzcJ/eQ43B9H7g0QW+jQK4rdD91Y5chZ9XLQGn6et72tFwzUp3p2or\n         HocuAukGj+BAH1ngR9ZTqZgsvoQO4VfHdcBms4woV06lII02WChpQUHZxkNYkcGAPriX\n         KddzPInZzYZ4HbcmHwiCb6V8raQcifhLKClxj5vR5+f/i8K2/UiPmU8Wk+EIYkTYFXj7\n         HaKvbGNfavBXgKhntx/wP0kS87Erb6DTfoNMJm48zXI3TnRQrUq42Fq+42vWwF1ALjA5\n         Zik8HRC/NOXnIY3YIKXa/5y/w4h2H2I+Q/pjDRc/eUkPSMilXxJpm/WTYIIKOkr2npee\n         vZOw==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1776069451; x=1776674251;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :x-spam-checked-in-group:list-id:mailing-list:precedence\n         :x-original-authentication-results:x-original-sender\n         :ui-outboundreport:content-transfer-encoding:in-reply-to:from\n         :content-language:references:to:subject:user-agent:mime-version:date\n         :message-id:x-beenthere:x-gm-message-state:sender:from:to:cc:subject\n         :date:message-id:reply-to;\n        bh=YfNQ8ONEqlRJONSjXMjBnI3XH0JxaPaDwSMAUaISjuQ=;\n        b=L8TL5g4GQ/g8tyzsDT/dg1GQ/hZS1EaXyPLmxUNOK/Fb+JmM/Zh81riI7x7582o6s+\n         TkvaVL/6W0WOUBmj0IpeDJJwLX/G615cE8azxI1eA+8SWQW7aVU6JnC7gk69L13SmsFH\n         7xuDaTa12Mwc0FTdJRoZVf9MvaKCgSfCP80oflAsB3qgKM0mdmqkZKEKuoWQ41SYyQ6c\n         aQA2aoWuuWLmtbcre0f/L+Py1heTi4oQi5AM03oz9rFn20jMrsTadowqAwfUG5oS+MWW\n         VTxOxy6JNLwJDI1LMCQyXCnSW/Hsvue0rm834Kjd7WVeeE7s5S4fmFbZNFVmVqHXE4L/\n         MFOg==","Sender":"swupdate@googlegroups.com","X-Forwarded-Encrypted":["i=2;\n AFNElJ/h8RRjgqb/jkaUHBXdiXoDoJUr1Lce73DM1LEeDxcZtXJUpi6IG5dQ5uTwjCcQYOYO5Xws7kuXPg==@patchwork.ozlabs.org","i=2;\n AFNElJ90QFL24Uz1tzLmkvFjBk7Pe+P1QSN5dKNkejCRrP77Rq+EC8Dg6rNsO29jNkOep40oaY35VMf6uQ==@googlegroups.com"],"X-Gm-Message-State":"AOJu0YzxCWLfGrfCc3lD3cDeOzNn5PFoN8CY/hpXYIl9XPJkG93CnckB\n\txEmvSbBGlfT+Lugg24PJPwi1jejJQ5X+W/5pnz4Srpk8htxh/ZN8gqRq","X-Received":["by 2002:a05:600c:3150:b0:488:c80c:c236 with SMTP id\n 5b1f17b1804b1-488d68057f3mr182147525e9.5.1776069451433;\n        Mon, 13 Apr 2026 01:37:31 -0700 (PDT)","by 2002:a5d:5d03:0:b0:43c:f5a0:4e56 with SMTP id\n ffacd0b85a97d-43d642d1d17mr18280591f8f.42.1776069447830;\n        Mon, 13 Apr 2026 01:37:27 -0700 (PDT)"],"X-BeenThere":"swupdate@googlegroups.com;\n h=\"AYAyTiLyWgJJDQllmo4AIRqC98NJBS4eCSlSsDGCE3A8r3V43A==\"","Received-SPF":"pass (google.com: domain of stefano.babic@swupdate.org\n designates 217.72.192.74 as permitted sender) client-ip=217.72.192.74;","X-UI-Sender-Class":"55c96926-9e95-11ee-ae09-1f7a4046a0f6","Message-ID":"<1143c629-ad35-4370-8e90-98d3369e9e09@swupdate.org>","Date":"Mon, 13 Apr 2026 10:37:25 +0200","MIME-Version":"1.0","User-Agent":"Mozilla Thunderbird","Subject":"Re: [swupdate] [RFC PATCH 2/3] tools/swupdate-progress: sticky\n FAILURE state modifications","To":"konrad.schwarz@gmail.com, 'Stefano Babic' <stefano.babic@swupdate.org>,\n 'swupdate' <swupdate@googlegroups.com>","References":"<cover.1775844632.git.konrad.schwarz@siemens.com>\n <5c7a7e7b9dc54a5c5cf144fcd63298beea3d3383.1775844632.git.konrad.schwarz@siemens.com>\n <09762b24-7d87-4356-a177-5a8dcd118b1e@swupdate.org>\n <5191cb21-e617-4b68-b9d0-15638e307ba6n@googlegroups.com>\n <f7a7b8f2-118a-4a32-b93d-ac2150116759@swupdate.org>\n <00c101dccb17$cb45d530$61d17f90$@gmail.com>","Content-Language":"en-US","From":"Stefano Babic <stefano.babic@swupdate.org>","In-Reply-To":"<00c101dccb17$cb45d530$61d17f90$@gmail.com>","Content-Type":"text/plain; charset=\"UTF-8\"; format=flowed","Content-Transfer-Encoding":"quoted-printable","X-Provags-ID":"V03:K1:hg+HajKe6eRy8+9WCehz8j6H24Z6TnNy4iA91aA4Q2rjEeslDr+\n 4XUTtY7J9qv9mliFjzcOCgo2vDPlS8JlfuQq9c2gGA3V533e30egR5XZsAk+GpjD31IPf1F\n 4EcHBpDgbKK7VrXrX5HBUMp5f0arVodxNADxqOQkv18o9nxfLjQo9IVvxQ3/5LrMxalywvk\n RYvUa5fSO1ySQhyK35wHA==","X-Spam-Flag":"NO","UI-OutboundReport":"notjunk:1;M01:P0:mw8k5evqsh0=;nHqoEa3SncCdq3nSI8S8Qq98Eau\n 5PHGuRLvDVzgMOgC+Kc9MQ2MFkG2kKYb3nRUf4RtjCKpai5Z2kM+CVVtap6FqW6W+L+tbYepO\n lXGdsRvaOh0AS7HYhHIqkKFSUW623OE1z7p4uxGAM1Nu1dePpfb1VhkL74SRZIdEPs/R/qg34\n M+5wOIJvPagB00w+l/A9rDRKy2wUW8PrGxCQkX3JM/afRlomQiq95jURRB2tnPe6JsnO8EV3E\n gXcK4+gUye8ziHn759koVbh1Lvv5uy8lakAC+1dQdOmxFwa4ps9xASVKJCd7n1BzXnHOi9OvS\n AcsgzZSMT70eK7AG2ZlqJczxS+O3Cy0Uy56oZ0rprAQ/v+xVu7nRcK96Rd0FhDHE0oMfH+o8E\n Y9aEpIf119ikaYD49WwVYW4MGzDe7qckRctEpwEq0nh0cyMoIVrD/ZKOUi3hb0UyWLC6GIh8G\n Qm+IS71RtH057KzpuW9zas277g4AkElgonL9MulG4Zlpe6PP7XQ0ATcZABdDWePLvmK48nIXF\n n+swNCZVCdP6+TMu3u/cVBr13OzKNi7FNWJ3hvpCTMdE1I7A3dTElGuTzxZUk3EX2S43HaSrC\n OyqYnQFbImH9aq3mGlC3IhETG1h/TNQD41c++3FB3fA6lmJYd/3t4EYXtI3JXncgTfZgRAmFC\n qfnAoxkG8tidv5+U3Ccki2QayaTlq8Xx4OfwsvlA/6o8bqn5fhTtEQnv7i+dRvOu2OrD0c/yz\n IaAvrInIKZkL/4G5serm9rzU1ONsVvac94qlxo5wN1mMHa6nNApr58e3VuVJJEcdgikIak2Cc\n arvvtzDiXwwH/NdYfhL1DmbYImtgTCsOaUu9ExeYYVl3T7U/Zn9/d/8ufZjL1eSL4WtALt/I6\n rcZl2oF9j2+iRBtlOw4Syfv/YeAuefXb5FB5W+X46oNjgwKyPM42qqi3uerYCnIktwep1VcC1\n C7SyaMjO128OPCAOpQMCWz7SWCnrcAqUgYmpg9l9E+b7d+vw0UzjJd8y5KebCTZVEbVD7nxyB\n le+aI1+hgF1olO9lJSrF0X1mo3kmHf1W8zyVG7XOaKzFadzgV37PvHNbx4oLtdzJ8QXx0z5xP\n iD6tT+bBuAfQSSnedXCWfLDjWj1O+r83KZOCFf6YGJFFGf82yxjzWea2YTqLGz0Y1FaT1X5Dd\n UmSgvyH/AhvwRreHdJ/ns2f5+T0pZ+Llf76fZ9dV82v3IkiyrQhm3d9qHYg+qrwGsePQVPtWl\n GlO8lrB5axAseJsiFXYNXMdLV9+93CWYerMMddaFVXjgto6xiimWonwniwq0kcU9/pRb70nqM\n IHrDUaphwa5vm/Zx79kh+iNSIFO4YTbWwzyPW92JHQSFijFbCRV4fk6g8gMFCdnL94TYmj4O2\n Yfj/sAUWehrvMYn7FbIk1DYheJtZh8J5Qc3AbWyVcJVsdOiDgwQ1tYhcEKH3y4IgG9LZciDB+\n hfQFCHduzlER3r+EmwGGyn+6m+A8ONewO2/xCXqzge7Jm2GpNqwKXOgThkni+z6cwQc4vEYme\n fJr8PY3yAi5/yWT51usSnalnXG9QLV+19jAOMGLA8zlgTChA53maLB23J2tDWYI8EgBpoVOUM\n 3BQzszTjVzvMcnbYFZhYNToJqpZflAKHFjE49v2Qwp4XIE7TkaAopCEhUgyUUsWNrUu8BIEhV\n 5gjINb3zrVl4RhA3al1uNHGr27w33woQ2eIqH+T/6FZj5JkElH9C0+o2bn8Uiy03bw0xnMGws\n psqLklBN+V9+x0Myn1UE97qVl2gFNpQSJS0UN5UTJK9grvJKl64J+GVZVBNqxgT1bvwqOTC3K\n wO3sRrBG7grnz54gBqcTi1hcBYfZiKrYJNvplKzXueaGK7r9gps5WBfMG5ujYrvj5ClptS3lx\n Xnhm1NPRdYLY4pyDzetA7tlMYGSUSAMezvFL6kqZNdYjdDUMj3o9SiGbE9GK5bXkdTgaSF+Bn\n VSjDjczMzAc2CDeDVAFFcf5IY5b3zb7eSjLUK1XYYji7TPq6nqX0oIHAgLCCOV4Kx3nQYBtg=\n =","X-Original-Sender":"stefano.babic@swupdate.org","X-Original-Authentication-Results":"gmr-mx.google.com;       dkim=pass\n header.i=@swupdate.org header.s=s1-ionos header.b=e1GvNp2J;       spf=pass\n (google.com: domain of stefano.babic@swupdate.org designates 217.72.192.74 as\n permitted sender) smtp.mailfrom=stefano.babic@swupdate.org;       dmarc=pass\n (p=NONE sp=NONE dis=NONE) header.from=swupdate.org","Precedence":"list","Mailing-list":"list swupdate@googlegroups.com;\n contact swupdate+owners@googlegroups.com","List-ID":"<swupdate.googlegroups.com>","X-Spam-Checked-In-Group":"swupdate@googlegroups.com","X-Google-Group-Id":"605343134186","List-Post":"<https://groups.google.com/group/swupdate/post>,\n <mailto:swupdate@googlegroups.com>","List-Help":"<https://groups.google.com/support/>,\n <mailto:swupdate+help@googlegroups.com>","List-Archive":"<https://groups.google.com/group/swupdate","List-Subscribe":"<https://groups.google.com/group/swupdate/subscribe>,\n <mailto:swupdate+subscribe@googlegroups.com>","List-Unsubscribe":"\n <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>,\n <https://groups.google.com/group/swupdate/subscribe>"}},{"id":3676560,"web_url":"http://patchwork.ozlabs.org/comment/3676560/","msgid":"<adyl-NFnan-vUL_-@t14g5>","list_archive_url":null,"date":"2026-04-13T08:36:29","subject":"Re: [swupdate] [RFC PATCH 2/3] tools/swupdate-progress: sticky\n FAILURE state modifications","submitter":{"id":78928,"url":"http://patchwork.ozlabs.org/api/people/78928/","name":"Michael Adler","email":"michael.adler@siemens.com"},"content":"Hi Stefano and Konrad,\n\n> > Point 1) should be identified. I have foreseen at the beginning some additional state\n> > transitions (DONE state), that was unnecessary. So which are the transitions after\n> > a FAILURE that seems confusing ?\n\nAgreed. The proposed patch is more of a workaround for a fundamental\nproblem, in my opinion. Maybe I can shed some light on this, as I also\ndid a brief analysis back then:\n\n1. server_wfx.lua executes (around line 1490):\n\nlocal msg = (\"Error installing artifact %d/%d.\"):format(count, #job.definition.artifacts)\nsuricatta.notify.error(msg)\n\n2. The SWUpdate progress listener receives a message of severity PROGRESS: {\"0\": [100%] Error installing artifact 1/1.}\n\nExpected behavior would be to receive an error/failure message.\n\nMore generally, it appears that Lua suricatta.notify.error() messages\nare actually logged with PROGRESS severity.\n\nI haven't investigated this in detail, but my best guess was that\nprogress_thread.c:swupdate_progress_update unconditionally sets the\nseverity to PROGRESS, overriding the original value. This needs\nfurther investigation though.\n\n> (Unfortunately, I didn't save the trace showing this and it's not easy\n> for me to recreate it).\n\nAny non-successful update via wfx should actually reproduce this\nbehavior. (In our case, it was attempting to install an update with the\nsame rootfs UUID as the currently running system.)\n\nKind regards,\nMichael","headers":{"Return-Path":"<swupdate+bncBDMPDBU35AMBBSWW6LHAMGQEKOKCGJA@googlegroups.com>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=googlegroups.com header.i=@googlegroups.com\n header.a=rsa-sha256 header.s=20251104 header.b=QxfgJ5CA;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com\n (client-ip=2607:f8b0:4864:20::f40; helo=mail-qv1-xf40.google.com;\n envelope-from=swupdate+bncbdmpdbu35ambbsww6lhamgqekokcgja@googlegroups.com;\n receiver=patchwork.ozlabs.org)"],"Received":["from mail-qv1-xf40.google.com (mail-qv1-xf40.google.com\n [IPv6:2607:f8b0:4864:20::f40])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fvLPv5zycz1yGg\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 13 Apr 2026 18:37:38 +1000 (AEST)","by mail-qv1-xf40.google.com with SMTP id\n 6a1803df08f44-89ce2a7fef6sf107350556d6.1\n        for <incoming@patchwork.ozlabs.org>;\n Mon, 13 Apr 2026 01:37:38 -0700 (PDT)","by 2002:a05:6214:508a:b0:8ac:b8a0:b4b3 with SMTP id\n 6a1803df08f44-8acb8a0b80els551056d6.0.-pod-prod-09-us; Mon, 13 Apr 2026\n 01:37:29 -0700 (PDT)","from DB3PR0202CU003.outbound.protection.outlook.com\n (mail-northeuropeazlp170100001.outbound.protection.outlook.com.\n [2a01:111:f403:c200::1])\n        by gmr-mx.google.com with ESMTPS id\n 71dfb90a1353d-56f3b99e9adsi308920e0c.7.2026.04.13.01.37.28\n        for <swupdate@googlegroups.com>\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Mon, 13 Apr 2026 01:37:28 -0700 (PDT)","from VI1PR10MB3486.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:800:137::22)\n by AM7PR10MB3857.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:14d::12) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9769.48; Mon, 13 Apr\n 2026 08:37:25 +0000","from VI1PR10MB3486.EURPRD10.PROD.OUTLOOK.COM\n ([fe80::df27:d1b1:5342:4fc1]) by VI1PR10MB3486.EURPRD10.PROD.OUTLOOK.COM\n ([fe80::df27:d1b1:5342:4fc1%7]) with mapi id 15.20.9769.046; Mon, 13 Apr 2026\n 08:37:25 +0000"],"ARC-Seal":["i=3; a=rsa-sha256; t=1776069451; cv=pass;\n        d=google.com; s=arc-20240605;\n        b=kygNaBT+yJZ7BpasxrxzhOjNSxBB3W7AbvDHN6sg85ZDRZTT6U0jsr1yIk/DLEuJr/\n         m6AfJZe9AeYA5rlUcfLDf/Zk0DtcSL8rpGeD7PBTUaWDAfKjTRRNX6RsMsaNgjyblcV+\n         heeOKIPuKu8boGe2c3WH+ml5uXIkJ3RVMSboBUpst5OD19SCqQLVlSUw8+aqx04bZDO3\n         A0Q7wNfe8jG7Q/G0mNgAa13rEXrJGDwhs3GqOqCcbV61lHi3PnWxjuhNzYsBj6ieP1G6\n         5v5VrIXDvLFtKWvB+s9FrVwWKqbydEBx4Ch19PN2SbJVQ+p4tTOYeZErw74abMzsw7zf\n         7yYQ==","i=2; a=rsa-sha256; t=1776069449; cv=pass;\n        d=google.com; s=arc-20240605;\n        b=G4qUe8QjM5fzL5dl3CSubXb4IA0m3f5QngcAupzkgjCZFsdCScDivzVYVLsdwnyE3A\n         MmpIfZ3+mif5fQvxtJgLgm33UOSL6NMUb1XcxNbdUtOwcYa69aaNIX17IPVbAKNCCq1J\n         2/iYCVfOUU2zvtt8akRdyv1WdPtPA5PtioVRaITDs/vv4DCYjQBMMAuyX35N6/09HUGQ\n         eJzC0i7nwW5PSpgH6eTxdC6EYXKkHuwNxb3ChO1uq+hPcWiL15LFZ61vfvdHh6kp7ZZ/\n         c0z0ig8i/MbyY9D0B2SlcHZgW8ow8DKrJkmIR8AnNOgcxJu/O9qCJwCiNndCxQINl+C1\n         P3Dw==","i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=IXVvJ4MKRART6Skdxjib23oBqm4jaRat6okguxkz6l5Nl9rWKWg80paBk1siUrLF9giFg7Cqtskx5dO8XFjIFKSallqdNBRw8ELJpX/w68WL6YIPKmpj5NTwGg7wyO+yANLmWj/areDkXrXhatO/qUdr7CI4+yYg/CPa1AMu2kh7zRUT8iYCKAWVmPB0pOw0lyUX8GLuzKndoyKowbvyz5rVr7bp/b3eLYKCL18Jbj+Ax8bR0Ac7yaHWJskzRTpvhEb4alRtoKJiEG+OrjPuFruSbyewqFaeJWMm4+hQAAdAcycUWx2YnuzUf+Ok4oVQHQg9Ey+drunBTvUhZ3ww/w=="],"ARC-Message-Signature":["i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:reply-to:mime-version:in-reply-to\n         :content-disposition:references:message-id:subject:cc:to:from:date\n         :dkim-signature;\n        bh=tBLvILlK/7hv3dQSALVWfha9vnAQr05BtcrfKDWb478=;\n        fh=GUkmXnIo7WMEmD28T3qJAsHTuoTn0zZ/JXjUhKSAewA=;\n        b=k91wkAAsoU3xnghxEWF9PbIV7x+6qqIuIm6Smi4SrB0eyo6m2pXqZ9r6srNyhc99v0\n         eQcuFbtEv/kI7hNJTPlWZ3OlZsDkd6F2qIQ4ID3mc4xqzX6uUO9ReyO4zGf/yT5QPm7c\n         4zDCEV1lYye27BiQq6GMifwAIXIpnaGt55tbIrAdYhwxstyEGr+5egOtZ339KKQFDGqg\n         w1UgMfSTc3OUqfP9igNoYNMi4290Z89lQcuGIyWWwtZTbsakWrWF31qyK0gT32Ho8LWE\n         VoyQK0ohcIQFyyjXfxG6nXkWYWUcTc9DhIdMHqk+wYcixoZshNcYGEkEZ6GdW4errKKj\n         aV+g==;\n        darn=patchwork.ozlabs.org","i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=mime-version:in-reply-to:content-disposition:references:message-id\n         :subject:cc:to:from:date:dkim-signature;\n        bh=AGIuZGfuUoqJK3ywV+sdBTqiXF+aFPz+kdedEL7k2Yw=;\n        fh=QyK3PXDvBYfhJjq7hQXXDuhVsh9k7qd+AOeFM2CNgEs=;\n        b=NcGJmjtE0VbVQmt1HhZhqTUYSQKW+V7hFueMJZZyBEQYzH6d4n9+bdvaQZNoDVT0Zl\n         Ykzt8EXGqW8yRHXvOxMBarPowAQ5T6D0aa67V6ymGrlZpf5WXttRrLLqesTOgFYEVk/X\n         +SzWHbvrZF+f5RQkE8r+Fn9HpwduiwrENQKUyXyToSpakJmyPxaDxmhEEsJkt5Z6GbZ9\n         aLnkjIBGmGX7OgOlfnKc+d7W0wuAdbLFV1YJ/I1av8n4K0JZdk8BEhC+Za3/3837yP6N\n         XFR0X4udksl4W7IcB4cfYBHFMVyGKwaHDa/a1UHQwvX/mxr1wJGhpt+CrHwqUCXrjNbh\n         vgiA==;\n        dara=google.com","i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector10001;\n 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;\n bh=AGIuZGfuUoqJK3ywV+sdBTqiXF+aFPz+kdedEL7k2Yw=;\n b=vwpESR020st9kZ7bhbalZNOiinP02pE2es1OfWI2rA7EQIvONoN6dhHFzCgW/LlTJeoBRfGr8M1BU7kMn7Kc8WrzsxlGrPxAv8gAJzNTvqBV/iwVR5CWtSkhjF4blUokeu8kOI9xAi1jEth7lRP3YBd6OnVAztVy68psMyrHbGH88Er3UQRb1+g8OU+wEXQGAF2UfjxfnHdqvAsnnAPt7rPFOGaepsmpvRxKlwPIVZMWMdiMJmSm8SGc8gFUvmwQa5LzuF1ceZidXI9o5UYWfcNKn+iUGImIS/Gd3AbkUkolAy3iaP/iH5PU2vjZprJZ+kTdPZSpe3QO/glVm94Glg=="],"ARC-Authentication-Results":["i=3; gmr-mx.google.com;\n       dkim=pass header.i=@siemens.com header.s=selector2 header.b=GIQQBrDU;\n       arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass\n dkdomain=siemens.com dmarc=pass fromdomain=siemens.com);\n       spf=pass (google.com: domain of michael.adler@siemens.com designates\n 2a01:111:f403:c200::1 as permitted sender)\n smtp.mailfrom=michael.adler@siemens.com;\n       dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com","i=2; gmr-mx.google.com;\n       dkim=pass header.i=@siemens.com header.s=selector2 header.b=GIQQBrDU;\n       arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass\n dkdomain=siemens.com dmarc=pass fromdomain=siemens.com);\n       spf=pass (google.com: domain of michael.adler@siemens.com designates\n 2a01:111:f403:c200::1 as permitted sender)\n smtp.mailfrom=michael.adler@siemens.com;\n       dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com","i=1; mx.microsoft.com 1; spf=pass\n smtp.mailfrom=siemens.com; dmarc=pass action=none header.from=siemens.com;\n dkim=pass header.d=siemens.com; arc=none"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=googlegroups.com; s=20251104; t=1776069451; x=1776674251;\n darn=patchwork.ozlabs.org;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:reply-to\n         :x-original-authentication-results:x-original-sender:mime-version\n         :in-reply-to:content-disposition:references:message-id:subject:cc:to\n         :from:date:from:to:cc:subject:date:message-id:reply-to;\n        bh=tBLvILlK/7hv3dQSALVWfha9vnAQr05BtcrfKDWb478=;\n        b=QxfgJ5CAUCYMXt8KpA317xU556g3UvKhiCvkOs3EreP8VGNITRlGhEYu8hwft8svFs\n         hp0jysZYB+EinOssen2sASJE5IuagzOfOBcjPgDb2SwwcV0IKEj95JA2R9OaJVGcxoos\n         shIVmridauE+j5Wv7CKwXh19DrDquhQMkutn3Qpnty1+yxRBFGtDbIsr832ekKtxo2wS\n         nWMt3T6JsXNL59D2rjEONvvFS/UrMhWva8U+90CQJ7UULvdhRZPrWeW/i3wQyZ7dCeAu\n         IZ1/KWUzPpdpU6ZjWbBqzCivp4AsdywJU2PPgdsrKEL/OH5Nd2tMpSHQx5IKqHk8cVOu\n         AKXA==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1776069451; x=1776674251;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to\n         :x-original-authentication-results:x-original-sender:mime-version\n         :in-reply-to:content-disposition:references:message-id:subject:cc:to\n         :from:date:x-beenthere:x-gm-message-state:from:to:cc:subject:date\n         :message-id:reply-to;\n        bh=tBLvILlK/7hv3dQSALVWfha9vnAQr05BtcrfKDWb478=;\n        b=sMRy/B8kplR2ZLJPfQkoJqBep6FJhqOxs/MuU1LllgTVuIeeQg9OgR0BRY17grc1EN\n         oljgJs8HGSP5dkdvw8nZ61KuwBtWipboL74HcWCJqhaRx4EmI656ePbraPqskhJU6Fpg\n         LZL0sEmcDtAVE6Fdan/dIqqxd+4QJPsKfQ0NO/WLnBPQPt7lCggqDd2SxYPwqg/skEvb\n         KSwXHBXwctqaIDbXCKVyFeSAezdyCqcZAxCVlOUUGQzmDAI1xvuaZuP9RqTHeyrnq+X3\n         FOoKuGt7koOi0zpDpWvYxK1p/8HxDqNzoXcAV2M9LrdqYPKpPrRwJAcXSvnx4kLro1nN\n         x1kA==","X-Forwarded-Encrypted":["i=3;\n AFNElJ+0z5qkqZ22gsUnC/LF4UnPK0fmQcPEuZF2GWF4P2kdpwSTzvhY6IuGkxgE5XY+FNZp0eprykWxRQ==@patchwork.ozlabs.org","i=3;\n AFNElJ/rVT6pJzWJHdaPqOgRZtlbCM2fP+MeUSRiO2GmtxlGsrCMZCLg79wGaJdLvTz8jNoeL2AF/RGfrA==@googlegroups.com"],"X-Gm-Message-State":"AOJu0YxiV02bzrWSvMHYNbNXN55psdOBXwWrrjeSnU503eqY3AOzy1m6\n\tDHnEZ5N/AHSPiZFHP4rtaRmZ1ItGWJi1QmREtnJ1445JjHDyXiZayDfo","X-Received":["by 2002:a05:6214:248c:b0:8ac:b1ad:3a1a with SMTP id\n 6a1803df08f44-8acb1ad3e6emr30672826d6.36.1776069451398;\n        Mon, 13 Apr 2026 01:37:31 -0700 (PDT)","by 2002:a05:6122:21a7:b0:56e:f2cb:190b with SMTP id\n 71dfb90a1353d-56f3b998216mr5070790e0c.0.1776069449576;\n        Mon, 13 Apr 2026 01:37:29 -0700 (PDT)"],"X-BeenThere":"swupdate@googlegroups.com;\n h=\"AYAyTiKqVxCMButdijWMN3eF6MjdUT5mapJrPrhy5S8dtU/eXw==\"","Received-SPF":"pass (google.com: domain of michael.adler@siemens.com designates\n 2a01:111:f403:c200::1 as permitted sender) client-ip=2a01:111:f403:c200::1;","Date":"Mon, 13 Apr 2026 10:36:29 +0200","From":"\"'Michael Adler' via swupdate\" <swupdate@googlegroups.com>","To":"konrad.schwarz@gmail.com","Cc":"'Stefano Babic' <stefano.babic@swupdate.org>,\n\t'swupdate' <swupdate@googlegroups.com>","Subject":"Re: [swupdate] [RFC PATCH 2/3] tools/swupdate-progress: sticky\n FAILURE state modifications","Message-ID":"<adyl-NFnan-vUL_-@t14g5>","References":"<cover.1775844632.git.konrad.schwarz@siemens.com>\n <5c7a7e7b9dc54a5c5cf144fcd63298beea3d3383.1775844632.git.konrad.schwarz@siemens.com>\n <09762b24-7d87-4356-a177-5a8dcd118b1e@swupdate.org>\n <5191cb21-e617-4b68-b9d0-15638e307ba6n@googlegroups.com>\n <f7a7b8f2-118a-4a32-b93d-ac2150116759@swupdate.org>\n <00c101dccb17$cb45d530$61d17f90$@gmail.com>","Content-Type":"text/plain; charset=\"UTF-8\"","Content-Disposition":"inline","In-Reply-To":"<00c101dccb17$cb45d530$61d17f90$@gmail.com>","X-ClientProxiedBy":"FR4P281CA0093.DEUP281.PROD.OUTLOOK.COM\n (2603:10a6:d10:cb::12) To VI1PR10MB3486.EURPRD10.PROD.OUTLOOK.COM\n (2603:10a6:800:137::22)","MIME-Version":"1.0","X-MS-PublicTrafficType":"Email","X-MS-TrafficTypeDiagnostic":"VI1PR10MB3486:EE_|AM7PR10MB3857:EE_","X-MS-Office365-Filtering-Correlation-Id":"5b596cd0-b0d0-43b0-c65e-08de9937e348","X-MS-Exchange-AtpMessageProperties":"SA","X-MS-Exchange-SenderADCheck":"1","X-MS-Exchange-AntiSpam-Relay":"0","X-Microsoft-Antispam":"\n BCL:0;ARA:13230040|1800799024|376014|366016|18002099003|56012099003|22082099003|55112099003;","X-Microsoft-Antispam-Message-Info":"\n cLyTgupl831QjqR3yzXIlU29YhgXTzpOM5r5YzqV0eAdfZ2jfl5GySVQ+pQF5q6lciNJvKzD/o7XUMME7iciTJbTmnQCAEOQkj2Cnr9/17QXC1u3Hc7pRewdLD6spDN1x9jBhyAVbIk3wh/oEopFSnYT4J7FhfAENN+SLYQgcFDQm/AiZkfxTgQcVpi9++bifu/xHkiHbL85WGBjJ9l1k03Rny75WjpUPsFtp2agqIukRpY8BSyLCEHyAPDEaCW3Mgh3obj/PYKQpqe6kiQoLABdqCVFgZKTb/gUkRKffart4xKTST3v3qtu56WVAQyVAFPsn2kLu07Jmn4RkLxEnqBoQui0EL1ARJUVbqrjq5zyWDtJ0aWrJWgwK88xR/uhLeePv+qy9HW6jTvR550mIYw/z/DIIxIh2iJzHVPLcZ6ch+uycmsN4gmPPmdNqrhpqrBz10o9fKiXgK7XsJZ3/f2hvzzZeW004VR4on1dzf3fZqRGFLpwlUa1RgO3k+lvOM3isrdxqHlbJmTwFdJyo5TlVLlUT5peCBO176XDphPrEbv/Hvfnfniuv6+TZ74R/rbrOE+apwR1CCGQgyJN7aZKVobkbejut68ZNx3DIR6jSGTysH2Qu42w7ZioBzyEthgxSew07lDpozSgwQ7VGka0KHeveC3jLnXDo+ryAKNCB4WL5vy8yyHMa/oLcVbm+eJRM12qxrmnamZaDtl9ETB1VI5NS43opfqFdke7sB0=","X-Forefront-Antispam-Report":"\n CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR10MB3486.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(376014)(366016)(18002099003)(56012099003)(22082099003)(55112099003);DIR:OUT;SFP:1101;","X-MS-Exchange-AntiSpam-MessageData-ChunkCount":"1","X-MS-Exchange-AntiSpam-MessageData-0":"\n lpHeCM+hjWXXGfImmJQU1s68XETbg+7oxZjmdhvYgF24N5+qjVq1d/7+G7jJv7so+8XS1rHjg0D0lPrMI+gTAOZr8fyx74Z0Ggw5tpPDNhPnS9wpaDWEQJw3QGuK+7+CkW5qCIeRvsyH5cpzyjGro6gEgQK0CWiEbY4UOU25BBoecyCuUiACvVAxbyIIZG6+rjZmdDJ9fzTexA4RRgch2ZQPC1Xk8bGvcNej1L1wsHmT5DXut1Cq9Mt5X2dkSeXeMXHoN7v2l4sTznyC1KqXdbDirsQJjd4Fkdtmea9Xonoli6OtqXTG16kE1fb7Q79fG2t85zKyxxX+kzHZ0sd6KaE2OAkqFmtK2UTCQuyChYi/8ZAu/DzXR7E5rzM9z36LVHynxbGxQvLatPTNF+PtCt8aI6CiR8Bw18W4gQJ1RAutA3RdGJdAt1vItXKxotrioqkQRZN7MD5AAIkcg3GhL903/j+LMqMkn6sVfdrdqiD1IOMiQaKyctB2G6gn05MiBvMTLemgpol7U8XbVLMrkYW1dFxhneTal1wSN4Um8bLJ7nzCZF5S4no1kD14/HoK3jvKp3x4wazLYLHqMhNYer3K6c5qjQaBWm2mZz31S2GmSI5Iy7ENdhVt6v04dPJOXfB7ABI1NziCeM8xd93zY+SPpGQn6d+YisIvtRIWu9ExnYnYq7JUfrWwROue368/6QlgcjYdM86WwJy8YyEmdvsyWHN+Bk7MyLjG66xjXh1JObgyZqtOcw1Fj+iSVEB/ctM2nNJ+cxRRIYWE/g67OWixViitaNLVg3VBuhOXMCw9ZrUdA826vKl4EKzeErV08WioN800kW1lZdZYJBFei3RZ0bOEkj9z0xVrxSsXwKyk+/iKIemsT0E7NOIM5lkdIQ4IzCrzSnexUx0u1OIf2j27MnZ3rSXNcU2+ctvWZa4U/NKqEwZIbQ4seTXbSEF65TBkhTHDtoycMmCLuVyRftSQqiwKo+aVmvIcigo5O9Q7QaOKGzCpedlmdW9e9L4rqvEEm8mzzP1iWPyFL1DWfwFfmi7svYAz7uIL4aUjipkW87a2nEHWsVriNEcJblujShfZoiqY7FCk1P8hD/kSBEi0BxTSxHiSW2EAKWtF2URHDwoSmWQscupK0ipr8RoysAZj8dBWNEZgvsKINIy5LNG2tSbge+IAPkIbRD7IxD9plpUY9El1s5oghnURnTFVw97SIE8VtoIvMDuR4beogbPe7KrPAVo0UVilp2ulwOEPPCoI2Ap7210J3Pctw0D4u7E9/zvpzNIXo44x3bmB8sFB21KjVx423v/GCs3vJGDgpBJY2VH1J1YHCmWEoPpThRj8BAmtFKxoMU+SLGEwdVMs1RJurCDepW+Vidpao7nV/sJ7w6dgdDyGQRTurpHD3HNhRdecISburhDBaWJv8ldpfsHp4+OTtx+nNzNwvFhLiUz2clYjvw1niZirCt6u/zm7BNMitJ7BgFCtVYPA4DBEbh4TdQV4x/K+TPVduhL3KXSKxV9MA62cNQtdwE3qqEnDQp6w4u+aaN7VeBYYeN9Pn4ROdVoLYjoQW63nWkA7wzJDSnWS+x2r6J6KjcpLdAiFuwG9sMYM61zDL3FiYoDELWDQn/claDuDBSZYoNDSouw2Cwj2Rs8nZ0f0M0lnjNzNEL8a5ZzXRfEB4+TsGmmINRR0TJ6pohn5JD968ASfvL4E6cMRdLB/A3J5/x8gBQkxdzYERQywvpV9K2iwz33UHamQIVKRFrJU3HJe31Q=","X-OriginatorOrg":"siemens.com","X-MS-Exchange-CrossTenant-Network-Message-Id":"\n 5b596cd0-b0d0-43b0-c65e-08de9937e348","X-MS-Exchange-CrossTenant-AuthSource":"VI1PR10MB3486.EURPRD10.PROD.OUTLOOK.COM","X-MS-Exchange-CrossTenant-AuthAs":"Internal","X-MS-Exchange-CrossTenant-OriginalArrivalTime":"13 Apr 2026 08:37:25.0455\n (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":"\n PVmEEqnUtxNMX8tZtQACkUoqHw4biXVzxac3vxsMHggCG4DVFoS042v9G0JwdXi6YhzYAN/fYrTC9Z1/LwaZS0GPqhDaKI+afochqH7lKeg=","X-MS-Exchange-Transport-CrossTenantHeadersStamped":"AM7PR10MB3857","X-Original-Sender":"michael.adler@siemens.com","X-Original-Authentication-Results":"gmr-mx.google.com;       dkim=pass\n header.i=@siemens.com header.s=selector2 header.b=GIQQBrDU;       arc=pass\n (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass\n fromdomain=siemens.com);       spf=pass (google.com: domain of\n michael.adler@siemens.com designates 2a01:111:f403:c200::1 as permitted\n sender) smtp.mailfrom=michael.adler@siemens.com;       dmarc=pass (p=REJECT\n sp=REJECT dis=NONE) header.from=siemens.com","X-Original-From":"Michael Adler <michael.adler@siemens.com>","Reply-To":"Michael Adler <michael.adler@siemens.com>","Precedence":"list","Mailing-list":"list swupdate@googlegroups.com;\n contact swupdate+owners@googlegroups.com","List-ID":"<swupdate.googlegroups.com>","X-Spam-Checked-In-Group":"swupdate@googlegroups.com","X-Google-Group-Id":"605343134186","List-Post":"<https://groups.google.com/group/swupdate/post>,\n <mailto:swupdate@googlegroups.com>","List-Help":"<https://groups.google.com/support/>,\n <mailto:swupdate+help@googlegroups.com>","List-Archive":"<https://groups.google.com/group/swupdate","List-Subscribe":"<https://groups.google.com/group/swupdate/subscribe>,\n <mailto:swupdate+subscribe@googlegroups.com>","List-Unsubscribe":"\n <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>,\n <https://groups.google.com/group/swupdate/subscribe>"}},{"id":3676579,"web_url":"http://patchwork.ozlabs.org/comment/3676579/","msgid":"<00ce01dccb24$f3cc0e90$db642bb0$@gmail.com>","list_archive_url":null,"date":"2026-04-13T09:07:27","subject":"RE: [swupdate] [RFC PATCH 2/3] tools/swupdate-progress: sticky\n FAILURE state modifications","submitter":{"id":92117,"url":"http://patchwork.ozlabs.org/api/people/92117/","name":"Konrad Schwarz","email":"konrad.schwarz@gmail.com"},"content":"Hi Stefano,\n\n> > The funny thing was that in case of a failure, the FAILULRE state\n> > didn't appear.  Upon closer examination, this was because some\n> > PROGRESS messages were being sent *after* the FAILURE message, so the\n> > simple logic in the lamp switched from FAILURE (blinking red) to the PROGRESS\n> pattern (blinking green, IIRC).\n> \n> This exactly what should be found. Somewhere the PROGRESS status is set, and\n> I would like to check when it happens and how.\n> \n> >\n> > This is obviously easy to filter; the first patch does this in SWUpdate.\n> \n> Yes, but the patch simply overwrite the status instead of fixing where it occurs. So\n> it won't be applied.\n\nI am obviously new to this code, but all locations where PROGRESS messages are\ngenerated seemed \"normal\"/non buggy to me at least.  My conclusion was that from the viewpoint\nof the PROGRESS generating code, it was basically doing the right thing.\n\nEven if we did find a different location, the fix would ultimately be the same:\nthe originator would need to remember that FAILURE had already\nbeen generated and remap the PROGRESS messages as FAILURE afterward.\n\nOn the other hand, if unrelated parts of the system were generating PROGRESS messages,\nthen the central solution I created would actually be the \"right\" place to do this remapping.\n \n> > SWUpdates own tools/swupdate_progress is not just a passive progress monitor,\n> > but can call an external script / reboot the machine upon certain state transitions.\n> >\n> > The logic there up to now has been that when receiving a FAILURE message,\n> > the post script is invoked.  Because of my change above, multiple FAILURE\n> > messages are being generated: the first (real) one, and then the re-labeled\n> PROGRESS messages.\n> \n> Ok - but why ist this not done with post-failure scripts in the SWU, as\n> these are thought for this purpose ?\n> \n> The post script in swupdate-progress is global, and it is called from\n> each SWU. It is also unrelated to the SWU, so it is maybe already in the\n> old (the running) version and this adds a bad dependency between\n> software versions.\n\nYes, I see.  A staged roll-out would be required, first updating swupdate-progress,\nthen updating the core logic.\n\nThe change is definitely not backwards compatible: patch #2, to swudate-progress,\nis required to reinstate the old behavior.  Note that the patched swupdate-progress\nwill work fine with an older swupdate core,\nbecause the first/single FAILURE message still arrives.\n\nIn any case, patch #3 updates the minor revision number of the API, to be able\nto distinguish the old and new behavior.\n\nEven if the problem is solved different from patch #1, patch #2 is required, because the\neffect would be the same: several FAILURE messages are produced (unless\nthose PROGRESS messages are simply dropped at the source after a FAILURE).","headers":{"Return-Path":"<swupdate+bncBCM7PUF6Q4ORBWHE6LHAMGQEMAIYHXQ@googlegroups.com>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=googlegroups.com header.i=@googlegroups.com\n header.a=rsa-sha256 header.s=20251104 header.b=ssipfpzA;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=rFSjDKr4;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com\n (client-ip=2a00:1450:4864:20::23e; helo=mail-lj1-x23e.google.com;\n envelope-from=swupdate+bncbcm7puf6q4orbwhe6lhamgqemaiyhxq@googlegroups.com;\n receiver=patchwork.ozlabs.org)"],"Received":["from mail-lj1-x23e.google.com (mail-lj1-x23e.google.com\n [IPv6:2a00:1450:4864:20::23e])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fvM4c5F7Xz1yDF\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 13 Apr 2026 19:07:43 +1000 (AEST)","by mail-lj1-x23e.google.com with SMTP id\n 38308e7fff4ca-389fef1b721sf17272991fa.2\n        for <incoming@patchwork.ozlabs.org>;\n Mon, 13 Apr 2026 02:07:43 -0700 (PDT)","by 2002:a2e:b052:0:b0:383:1432:9561 with SMTP id\n 38308e7fff4ca-38e49bdead1ls6186001fa.0.-pod-prod-01-eu;\n Mon, 13 Apr 2026 02:07:34 -0700 (PDT)","from mail-wm1-x331.google.com (mail-wm1-x331.google.com.\n [2a00:1450:4864:20::331])\n        by gmr-mx.google.com with ESMTPS id\n 38308e7fff4ca-38e495ae9edsi1820971fa.3.2026.04.13.02.07.34\n        for <swupdate@googlegroups.com>\n        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);\n        Mon, 13 Apr 2026 02:07:34 -0700 (PDT)","by mail-wm1-x331.google.com with SMTP id\n 5b1f17b1804b1-483487335c2so44750635e9.2\n        for <swupdate@googlegroups.com>; Mon, 13 Apr 2026 02:07:34 -0700 (PDT)","from dinmPF4XJWP1 ([195.145.170.204])\n        by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-488d58a8438sm310358975e9.5.2026.04.13.02.07.28\n        (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);\n        Mon, 13 Apr 2026 02:07:32 -0700 (PDT)"],"ARC-Seal":["i=2; a=rsa-sha256; t=1776071259; cv=pass;\n        d=google.com; s=arc-20240605;\n        b=Gi5oP7iK12LHKXeBxcS8y+QyKkY33vboJMEcukQovH/tFUJfv3/c7HjUK8qV/68oq8\n         lvh1DF3GNeFurFka1sDH2cNqYCbIQjrGNlVPCNxU52mwYJCZvAlXrjzkSIP0oGnAt7C7\n         RQNgvUEJP3+6xp9UsInPPQi88V9ayL/GGBw+FBf8ZWaANMG5HXKhWoeoQtLOQo38qHKc\n         knmqMLXWPFPBvYEy1HxP2fQHWqi8uME5wmkB8gI+MD8deUI/tZhe209GNYDM4/8ZO/sW\n         PGsi+tRzS8mpLnVnFGKr/KHspsQy6Mw9DAhi0fjqk4tDr35dsILbYY3YR/t1mNxChL8N\n         xJpA==","i=1; a=rsa-sha256; t=1776071254; cv=none;\n        d=google.com; s=arc-20240605;\n        b=DE3X1JTjwcX1XGPljMm/TauyF8fQlqrSjrF6bgVpVysvEmYNOTGPeIC7+7DF/QisUV\n         CWQJ9GQFagWjk3KEkXaRmNDoIsicjNzE30kQf5yVGToMUF+L3VW4lcyWIawIjK/O8u1V\n         RsiEKKCz3om+ezxYJcVbS43XOpge69sqJddUrXN9QOFTVNN4vF2MpAOMaSors9yVg6li\n         IH3DHAMH3+PNNf7qqS8uI947NGWoYRKmjKplVyorasi6cmX06CCowiCP/tJIF85n2ItX\n         JBCWSi3P+7zJ0DMqRCpnb0ZYKYv2BkeL83jcmExCPScRKl+1XvN1WZAdlPCsIeQPHFG8\n         kXHQ=="],"ARC-Message-Signature":["i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:content-language:thread-index\n         :mime-version:message-id:date:subject:in-reply-to:references:cc:to\n         :from:sender:dkim-signature:dkim-signature;\n        bh=PhObkQjjB3S6h6iVRuRkvLIMhpV0wOmwLvpVlivp82M=;\n        fh=BEdxk89GXgTRUV20U58lAeQXIWWA7887DfuoTbBt8mw=;\n        b=VPEtYXBYJmA6NbizJdVx3HetXN1WXFEh3bTJ2LP5bs97W/aE5zs4XCB+8Vnva2xXub\n         jcNkQAC7voSdQCvBbTqI83EjhygdPiISqfPVxkdGRyCYhAfBPPu1/axXp8jePA5lS5wB\n         rdqzSkjmL5pE6nP3u/dPssm090a2S+L8cldyEvy6z8yqtyZKUfKmqtl0Fnk/m6skmuZd\n         uPnPW8v1voYvK9g61P/SRtehl7KUwWyIJXVlOa2j8xNpZYUeVVx+6e6t/TBnvVhRcLN4\n         GaUtOfFzFpPw//PRGjD1/eQ1mvdVJTYGHHu4caReXGBa6ZZP8hKIaE+pr3BnYmFFeOoV\n         21Dw==;\n        darn=patchwork.ozlabs.org","i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=content-language:thread-index:content-transfer-encoding\n         :mime-version:message-id:date:subject:in-reply-to:references:cc:to\n         :from:dkim-signature;\n        bh=4Z2skmL1SwVfWgQpuXKjdgdiCw3UBqwUOhnZ2U8Vi7o=;\n        fh=dCXMm5LNTjVAUUOUGQhCfoI8AVSnUKl9x9U505RcUUU=;\n        b=NfA+P+HZU7/wWww/U6Jx9e2201Qq9ulZc9tFDbpXH8UunrkV1tVkj7sNeG8z6G+L79\n         dpv6RBVCCzB+cwyVCmY8x8/KLJGYqdBMQWivMpFj948ScqToN5HFRTHWTTJCDAzk9YkE\n         2wUiElEVxxIyzYYvzget4/NZBxgoLqZC70ROgR8bCs52vMxi4e314b14z05kN4SVYKOD\n         ua/mGomeencZlK0L4JoICNL9F7XfxP2hBzzsmGTE/GLq90jZs4IkJiBaKzy3LKkm/Fkz\n         jFwHnF+5+WN0Yi6sJ/qdIQFXLhaJxsVPRwCupxY9oLySwxgXKtK3OskleZpo5zGinhZh\n         Yb1A==;\n        dara=google.com"],"ARC-Authentication-Results":["i=2; gmr-mx.google.com;\n       dkim=pass header.i=@gmail.com header.s=20251104 header.b=\"K1NR/oDC\";\n       spf=pass (google.com: domain of konrad.schwarz@gmail.com designates\n 2a00:1450:4864:20::331 as permitted sender)\n smtp.mailfrom=konrad.schwarz@gmail.com;\n       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com;\n       dara=pass header.i=@googlegroups.com","i=1; gmr-mx.google.com;\n       dkim=pass header.i=@gmail.com header.s=20251104 header.b=\"K1NR/oDC\";\n       spf=pass (google.com: domain of konrad.schwarz@gmail.com designates\n 2a00:1450:4864:20::331 as permitted sender)\n smtp.mailfrom=konrad.schwarz@gmail.com;\n       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com;\n       dara=pass header.i=@googlegroups.com"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=googlegroups.com; s=20251104; t=1776071259; x=1776676059;\n darn=patchwork.ozlabs.org;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:x-original-authentication-results\n         :x-original-sender:content-language:thread-index:mime-version\n         :message-id:date:subject:in-reply-to:references:cc:to:from:sender\n         :from:to:cc:subject:date:message-id:reply-to;\n        bh=PhObkQjjB3S6h6iVRuRkvLIMhpV0wOmwLvpVlivp82M=;\n        b=ssipfpzAMEPN+4aImbNtzc8RgDUyJsw6Zv9emgBP1N2pD3vdXrbCIT9HOW8o6C8nrm\n         Lwp0oL6QopY73E9muHjULJ0Jk3XntYQK+2U5Rcdq0XMeKTESaC6r0JWWVWY5V9/zG5MX\n         SvsMKC3IV7eTI4Y5dWfEwQ1b0At3k9RL3IZKJcVfdHfihSloohsFM4ht+23FjZeUQsDz\n         hmnR+kN8HOZZsIrAopKA56x7mT9I0eaKAES2VsL0MUJ1VACcdpAYttIm8Z/L7xnk2ita\n         n/Ltnc4W/BRjbAAaA8uHibLSaLwUGzWRh99B5RfomV4BIflh95orzmVS1/ZgDrysRYO7\n         x7iw==","v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1776071259; x=1776676059;\n darn=patchwork.ozlabs.org;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:x-original-authentication-results\n         :x-original-sender:content-language:thread-index:mime-version\n         :message-id:date:subject:in-reply-to:references:cc:to:from:from:to\n         :cc:subject:date:message-id:reply-to;\n        bh=PhObkQjjB3S6h6iVRuRkvLIMhpV0wOmwLvpVlivp82M=;\n        b=rFSjDKr4oxuYg+EoJZ0q4xrtn2ui7TEXkZmeISYLfV0K71jBTvwP3PWNeo6+TkuMar\n         zHvPNuZDzCyJlYevV0Glsd+KYh4w8GXOjg47ThjNCfe/ldnOYn91w6sd5uEiqfBm4ofV\n         Z9FVNDGxu9XFg3bvQFZpc/yKtB6At1SVU6PoWimLtgTUPXsfYP7A4Ab/szrCST69hZWv\n         Ope9RXvWzrCpdtqNZXbypXgBWEscaU4n+956FMHyboS0NwGPclMuuOUcOUz8fvJve+P8\n         cHDZrL7bIovGMYEuSDbVEzXldS677aokwmKZYieXgKUl2R/w2dBS8O0ixjsiFqeVDul+\n         cH+Q=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1776071259; x=1776676059;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :x-spam-checked-in-group:list-id:mailing-list:precedence\n         :x-original-authentication-results:x-original-sender\n         :content-language:thread-index:mime-version:message-id:date:subject\n         :in-reply-to:references:cc:to:from:x-gm-gg:x-beenthere\n         :x-gm-message-state:sender:from:to:cc:subject:date:message-id\n         :reply-to;\n        bh=PhObkQjjB3S6h6iVRuRkvLIMhpV0wOmwLvpVlivp82M=;\n        b=UnMOsKJCwBEP3gTiZjcT177QRvkrW8EUIX9kQUzg04394WUr5CFhXIBEJsqwC33qJY\n         amfpd3cnA8vX8Lc07QgUmi/1VxClkwP09dWkZFwda/U4vpnl05Oo804VtBiMZGAYMC6t\n         0+AJtY2YLa+odDTTyYnAz3mqx9/8oGzVF3/BchKvCbS6rKzcpO/gub0eJOZwSvf0YAtn\n         2h12TPwuG3vNKyLW1zhT2l3DkDqNvrTbgf7gPD/OcNq7lvCyOvIJTbdVnKaIaMYgjni6\n         mwPE0b7VLcCzhCkJ0N9v0wismqN8LIDgxpU7Hl9C/VZmN5Bk7CS6REjkyjXm2fLqhQ7K\n         AxeQ==","Sender":"swupdate@googlegroups.com","X-Forwarded-Encrypted":["i=2;\n AFNElJ8RixUrZ7Tr9dJu5VsEyMZFiPiwp4XylDPFTAhbNDSQQetFkcF3nRBv214dBi6L9qqPg+kFUkvZvg==@patchwork.ozlabs.org","i=2;\n AFNElJ/WpwhY0LA7DLn2F8MvvwjBoPj/ceLuhuiiS3ljWTKTr0q1cOv5oqScnLkE8Ik5dm5hyy8fHjgu7w==@googlegroups.com","i=1;\n AFNElJ+nUVA0ghwIX5pFQP9MQhu+J0iD9YmefegjXLjOYaJmm1s3XT5WfU/xO4LfewM2gKL+t4vDl6YATQ==@googlegroups.com"],"X-Gm-Message-State":"AOJu0YyY74pSxrHdF+2wdjRDfxgiVv1n4z5T2HkcbVmRGHpDCtnUAQYY\n\tR+xeABuv6xlM4d/a6KztS0LBVG8QgqnIYcL1aauIWl/WKtYdaF0NUiX0","X-Received":["by 2002:a2e:bea3:0:b0:38a:5584:cea2 with SMTP id\n 38308e7fff4ca-38e4bddbf93mr35899071fa.3.1776071259194;\n        Mon, 13 Apr 2026 02:07:39 -0700 (PDT)","by 2002:a05:651c:1508:b0:38a:5102:9190 with SMTP id\n 38308e7fff4ca-38e4bf79de2mr36033261fa.28.1776071254301;\n        Mon, 13 Apr 2026 02:07:34 -0700 (PDT)","by 2002:a05:600c:64c4:b0:485:39b2:a47c with SMTP id\n 5b1f17b1804b1-488d686892emr150246135e9.25.1776071253309;\n        Mon, 13 Apr 2026 02:07:33 -0700 (PDT)"],"X-BeenThere":"swupdate@googlegroups.com;\n h=\"AYAyTiKGMxCPULTyIq3PK0Kcq96/Kwcp+U261bmqt6w7f5aqtg==\"","Received-SPF":"pass (google.com: domain of konrad.schwarz@gmail.com designates\n 2a00:1450:4864:20::331 as permitted sender) client-ip=2a00:1450:4864:20::331;","X-Gm-Gg":"AeBDieulamZbwqWK0JQ7PMA0/TefmL89pUZiymmvRJsCLFkV0lalHBf2z174dhBrgu3\n\tUvY2ICLyZY95UKB/jj6BHpz67CpRinYZgp2jPEQHfta6mgSJILrWMOa+6dSQRdm4Ru/Cbm2YDYy\n\ttJEDD+UZHAjEm2Q03QflOe3gdvRlK2QP+VvrT5pIbvhvhF9EWIz6xmnvXcsb8w5tVlStM13s0NS\n\thPzMGew4fdj4nDymkSUMnn/mm3GL7h0rWa1z3FSF17M7O/xm8LuhPkyRrzy9yy0BYtbRoTslSHc\n\tpk+z1g9fSXA6lt6LEUgxhDQfwfFTVz4xAOeEJ7PtV9IIjzlz+KWOXgOXoXX+UdT7gXDDfhQAU9X\n\tbJ1NLbWUA2DFEafZgP5Ano5lzvZ3K3Q3bQALEaZAdp2mYtia1f7jk1PTaOBA0EsBlTgdj6d5ONW\n\tsm8t7HCDiT2cOMre66RkF1TmZSgQ==","From":"<konrad.schwarz@gmail.com>","To":"\"'Stefano Babic'\" <stefano.babic@swupdate.org>,\n\t\"'swupdate'\" <swupdate@googlegroups.com>","Cc":"\"Adler, Michael \\(FT RPD CED OES-DE\\)\" <michael.adler@siemens.com>","References":"<cover.1775844632.git.konrad.schwarz@siemens.com>\n <5c7a7e7b9dc54a5c5cf144fcd63298beea3d3383.1775844632.git.konrad.schwarz@siemens.com>\n <09762b24-7d87-4356-a177-5a8dcd118b1e@swupdate.org>\n <5191cb21-e617-4b68-b9d0-15638e307ba6n@googlegroups.com>\n <f7a7b8f2-118a-4a32-b93d-ac2150116759@swupdate.org>\n <00c101dccb17$cb45d530$61d17f90$@gmail.com>\n <1143c629-ad35-4370-8e90-98d3369e9e09@swupdate.org>","In-Reply-To":"<1143c629-ad35-4370-8e90-98d3369e9e09@swupdate.org>","Subject":"RE: [swupdate] [RFC PATCH 2/3] tools/swupdate-progress: sticky\n FAILURE state modifications","Date":"Mon, 13 Apr 2026 11:07:27 +0200","Message-ID":"<00ce01dccb24$f3cc0e90$db642bb0$@gmail.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"UTF-8\"","X-Mailer":"Microsoft Outlook 16.0","Thread-Index":"\n AQHPW2OrZPMVFhV0YbsHciL7GseKDQHpTAu/AgYpbR8CGGzJNQIeywetAZwj8R8BwcitE7WbaDGg","Content-Language":"en-us","X-Original-Sender":"konrad.schwarz@gmail.com","X-Original-Authentication-Results":"gmr-mx.google.com;       dkim=pass\n header.i=@gmail.com header.s=20251104 header.b=\"K1NR/oDC\";       spf=pass\n (google.com: domain of konrad.schwarz@gmail.com designates\n 2a00:1450:4864:20::331 as permitted sender)\n smtp.mailfrom=konrad.schwarz@gmail.com;\n       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com;\n       dara=pass header.i=@googlegroups.com","Precedence":"list","Mailing-list":"list swupdate@googlegroups.com;\n contact swupdate+owners@googlegroups.com","List-ID":"<swupdate.googlegroups.com>","X-Spam-Checked-In-Group":"swupdate@googlegroups.com","X-Google-Group-Id":"605343134186","List-Post":"<https://groups.google.com/group/swupdate/post>,\n <mailto:swupdate@googlegroups.com>","List-Help":"<https://groups.google.com/support/>,\n <mailto:swupdate+help@googlegroups.com>","List-Archive":"<https://groups.google.com/group/swupdate","List-Subscribe":"<https://groups.google.com/group/swupdate/subscribe>,\n <mailto:swupdate+subscribe@googlegroups.com>","List-Unsubscribe":"\n <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>,\n <https://groups.google.com/group/swupdate/subscribe>"}},{"id":3676630,"web_url":"http://patchwork.ozlabs.org/comment/3676630/","msgid":"<8fb680ee-6acf-466b-9f66-34d4912038b0@swupdate.org>","list_archive_url":null,"date":"2026-04-13T10:15:54","subject":"Re: [swupdate] [RFC PATCH 2/3] tools/swupdate-progress: sticky\n FAILURE state modifications","submitter":{"id":86869,"url":"http://patchwork.ozlabs.org/api/people/86869/","name":"Stefano Babic","email":"stefano.babic@swupdate.org"},"content":"Hi Michael & Konrad,\n\nOn 4/13/26 10:36, 'Michael Adler' via swupdate wrote:\n> Hi Stefano and Konrad,\n> \n>>> Point 1) should be identified. I have foreseen at the beginning some additional state\n>>> transitions (DONE state), that was unnecessary. So which are the transitions after\n>>> a FAILURE that seems confusing ?\n> \n> Agreed. The proposed patch is more of a workaround for a fundamental\n> problem, in my opinion.\n\nI fully agree.\n\n> Maybe I can shed some light on this, as I also\n> did a brief analysis back then:\n> \n> 1. server_wfx.lua executes (around line 1490):\n> \n> local msg = (\"Error installing artifact %d/%d.\"):format(count, #job.definition.artifacts)\n> suricatta.notify.error(msg)\n> \n> 2. The SWUpdate progress listener receives a message of severity PROGRESS: {\"0\": [100%] Error installing artifact 1/1.}\n> \n> Expected behavior would be to receive an error/failure message.\n\nMaybe this is not the last error, but in any case we should check the \nsequence of messages.\n\n> \n> More generally, it appears that Lua suricatta.notify.error() messages\n> are actually logged with PROGRESS severity.\n> \n> I haven't investigated this in detail, but my best guess was that\n> progress_thread.c:swupdate_progress_update unconditionally sets the\n> severity to PROGRESS, overriding the original value. This needs\n> further investigation though.\n\nFully agree.\n\n> \n>> (Unfortunately, I didn't save the trace showing this and it's not easy\n>> for me to recreate it).\n> \n> Any non-successful update via wfx should actually reproduce this\n> behavior. (In our case, it was attempting to install an update with the\n> same rootfs UUID as the currently running system.)\n> \n\nBest regards,\nStefano","headers":{"Return-Path":"<swupdate+bncBD2ZDGN6SEKRBXME6PHAMGQEMAHROLI@googlegroups.com>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=googlegroups.com header.i=@googlegroups.com\n header.a=rsa-sha256 header.s=20251104 header.b=Ffue9Qzc;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com\n (client-ip=2a00:1450:4864:20::340; helo=mail-wm1-x340.google.com;\n envelope-from=swupdate+bncbd2zdgn6sekrbxme6phamgqemahroli@googlegroups.com;\n receiver=patchwork.ozlabs.org)"],"Received":["from mail-wm1-x340.google.com (mail-wm1-x340.google.com\n [IPv6:2a00:1450:4864:20::340])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fvNbX5S4Hz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 13 Apr 2026 20:16:07 +1000 (AEST)","by mail-wm1-x340.google.com with SMTP id\n 5b1f17b1804b1-488d2cd2674sf29084545e9.0\n        for <incoming@patchwork.ozlabs.org>;\n Mon, 13 Apr 2026 03:16:07 -0700 (PDT)","by 2002:a05:600c:a21a:b0:488:9e8b:d037 with SMTP id\n 5b1f17b1804b1-488d5d0b70bls14362835e9.2.-pod-prod-07-eu; Mon, 13 Apr 2026\n 03:15:55 -0700 (PDT)","from mout.kundenserver.de (mout.kundenserver.de. [212.227.17.10])\n        by gmr-mx.google.com with ESMTPS id\n 5b1f17b1804b1-488d67a4642si1236615e9.1.2026.04.13.03.15.55\n        for <swupdate@googlegroups.com>\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Mon, 13 Apr 2026 03:15:55 -0700 (PDT)","from client.hidden.invalid by mrelayeu.kundenserver.de (mreue108\n [212.227.15.153]) with ESMTPSA (Nemesis) id 1MIMT4-1wFaO704Cy-00DSUt; Mon, 13\n Apr 2026 12:15:55 +0200"],"ARC-Seal":["i=2; a=rsa-sha256; t=1776075359; cv=pass;\n        d=google.com; s=arc-20240605;\n        b=cdkV4rw/xFpU4ZmCY85IuY5F5dC28WQC6c49pr+Bj2IeXYo6fQDisP9YJWCz+8nKfY\n         LIFtTonLuxKGZwcdZt1lBJrLfDYz+Ck8d4oSulvZGfEmnJOTSURf/CHI15CA6xosCdMM\n         dHCdrgQQq96slu6/F9/BYMiA176w+RWjbFdpGzj5I8OYnt+FVZe9P+4Ue4VbqHLPxjzF\n         4OyMKLU0kH7rQJGLfj0OC2OJ3fQoWbBNUMdC150YN1aJq2+C2OUjS/cEgHyr7WXUgpdH\n         BXHRtMkZxgt8fOKjIXMspKSISa/VuhiPIWyE9KvAw0XvENUB2se5WvxwdgXLxMbv9P9c\n         4BEg==","i=1; a=rsa-sha256; t=1776075355; cv=none;\n        d=google.com; s=arc-20240605;\n        b=Gx3Brwn/wuppauiTWXXju0lhL7wOJuWWq+bnA/ytBVeQv/IRBmVXeu5StSv1rlhIGG\n         Ow22P0dLajHBzFKXq1WUwKcYOeEe3FwK1WziDjX8eal7Jgd2zYtu16V8Kgjc79388wL4\n         RTdzFw0cWJX1SC5fMTlvPUK1dFBfZa0gGOQ2QzOTRW6J9iid6XxdVNIjlPW3E+dFLVSO\n         qZN0B1ngtZ/nZgKjH/nLIZP+6TlImt2jQHkFTp1nvhH82suw1eutfhb62nH9uxirfQv6\n         e2h3vohhdGUjzAmaqCq7KR3Z1fsspe00VrEUnjAOp0QBr2Ax+3G8FEgT2utBQ/NywZ1v\n         Q/pQ=="],"ARC-Message-Signature":["i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:ui-outboundreport\n         :content-transfer-encoding:in-reply-to:from:content-language\n         :references:cc:to:subject:user-agent:mime-version:date:message-id\n         :sender:dkim-signature;\n        bh=o+tFikhltpEFPxtgPx55RQPj2XyUr+AGbrb2Gn8d8YM=;\n        fh=hl+qKHJZWjlNyGyH+ZQTpjVx9FapywCBZq5cQ4u1iVk=;\n        b=J9jumVAwoIaLIhVPGadMicVN8/YDyl998DGcDjlsN14Hv56JsFySMj2Sq34vgJkiZK\n         knv/ReYvmg48GlwVs9+nFYKgkTYb1g3Gu7xo30RVL7zDtzCtzkkXJp7//gSCGzioLVt0\n         lsNS5UKy917BYlD8uZeRk7FcdSV8wBhZtq857BYhjSYle+Rptxk/0bN4lnFlDwJtTyLG\n         WSxhKioi1x44aQgX9NT7exiQJdE3YvU/HLeJSIOu0U4cgtQJ0VyT85IG29V/zb+RNhpK\n         2MBL1YPwB63cxhX/C8xyi/IlgeLf6EP30AwflSZSZsIJuKhQo8RxLf4rCTYuZyiLhDPD\n         ZiIg==;\n        darn=patchwork.ozlabs.org","i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=ui-outboundreport:content-transfer-encoding:in-reply-to:from\n         :content-language:references:cc:to:subject:user-agent:mime-version\n         :date:message-id:dkim-signature;\n        bh=3A7hAsw9HE16SKSDnDWAK43btK7rx3GTMMHdo14aYzE=;\n        fh=1E2kxHXBggjVwA6/N6rp274kETl5CMkY1gzLCEhO0lQ=;\n        b=JxV/gcS5cbPYW4HDCeU+ZVlN8O6J1AytfzOv9g2AXopL8O/mEq/ejsLQzikMd/9OxV\n         YUY2lcly2HhOUDkvr8NRWMpAsHKZBLdD2rz7mIMVNKAr7CGNtJtbH0X1N+MTtgPKtL35\n         JZY+WJPVzT7XtUhY6qs88BO8uuWTg/kCGiTorV0VNyO3/KQovLTu8xwsVhmYFhDwK/4U\n         SfRZphN1jDpzUJ/oV12pNQnEWHeisy+D8kdiU6ZD28TaHmmaV0l7d/xww0P9GP8YnLWn\n         IGMJNnsN5TKalc6wiNvUoJHYEfkpffQHrBr94Ro3qd8Q69o9+p0si7Stc4fUQfmJwRDS\n         b5NA==;\n        dara=google.com"],"ARC-Authentication-Results":["i=2; gmr-mx.google.com;\n       dkim=pass header.i=@swupdate.org header.s=s1-ionos header.b=\"BYSfGi/m\";\n       spf=pass (google.com: domain of stefano.babic@swupdate.org designates\n 212.227.17.10 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org;\n       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=swupdate.org","i=1; gmr-mx.google.com;\n       dkim=pass header.i=@swupdate.org header.s=s1-ionos header.b=\"BYSfGi/m\";\n       spf=pass (google.com: domain of stefano.babic@swupdate.org designates\n 212.227.17.10 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org;\n       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=swupdate.org"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=googlegroups.com; s=20251104; t=1776075359; x=1776680159;\n darn=patchwork.ozlabs.org;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:x-original-authentication-results\n         :x-original-sender:ui-outboundreport:content-transfer-encoding\n         :in-reply-to:from:content-language:references:cc:to:subject\n         :user-agent:mime-version:date:message-id:sender:from:to:cc:subject\n         :date:message-id:reply-to;\n        bh=o+tFikhltpEFPxtgPx55RQPj2XyUr+AGbrb2Gn8d8YM=;\n        b=Ffue9QzcnIQKTL2qrUj6yeZktf7mh71oRlWDw0+4w4GmXp+LbkESoyME7RCNL3a86S\n         2OFdNMy+a+4Lz+Td8Z0phdp8FVmDq48AwXx9tl27jZtoI1F9d601Xu1OO2Ab3SxFwX5x\n         1UA9WOkuN3CeaTocDxTP2L3zaPs3tdtbpLPXeiw+YvWo9Gxey+W4flJi9oZJhvsZhkBy\n         r+g945WuCQbMn2Gpwfs9fjJNs7+1Tq/U9dTzwM7Isc235OrNHhuYBL51XZXCW6HWrLgj\n         4KmasO0/smPrgwhyOpZJAZMt5HAAfRIhgL13lU/YFvBUNlv2DYP14+EAiLSR0WyfXoyx\n         k7xQ==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1776075359; x=1776680159;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :x-spam-checked-in-group:list-id:mailing-list:precedence\n         :x-original-authentication-results:x-original-sender\n         :ui-outboundreport:content-transfer-encoding:in-reply-to:from\n         :content-language:references:cc:to:subject:user-agent:mime-version\n         :date:message-id:x-beenthere:x-gm-message-state:sender:from:to:cc\n         :subject:date:message-id:reply-to;\n        bh=o+tFikhltpEFPxtgPx55RQPj2XyUr+AGbrb2Gn8d8YM=;\n        b=ImyBDUQZ4a385053W9eiPMju2Xbd3O+0QnUvm/5WGNBjMCQdYmEgTBAvAjnNKpIa07\n         7hNOiO0fXF0SrqWr2mfKPSq7Tz31hkpkSsPW2FNQbUZJzA0Xe7dxQYudo5YsDPHWDH1B\n         VI4BkGbt+M7u5H1aFjj5jb6CFnOY6pkN1hqnTcFHXxa90DmKJGxtg9LNbT18lhxnW9Wn\n         afj88kuS15h4iebiPx8k3DgdJbMXWPxN/2W8HzmI6sdqiM6b0LCLezu6O6xc7tFU8ChL\n         eBbAqpsdaT80xkRWmH30G+sC8fU/DpAIm8Ff1c2zoy65FIKxTulEGuHCh0NhjQZYpYke\n         Cs2w==","Sender":"swupdate@googlegroups.com","X-Forwarded-Encrypted":["i=2;\n AFNElJ+lp2PECNKtrx0b7onAYi7c+56Nv718PMqeW0ATvHExzhSNB/cztY/6jlVypK8dyY76WWu9gTz+0A==@patchwork.ozlabs.org","i=2;\n AFNElJ8IQEtofHggREzMVLtyiejr1mwwXBk2pSUrlpyA+wW5SBV8oY5pbl0FXoMOdsJ5LBrVRPYTUMTzkw==@googlegroups.com"],"X-Gm-Message-State":"AOJu0Yye1QE8h5zIVtn8+rz4IKCVWmoa4rXrG6nZTW5WPgOR87qrjqrl\n\tyQM/fsfE3h1EdAoVDArzyODFA0xhPO47LFf9l3hAG0rD51U2OM4c/Cbc","X-Received":["by 2002:a05:600c:4504:b0:488:9db9:5235 with SMTP id\n 5b1f17b1804b1-488d6867c23mr170172925e9.22.1776075359160;\n        Mon, 13 Apr 2026 03:15:59 -0700 (PDT)","by 2002:a05:600c:4709:b0:488:ae6c:42c0 with SMTP id\n 5b1f17b1804b1-488d67d2ab2mr147777115e9.7.1776075355572;\n        Mon, 13 Apr 2026 03:15:55 -0700 (PDT)"],"X-BeenThere":"swupdate@googlegroups.com;\n h=\"AYAyTiIXEXRdmVhcsgeQKgsJnAxvO3ubilpWkvU4DRUluTwPuw==\"","Received-SPF":"pass (google.com: domain of stefano.babic@swupdate.org\n designates 212.227.17.10 as permitted sender) client-ip=212.227.17.10;","X-UI-Sender-Class":"55c96926-9e95-11ee-ae09-1f7a4046a0f6","Message-ID":"<8fb680ee-6acf-466b-9f66-34d4912038b0@swupdate.org>","Date":"Mon, 13 Apr 2026 12:15:54 +0200","MIME-Version":"1.0","User-Agent":"Mozilla Thunderbird","Subject":"Re: [swupdate] [RFC PATCH 2/3] tools/swupdate-progress: sticky\n FAILURE state modifications","To":"Michael Adler <michael.adler@siemens.com>, konrad.schwarz@gmail.com","Cc":"'Stefano Babic' <stefano.babic@swupdate.org>,\n 'swupdate' <swupdate@googlegroups.com>","References":"<cover.1775844632.git.konrad.schwarz@siemens.com>\n <5c7a7e7b9dc54a5c5cf144fcd63298beea3d3383.1775844632.git.konrad.schwarz@siemens.com>\n <09762b24-7d87-4356-a177-5a8dcd118b1e@swupdate.org>\n <5191cb21-e617-4b68-b9d0-15638e307ba6n@googlegroups.com>\n <f7a7b8f2-118a-4a32-b93d-ac2150116759@swupdate.org>\n <00c101dccb17$cb45d530$61d17f90$@gmail.com> <adyl-NFnan-vUL_-@t14g5>","Content-Language":"en-US","From":"Stefano Babic <stefano.babic@swupdate.org>","In-Reply-To":"<adyl-NFnan-vUL_-@t14g5>","Content-Type":"text/plain; charset=\"UTF-8\"; format=flowed","Content-Transfer-Encoding":"quoted-printable","X-Provags-ID":"V03:K1:PGvNN5PZRWcOW1QMaMq1WVBXLAn3wzyjgvY2+YC2Ez5S/edtGLO\n HC9Ausx8nFTFnf4dTcVbFlCr24KNhXuPKi1/A7OUgAoX23V6fet//z57SwJQyQzdXP/J/bx\n +PPnmen9Z9p/g7bP3zBQp7is5g7yukA/r/i+wk9AbRA7IzIVAUpPyKuHiYwV3z000rcQkC0\n oT0r3yYEnyCiiMCn84T3g==","X-Spam-Flag":"NO","UI-OutboundReport":"notjunk:1;M01:P0:/rxbuR+GV9k=;DWbGrCPPrerTXr0whCA8enaUV25\n TpK3L2syYMhCAivUEDKP2U7kydtQ7QxfjP3pzthUkP+zB/XmHd+TaYZ58JnUz8jXoTkXNGPc/\n LabSRiJpewQ2mzrifFdfbytpflLcw/UsjhUWdP7fW5xLZ4jk2YFbJBA7pinhcOMRJehaXroO0\n P7haysziYXkwfY8jelDN9/hBu2RZlsPrRSRis6BueLJOGYh836zK4m3Wx7+tTESaVypmCSI/U\n Pnb8QeBzolWceIcbbsubVgC0r/Qo0jxPE0s5vOiE+2fWcG5vwINj8QXYpqeGkfqC6P1hwJlpL\n tKU1XgLL/YleQZhjjJ8WAOrAoF5UrHdzXH/GzaJoTWVuX+ZK7tmY8+dMR3Uy06svVRBll7+U3\n Sc4T7ZYvNPHe3cnGPJv9GB8H+Mnw55GYpC2VgaUiCv/CuqQbNeCTz/TK5q8ENqSdYNUJo3a7e\n 4ADAWMk4RZSjqp+Pc2AivzL+f093H/QKVC4Tz7bgn1MZ6zhHVN2OlPEUvFSbYsCsP9YrXgpNu\n DMrOJSyfqRnVQXPSahUg5DRC744Y9YxflWKr9u1BBZKlLK2NBvzhcuduVHc7zVgMAP2/RMAa1\n Z/TtWIbD21c7p3slWZaF3DoxaoUav9njA6kcOlLm984tENf4LBsdYxvWS2PRoW6b7sq5/46hJ\n cMjYieQqGubuJUkB3qwmZPNuE/xjizbb+BVXyDyvOQY+gHKvl5p97gNT7gefpHSGgDeTRWTMn\n G8dz+pQXSkm9QRdbV5rKVP8/Gr1LUeL+u/itathbLuPbBIkWdGPliuCAuJXSnZWDNZMoRH7GG\n nEkNfsrLO6jmVVAhyM6karFrrwvqt+1UfijB/e8MQNCkGztY0dPoHx3gyyJUdX77INCbZufYI\n XZcndl8YdTHILBh5QGwdBMiSD64/yqmOgxfwH9KGrmtNuxBr3r5KRs2k/uFa7qGa2zV7cbdc9\n MS2+6meuFDVu9D6Vci8ypW2zqEgj5QxxmX3gAlK6dntpCpuVgtAY775S3FrBudewUxm+3cVw3\n r3uKky0WTsEftqQnuopN6iUDy5iWfVCZkUhbpppBx/UKSBHiIKGpUwZvRe/bVVZ2YaCFazCoW\n SwJbn5kBTW0QICBvUuKeKgRnsgMGlCECTwRqSPrDM9krFK45H0Ef34INnSaPSwPd/0FoLzz/O\n n/akhd5pc6XUekeEzlTigSFGPnRpi98hcpLJU8uQzhSLtaOFHRMZwO9ALlNA945I1/B5TFKIY\n BbZACt34vG8DEoJvyTSAGODOvTPmuttX9MhtED21ZzN6ObUJTglBgZaNJn5CKxjhO2//3/jFP\n +TQNiUYqCqbcE9E6ZC8mvvCbMu5TTVkzmmMzjK2pL5dirl5fZ+/3ap2LrIieB3YV6zser2Hbh\n pJilqYbXallW2r40LMLj6iI/98dUOyCof4mh2aj06dL0fAXeHjIIG0jydoqeS8wkoMnsqi0m3\n POE4R0Wb6T91NHoNLjSXoqrCLpt9yxJY2fzFOEG91nxb/IUAD+NcY7w23D+kcTmJdU5d8goAf\n TCVGMJax2sCyy3SWfdESceHCBRcoXPWyuiaNyrCZOBCSv1SSezRiF/VcG/ykwVMtpUNL51nUr\n xRlRM9uAW01xinnRRWqczMJ/mdo7nhXOUOSvaoCl+DjDkjyusyyG2XDFe60YjORmpV/MnqkEC\n GDaApXxCtvI71JgnbKOuS/cUeX126wNgwnMhjiri5l69R2dd6hEwuiq9bRAA7aUuI2xeriYwF\n DFdOze9Pe5jkoKv+fgNvS0CTtWh8j9aPHSwGg+mJqTBnd9tvEHAX73vWJm2Yuvay4iCKfSqPa\n IEOkOKDRPKp8jlk6KAr1wiLePlO+wiMP4m0GKI7j/J69utiepduKYe/TXtBjx4jw99gD9vUf7\n SNVuDqBbmwraJVZP0Y9cP0YZTBxgrLanGhmppOIVuogJErOmAxgauVJoN+ntiWQX73yXQFDHw\n gkG5EpkSRR46hSENzH51ZUTMTT4yEU/164oqnqqeYBwvU+9RQf","X-Original-Sender":"stefano.babic@swupdate.org","X-Original-Authentication-Results":"gmr-mx.google.com;       dkim=pass\n header.i=@swupdate.org header.s=s1-ionos header.b=\"BYSfGi/m\";       spf=pass\n (google.com: domain of stefano.babic@swupdate.org designates 212.227.17.10 as\n permitted sender) smtp.mailfrom=stefano.babic@swupdate.org;       dmarc=pass\n (p=NONE sp=NONE dis=NONE) header.from=swupdate.org","Precedence":"list","Mailing-list":"list swupdate@googlegroups.com;\n contact swupdate+owners@googlegroups.com","List-ID":"<swupdate.googlegroups.com>","X-Spam-Checked-In-Group":"swupdate@googlegroups.com","X-Google-Group-Id":"605343134186","List-Post":"<https://groups.google.com/group/swupdate/post>,\n <mailto:swupdate@googlegroups.com>","List-Help":"<https://groups.google.com/support/>,\n <mailto:swupdate+help@googlegroups.com>","List-Archive":"<https://groups.google.com/group/swupdate","List-Subscribe":"<https://groups.google.com/group/swupdate/subscribe>,\n <mailto:swupdate+subscribe@googlegroups.com>","List-Unsubscribe":"\n <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>,\n <https://groups.google.com/group/swupdate/subscribe>"}},{"id":3676631,"web_url":"http://patchwork.ozlabs.org/comment/3676631/","msgid":"<ed77a441-8076-4755-acdc-5058c8a192a5@swupdate.org>","list_archive_url":null,"date":"2026-04-13T10:20:58","subject":"Re: [swupdate] [RFC PATCH 2/3] tools/swupdate-progress: sticky\n FAILURE state modifications","submitter":{"id":86869,"url":"http://patchwork.ozlabs.org/api/people/86869/","name":"Stefano Babic","email":"stefano.babic@swupdate.org"},"content":"On 4/13/26 11:07, konrad.schwarz@gmail.com wrote:\n> Hi Stefano,\n> \n>>> The funny thing was that in case of a failure, the FAILULRE state\n>>> didn't appear.  Upon closer examination, this was because some\n>>> PROGRESS messages were being sent *after* the FAILURE message, so the\n>>> simple logic in the lamp switched from FAILURE (blinking red) to the PROGRESS\n>> pattern (blinking green, IIRC).\n>>\n>> This exactly what should be found. Somewhere the PROGRESS status is set, and\n>> I would like to check when it happens and how.\n>>\n>>>\n>>> This is obviously easy to filter; the first patch does this in SWUpdate.\n>>\n>> Yes, but the patch simply overwrite the status instead of fixing where it occurs. So\n>> it won't be applied.\n> \n> I am obviously new to this code, but all locations where PROGRESS messages are\n> generated seemed \"normal\"/non buggy to me at least.  My conclusion was that from the viewpoint\n> of the PROGRESS generating code, it was basically doing the right thing.\n> \n> Even if we did find a different location, the fix would ultimately be the same:\n> the originator would need to remember that FAILURE had already\n> been generated and remap the PROGRESS messages as FAILURE afterward.\n\nMmmhhh...not. It could be that something in this direction should be \ndone, but nevertheless it should be first verified how this happens \ninstead of building a work-around that fixes the output instead of \nchecking the source os the issue.\n\n> \n> On the other hand, if unrelated parts of the system were generating PROGRESS messages,\n> then the central solution I created would actually be the \"right\" place to do this remapping.\n\nThe central solution is an overwrite without checking why we get this \nand won't be merged.\n\n>   \n>>> SWUpdates own tools/swupdate_progress is not just a passive progress monitor,\n>>> but can call an external script / reboot the machine upon certain state transitions.\n>>>\n>>> The logic there up to now has been that when receiving a FAILURE message,\n>>> the post script is invoked.  Because of my change above, multiple FAILURE\n>>> messages are being generated: the first (real) one, and then the re-labeled\n>> PROGRESS messages.\n>>\n>> Ok - but why ist this not done with post-failure scripts in the SWU, as\n>> these are thought for this purpose ?\n>>\n>> The post script in swupdate-progress is global, and it is called from\n>> each SWU. It is also unrelated to the SWU, so it is maybe already in the\n>> old (the running) version and this adds a bad dependency between\n>> software versions.\n> \n> Yes, I see.  A staged roll-out would be required, first updating swupdate-progress,\n> then updating the core logic.\n> \n> The change is definitely not backwards compatible: patch #2, to swudate-progress,\n> is required to reinstate the old behavior.  Note that the patched swupdate-progress\n> will work fine with an older swupdate core,\n> because the first/single FAILURE message still arrives.\n> \n> In any case, patch #3 updates the minor revision number of the API, to be able\n> to distinguish the old and new behavior.\n> \n> Even if the problem is solved different from patch #1, patch #2 is required, because the\n> effect would be the same: several FAILURE messages are produced (unless\n> those PROGRESS messages are simply dropped at the source after a FAILURE).\n\nYou are not answering the question. These two patches try to add a \nfeature that is already realized in a better and per SWU way. Again:\nwhy is this not done with post-failure scripts in the SWU instead of \nrely to psot-update scripts that are outside in the running software ?\n\nBest regards,\nStefano","headers":{"Return-Path":"<swupdate+bncBD2ZDGN6SEKRBDUH6PHAMGQEOYIO7YA@googlegroups.com>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=googlegroups.com header.i=@googlegroups.com\n header.a=rsa-sha256 header.s=20251104 header.b=mCisyAiC;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com\n (client-ip=2a00:1450:4864:20::138; helo=mail-lf1-x138.google.com;\n envelope-from=swupdate+bncbd2zdgn6sekrbduh6phamgqeoyio7ya@googlegroups.com;\n receiver=patchwork.ozlabs.org)"],"Received":["from mail-lf1-x138.google.com (mail-lf1-x138.google.com\n [IPv6:2a00:1450:4864:20::138])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fvNjL14G7z1yDF\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 13 Apr 2026 20:21:09 +1000 (AEST)","by mail-lf1-x138.google.com with SMTP id\n 2adb3069b0e04-5a124b5672asf4042656e87.2\n        for <incoming@patchwork.ozlabs.org>;\n Mon, 13 Apr 2026 03:21:09 -0700 (PDT)","by 2002:a05:6512:5c5:b0:5a2:a550:579a with SMTP id\n 2adb3069b0e04-5a3eec21d88ls410002e87.2.-pod-prod-08-eu; Mon, 13 Apr 2026\n 03:21:01 -0700 (PDT)","from mout.kundenserver.de (mout.kundenserver.de. [212.227.17.13])\n        by gmr-mx.google.com with ESMTPS id\n 2adb3069b0e04-5a3eeec2ac1si207187e87.4.2026.04.13.03.21.00\n        for <swupdate@googlegroups.com>\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Mon, 13 Apr 2026 03:21:00 -0700 (PDT)","from client.hidden.invalid by mrelayeu.kundenserver.de (mreue107\n [212.227.17.181]) with ESMTPSA (Nemesis) id 1M2fM1-1w9lZN3g23-001RI6; Mon, 13\n Apr 2026 12:20:58 +0200"],"ARC-Seal":["i=2; a=rsa-sha256; t=1776075665; cv=pass;\n        d=google.com; s=arc-20240605;\n        b=NHLZvK4bSa7fPKLkc8rt9h6EhreV9pcb5+5KjC2qf9oZs8jXx4AqLlZjJ5qA4cr8pL\n         qsoct4vL0/ikCLYhf0ZV8yR2Et1y84YyIDpjJIoctpLGqHp3aI4gMP09wjIi8MyQfy3z\n         DB1wdFt+LCgbn3RajO1tvLh88W2f4x9F/+Cx7NlQNmn82GVqSiccGc6y+U7kJp49VW25\n         d0E/rUjRofQwTFLtbS0TtY44i258CFJ00AR3XbOay5OdZon9ZfZFj5sj9UwLIFjyAFGI\n         G9rRL9rN4oPAjWNE4qGGnwvZJKj2ZwpthWn7Y7Li23QbKh4UnmnEGDwHS4Ykc0AxiLr/\n         SabA==","i=1; a=rsa-sha256; t=1776075660; cv=none;\n        d=google.com; s=arc-20240605;\n        b=cGJze/o41toPalABzEl5LQwOncrYDvKLEbRY/OjHHynveaK2lgY6j7k53tbQheboG8\n         9syVfqc5wcB31gXVAXBvqSkEvbmApIEwlIasvcAi6SxA+DB0stk8ZOPQkBVP0MmFMdCk\n         JESQlx24Kt3uK8v/DsVNaYifzFKQC3jZjalBy3z2GVZok7hlQSr2mTG1AnOJ3aGwZf42\n         sHkvAIg9mBJ1byZ8vKyj6cyDE8nY1J+VuPQVAYkFtMuSpLTdC2zyDwiI2FoTQvrPwmrB\n         9HXi+5KC38ORud9331exUvYozivQKtr0UmdAy+raRipsfAKXxP5ewrBn6Nhy5vdprCKl\n         vlBQ=="],"ARC-Message-Signature":["i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:ui-outboundreport\n         :content-transfer-encoding:in-reply-to:from:content-language\n         :references:cc:to:subject:user-agent:mime-version:date:message-id\n         :sender:dkim-signature;\n        bh=PpGGC7ku1/Gfe5E8myGJNzBEK6b0WbUkBC6fZXn6gAg=;\n        fh=qZJyYwvIsTfHMJ8M7wV5EPKZkO3EbazQumIlRrdwts8=;\n        b=UsX2o/mKiJuh5351and8HWZ+dx8GTqFZ9PsIzIHCpb8udm39+to7495op8UKcOEfcQ\n         ufYmUZzlCDwIMI5BHpFuf5Oe5OPI19WzpWow6NcBeZ9W7RjecKw778yfIyxMh/WC627O\n         vCZOBNbJO80HEle2PwH3sORRti4UEuZrAT/Y4ea768BJo/lHsHt8jiRm1p+83BY04wzt\n         q8O4DK5pHdClXj7KBVmS59v8colHr4hcRdZIHY7Z+w7TpNzS4Ovnq6ZvfojsR7HLJjQ9\n         YsSA2exiztux84GA+obFr2afuplhgV/1Qg8q5zLWQEuSK9F43lJC1zGj3RoeJD5xaNUN\n         oNBQ==;\n        darn=patchwork.ozlabs.org","i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=ui-outboundreport:content-transfer-encoding:in-reply-to:from\n         :content-language:references:cc:to:subject:user-agent:mime-version\n         :date:message-id:dkim-signature;\n        bh=SNd7LUn/PvC1fNP5OkqhpnpxM3e9kIwCLLw+AKVd2t4=;\n        fh=eYla9bBPXcFHClht9E75ZkDiPqTP/ydffk4wBGU8xmw=;\n        b=dApHbvHodQBeV3R9LYQQpNgzO65Z0rKojycUVKTSTuScj5DQp881asvlH7vZDoubWN\n         EGBypFNh0x0maMm8/XibbYscsqMPydqZ/gGGBJDMbjIArm+JaqwG41JS1ux1yZ0965hZ\n         drj/yVpOKn56AXzlBv8p5tNmQU2Q7CxS6SiInhKdjqDcwvT14GGyPhI5flXQYrVQiBJs\n         6YlhhpsL//G/GMYALLKfYM+Gh857xNu9KQSIvPLN5OqBrAUIuRs8QltkktpnbNfg5kXZ\n         37/1/C+83Ldd0nE6ZJWf1PaTeLD7IqZTGnJ3BQy4Oj573Bhb++3TfmfRc/IXEv6xa9Hb\n         uDNA==;\n        dara=google.com"],"ARC-Authentication-Results":["i=2; gmr-mx.google.com;\n       dkim=pass header.i=@swupdate.org header.s=s1-ionos header.b=HtEqAfsE;\n       spf=pass (google.com: domain of stefano.babic@swupdate.org designates\n 212.227.17.13 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org;\n       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=swupdate.org","i=1; gmr-mx.google.com;\n       dkim=pass header.i=@swupdate.org header.s=s1-ionos header.b=HtEqAfsE;\n       spf=pass (google.com: domain of stefano.babic@swupdate.org designates\n 212.227.17.13 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org;\n       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=swupdate.org"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=googlegroups.com; s=20251104; t=1776075665; x=1776680465;\n darn=patchwork.ozlabs.org;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:x-original-authentication-results\n         :x-original-sender:ui-outboundreport:content-transfer-encoding\n         :in-reply-to:from:content-language:references:cc:to:subject\n         :user-agent:mime-version:date:message-id:sender:from:to:cc:subject\n         :date:message-id:reply-to;\n        bh=PpGGC7ku1/Gfe5E8myGJNzBEK6b0WbUkBC6fZXn6gAg=;\n        b=mCisyAiCa3hzGQoRBbykuxBywO0Pi7U4eC5y1vd1b4pFEepL/GWGGk4xIJ7eH7p0DW\n         0Z2in6F8E9/OFT1d9m1wUK1w7ibuFzae2tADGFX4nzXcTno55BtOWc9Imt6dKSzsJzmK\n         sjpOLk0w8iMiR4tU4OtecZcoxLgzsTXmFzWsgubO8EtAEW+sfs8VTaof1/uO82UjrR6x\n         deI/kXAgKTb2N96PdnogPkGFQ5YUEb34aOwJpY13pjqPlCWKQ6T1xVjrAwlcZsd/Yc8O\n         B42Pjy7VlCaHjDApAHYZtZgf0g1NY7/gzlEb+Q07YJ+LTxRaHFN+wOiBJzSLEtFqHopO\n         lw5Q==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1776075665; x=1776680465;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :x-spam-checked-in-group:list-id:mailing-list:precedence\n         :x-original-authentication-results:x-original-sender\n         :ui-outboundreport:content-transfer-encoding:in-reply-to:from\n         :content-language:references:cc:to:subject:user-agent:mime-version\n         :date:message-id:x-beenthere:x-gm-message-state:sender:from:to:cc\n         :subject:date:message-id:reply-to;\n        bh=PpGGC7ku1/Gfe5E8myGJNzBEK6b0WbUkBC6fZXn6gAg=;\n        b=EzvHC+tx/0H1SvuVItvxSBGl3HwTtKkyAVO7fIwAJ3FYoovaV/Rtq+Uh3vyyQFTDLL\n         g99nkujwYAUVoup1ReDZzoeakOM48FofzcYhdVfmIJt/TjHgpV69Qi1YeEpyfRer14UQ\n         wYqYP5Sm+/re3wnEAfKn4U3Rw/1epF8SysDziANcqr+ugJGAtUR6+WT1yAd9VwnT9m0m\n         aCwEfgJ8+EB/TyKA+fgkD9BD0BQqz+XtPWlkD/3hmzYtsabL0Fxjno+cE2krUKuNKiR8\n         cUG8snIByJXGhp4SCcj4O5U9fJoYzk+xvPyejxX+D3eZbWVgXl4LXD/UlojYIU6JvokP\n         G97g==","Sender":"swupdate@googlegroups.com","X-Forwarded-Encrypted":["i=2;\n AFNElJ/FgnAbB9qd4XUVId9Xvm8i/USFf4UlXRKrGUuFeOt6ZJncmF+E/d20HpKM7i3Uxz5LQb65zjI0rQ==@patchwork.ozlabs.org","i=2;\n AFNElJ8QgGsE/pondNncISVMZYag4vE6HX2TyLpuQ8sPrJevA/NH+qBms5m7zYITavMDGZv9yPOrfteeTQ==@googlegroups.com"],"X-Gm-Message-State":"AOJu0Yw5OCT/g16ut25N1UebpmVHNrckulWiy2+cE3sWyLqTQsIcUQGH\n\tUm+ChagTr1Y2p82nk5liVJJFnHif+ZgqS/R+uhEhDtB9hVM2IPZWF/Ef","X-Received":["by 2002:a05:6512:1150:b0:5a1:2e14:134b with SMTP id\n 2adb3069b0e04-5a3ef6fedbemr3986695e87.4.1776075665537;\n        Mon, 13 Apr 2026 03:21:05 -0700 (PDT)","by 2002:a05:6512:39d6:b0:5a2:babe:3da0 with SMTP id\n 2adb3069b0e04-5a3ef6ff102mr4111576e87.9.1776075660699;\n        Mon, 13 Apr 2026 03:21:00 -0700 (PDT)"],"X-BeenThere":"swupdate@googlegroups.com;\n h=\"AYAyTiIVIdHQATKMBtBF7STlL5yZwU45Mvzq/Q2uvhA6NAnT6g==\"","Received-SPF":"pass (google.com: domain of stefano.babic@swupdate.org\n designates 212.227.17.13 as permitted sender) client-ip=212.227.17.13;","X-UI-Sender-Class":"55c96926-9e95-11ee-ae09-1f7a4046a0f6","Message-ID":"<ed77a441-8076-4755-acdc-5058c8a192a5@swupdate.org>","Date":"Mon, 13 Apr 2026 12:20:58 +0200","MIME-Version":"1.0","User-Agent":"Mozilla Thunderbird","Subject":"Re: [swupdate] [RFC PATCH 2/3] tools/swupdate-progress: sticky\n FAILURE state modifications","To":"konrad.schwarz@gmail.com, 'Stefano Babic' <stefano.babic@swupdate.org>,\n 'swupdate' <swupdate@googlegroups.com>","Cc":"\"Adler, Michael (FT RPD CED OES-DE)\" <michael.adler@siemens.com>","References":"<cover.1775844632.git.konrad.schwarz@siemens.com>\n <5c7a7e7b9dc54a5c5cf144fcd63298beea3d3383.1775844632.git.konrad.schwarz@siemens.com>\n <09762b24-7d87-4356-a177-5a8dcd118b1e@swupdate.org>\n <5191cb21-e617-4b68-b9d0-15638e307ba6n@googlegroups.com>\n <f7a7b8f2-118a-4a32-b93d-ac2150116759@swupdate.org>\n <00c101dccb17$cb45d530$61d17f90$@gmail.com>\n <1143c629-ad35-4370-8e90-98d3369e9e09@swupdate.org>\n <00ce01dccb24$f3cc0e90$db642bb0$@gmail.com>","Content-Language":"en-US","From":"Stefano Babic <stefano.babic@swupdate.org>","In-Reply-To":"<00ce01dccb24$f3cc0e90$db642bb0$@gmail.com>","Content-Type":"text/plain; charset=\"UTF-8\"; format=flowed","Content-Transfer-Encoding":"quoted-printable","X-Provags-ID":"V03:K1:uuZeZrhXEAteEcSLTHxDW065GC5tjFs3xJ3KkwNVcVRF20lgGYn\n D4ZVhUaWV3vAugR7K9PbF4dy+vuAG0dtFKkrR05VVcxT0OmpRoaWDnsQvXaa2xJYmn7q9NF\n M56K9+1WEE/NXQTIz8ZTuo/XcaSjNcyQSEFXnWcT6qGQz+d8Hzx0saUnZ6D633rlb1jyYrM\n 0kCRY1M+iVIwHV3GagCkA==","X-Spam-Flag":"NO","UI-OutboundReport":"notjunk:1;M01:P0:Xc1SeUGXBRg=;oTCWcuS/avRKjYhCTZbi6iDMiaX\n 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","X-Original-Sender":"stefano.babic@swupdate.org","X-Original-Authentication-Results":"gmr-mx.google.com;       dkim=pass\n header.i=@swupdate.org header.s=s1-ionos header.b=HtEqAfsE;       spf=pass\n (google.com: domain of stefano.babic@swupdate.org designates 212.227.17.13 as\n permitted sender) smtp.mailfrom=stefano.babic@swupdate.org;       dmarc=pass\n (p=NONE sp=NONE dis=NONE) header.from=swupdate.org","Precedence":"list","Mailing-list":"list swupdate@googlegroups.com;\n contact swupdate+owners@googlegroups.com","List-ID":"<swupdate.googlegroups.com>","X-Spam-Checked-In-Group":"swupdate@googlegroups.com","X-Google-Group-Id":"605343134186","List-Post":"<https://groups.google.com/group/swupdate/post>,\n <mailto:swupdate@googlegroups.com>","List-Help":"<https://groups.google.com/support/>,\n <mailto:swupdate+help@googlegroups.com>","List-Archive":"<https://groups.google.com/group/swupdate","List-Subscribe":"<https://groups.google.com/group/swupdate/subscribe>,\n <mailto:swupdate+subscribe@googlegroups.com>","List-Unsubscribe":"\n <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>,\n <https://groups.google.com/group/swupdate/subscribe>"}},{"id":3676725,"web_url":"http://patchwork.ozlabs.org/comment/3676725/","msgid":"<29f38394-06e7-44aa-b378-2fd653868c2c@swupdate.org>","list_archive_url":null,"date":"2026-04-13T13:00:06","subject":"Re: [swupdate] [RFC PATCH 2/3] tools/swupdate-progress: sticky\n FAILURE state modifications","submitter":{"id":86869,"url":"http://patchwork.ozlabs.org/api/people/86869/","name":"Stefano Babic","email":"stefano.babic@swupdate.org"},"content":"Hi Konrad,\n\nplease *never* remove the ML from the communication when discussion was \nposted.\n\nOn 4/13/26 13:34, konrad.schwarz@gmail.com wrote:\n> Hello Stefano,\n> \n>> -----Original Message-----\n>> The central solution is an overwrite without checking why we get this\n>> and won't be merged.\n> \n> I understand.  I will try to recreate the problem later this week.\n> \n>> You are not answering the question. These two patches try to add a\n>> feature that is already realized in a better and per SWU way. Again:\n>> why is this not done with post-failure scripts in the SWU instead of\n>> rely to psot-update scripts that are outside in the running software ?\n> \n> Hmm, there seems to be some miscommunication.\n\nMaybe.\n\n> \n> Is your question\n> \"why is this not done with post-failure scripts in the SWU,\n> as these are thought for this purpose?\", where \"this\"\n> is \"Still work if called repeatedly, i.e.,\n> don't do the FAILURE action again\"?  (If not, see below...)\n> \n> If the core were changed to produce multiple FAILURE messages\n> and swupdate-progress were not adjusted accordingly, swupdate-progress\n> would call the post-failure script multiple times.  The post-failure\n> scripts are user defined and outside of SWUpdate's purview,\n> so requiring them to be idempotent would place a new burden on\n> SWUpdate's users.  This would be a -- completely unnecessary --\n> backwards-incompatible change, at least in my mind.\n\nNo, the misunderstanding is going on.\n\nYou want with a monitoring application (that should just monitor and not \nbe active in the update) use swupdate-progress to execute restore \nscripts in case of FAILURE.\n\nI am telling you that this should be part of the SWU, that means in the \nSWU (sw-description) you add a section:\n\n\tscripts:(\n\t\t{\n\t\t\tfilename=<...>;\n\t\t\ttype = \"postfailure\";\n\t\t\tdata = \".....\";\n\t\t},\n\n\t\t< multiple post-failure scripts allowed>\n\n\t}\n\nThey will rollback (if required) in case of failure and it is the \nrelease manager (or integrator or whatever) to decide how it is done.\n\n> \n> It would be poor engineering as well, since the script would have to record\n> the fact that it has been called already in a persistent location\n> somewhere (e.g. a file), and remember to clear this location at certain state transitions,\n> whereas we here just use a local variable on the stack.\n> \n\nYou are not getting the point.\n\n> \n> Upon re-reading:\n> I don't understand what you mean with \"why is this not with post-failure\n> scripts in the SWU instead of rely on ... outside in the running software\".\n\nIn fact, there is a misunderstanding. I hope it is clearer now.\n\n> \n> My application does not use post-failure scripts at all, I'm attaching to the lua bindings\n> of the progress API.\n\nThe fact that an update is successful or not should be part of the \nrelease itself, that means it should be embedded in the SWU. That means \nalso that you do not need to roll out new scripts in case they are \nchanged (that means update of swupdate-progress and related scripts), \nbecause this is part of the release itself that remains self contained.\n\n> I am trying to make that API a little bit easier to use while preserving\n> the existing interface to the post script of tools/swupate-progress.\n> \n\nBest regards,\nStefano Babic","headers":{"Return-Path":"<swupdate+bncBD2ZDGN6SEKRBXWR6PHAMGQEM6JH4MI@googlegroups.com>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=googlegroups.com header.i=@googlegroups.com\n header.a=rsa-sha256 header.s=20251104 header.b=ckv9HqOe;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com\n (client-ip=2a00:1450:4864:20::33a; helo=mail-wm1-x33a.google.com;\n envelope-from=swupdate+bncbd2zdgn6sekrbxwr6phamgqem6jh4mi@googlegroups.com;\n receiver=patchwork.ozlabs.org)"],"Received":["from mail-wm1-x33a.google.com (mail-wm1-x33a.google.com\n [IPv6:2a00:1450:4864:20::33a])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fvSF60vBrz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 13 Apr 2026 23:00:24 +1000 (AEST)","by mail-wm1-x33a.google.com with SMTP id\n 5b1f17b1804b1-488ba2f4094sf27873965e9.1\n        for <incoming@patchwork.ozlabs.org>;\n Mon, 13 Apr 2026 06:00:24 -0700 (PDT)","by 2002:a05:600c:4ed4:b0:488:88d2:f55 with SMTP id\n 5b1f17b1804b1-488ddd4023dls17992975e9.1.-pod-prod-06-eu; Mon, 13 Apr 2026\n 06:00:12 -0700 (PDT)","from mout.kundenserver.de (mout.kundenserver.de. [212.227.126.133])\n        by gmr-mx.google.com with ESMTPS id\n ffacd0b85a97d-43d76f23b95si70230f8f.0.2026.04.13.06.00.11\n        for <swupdate@googlegroups.com>\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Mon, 13 Apr 2026 06:00:11 -0700 (PDT)","from client.hidden.invalid by mrelayeu.kundenserver.de (mreue011\n [212.227.17.165]) with ESMTPSA (Nemesis) id 1MkYLW-1viwtl1m3y-00kZfy; Mon, 13\n Apr 2026 15:00:07 +0200"],"ARC-Seal":["i=2; a=rsa-sha256; t=1776085217; cv=pass;\n        d=google.com; s=arc-20240605;\n        b=E+Pa27BJGZK4QVbbSmssC9llojKI1pf5uym1Df6n0XoSsf662WK7H3cAaiW1wqwIaa\n         HoW9eu0k+mEm08Ea/sqHzjSrSItLrgQ8Fr9aeSzEZptlfGfLuQU4QuRxnrQXeelEXLhK\n         D6TUoY2dDIjUf3l8X1472pFlqxkVzCGAakq5URMF/XyTCR4cLR1lrGlya60J0FQ6mBDy\n         +nei2pzQR6cyRmYk1g7SdzVMS6V5bPVqMaMIjPGsPJJeGdoSGD2/fZQmomkVE4aC800f\n         k2GpJFjCsPC/wfBJstVaDxSZbTVHwoDZjIwB8w2rrfNG9ZqADxo3ATKdnWhGHbdkndQy\n         1FmQ==","i=1; a=rsa-sha256; t=1776085211; cv=none;\n        d=google.com; s=arc-20240605;\n        b=Y/jvXAXu4aIMC/NipTIYwLW4DE0z91w8E/N9ExC1HtJbTRYwN1AE/QZrZ9JCba3Zaz\n         RQmdh/dk0TDgngi6uG87nc45W6swr9b88symqVc7WlnwBlHgIM4sj6JjJ4yiPYcbkyKp\n         8Wy0twLw8lCebXdkJtov1J6+SDceiactpO8ubHwQkehBkusR5aVhEhooVynHVjTZnOTB\n         0zS+tXa7tYQoBrzx8IAAaISro04a/HG5JJQ281wpAuh3JjxbJOa53ssuETCGIXJ/Yjz8\n         CUJb4ZOfCyQIo5itbWFmtxvVIZ2jOxR3vqbdqPpvhJ5eseFRDeRWKUZVJrWJfari2P+q\n         7RYg=="],"ARC-Message-Signature":["i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:ui-outboundreport\n         :content-transfer-encoding:in-reply-to:from:cc:content-language\n         :references:to:subject:user-agent:mime-version:date:message-id\n         :sender:dkim-signature;\n        bh=dhPScT98Ea7Ib8+24sl2Gh2lgo/RTo1A9xvH4wq8+ns=;\n        fh=JeAM3pvl/KFDXgHz0h5bJilq5ytmfwzUSaLWbNi9NGI=;\n        b=P68ict3uxanb/2UnU4KWwYsSsjv0pmmBdZilQX3UpTQ+eVLb5PGFfHp0Hbkd6R98VZ\n         2ltICVJX1lAc8u9w2QeKBC7uVkF/a3xGpw45KADnUP7IQryBa4v9XlpQzt/ld8SiAfaH\n         fE4R8YXHjBzc1vsBaAbxE4B/7wF4VVrZZhQnlgoLJ7Y3dXNsqFuxp3ImlzhQNJ3EIH0T\n         t0zledJYw8eIjQPNwZk21J5+5pFDKdSUXM/09mJmCrYcIAm1iBdQmTlPLafNe1SO69rl\n         YYu0O9bEGFYhAIkXt1rInJos/jAkoLl1QI4zjOB877vcZtafEugFBiF0vdE5/NWBD5pW\n         M+pw==;\n        darn=patchwork.ozlabs.org","i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=ui-outboundreport:content-transfer-encoding:in-reply-to:from:cc\n         :content-language:references:to:subject:user-agent:mime-version:date\n         :message-id:dkim-signature;\n        bh=AIPkB+I3evpMKwLZQ0SKI8bBfcokxqlvxpnnFXZFhH4=;\n        fh=CvcUHpeD8JeuA5yqqV7GaeWC0UVff8JNw2K0IJIMBfo=;\n        b=Fr2fy3FxGv98/MhFYwGfCQ2yFJI7FWzCA28Qwx7L6liLSLkg0ZCF+MAUCM3Gf4ON+I\n         uj4D/TZp7YMeMNMRPjJwFTM3xLaFu0cHmwYIKyzADWLwb3AYnAS8q/o8ZmX4dhPiNOhU\n         1Q/OoOZrm0PWLGtOxix5dPxnLrKbNXDy7MbsC/s+yneWCmHvyg7M37Q9FtMML8MqGOi5\n         fWvaqkByFTcALgjgEDCeyJGImanbxySfU1iqWdxgWIceyjzzu9JUMTb/xcAvdFZzeC53\n         UfyAxsuYv1q72bVjY1qznfnQnLOz792CK1xCHZpKU3eI9LPPzmm8zH6ymx0BP0sIYrpO\n         1IgA==;\n        dara=google.com"],"ARC-Authentication-Results":["i=2; gmr-mx.google.com;\n       dkim=pass header.i=@swupdate.org header.s=s1-ionos header.b=xKxUENsO;\n       spf=pass (google.com: domain of stefano.babic@swupdate.org designates\n 212.227.126.133 as permitted sender)\n smtp.mailfrom=stefano.babic@swupdate.org;\n       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=swupdate.org","i=1; gmr-mx.google.com;\n       dkim=pass header.i=@swupdate.org header.s=s1-ionos header.b=xKxUENsO;\n       spf=pass (google.com: domain of stefano.babic@swupdate.org designates\n 212.227.126.133 as permitted sender)\n smtp.mailfrom=stefano.babic@swupdate.org;\n       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=swupdate.org"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=googlegroups.com; s=20251104; t=1776085217; x=1776690017;\n darn=patchwork.ozlabs.org;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:x-original-authentication-results\n         :x-original-sender:ui-outboundreport:content-transfer-encoding\n         :in-reply-to:from:cc:content-language:references:to:subject\n         :user-agent:mime-version:date:message-id:sender:from:to:cc:subject\n         :date:message-id:reply-to;\n        bh=dhPScT98Ea7Ib8+24sl2Gh2lgo/RTo1A9xvH4wq8+ns=;\n        b=ckv9HqOe+G4TWQQotHrG+NoWjepSpoWLTgbKrDw3TkNDDDvWl9FIt/iahIiPoTjrsU\n         3MwASDk1FAe9Xss6KNxHGD/34haOTrOCqssDxu5/4uFJCz0u4rsQ5dm/z5nE5PNNCq8L\n         5L+5V1lwsIa9rOEDo52ZOTbM3SPtBPUwmTUxjX7VPmZzXOZ0Z/1gaFBNXfK+6bPPVSMb\n         5kOEHG7U6JaHDPjOLve1W0SqPvsJYJO+hilb5gAxjwV4aTuRyehoEJvc2y2fRYUjUr0t\n         fpsitZIozk8aKrd5YGqcQc4wO5z0hRz6PvqMOPPNgb2rHNGvbLEiFattsnRvT4L0/wDD\n         bXZg==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1776085217; x=1776690017;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :x-spam-checked-in-group:list-id:mailing-list:precedence\n         :x-original-authentication-results:x-original-sender\n         :ui-outboundreport:content-transfer-encoding:in-reply-to:from:cc\n         :content-language:references:to:subject:user-agent:mime-version:date\n         :message-id:x-beenthere:x-gm-message-state:sender:from:to:cc:subject\n         :date:message-id:reply-to;\n        bh=dhPScT98Ea7Ib8+24sl2Gh2lgo/RTo1A9xvH4wq8+ns=;\n        b=BD5CrIpVsqrQq2oZp03snNpUvjhXOCL2fs85gEk5t1TEG0TvKYz3aMtrfNfo02XqkW\n         hYF/xgBdGpMeJSOotj5VGjhix8KvSE+MhS+XGYnShbnoB+rry+PcYnKMyOtxkXL76/CL\n         Vd9zvaz3VZWKMG3mbwrC8j70gDuQGOAFtpaM4XQA0LrabvsAPfMeda/ZXlkMXibLx+7J\n         imLm/ocCeNEyVrPFrvMZ0smo32Pkmu+g8ZChgVCOEOfJeJ2akwj3R3pIVZCLBrkY/a55\n         Ld41wAosfmrM33z8GrNO+R/R0fUcrvvgocmx3InCKYbPThcP8w1r7zBO9yfYEpk6xmBb\n         9F6g==","Sender":"swupdate@googlegroups.com","X-Forwarded-Encrypted":"i=2;\n AFNElJ88BBSxsVtWFBvYlpbWUWR2jmwGi8QXvptuuiYjjgkm+6L7bv2cH8wtUygN6+4h9ICUbW/WdnxY5A==@patchwork.ozlabs.org","X-Gm-Message-State":"AOJu0YzZUMptdRikGZbJ6DU9KSn8MorNmqOFillemJON9yA/kSTuymjl\n\tllgBvVMgD0BdU5PcRC8SjxilA6lcSGB9NlgpyGuLLmxIbNjRi95raa9G","X-Received":["by 2002:a05:600c:34cc:b0:485:557d:9fe with SMTP id\n 5b1f17b1804b1-488d67e65e7mr174171625e9.12.1776085216411;\n        Mon, 13 Apr 2026 06:00:16 -0700 (PDT)","by 2002:a05:600c:a109:b0:488:af7f:7751 with SMTP id\n 5b1f17b1804b1-488d6836508mr128052385e9.15.1776085211288;\n        Mon, 13 Apr 2026 06:00:11 -0700 (PDT)"],"X-BeenThere":"swupdate@googlegroups.com;\n h=\"AYAyTiI+FwrMAOam2kxAhgxbbClH9gT6qf+qIgiwkUY81vpUsQ==\"","Received-SPF":"pass (google.com: domain of stefano.babic@swupdate.org\n designates 212.227.126.133 as permitted sender) client-ip=212.227.126.133;","X-UI-Sender-Class":"55c96926-9e95-11ee-ae09-1f7a4046a0f6","Message-ID":"<29f38394-06e7-44aa-b378-2fd653868c2c@swupdate.org>","Date":"Mon, 13 Apr 2026 15:00:06 +0200","MIME-Version":"1.0","User-Agent":"Mozilla Thunderbird","Subject":"Re: [swupdate] [RFC PATCH 2/3] tools/swupdate-progress: sticky\n FAILURE state modifications","To":"konrad.schwarz@gmail.com,\n \"Adler, Michael (FT RPD CED OES-DE)\" <michael.adler@siemens.com>","References":"<cover.1775844632.git.konrad.schwarz@siemens.com>\n <5c7a7e7b9dc54a5c5cf144fcd63298beea3d3383.1775844632.git.konrad.schwarz@siemens.com>\n <09762b24-7d87-4356-a177-5a8dcd118b1e@swupdate.org>\n <5191cb21-e617-4b68-b9d0-15638e307ba6n@googlegroups.com>\n <f7a7b8f2-118a-4a32-b93d-ac2150116759@swupdate.org>\n <00c101dccb17$cb45d530$61d17f90$@gmail.com>\n <1143c629-ad35-4370-8e90-98d3369e9e09@swupdate.org>\n <00ce01dccb24$f3cc0e90$db642bb0$@gmail.com>\n <ed77a441-8076-4755-acdc-5058c8a192a5@swupdate.org>\n <00d601dccb39$6f4eec90$4decc5b0$@gmail.com>","Content-Language":"en-US","Cc":"\"'swupdate@googlegroups.com'\" <swupdate@googlegroups.com>","From":"Stefano Babic <stefano.babic@swupdate.org>","In-Reply-To":"<00d601dccb39$6f4eec90$4decc5b0$@gmail.com>","Content-Type":"text/plain; charset=\"UTF-8\"; format=flowed","Content-Transfer-Encoding":"quoted-printable","X-Provags-ID":"V03:K1:mZu3fCAmRrBBWAGlp7zuJFC6nnkXFNHX0BIKiTW7EEh5keSeKze\n gXE70RMbUgxgG8yitMpfB7b/fmQ3s0AeBffnnDBG5TtGyHkKFQQBmNHD9jH5C2mh0z5iZ4D\n v69Dbbbq6aF7pQse6YVNs3sQlW+aQIhzd0F6ipFFHEs2tEl95UUwMxl5uWASZToEix+gP7Z\n 37JfN89KXVJ2E4L+fCgag==","X-Spam-Flag":"NO","UI-OutboundReport":"notjunk:1;M01:P0:LVnbUKGYQcA=;CPA2mPwDZKLBUt3izrBvrIdnch5\n tofKZZx/B6c2fhgxjeUI41AUUSTv5pEtbCVthITLcuzV5MoXB9qGDfOkE8j1T07TUcwlVLQgI\n enx2LlPrUuSd5f/noLdHfdkcrnWJScNOp76jKOqPIeWMjAreQv87Y0Yk/5o4wxIPp4W6AEKhD\n 25W2xonTfwu8SlFICmMZnbuRQ3KxyMFg+v4QNnjO4sepBvco9uoYS62h41IDKg+izRr10YVSx\n dAfi9EEDWALdEbEinTlU15GspVX3VL85jWbeyF4w7uF7ukC6MD8/+J78iXplmvUdTHRme26+T\n 5Xl1MEyg+e8R4nKtzUPRVrUyR+G18eGMzFUuqkpGyToouw/xoZfgfAe0hdidSIq716mN1O08/\n 8ND2qFfvCgdNcl6fl37uyCVPFkByY/DCQl0Me/frQAPrG4yTi804gSrEh+bgwraEM+odHUMvk\n 5MIcOtoEkiOqIVNMMMB8G/IPcK0taYhuUqNvKFPPdehAdA4jpt8rmaa/p/i4hXcePuznttm2q\n pbWVh3GZfh31ifv5yRsWwCB9K/2rH+SMfYX7rDlNaILWCgYU0C0WDWxsOxGP8KT56Dxz3xa7f\n w/nd4BGQlKKuXEN2Cuuq3Vw5moCansda20U3c1WzlD2uTTZwZQkC1MvEmhnv6Ivl99eMd4rJe\n Nx39fIzfqEwQJvfBxensvBth8PQSNR9fs+uJCyPmmJMFOeIpyRrKdLHqgKOKITXb2N+MQksqD\n D/uCGxVgy8bQxilrQm8THvcm9abLfW3T7l5EIsaqtJYuvsmr8t2osnSLpgZoFwt59A0/lyDz8\n HFoVj17LxXvQKK/41cP3uymdUGJ59AjL+ZqfWcguRI9YNJPSkkEqj1Q6/rK8IFK35JgP8QdIK\n JkZ+hyVCWvfV4ZYao7p4zMBGD6yQomIb8ios6BiqjUscGOIRDrCV48HfErhbQIpKeAU1NYRah\n QiHgyB5sIr9as7rIfv7avtxnTE3ffGoaBV1tHRbFkemzTknOdXtvveY53c0DhrgjbgqZq0S/u\n 4L9gjZo4odxkjPJBTpIK+iFd+pJ8TQQCGyQUDGenypQxSqFBo1kCaDUO5sEFQ+/r0U4pofCBf\n DvTpWHDQGoTdAsSWJnH/S57p2V170m5wCXkHHhgH5fIm846AvO2jsAgeJBlxIIM7OWNbTp30h\n wMHuwRu63kNk3kK98YMC5uVaxWtjjojizOmQHwhYVTEZ0kpJogpX3zczpywLusiKo3Ob9/C8W\n S6IpOiAN5qmg0oeK2BZNDCW5OgfleMRfFJQIMsbeOsEiyZLe6rt0BJcM55sYFDVT+pNHbRYh2\n g9rtV4svic6mrzBZqjxIXDRLJsPwm3RHHX7t9r+/YWze0kNyMvb08Vp3qrXNzP2XDok6TwW5w\n 1s/FtHtngtaR9aqKk+HWVD7MWCW3ohfCoyfb9yM9MaLz3MZT4Jh1OhMoIYNx0VMSKo8UDQQeV\n DUlDnTcx+6CGOJzcUxnTpHhkbVyi623u8VE6XVMmZk/DNOMrdYsq9dZ9K01Ps4YtkeibjoAQP\n l+4Rufzbmx2EEQva07Pohz9C9WY2uorde447k+JQ3jjVbqmK6OwS/8OjLe+vzek7bSUVSCoc7\n p6u+CboVQyPJg8WhcLRxZdEvWVQk5SiiM95D8n4d3pN+atVKcApNVAxufpVVCBwzv0GkmkpcU\n EqQb+pNQ5k7PZZwcHN7wZUS+vqcVANOgQDgxaoxk8kPIvHdGqjbFvTHbnUPnXUXaVXcDLvVLh\n RxiCwxsH6DokIqsaHUo8OVuWp/MfmTY0fRkDUG/ASvpviWz5C3qLk/Qjr20ZHJhZ5AHARb+Yd\n /OgCxa8q5dp/J0jAm8wjn6pGeEpUV2Ho8GVgbmeWw47EFMfDOEl8DBeFe6zkXPjz8//poQe5z\n Rv87exGjisMnncMfqy7jQ7XKhhhk1Fk+InBT/exu+5hFRe4lMuOmVgNJ0et7g3FFdZrKCTImS\n h3L1wmjgc7Apfu7INKIH9V60Y6TmLZ0hOs1xCpSMeRUOjrsER7","X-Original-Sender":"stefano.babic@swupdate.org","X-Original-Authentication-Results":"gmr-mx.google.com;       dkim=pass\n header.i=@swupdate.org header.s=s1-ionos header.b=xKxUENsO;       spf=pass\n (google.com: domain of stefano.babic@swupdate.org designates 212.227.126.133\n as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org;\n       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=swupdate.org","Precedence":"list","Mailing-list":"list swupdate@googlegroups.com;\n contact swupdate+owners@googlegroups.com","List-ID":"<swupdate.googlegroups.com>","X-Spam-Checked-In-Group":"swupdate@googlegroups.com","X-Google-Group-Id":"605343134186","List-Post":"<https://groups.google.com/group/swupdate/post>,\n <mailto:swupdate@googlegroups.com>","List-Help":"<https://groups.google.com/support/>,\n <mailto:swupdate+help@googlegroups.com>","List-Archive":"<https://groups.google.com/group/swupdate","List-Subscribe":"<https://groups.google.com/group/swupdate/subscribe>,\n <mailto:swupdate+subscribe@googlegroups.com>","List-Unsubscribe":"\n <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>,\n <https://groups.google.com/group/swupdate/subscribe>"}},{"id":3677121,"web_url":"http://patchwork.ozlabs.org/comment/3677121/","msgid":"<010101dccbfc$4eac15d0$ec044170$@gmail.com>","list_archive_url":null,"date":"2026-04-14T10:49:01","subject":"RE: [swupdate] [RFC PATCH 2/3] tools/swupdate-progress: sticky\n FAILURE state modifications","submitter":{"id":92117,"url":"http://patchwork.ozlabs.org/api/people/92117/","name":"Konrad Schwarz","email":"konrad.schwarz@gmail.com"},"content":"Hi Stefano,\n\n> No, the misunderstanding is going on.\n> \n> You want with a monitoring application (that should just monitor and not be active in\n> the update) use swupdate-progress to execute restore scripts in case of FAILURE.\n\nNo, I don't want this at all.  I have no stake in the matter. My only interest is to make\nprogress monitors a little bit simpler to implement.\n\nHowever, your existing code base has a monitoring application that offers this ability.\nIs this a good idea?  Maybe not, but it's there.\n \n> I am telling you that this should be part of the SWU, that means in the SWU (sw-\n> description) you add a section:\n> \n> \tscripts:(\n> \t\t{\n> \t\t\tfilename=<...>;\n> \t\t\ttype = \"postfailure\";\n> \t\t\tdata = \".....\";\n> \t\t},\n> \n> \t\t< multiple post-failure scripts allowed>\n> \n> \t}\n> \n> They will rollback (if required) in case of failure and it is the release manager (or\n> integrator or whatever) to decide how it is done.\n\nNevertheless, the existing tools/swupdate-progress.c has the options\n\n-e, --exec <script>\tcall the script with the result of the update\n-r, --reboot [<script>]\treboot after a successful update by call the given script or\n\t\t\tby calling the reboot() syscall by default.\n\nI understand you to be saying these options should be deprecated.  That's fine,\nbut is not the subject of my patch (and not for me to decide).\n\nThe patch merely ensures that the script passed as the argument to -e\ncontinues to be invoked exactly as before.\n\n> > My application does not use post-failure scripts at all, I'm attaching\n> > to the lua bindings of the progress API.\n> \n> The fact that an update is successful or not should be part of the release itself, that\n> means it should be embedded in the SWU. That means also that you do not need\n> to roll out new scripts in case they are changed (that means update of swupdate-\n> progress and related scripts), because this is part of the release itself that remains\n> self contained.\n\nThat's good to know, but can we rule out that some of SWUpdate's users are using\ntools/swupdate-progress with the options mentioned above?\nIf not, it's likely they will be unpleasantly surprised if things\nsuddenly stopped working.\n\n\nAnyhow, all of this is going on a tangent -- if a root cause for excess\nPROGRESS messages can be found and eliminated, all of this is\nmoot.","headers":{"Return-Path":"<swupdate+bncBCM7PUF6Q4ORBINX7DHAMGQE7Q5EOPY@googlegroups.com>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=googlegroups.com header.i=@googlegroups.com\n header.a=rsa-sha256 header.s=20251104 header.b=j4DWOtYR;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=JsNdwyc1;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com\n (client-ip=2a00:1450:4864:20::33a; helo=mail-wm1-x33a.google.com;\n envelope-from=swupdate+bncbcm7puf6q4orbinx7dhamgqe7q5eopy@googlegroups.com;\n receiver=patchwork.ozlabs.org)"],"Received":["from mail-wm1-x33a.google.com (mail-wm1-x33a.google.com\n [IPv6:2a00:1450:4864:20::33a])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fw1HD3r3bz1yDF\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 14 Apr 2026 20:49:11 +1000 (AEST)","by mail-wm1-x33a.google.com with SMTP id\n 5b1f17b1804b1-486fa07f2bbsf27368505e9.2\n        for <incoming@patchwork.ozlabs.org>;\n Tue, 14 Apr 2026 03:49:11 -0700 (PDT)","by 2002:a05:600c:2314:b0:487:341b:ca16 with SMTP id\n 5b1f17b1804b1-488d5d49ac1ls20628965e9.1.-pod-prod-04-eu; Tue, 14 Apr 2026\n 03:49:04 -0700 (PDT)","from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com.\n [2a00:1450:4864:20::62f])\n        by gmr-mx.google.com with ESMTPS id\n 5b1f17b1804b1-488ee019c79si283115e9.1.2026.04.14.03.49.04\n        for <swupdate@googlegroups.com>\n        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);\n        Tue, 14 Apr 2026 03:49:04 -0700 (PDT)","by mail-ej1-x62f.google.com with SMTP id\n a640c23a62f3a-b9d6c8871c7so795037266b.1\n        for <swupdate@googlegroups.com>; Tue, 14 Apr 2026 03:49:04 -0700 (PDT)","from dinmPF4XJWP1 ([195.145.170.204])\n        by smtp.gmail.com with ESMTPSA id\n a640c23a62f3a-b9d6e5c5b98sm393242366b.34.2026.04.14.03.49.02\n        (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);\n        Tue, 14 Apr 2026 03:49:02 -0700 (PDT)"],"ARC-Seal":["i=2; a=rsa-sha256; t=1776163748; cv=pass;\n        d=google.com; s=arc-20240605;\n        b=RkQiipGptJvF9UatPxno2oMKivDC2rUE5/dQs5NOd8O31IyiSipuHtGeFwuydFzdMk\n         vqee5FgzKw/ILItAM2iMzY2HRPxjowwtg8MOmgVFk9dj/P14q4ZGc02rZZwvcGN4VWR2\n         kTJqbJlJyTwAzqtFPvs6bROHsmC8B5ZDMBZTLsQSE+WAwYlQoH2xIFjBtaWRR3xz5ydW\n         5VRtx77fW8jTBgSwks9CE6nkzdTm/nvno55I2wHHbCPTYtCVx83rghPHONcFz1oAePBS\n         ov4RuN6PklufkBtoLH3gWzeiF/ozLoTAQi1vOSKP9YuDuxiBA+aCQDeaEakUdQHHHiq/\n         9+vQ==","i=1; a=rsa-sha256; t=1776163744; cv=none;\n        d=google.com; s=arc-20240605;\n        b=HVPLK0ibTJuhyKOWcVtnxFccrjQ+7j70lKeqXXZpZ9gwDYhHuhEuHb0TBn4HCylUda\n         R09B3WhmrWdUx5T9mI91KM4lvX4r/1BlAgoBN9uQ3H9wm8UhkryfmxoEaoLcxjJN9nPR\n         qV714kdXraX71yYV294aaz8Gp3cgQ2m9yVapBDSogPykwnFKkMt/QzVGWvi2VmTlzEKY\n         iKwjBjXZQyiMVXDwwcXnNTBsrmWFyY7VBsGrO5KIyC/gpK9eDeVOGnziiWonVJlC+UXZ\n         qrXOvk0QY9wIj+TQlc1gzk8tnu7qq1JG8kzTn+y5PcDfUmO1JaxWxpGaiRt7ElLU62Zi\n         v1hw=="],"ARC-Message-Signature":["i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:content-language:thread-index\n         :mime-version:message-id:date:subject:in-reply-to:references:cc:to\n         :from:sender:dkim-signature:dkim-signature;\n        bh=jZh0gU8XU7C9I4o+5ALEYtnMVpI1HkF7Fs437XQXFho=;\n        fh=wz43YdkyGUy8Srq3f5+CQeAx2yuMXJxaQbDqYEyXCt4=;\n        b=QjuyrMTqX8T3/BGGABiz2JXy/wD4zPp0xbPBMlGUoy7jVaQd83XKXfuz6tu5+E5xO0\n         lGKhYv/z+uSfY91mGcg9jZks+Lvp7p7ydfDcXHMVGcmosxHQjshIH8cvNJalgYQyyc7E\n         82aVjVKcJdppnmsbBoU5zIAGc6UDdVjjoic7rEFOmYexCipxlMj0zFLIZHR0zsQrkRWg\n         5iWzDEsF21ysINUY/9A/mDnPDWpl9DvuWoiRPMepbRpVrAu8EWGz5sJlAz9vCbEPelEh\n         AYd3N1we8XdRxOgEPRMhgDMPRzTiW3dGtyPT0EiCaO/7kq7Wcu2xpw8vxf/0V0XJ+VZG\n         G5Fg==;\n        darn=patchwork.ozlabs.org","i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=content-language:thread-index:content-transfer-encoding\n         :mime-version:message-id:date:subject:in-reply-to:references:cc:to\n         :from:dkim-signature;\n        bh=97KCGBXZbwkTDM/9UmTPC+6hTIDQVpYIH7Cy27ds08U=;\n        fh=Kjl3CB17kjvQHWs634WolaSSDe3Mq1IUK79DEQFqU2E=;\n        b=lAc89xz3mFsLTUtWTvKeUzZguPP20YzyDTAORctBcd9CDcuAelQVomwXc7iwTy7pjB\n         l4bNBA3PHWvmFIBJz2y4pvTchueS7WxCgiXHdVohnwA088fxZjhvOvMFktn081XtuuRv\n         YSoVmA9XYCdeEjt0e6p19qk9OvAG0BHc6M9wDMBYq13jFKcm7aQJN4TcbrK1NtO+sA+7\n         OLEJIuLGvZYQmA0Zexu11nGVQpoQiB4/GMGMVTVc0yS+zdQ5SEowdJgRDXkeoZcaZy1n\n         CNArP2NV450XHXuKyLat5Tm0PpFXHmLkJ9luGCbha85TGnrDzFwRFnHdvJN5CqNnMBYq\n         oS8g==;\n        dara=google.com"],"ARC-Authentication-Results":["i=2; gmr-mx.google.com;\n       dkim=pass header.i=@gmail.com header.s=20251104 header.b=sOHm3UmN;\n       spf=pass (google.com: domain of konrad.schwarz@gmail.com designates\n 2a00:1450:4864:20::62f as permitted sender)\n smtp.mailfrom=konrad.schwarz@gmail.com;\n       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com;\n       dara=pass header.i=@googlegroups.com","i=1; gmr-mx.google.com;\n       dkim=pass header.i=@gmail.com header.s=20251104 header.b=sOHm3UmN;\n       spf=pass (google.com: domain of konrad.schwarz@gmail.com designates\n 2a00:1450:4864:20::62f as permitted sender)\n smtp.mailfrom=konrad.schwarz@gmail.com;\n       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com;\n       dara=pass header.i=@googlegroups.com"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=googlegroups.com; s=20251104; t=1776163748; x=1776768548;\n darn=patchwork.ozlabs.org;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:x-original-authentication-results\n         :x-original-sender:content-language:thread-index:mime-version\n         :message-id:date:subject:in-reply-to:references:cc:to:from:sender\n         :from:to:cc:subject:date:message-id:reply-to;\n        bh=jZh0gU8XU7C9I4o+5ALEYtnMVpI1HkF7Fs437XQXFho=;\n        b=j4DWOtYRNXZK7GEtY6NSdq3tJ78EyLaHo2899wFTQABH6nNvaiYS6+5BoHnH48BCks\n         Pj91Gr/LC6JTlvhhaiL0Qh51rda3mh+GeqV51PUqqm7lklLyUviuRujjwGhQ5Xg2KTPi\n         ie7fACPOUd8/bar30+tLqoYB/JDV7aRVvof/eHO3XKUCAb94pmI6h7rC93dHHQg7FR4s\n         QZZD3X5zTOmaoHAJxON7ETbfE118V+MZ1vRLqV/GyK2ep0/kTVxsSNDJflO/yFWfO847\n         kgTgiQFdwddQXOKnSVDjxDN6Kx+4fHdnkeNJm4hTd/diDP8qzXC53nkFRI2JmTZ8a5Vh\n         pAMA==","v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1776163748; x=1776768548;\n darn=patchwork.ozlabs.org;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:x-original-authentication-results\n         :x-original-sender:content-language:thread-index:mime-version\n         :message-id:date:subject:in-reply-to:references:cc:to:from:from:to\n         :cc:subject:date:message-id:reply-to;\n        bh=jZh0gU8XU7C9I4o+5ALEYtnMVpI1HkF7Fs437XQXFho=;\n        b=JsNdwyc1ldASAQQgCLdWc2tHg3ozTH0h7YWBa92yOsjvyJrvPEWz3DEWjP+GuTO1MT\n         vMtNGMwN4Z4qvGCwXLDJQJFYtf3QxGLTzMwE0GeG0jjZ5A2A6S6x7b7zlGNQLgSPcBjk\n         mkGmy2diJ7TsoKyxFu9yn1CpKxl2GtZGmAgJAK+ewJSVZga7cL7X+fCT0gmmDcyVGRGv\n         TsZs89FBlvbm6hNdh7p5mc3/8spPRYvCzH3Q2TwQ7BpdYqwfvTnm5n7PaTzC6jpxbbuI\n         T6sbrAR+QNIp1WRp4uLu/Fkzsn/tqySFwwrp8uQi1bYtquF/nnBNj8pIRceMtTtgF4Yy\n         Jqqw=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1776163748; x=1776768548;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :x-spam-checked-in-group:list-id:mailing-list:precedence\n         :x-original-authentication-results:x-original-sender\n         :content-language:thread-index:mime-version:message-id:date:subject\n         :in-reply-to:references:cc:to:from:x-gm-gg:x-beenthere\n         :x-gm-message-state:sender:from:to:cc:subject:date:message-id\n         :reply-to;\n        bh=jZh0gU8XU7C9I4o+5ALEYtnMVpI1HkF7Fs437XQXFho=;\n        b=Fq085T+Zn4aCjlMxwtEaYSZ0+QPXQGncgcwEgzxs4HEgjPzs5Zf1KD7x8Ds47kHzCo\n         N3ThFW6KR0+B73LwACFb6V5zvX5NaHpRbcBzPO2uHQNcHgUow7RrFNpOQVEJZescbzMU\n         //6cbWexGq+OmPiP8/nBaBn+xtQXiXM0qgwPR1+uaddWHV0Q9LFa/lze9O2OK1F0jfPP\n         nnMmzN0F628ladj+oPWLtNWV6RXHGbe6J2cLbH+cBrJSFB+wkNEgvDM2yKIQRrH0yErC\n         ePhwRQgOcMWCHgHtL7g+j//M7rOO02kn8fMacgG6lpu8XlJ/tlwdQcBatn/j6i4qeSwf\n         jtGw==","Sender":"swupdate@googlegroups.com","X-Forwarded-Encrypted":"i=2;\n AFNElJ/29G2OG4xnzhajhPwQyaPd9D0EbkEputVK9LD0LREWTcyT6zOEertVHauzfYgtjPKgFD/a6d1PvA==@patchwork.ozlabs.org","X-Gm-Message-State":"AOJu0Yy0Z0le4LEqpO+VBev9K+GePkWjKcapWRSRL5E8NPmOXBus4TKt\n\tmt8KE/f12oFLNUVZz6RrEndGNQ9asEm/oIzpdCIaj4b6v6lWuhDApeWu","X-Received":["by 2002:a05:600c:c0da:b0:488:caed:5cc7 with SMTP id\n 5b1f17b1804b1-488d68af041mr199428785e9.15.1776163747952;\n        Tue, 14 Apr 2026 03:49:07 -0700 (PDT)","by 2002:a05:600c:4ecf:b0:486:fd5c:2b35 with SMTP id\n 5b1f17b1804b1-488d68685aemr244131915e9.13.1776163744076;\n        Tue, 14 Apr 2026 03:49:04 -0700 (PDT)","by 2002:a17:907:9709:b0:b97:87e4:7f40 with SMTP id\n a640c23a62f3a-b9d726572b5mr931243066b.27.1776163743285;\n        Tue, 14 Apr 2026 03:49:03 -0700 (PDT)"],"X-BeenThere":"swupdate@googlegroups.com;\n h=\"AYAyTiJTjN64kTt48qTKn8UhraEiSAIOpqERIMum+fkGzb38nA==\"","Received-SPF":"pass (google.com: domain of konrad.schwarz@gmail.com designates\n 2a00:1450:4864:20::62f as permitted sender) client-ip=2a00:1450:4864:20::62f;","X-Gm-Gg":"AeBDiesRsy9Bj71Cr5U+U7r13Z2wibkY8VRiAn+kdnXUewTscogwrarsPaV76miYg6b\n\tKiLpWv/CUIirxH50U5OTKMiysvPJGoAoFo5I+51KhTRq27Yj8BsXljlsrCOwrpG54U/9oGwItku\n\t+9Vfr/aagMRAbnxUAEEmzIlnWoCLdlcqKjA2FxTLAGr7a4n2zu2pC0Hmi3qST/GiKxTSy24FVfa\n\tsD/F0EuYyXoPQpGJ/MV/vUQacbZRC5CPx33nkGTPfH4ldtGKMzHi+zgkKAQZBiQ6t/RWOfFvRSe\n\tGJQ6amto5N6jMty+I5JfhmSq/ofYrmko2oBIaNPuwcfk9UqoLhorvfejMOQdyTGsoQsmccjcPBP\n\tud6JQfgdFu4tqSv9O4En9dhBwVxRXIEN1KEj6qffhM8rt//b+JwY+4Sis8RLx0O8cU2Uxmy3XFz\n\tyiCfM4eaGDi3TAMt66kS2efGNmHWPjEeVivN8p","From":"<konrad.schwarz@gmail.com>","To":"\"'Stefano Babic'\" <stefano.babic@swupdate.org>,\n\t\"'Adler, Michael \\(FT RPD CED OES-DE\\)'\" <michael.adler@siemens.com>","Cc":"<swupdate@googlegroups.com>","References":"<cover.1775844632.git.konrad.schwarz@siemens.com>\n <5c7a7e7b9dc54a5c5cf144fcd63298beea3d3383.1775844632.git.konrad.schwarz@siemens.com>\n <09762b24-7d87-4356-a177-5a8dcd118b1e@swupdate.org>\n <5191cb21-e617-4b68-b9d0-15638e307ba6n@googlegroups.com>\n <f7a7b8f2-118a-4a32-b93d-ac2150116759@swupdate.org>\n <00c101dccb17$cb45d530$61d17f90$@gmail.com>\n <1143c629-ad35-4370-8e90-98d3369e9e09@swupdate.org>\n <00ce01dccb24$f3cc0e90$db642bb0$@gmail.com>\n <ed77a441-8076-4755-acdc-5058c8a192a5@swupdate.org>\n <00d601dccb39$6f4eec90$4decc5b0$@gmail.com>\n <29f38394-06e7-44aa-b378-2fd653868c2c@swupdate.org>","In-Reply-To":"<29f38394-06e7-44aa-b378-2fd653868c2c@swupdate.org>","Subject":"RE: [swupdate] [RFC PATCH 2/3] tools/swupdate-progress: sticky\n FAILURE state modifications","Date":"Tue, 14 Apr 2026 12:49:01 +0200","Message-ID":"<010101dccbfc$4eac15d0$ec044170$@gmail.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"UTF-8\"","X-Mailer":"Microsoft Outlook 16.0","Thread-Index":"\n AQHPW2OrZPMVFhV0YbsHciL7GseKDQHpTAu/AgYpbR8CGGzJNQIeywetAZwj8R8BwcitEwEi2vWmAlHM5PkBzplUzwLyb/0ctVtVO8A=","Content-Language":"en-us","X-Original-Sender":"konrad.schwarz@gmail.com","X-Original-Authentication-Results":"gmr-mx.google.com;       dkim=pass\n header.i=@gmail.com header.s=20251104 header.b=sOHm3UmN;       spf=pass\n (google.com: domain of konrad.schwarz@gmail.com designates\n 2a00:1450:4864:20::62f as permitted sender)\n smtp.mailfrom=konrad.schwarz@gmail.com;\n       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com;\n       dara=pass header.i=@googlegroups.com","Precedence":"list","Mailing-list":"list swupdate@googlegroups.com;\n contact swupdate+owners@googlegroups.com","List-ID":"<swupdate.googlegroups.com>","X-Spam-Checked-In-Group":"swupdate@googlegroups.com","X-Google-Group-Id":"605343134186","List-Post":"<https://groups.google.com/group/swupdate/post>,\n <mailto:swupdate@googlegroups.com>","List-Help":"<https://groups.google.com/support/>,\n <mailto:swupdate+help@googlegroups.com>","List-Archive":"<https://groups.google.com/group/swupdate","List-Subscribe":"<https://groups.google.com/group/swupdate/subscribe>,\n <mailto:swupdate+subscribe@googlegroups.com>","List-Unsubscribe":"\n <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>,\n <https://groups.google.com/group/swupdate/subscribe>"}},{"id":3677136,"web_url":"http://patchwork.ozlabs.org/comment/3677136/","msgid":"<badf1d81-efdd-4c40-9b15-477f17f4e7af@swupdate.org>","list_archive_url":null,"date":"2026-04-14T11:16:26","subject":"Re: [swupdate] [RFC PATCH 2/3] tools/swupdate-progress: sticky\n FAILURE state modifications","submitter":{"id":86869,"url":"http://patchwork.ozlabs.org/api/people/86869/","name":"Stefano Babic","email":"stefano.babic@swupdate.org"},"content":"Hi Konrad,\n\nOn 4/14/26 12:49, konrad.schwarz@gmail.com wrote:\n> Hi Stefano,\n> \n>> No, the misunderstanding is going on.\n>>\n>> You want with a monitoring application (that should just monitor and not be active in\n>> the update) use swupdate-progress to execute restore scripts in case of FAILURE.\n> \n> No, I don't want this at all.  I have no stake in the matter. My only interest is to make\n> progress monitors a little bit simpler to implement.\n> \n> However, your existing code base has a monitoring application that offers this ability.\n> Is this a good idea?  Maybe not, but it's there.\n>   \n\nSWUpdate is very flexible and there are several ways to do the same \nthing. So yes,  the swupdate-progress monitors the update and can run \nscripts at the end and this is a use case.\n\n>> I am telling you that this should be part of the SWU, that means in the SWU (sw-\n>> description) you add a section:\n>>\n>> \tscripts:(\n>> \t\t{\n>> \t\t\tfilename=<...>;\n>> \t\t\ttype = \"postfailure\";\n>> \t\t\tdata = \".....\";\n>> \t\t},\n>>\n>> \t\t< multiple post-failure scripts allowed>\n>>\n>> \t}\n>>\n>> They will rollback (if required) in case of failure and it is the release manager (or\n>> integrator or whatever) to decide how it is done.\n> \n> Nevertheless, the existing tools/swupdate-progress.c has the options\n> \n> -e, --exec <script>\tcall the script with the result of the update\n> -r, --reboot [<script>]\treboot after a successful update by call the given script or\n> \t\t\tby calling the reboot() syscall by default.\n> \n\nSure. It depends on the use case - but the progress has less control \nabout the status. The scripts above can be driven with Lua variables \nthat are valid for the whole update itself.\n\n> I understand you to be saying these options should be deprecated.\n\nIt is not deprecated, but the script in the progress has the meaning to \nrestore the monitor itself, maybe switching between applications for \nHMI, etc. Sure, it can be used for restoring the status before the \nupdate (restoring containers, etc.), but for that are Lua inside SWU better.\n\n>  That's fine,\n> but is not the subject of my patch (and not for me to decide).\n > > The patch merely ensures that the script passed as the argument to -e\n> continues to be invoked exactly as before.\n > >>> My application does not use post-failure scripts at all, I'm \nattaching\n>>> to the lua bindings of the progress API.\n>>\n>> The fact that an update is successful or not should be part of the release itself, that\n>> means it should be embedded in the SWU. That means also that you do not need\n>> to roll out new scripts in case they are changed (that means update of swupdate-\n>> progress and related scripts), because this is part of the release itself that remains\n>> self contained.\n> \n> That's good to know, but can we rule out that some of SWUpdate's users are using\n> tools/swupdate-progress with the options mentioned above?\n\nUsers have this possibility, too. They have to write thier own update \nconcept and to find the best solution.\n\n> If not, it's likely they will be unpleasantly surprised if things\n> suddenly stopped working.\n> \n> \n> Anyhow, all of this is going on a tangent -- if a root cause for excess\n> PROGRESS messages can be found and eliminated, all of this is\n> moot.\n\nRight, this is the point.\n\nBest regards,\nStefano\n>","headers":{"Return-Path":"<swupdate+bncBD2ZDGN6SEKRBD6E7DHAMGQEP4HXFCI@googlegroups.com>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=googlegroups.com header.i=@googlegroups.com\n header.a=rsa-sha256 header.s=20251104 header.b=Gi/lTXaz;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com\n (client-ip=2a00:1450:4864:20::23f; helo=mail-lj1-x23f.google.com;\n envelope-from=swupdate+bncbd2zdgn6sekrbd6e7dhamgqep4hxfci@googlegroups.com;\n receiver=patchwork.ozlabs.org)"],"Received":["from mail-lj1-x23f.google.com (mail-lj1-x23f.google.com\n [IPv6:2a00:1450:4864:20::23f])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fw1v03jLHz1yDF\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 14 Apr 2026 21:16:43 +1000 (AEST)","by mail-lj1-x23f.google.com with SMTP id\n 38308e7fff4ca-38e936cabf2sf1913941fa.1\n        for <incoming@patchwork.ozlabs.org>;\n Tue, 14 Apr 2026 04:16:43 -0700 (PDT)","by 2002:a05:651c:32a3:b0:38e:8ece:e1dc with SMTP id\n 38308e7fff4ca-38e8ecee2edls1415391fa.1.-pod-prod-06-eu; Tue, 14 Apr 2026\n 04:16:30 -0700 (PDT)","from mout.kundenserver.de (mout.kundenserver.de. [212.227.126.130])\n        by gmr-mx.google.com with ESMTPS id\n 38308e7fff4ca-38e495f6226si2373511fa.5.2026.04.14.04.16.29\n        for <swupdate@googlegroups.com>\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Tue, 14 Apr 2026 04:16:29 -0700 (PDT)","from client.hidden.invalid by mrelayeu.kundenserver.de (mreue011\n [212.227.17.165]) with ESMTPSA (Nemesis) id 1MMoOy-1vtyyV34Q0-00IZhB; Tue, 14\n Apr 2026 13:16:27 +0200"],"ARC-Seal":["i=2; a=rsa-sha256; t=1776165395; cv=pass;\n        d=google.com; s=arc-20240605;\n        b=RSnAhI1PnfYn6fv9H/P8bIICJ295nJW9AwOpcqTMQzQupF+zQbm9FYv2pclal2s0Y5\n         HOOaYC/HqAenMVyvAFiIwKocOBU/aUYHGmGVRe2rQYuICAd4wPoBpHqzir25Hc+NHB3O\n         vE6dMbPMkJ4Ex7TuhIQuDrQqRHjxJlnlqBMB0Rxd3NO7V7SG0Es9e8plwGqCKmDlGZfs\n         5UjlXLlTOGF6Elvi+7qtg7BfQhVKXsN8gEBjPn8xKYstVpzadFIW8t79ekr9AiI4JAmD\n         69N6GgBArwy/byxJVy5lw0dUJhdFjhc/fLPUSf3QFkBhabv9KP7StjzMlSo0nnfP8kBZ\n         e/cw==","i=1; a=rsa-sha256; t=1776165390; cv=none;\n        d=google.com; s=arc-20240605;\n        b=J566ZVi83Rqdf2QRjCPvqLOLZU+3WzAZL7ghXCG+WPiBCQdl8F9ZaZvjrZRlbBJx9P\n         wZOOA+i81FIEbNoRfQnAVQ2OxqZZSYq5zOy4T4fTcNYQATFHjlQpCoj6ufaFQ9yVCMBs\n         u9n3tFi6fT8SMLQnJWuieS/yDU/71WSHtpBnqK6SzUBcgZ8myZXqOZ2qAmsRHoLSBI1k\n         jK6/WvHwkK6AObqv4UuPSdbVZsU9CHeXaWWW++8b61Lxy7y/uoaUV9vYD7Nd6fvYwgIZ\n         gB+ue0OJ9zr6Jyaq8meNRQO71UHg1YoSNtRZsnRqEyJZ60NgFZ8Thf/qXDfIVwCJ9MIn\n         rI0w=="],"ARC-Message-Signature":["i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:ui-outboundreport:in-reply-to:from\n         :content-language:references:cc:to:subject:user-agent:mime-version\n         :date:message-id:sender:dkim-signature;\n        bh=R9Nu7CRn20DxQ/8SrK7hfagE9lQ230Vrx5pbviKqSCc=;\n        fh=bHY+jj4eYaSW7Mw8dmwHcSh4S2ljg+F14t8zfzWBVs8=;\n        b=ZNZvdBCodFw/7LvBwwKyHM03YzuyaSD20niaLIuxQ/RHBq4/47KCgypWgCHJzCy60Z\n         pK8QsdvjGVHLXo/WzQt16y2+z6jQGr06nebME2PUnWAIWNSvjYcrBrDym1Nd749hfaMp\n         UKuS1LIhqTyxCoRRnAOng3tZ8iAmlkH9Yo3ISwlg+FV+B9pTonn3VDfVH77ftzqOCgoB\n         x/ulNlLPOCzx5f5+87lVt/djvNlu8mrFbh9HmouP3LmkLVAHgG8TkRsSIrm1bE4sEe3+\n         rTqKZ0nuedhHbwhJN4Cfj02DyjQpuYO4YDbME+x4BHa6sc+b0Qp31BIKM9QQdkdiXKS2\n         eoGg==;\n        darn=patchwork.ozlabs.org","i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=ui-outboundreport:content-transfer-encoding:in-reply-to:from\n         :content-language:references:cc:to:subject:user-agent:mime-version\n         :date:message-id:dkim-signature;\n        bh=UE6Pwxh/p6uTwBA8QKmmMxx0Yr/jHPgfq+N8ty7q+uI=;\n        fh=ITWuixNooZB04b7W0QVz6cX21A3eFoOBRn6+bABexd4=;\n        b=XebUxP4zCiD9jjUkWlD0X2L6mf1oVMJIXnfXqiUlu6eINvMEnDJoNJbCQD9KNzJOUE\n         u/6rUfNYphEXxbVa8UNQSiSu3XIvtniuRRpVR5lZ+iSj7WQmSRAfAIjJWx2F76xHC8ll\n         xeDwPUe+iZ7vqDDu/uBdRUCeVZkWTmMKzM+7lkFn+twa0oSvxFD+8FwA16VTKACihLkK\n         cju8x8Q3QYrC+C/SPu1hElAAYUnSt5IgXhKAjxLnS1qpnBTFJFhb9HsswltP6vFlmt6H\n         GxmoqvR5Jwll9z9XLNtZxp2MtJFd2Sh1rFpir+4cH7ixcp0fNwNntGn/pUH++ERPtrJ9\n         32UQ==;\n        dara=google.com"],"ARC-Authentication-Results":["i=2; gmr-mx.google.com;\n       dkim=pass header.i=@swupdate.org header.s=s1-ionos header.b=vpRX4iq4;\n       spf=pass (google.com: domain of stefano.babic@swupdate.org designates\n 212.227.126.130 as permitted sender)\n smtp.mailfrom=stefano.babic@swupdate.org;\n       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=swupdate.org","i=1; gmr-mx.google.com;\n       dkim=pass header.i=@swupdate.org header.s=s1-ionos header.b=vpRX4iq4;\n       spf=pass (google.com: domain of stefano.babic@swupdate.org designates\n 212.227.126.130 as permitted sender)\n smtp.mailfrom=stefano.babic@swupdate.org;\n       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=swupdate.org"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=googlegroups.com; s=20251104; t=1776165395; x=1776770195;\n darn=patchwork.ozlabs.org;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:x-original-authentication-results\n         :x-original-sender:ui-outboundreport:in-reply-to:from\n         :content-language:references:cc:to:subject:user-agent:mime-version\n         :date:message-id:sender:from:to:cc:subject:date:message-id:reply-to;\n        bh=R9Nu7CRn20DxQ/8SrK7hfagE9lQ230Vrx5pbviKqSCc=;\n        b=Gi/lTXaz0Fep7tGpJIzOhhXIbZHvRyre5ZwrQXrYEqC9BDkEQmQAOrYopnaAPvcwCI\n         UipzCDF+Zv6KW93Dlu54o6WyiQlnPRcvhIq5TcUeyFyoeGuExjPmbOOGPlp3sqH2tJQF\n         DfutmeW1ioFmsYcGnx8IfFAMUnxXHZdm1KEl3dinPjwZ+FwZdbE7YWDI9WgWHoUm+rQk\n         mVK2/dGM5nB9rr0c5XHzk15VF6dPrLhKx3wW9XUh1PnHxJjOo2i9bS2a4rCPNnhI/Fud\n         ZEoGdE5dY4CZhGW0TcyeJyp0frm6hQZvJnP+HVEaLMuE7vp67TE9hOoepef1zS1ELOzY\n         Jc7w==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1776165395; x=1776770195;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :x-spam-checked-in-group:list-id:mailing-list:precedence\n         :x-original-authentication-results:x-original-sender\n         :ui-outboundreport:in-reply-to:from:content-language:references:cc\n         :to:subject:user-agent:mime-version:date:message-id:x-beenthere\n         :x-gm-message-state:sender:from:to:cc:subject:date:message-id\n         :reply-to;\n        bh=R9Nu7CRn20DxQ/8SrK7hfagE9lQ230Vrx5pbviKqSCc=;\n        b=mYoFuZPPacweqTtMkyBH8TwHVDg6BjoPmtb6oSZMzvmVcGig29c6BNiLer9a7IDCIR\n         Xe52lq1+hhGYZTCzsFsaqKpqcJdJT21CtF3EN1GXudGZUuryKhuztz9MrgMgRZVytLim\n         /McqM6MlBwzJz9VMcGfnqMWto2sPWuEHoWsRpkv2sk8vC7UMo9524AQcPyfsADUlwA3W\n         dz5OZJXqtshK4nbcWeDBvgo0vdOtfWpP+es2jXXT7uHWxKycaGG66jqrYIGxTEPl/uq/\n         MTTIxwOTpbB0XBekdr+G2OAxWwknonLrImpLbe28qx9/+AdGEFoPJGoHuY0SUh4fhqBM\n         yn7w==","Sender":"swupdate@googlegroups.com","X-Forwarded-Encrypted":"i=2;\n AFNElJ+bwL7xWMAM/YtCou4aclDu3R/DBdSByiu5OGsiufnBwjH1LjXiNOTqXLpnrJ4fowRw10oFtq/Jjw==@patchwork.ozlabs.org","X-Gm-Message-State":"AOJu0YxDtgC1ApoqtRHmk9C4v+tS/HPrlY5mpyBH+tn1tobuW9rU8Dr4\n\t1xPm5WgOYZaMU/6m/ljeJn4cSv1QlMYAhfB3XQYcyUPEAcozSejMIpT6","X-Received":["by 2002:a2e:9957:0:b0:38c:4b14:13ab with SMTP id\n 38308e7fff4ca-38e4bf97792mr42346121fa.33.1776165395028;\n        Tue, 14 Apr 2026 04:16:35 -0700 (PDT)","by 2002:a2e:2203:0:b0:38c:4c5e:330a with SMTP id\n 38308e7fff4ca-38e4bfbae05mr37796781fa.35.1776165390076;\n        Tue, 14 Apr 2026 04:16:30 -0700 (PDT)"],"X-BeenThere":"swupdate@googlegroups.com;\n h=\"AYAyTiIatwkqOuagtfbq/Bowx5aMMuzns/2e8pPfrMB/ijws4w==\"","Received-SPF":"pass (google.com: domain of stefano.babic@swupdate.org\n designates 212.227.126.130 as permitted sender) client-ip=212.227.126.130;","X-UI-Sender-Class":"55c96926-9e95-11ee-ae09-1f7a4046a0f6","Message-ID":"<badf1d81-efdd-4c40-9b15-477f17f4e7af@swupdate.org>","Date":"Tue, 14 Apr 2026 13:16:26 +0200","MIME-Version":"1.0","User-Agent":"Mozilla Thunderbird","Subject":"Re: [swupdate] [RFC PATCH 2/3] tools/swupdate-progress: sticky\n FAILURE state modifications","To":"konrad.schwarz@gmail.com,\n \"'Adler, Michael (FT RPD CED OES-DE)'\" <michael.adler@siemens.com>","Cc":"swupdate@googlegroups.com","References":"<cover.1775844632.git.konrad.schwarz@siemens.com>\n <5c7a7e7b9dc54a5c5cf144fcd63298beea3d3383.1775844632.git.konrad.schwarz@siemens.com>\n <09762b24-7d87-4356-a177-5a8dcd118b1e@swupdate.org>\n <5191cb21-e617-4b68-b9d0-15638e307ba6n@googlegroups.com>\n <f7a7b8f2-118a-4a32-b93d-ac2150116759@swupdate.org>\n <00c101dccb17$cb45d530$61d17f90$@gmail.com>\n <1143c629-ad35-4370-8e90-98d3369e9e09@swupdate.org>\n <00ce01dccb24$f3cc0e90$db642bb0$@gmail.com>\n <ed77a441-8076-4755-acdc-5058c8a192a5@swupdate.org>\n <00d601dccb39$6f4eec90$4decc5b0$@gmail.com>\n <29f38394-06e7-44aa-b378-2fd653868c2c@swupdate.org>\n <010101dccbfc$4eac15d0$ec044170$@gmail.com>","Content-Language":"en-US","From":"Stefano Babic <stefano.babic@swupdate.org>","In-Reply-To":"<010101dccbfc$4eac15d0$ec044170$@gmail.com>","Content-Type":"text/plain; charset=\"UTF-8\"; format=flowed","X-Provags-ID":"V03:K1:nscFaQLoAslBaDFSjhOf0lT/26j240/1sKfUfGfOxghmDAVkCzu\n +HsnB+aRSiNhb7zl+c0xGzv9XFCkAZXFqSjt/ikoVqBw2Wdl1+uxO02aAWVgnNfL+IajRSc\n LFmpycjZtfAosyF9P+B+3R3H472/9N+CD0KDoZ90HPiTv0t/tBYF69S/CUBAxoIWP9mzuvG\n suoP5tJVNdz6rilrxtw0A==","X-Spam-Flag":"NO","UI-OutboundReport":"notjunk:1;M01:P0:SdaGJyOLMpM=;zTTx0KhpuY3QYPnkHDnKRHdny2Z\n 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\n fq08Mz4jJlxlEVzBY7vs=","X-Original-Sender":"stefano.babic@swupdate.org","X-Original-Authentication-Results":"gmr-mx.google.com;       dkim=pass\n header.i=@swupdate.org header.s=s1-ionos header.b=vpRX4iq4;       spf=pass\n (google.com: domain of stefano.babic@swupdate.org designates 212.227.126.130\n as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org;\n       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=swupdate.org","Precedence":"list","Mailing-list":"list swupdate@googlegroups.com;\n contact swupdate+owners@googlegroups.com","List-ID":"<swupdate.googlegroups.com>","X-Spam-Checked-In-Group":"swupdate@googlegroups.com","X-Google-Group-Id":"605343134186","List-Post":"<https://groups.google.com/group/swupdate/post>,\n <mailto:swupdate@googlegroups.com>","List-Help":"<https://groups.google.com/support/>,\n <mailto:swupdate+help@googlegroups.com>","List-Archive":"<https://groups.google.com/group/swupdate","List-Subscribe":"<https://groups.google.com/group/swupdate/subscribe>,\n <mailto:swupdate+subscribe@googlegroups.com>","List-Unsubscribe":"\n <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>,\n <https://groups.google.com/group/swupdate/subscribe>"}}]