From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Mon, 29 Jun 2026 11:46:43 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f59.google.com (mail-wm1-f59.google.com [209.85.128.59]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 65T9kh7g023642 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 29 Jun 2026 11:46:43 +0200 Received: by mail-wm1-f59.google.com with SMTP id 5b1f17b1804b1-493a7d0492asf12738515e9.3 for ; Mon, 29 Jun 2026 02:46:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1782726397; cv=pass; d=google.com; s=arc-20260327; b=g9gym+k0R4rS/zQIMx6hXihL6eG3i24I6cqvbsxSwgNQtF9/SEEuiUyjGbKp8cxZBi EpgwqkAGAQL5FxBlUfqd0R4vXQbND//l+iFN0hxOYNL5xQScnRovtv7AAc2WSAWOkmGO +aw25wo9vjjoJi9nhUbr2bwxXigQCVsoNEUB/vcNdl0VLQu893OAnVgVbk2PhUV4pLfs 6I9jwArYUSi6239xw6k9vQpDicYHWJLJhwJ/Z1cWcY743NTyAqDOXMlpwphST6SDDUsZ 6BSv+M/DJMqt5Ii4VS1BjqOQ4eW0kKERexd5Ulai259sEojqG82MUlOppcyUoOFPF81S e3OA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=KtYHrucJP2nVdQGquCBF3yFNp4MjK8xt45pZBAXGtRc=; fh=17yh2cba8Hzv/hg9O75WzqMqCx5UdNy9d71jXXkLMu0=; b=a3d7k2/HZP/ReazgYY886YgtwiweSn+x0PiceYibEzfYFEu5su9TxHMFnG0GPdStP4 MijgTJPcMDh3bVwp6RmyKeBZoRL8YP3C3UPOPR8yhIgwJ4PBKHEvhRbyfu4ktFrk9mnZ NAdGVcuxOcGob2PdxG9SGMOwsXXOILLd9VTAjkGn0kzg8x3t4d/KY8cUAnoqsyim3gnf 74uPGyA2496IC/eX2jXvb/ZLhHuzUJ077U9WWdt9mhUA0zlX23YWJnIxRoJuIB4BC0bZ twOYkpbfji1hz0Nvzb0wr6lCkUxAXrqmPrRk6/n/itscCQMcquY+o7WNYeFElwBPbkSo 3Row==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20251104; t=1782726397; x=1783331197; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=KtYHrucJP2nVdQGquCBF3yFNp4MjK8xt45pZBAXGtRc=; b=IdEZeouzoIw5/Tc0O0uGbCMKMN/PrSP6VrV1qI6TW52b06vIPv5HrfvaZ7ckKXLRdk 8T+M4ZGbis2reufKofCx6x/xG/XAggx0hUM4EexEKbE1WOlcXQFh4Km2EgZqrcWyAeQ7 5lY5MxPm3hRaSrTfGVSMWu5AGiRWrJBaqwnklm47xkFWvvNp5xQSQn6GJJTSndzdiqjP 8t4M2tclKomSufA82yfQcBoWrUk0VZRdA9bLLk4KpU4VYkrvjP6jmYXAXqOWDhUQbAvk MiSu0Tnx/YYDDyCHncBko2sL7H5znWQvXy+HiyUtYWowHAC1gYM54XyZODllEh56Wde4 NlvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782726397; x=1783331197; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=KtYHrucJP2nVdQGquCBF3yFNp4MjK8xt45pZBAXGtRc=; b=WAnnOWv4eIZ466//PKgYZ7QnzEOf+a65Bh2056ivF6vbszst7Ea9WE9bjxtkQ+buxV 9TR4ZYb/uBKk6VIfkALEP3/tKzLeGJlenPlfi2T47LgjaB2Q+IKe5PWs66UMdsiRZzVj IyIKvT3rV2irb8KvOdz/+lTfpBEqLHRdRPup7vZLpg/hCmU+JZTJV33CqthRseo3voN/ XpgfxHx38oMY0mS54IVZdlq9O2Vr/HHAsC8XH4CPW9i7LzQTjh8E7TSt+TBCoqTSFdm9 XamoKdSxI/45vEDD7tk5MPqLv/q6Eiofuqvem82t6b0CH/4wN64yxE32USopNEL3CQh+ kM7g== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AFNElJ+aiRuLUPtnAO4ZjqW+vsrJoRO36GmlP70nJ9BlhVLAN3URxa8TkGRmgQDXjbh+QkcRd65I@ilbers.de X-Gm-Message-State: AOJu0Yxb3EYuIMBQ+G4mQzphx4jySGrzg1TPfJz31InRQz5aOyh2j5Vz +9nKuacLvMkh7AH4kIAxLtyvECAST57QYCehrPYWXeGHrTg7eI96II3F X-Received: by 2002:a05:600c:a12:b0:490:e19b:bd99 with SMTP id 5b1f17b1804b1-492668ad891mr266857285e9.30.1782726397392; Mon, 29 Jun 2026 02:46:37 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="AX0PUUd+S25aQwj1YGM3ZTnvVVBC2jKme6UheC8XzwTIblSuFQ==" Received: by 2002:a05:600c:154c:b0:493:a6fa:ed2d with SMTP id 5b1f17b1804b1-493a7a59036ls11229445e9.0.-pod-prod-09-eu; Mon, 29 Jun 2026 02:46:35 -0700 (PDT) X-Received: by 2002:a05:600c:810c:b0:492:2ffd:8f8 with SMTP id 5b1f17b1804b1-49266873f6amr233938975e9.15.1782726395339; Mon, 29 Jun 2026 02:46:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1782726395; cv=none; d=google.com; s=arc-20260327; b=Fjw9cNY2TYahEnKdsiqquMe5DFjRiaa57it9cmb55kg0kQqJl2OyHX9ONchpW1dyGo 0EyUI9MkWBRuntjIq28mxKA6mbPyjAZzQSbvUYVmyqUBsHj8FLvsyQmovsI8GeVkjLFR SsyTLKyYTsVIpjrLZK3oq8Z46QXLZ1soX8dZV4GUaUuMBn462oX20F5d8wojERG1SR93 8l2XorbBsYxPJ+SZYEiawL+7LO4HLi/czeuGPynOG/S242nqrtEyVxVzQ9FxMqGsgxtL 4JXcsSZqOavqjS//5Rcw67mV7Vq/VEhRZgnthV+tupdkREpOByPTNj1L+Hl0lZKE1rMx xmsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=EN/yNnFGYnoI9Adg/yi2Fo+YLHimTA4QT7YjmrF+Qu0=; fh=/h9QQkzJ8EboVkWg45aWwpaUro6WMavIVd2OhN45RtE=; b=QulhCAR2iiSMijy+hXMwnKhLzL5LaIEmasu+Ia7s+H9xldZ1omYW2jHk/IjZyfMxev vsBSLS1nSeLeJKcxtyU4g20w/qve8lzwU0eL73DhJdbaYjZ0753W5shuWanvGrjCh/KQ ptPvL9G1n+lzJMm6/auyY3AU/Bk+bzhVFv/VyZ9TwSHcpKbfT4Qr1t+uL9ZzCKSlp/A9 SOWIXMr3fUamaVWagEEyRdB0SxAVXViz4WfBsz7AYwPu1v5rmsPAy0NhRN9sGDClZzpn aPqqpnKSxR9qGFWgi0dmlicaAUpkO9BLw3rorcpPUjG+6kc0peNf0vCXdsNNsw2r5U2O Gjjw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 5b1f17b1804b1-4926e2b960csi959795e9.1.2026.06.29.02.46.35 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Jun 2026 02:46:35 -0700 (PDT) Received-SPF: pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from user-B660.promwad.corp ([159.148.83.123]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 65T9kVV7023553 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Jun 2026 11:46:34 +0200 From: Anton Mikanovich To: isar-users@googlegroups.com Cc: Anton Mikanovich Subject: [PATCH v2 03/11] CI: Fix errors reporting during startvm Date: Mon, 29 Jun 2026 12:46:16 +0300 Message-Id: <20260629094624.855927-4-amikan@ilbers.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260629094624.855927-1-amikan@ilbers.de> References: <20260629094624.855927-1-amikan@ilbers.de> MIME-Version: 1.0 X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-Original-Sender: amikan@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-TUID: HXH4TojN3arh Test case failure should be triggered by self.fail() API. It helps to prepare much more correct log output. So rebuild error handling of startvm related functions. This also fixes KFAIL coverage for startvm test cases. Signed-off-by: Anton Mikanovich --- testsuite/cibuilder.py | 40 +++++++++++++++++++++++++--------------- 1 file changed, 25 insertions(+), 15 deletions(-) diff --git a/testsuite/cibuilder.py b/testsuite/cibuilder.py index f9cca0c7..fca2f2ed 100755 --- a/testsuite/cibuilder.py +++ b/testsuite/cibuilder.py @@ -602,7 +602,7 @@ class CIBuilder(Test): stderr=subprocess.PIPE, universal_newlines=True, ) - self.log.info("Started VM with pid %s" % (p1.pid)) + self.log.info("Starting VM with pid %s" % (p1.pid)) return p1, cmdline, boot_log, need_sb_cleanup @@ -634,8 +634,10 @@ class CIBuilder(Test): if p1.poll() is not None: break - self.log.error("Didn't get login prompt") - return 1 + rc = 1 + if time.time() > timeout: + rc = 2 + return rc def vm_parse_output(self, boot_log, multiconfig, skip_modulecheck): # the printk of recipes-kernel/example-module @@ -665,13 +667,10 @@ class CIBuilder(Test): if module_output in data or skip_modulecheck: if resize_output and resize_output not in data: rc = 1 - self.log.error("No resize output while expected") else: rc = 2 - self.log.error("No example module output while expected") if ordering_cycle in data: rc = 3 - self.log.error("Systemd services ordering cycle detected") return rc def vm_dump_dict(self, vm): @@ -680,16 +679,19 @@ class CIBuilder(Test): f.close() def vm_turn_off(self, vm): - pid = self.vm_dict[vm][0] - os.kill(pid, signal.SIGKILL) + try: + pid = self.vm_dict[vm][0] + os.kill(pid, signal.SIGKILL) - if self.vm_dict[vm][3]: - start_vm.sb_cleanup() + if self.vm_dict[vm][3]: + start_vm.sb_cleanup() - del self.vm_dict[vm] - self.vm_dump_dict(vm) + del self.vm_dict[vm] + self.vm_dump_dict(vm) - self.log.info("Stopped VM with pid %s" % (pid)) + self.log.info("Stopped VM with pid %s" % (pid)) + except ProcessLookupError: + self.log.error("Can't stop VM %s" % vm) def vm_start( self, @@ -758,7 +760,10 @@ class CIBuilder(Test): rc = self.vm_wait_boot(p1, timeout) if rc != 0: self.vm_turn_off(vm) - self.fail("Failed to boot qemu machine") + if rc == 2: + self.fail("Didn't get login prompt") + else: + self.fail("Failed to boot qemu machine") if cmd is not None or script is not None: self.ssh_user = 'ci' @@ -794,7 +799,12 @@ class CIBuilder(Test): if rc != 0: if not keep: self.vm_turn_off(vm) - self.fail("Failed to parse output") + if rc == 1: + self.fail("No resize output while expected") + elif rc == 2: + self.fail("No example module output while expected") + else: + self.fail("Failed to parse output") if not keep: self.vm_turn_off(vm) -- 2.34.1 -- You received this message because you are subscribed to the Google Groups "isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/20260629094624.855927-4-amikan%40ilbers.de.