From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8C2CCEB64DC for ; Wed, 12 Jul 2023 02:33:14 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D135D86957; Wed, 12 Jul 2023 04:33:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="NVyhg3wN"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D87EB8695F; Wed, 12 Jul 2023 04:33:10 +0200 (CEST) Received: from mail-yw1-x112a.google.com (mail-yw1-x112a.google.com [IPv6:2607:f8b0:4864:20::112a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8366D8694F for ; Wed, 12 Jul 2023 04:33:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-5701e8f2b79so75597937b3.0 for ; Tue, 11 Jul 2023 19:33:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1689129187; x=1691721187; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=kHEWhRaYgMC9kjXU/dv3Ttlslx4ba1sKgUDyY3uzWMs=; b=NVyhg3wN4BeQgB9qbPl7iHo/K0ENqgMWGrKc1UWYPgXO29M2br3Jbut4AAa6DsjnTA O0ox5us/EVf9458WOtUyGz6Y6uHfpDUC/bIDZaKXuUgLqrhpBjW5rKpGzhWCAVVn/ZnG zhYK+btd7pL+eh0x9IS24NtyJd2WxjEf/wJp8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689129187; x=1691721187; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kHEWhRaYgMC9kjXU/dv3Ttlslx4ba1sKgUDyY3uzWMs=; b=LdbDrOn3APk4blanWxKews7vvhhw7DQMFXcdtzZIAMeHse36UYEJlpu0voT6Wbo0Ga j3KXnnV8fG1AXbF/BCqcLXHK64ZXvPVyfABRvewhDsQxGp/YYVlk0yk2XXVXl+5sguGX ki76uyrm8fVdWE84es1BTTq6eZ+rP5INOeZRkIe3GGqUqc8CibLzG8neeSglAIeDCJnx aIkG3MjW9+j2I3K0XFPhwokDGWzxYkVpoZnfp7gTu6h3BpZj4ZrIZhAdSH/c2wPa7COn Mn18kuq076JDl0VRb5R5L8Ws6Fj2Dm62/lV7Ub4w3MjPDSOqQe5pA7jlsOEHFRA4A6ju VaTA== X-Gm-Message-State: ABy/qLb1AXJlPuU3oWz4SwSNqyfTp3oGGnyC/2e5WBE5cGFjFjctdK2G Qq0x+5a9HMEW8CcDIpAEU6hLvfTLfeenpB5kMnLqLA== X-Google-Smtp-Source: APBJJlFcjFNU+6h2rp9OGP5eKUI7+1D6wkDncJYXrQzas9Xkpyw+PAbt0GiLXH6vw6QBi+lqtJi+xg== X-Received: by 2002:a81:8497:0:b0:577:3bf2:860b with SMTP id u145-20020a818497000000b005773bf2860bmr15723164ywf.5.1689129187111; Tue, 11 Jul 2023 19:33:07 -0700 (PDT) Received: from bill-the-cat.lan (2603-6081-7b00-6400-616f-f5d3-9cfa-22fc.res6.spectrum.com. [2603:6081:7b00:6400:616f:f5d3:9cfa:22fc]) by smtp.gmail.com with ESMTPSA id c23-20020a814e17000000b0057726fce046sm921915ywb.26.2023.07.11.19.33.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jul 2023 19:33:06 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH] CI: Add automatic retry for test.py jobs Date: Tue, 11 Jul 2023 22:33:03 -0400 Message-Id: <20230712023303.1969966-1-trini@konsulko.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean It is not uncommon for some of the QEMU-based jobs to fail not because of a code issue but rather because of a timing issue or similar problem that is out of our control. Make use of the keywords that Azure and GitLab provide so that we will automatically re-run these when they fail 2 times. If they fail that often it is likely we have found a real issue to investigate. Signed-off-by: Tom Rini --- .azure-pipelines.yml | 1 + .gitlab-ci.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 06c46b681c3f..76982ec3e52e 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -460,6 +460,7 @@ stages: fi # Some tests using libguestfs-tools need the fuse device to run docker run "$@" --device /dev/fuse:/dev/fuse -v $PWD:$(work_dir) $(ci_runner_image) /bin/bash $(work_dir)/test.sh + retryCountOnTaskFailure: 2 # QEMU may be too slow, etc. - stage: world_build jobs: diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cfd58513c377..f7ffb8f5dfdc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -20,6 +20,7 @@ stages: .buildman_and_testpy_template: &buildman_and_testpy_dfn stage: test.py + retry: 2 # QEMU may be too slow, etc. before_script: # Clone uboot-test-hooks - git config --global --add safe.directory "${CI_PROJECT_DIR}" -- 2.34.1