{"id":2227456,"url":"http://patchwork.ozlabs.org/api/1.2/patches/2227456/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260423191958.1440-3-farosas@suse.de/","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/1.2/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260423191958.1440-3-farosas@suse.de>","list_archive_url":null,"date":"2026-04-23T19:19:16","name":"[PULL,02/43] tests/functional: Make socat wait longer in migration exec test","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"7a372ed390814d9d2f67f6325baaea855ced45fa","submitter":{"id":85343,"url":"http://patchwork.ozlabs.org/api/1.2/people/85343/?format=json","name":"Fabiano Rosas","email":"farosas@suse.de"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260423191958.1440-3-farosas@suse.de/mbox/","series":[{"id":501236,"url":"http://patchwork.ozlabs.org/api/1.2/series/501236/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/list/?series=501236","date":"2026-04-23T19:19:14","name":"[PULL,01/43] checkpatch: Allow spaces after all coroutine annotations","version":1,"mbox":"http://patchwork.ozlabs.org/series/501236/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2227456/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2227456/checks/","tags":{},"related":[],"headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256\n header.s=susede2_rsa header.b=CIshQmRF;\n\tdkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=gQhH2Xfe;\n\tdkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de\n header.a=rsa-sha256 header.s=susede2_rsa header.b=wInpoDnq;\n\tdkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=ytLKHHqm;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)","smtp-out2.suse.de;\n\tnone"],"Received":["from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g1mDV0FMzz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 24 Apr 2026 05:21:46 +1000 (AEST)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wFzaw-0001nl-BY; Thu, 23 Apr 2026 15:20:14 -0400","from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <farosas@suse.de>) id 1wFzau-0001nP-Cd\n for qemu-devel@nongnu.org; Thu, 23 Apr 2026 15:20:12 -0400","from smtp-out2.suse.de ([195.135.223.131])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <farosas@suse.de>) id 1wFzas-0001jp-L3\n for qemu-devel@nongnu.org; Thu, 23 Apr 2026 15:20:12 -0400","from imap1.dmz-prg2.suse.org (unknown [10.150.64.97])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-out2.suse.de (Postfix) with ESMTPS id 814AB5BD62;\n Thu, 23 Apr 2026 19:20:04 +0000 (UTC)","from imap1.dmz-prg2.suse.org (localhost [127.0.0.1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 49FA2593A3;\n Thu, 23 Apr 2026 19:20:03 +0000 (UTC)","from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167])\n by imap1.dmz-prg2.suse.org with ESMTPSA id iPIfBuNw6mlJCwAAD6G6ig\n (envelope-from <farosas@suse.de>); Thu, 23 Apr 2026 19:20:03 +0000"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_rsa;\n t=1776972005;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=+xNJmtypGwYb/d/QHNiBiDyOr2yyKzZAVHlgehqrv8c=;\n b=CIshQmRFdCLaqFzbbTM7hZV3+A+Gw+iy8iVVoOYJJx/vP5Je0md0KtJv6jfgDnPjbyG8GT\n UZtb71M+bhCWYtpUNg8XQOvQibx4Ejjumj6ZjkLqSa5KYlMsUKGMHj65hRN0qdq57XwKxI\n AiBb7oINm9Go0JHofUevYBKQ+yCAunQ=","v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_ed25519; t=1776972005;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=+xNJmtypGwYb/d/QHNiBiDyOr2yyKzZAVHlgehqrv8c=;\n b=gQhH2XfeE3vCewra59rEckHd32w1VGILlPNE5BK4D5J7Ghi28OMCx7XDEn1INKJA/H/YTL\n vBO1rokeBT1wyXBg==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_rsa;\n t=1776972004;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=+xNJmtypGwYb/d/QHNiBiDyOr2yyKzZAVHlgehqrv8c=;\n b=wInpoDnqhnMaEmKVH6P3rW311GNhbs9WI23Wqs3qRtCNudg2MveSfH/C8yozTwDH8nK/g5\n f4mJ0TOSTrnl796ZRodXNQCKWVjGGPlrKSRc6PcRB0WD3LC2vLcRKldPsTxtxs4DVzp0yY\n M+pQyVxps/YT9QNhLuFG9YTvZGA2hg0=","v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_ed25519; t=1776972004;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=+xNJmtypGwYb/d/QHNiBiDyOr2yyKzZAVHlgehqrv8c=;\n b=ytLKHHqm0YUqD3wW5oUH2eSGG8hr2G+rN5QHlXZXItmW5nSV7O0ADen4PN6uaMeA1jGArO\n KdQcs0KYj2WWQkCw=="],"From":"Fabiano Rosas <farosas@suse.de>","To":"qemu-devel@nongnu.org","Cc":"Peter Xu <peterx@redhat.com>, Thomas Huth <thuth@redhat.com>,\n\t=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>","Subject":"[PULL 02/43] tests/functional: Make socat wait longer in migration\n exec test","Date":"Thu, 23 Apr 2026 16:19:16 -0300","Message-ID":"<20260423191958.1440-3-farosas@suse.de>","X-Mailer":"git-send-email 2.51.0","In-Reply-To":"<20260423191958.1440-1-farosas@suse.de>","References":"<20260423191958.1440-1-farosas@suse.de>","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit","X-Spamd-Result":"default: False [-3.30 / 50.00]; BAYES_HAM(-3.00)[100.00%];\n MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000];\n NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain];\n RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[];\n RCVD_TLS_ALL(0.00)[]; TO_DN_SOME(0.00)[];\n MIME_TRACE(0.00)[0:+]; FUZZY_RATELIMITED(0.00)[rspamd.com];\n DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519];\n TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[];\n RCPT_COUNT_THREE(0.00)[4]; FROM_EQ_ENVFROM(0.00)[];\n RCVD_COUNT_TWO(0.00)[2];\n DBL_BLOCKED_OPENRESOLVER(0.00)[linaro.org:email, suse.de:mid, suse.de:email,\n imap1.dmz-prg2.suse.org:helo]","X-Spam-Score":"-3.30","Received-SPF":"pass client-ip=195.135.223.131; envelope-from=farosas@suse.de;\n helo=smtp-out2.suse.de","X-Spam_score_int":"-43","X-Spam_score":"-4.4","X-Spam_bar":"----","X-Spam_report":"(-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=ham autolearn_force=no","X-Spam_action":"no action","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"qemu development <qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<https://lists.nongnu.org/archive/html/qemu-devel>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"},"content":"The migration_with_exec test is failing sporadically for all\narchitectures due to a race when the destination socat process takes\ntoo long to start listening while the source process is already\nissuing connect().\n\nThe race is inherent because the exec: migration spawns the\nto-be-exec'ed command asynchronously and returns from the\nmigrate-incoming command. The localhost-only testcase is not\nrepresentative of the majority of migrations. In a real scenario\nbetween two different hosts that race wouldn't happen.\n\nFix the testcase by configuring the source socat command to wait\nindefinitely while trying to connect.\n\nReviewed-by: Thomas Huth <thuth@redhat.com>\nReviewed-by: Peter Xu <peterx@redhat.com>\nReviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>\nLink: https://lore.kernel.org/qemu-devel/20260422230001.3168-1-farosas@suse.de\nSigned-off-by: Fabiano Rosas <farosas@suse.de>\n---\n tests/functional/migration.py | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)","diff":"diff --git a/tests/functional/migration.py b/tests/functional/migration.py\nindex 144f091ba8..3b7674af3b 100644\n--- a/tests/functional/migration.py\n+++ b/tests/functional/migration.py\n@@ -85,5 +85,5 @@ def migration_with_exec(self):\n         with Ports() as ports:\n             free_port = self._get_free_port(ports)\n             dst_uri = 'exec:socat TCP-LISTEN:%u -' % free_port\n-            src_uri = 'exec:socat - TCP:localhost:%u' % free_port\n+            src_uri = 'exec:socat - TCP:localhost:%u,forever' % free_port\n             self.migrate(dst_uri, src_uri)\n","prefixes":["PULL","02/43"]}