From patchwork Mon Nov 27 12:57:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747576 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3139756wru; Mon, 27 Nov 2023 05:10:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IGLpVM+GG7iLTfOC567Fx2B/paTM4bl8oCHiBDyk9TSBxwy8k/F/my65854x+N/sYsuU5Og X-Received: by 2002:a05:6808:114c:b0:3b8:616b:24e with SMTP id u12-20020a056808114c00b003b8616b024emr8634793oiu.49.1701090606309; Mon, 27 Nov 2023 05:10:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090606; cv=none; d=google.com; s=arc-20160816; b=uDioGbTdR4y/uAd1UNSQMLMkOViM6VdPbtn1fyR8qWhaUlch7FF0SfJtLbDfVSqTVw vONIJMixMJvHhe+Vy5+VLQyQTSFigCVE6KSGPlYs+b8BSQ3TnyxyoTJ741ULkA1DC6Xi lYO0XGMmfc2epSEDre+ePCRQghbtMbLE93qDQxePVxG31FuFxSyrWm3t7Sds4/jUNr7I Tmn0ZYqD13HhWyTOfPr/LnEw/G+FopBetPOoNb1pkSr4fOG7JrvZEpjZKr0G3qSy5FOE xTek42QoJwNFp/yzH99cu8xoCApNJugiels1hnZ1pY452u/hp1clpLoieu3Mw6HPD5Gv zFwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wyiR2jVJ4p1meeNGxOfrkmg2SjWDWAw0ref9nazVreE=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=xAOyOnVUuVZAvmULj+bxi1JadSgvI6tqiYlkxZPac3NB/j0y2zEEoNapviXJpfoPRs JKG97HNeMRptV5K/MAN0FzeMwOI5C9EYVAbqTzeRn6s+K7n1sm9FY13y3XTruYrm/iaj FMUprYGi+dURSgOzojb/6ETMfaJl8hV51tIaiV4i6hZMYznd3VHdSmscSabEng6ZhEsT R0lM0fS1rCHAh1EqD1j7imXVEBm4muCGLId0lguQrKVpAZnllsJMInEICI7d3/6iAgzt fPgqcYqBE8VsbVsZZXKVVvRdHnGNeZD8SIe65o5wE/UGDx08SBM5CBEA1b0g4oE/w1Ig v4Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NZD0IGFq; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id w2-20020a631602000000b005b999968b85si9199560pgl.666.2023.11.27.05.09.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:10:06 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NZD0IGFq; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CFA7187792; Mon, 27 Nov 2023 14:01:47 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="NZD0IGFq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 443D087797; Mon, 27 Nov 2023 14:01:46 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) (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 CFB5087792 for ; Mon, 27 Nov 2023 14:01:43 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-507a29c7eefso5449313e87.1 for ; Mon, 27 Nov 2023 05:01:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090103; x=1701694903; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wyiR2jVJ4p1meeNGxOfrkmg2SjWDWAw0ref9nazVreE=; b=NZD0IGFq0yxm3zK5/fRktzA/YTpGGbPUS/uJSoLV1k+tTvCGi9/7bh9HGgL8XOt3Qn V0HHqPs3dQdxneiRKBAJBR3Icbp9V5Jc7wEi/dcGJPS2hM8Aho2mfUu1kB95XXYVJApI C/ZVD2T9OzsII/aqFgXwyUbGyHcGg9aoepkMNkYBPzQ2CYZPwql7/SjOlLfxmn6/qX/Z Zl9or0G+bS4iAqtALZXOqzSEsMCOqEdap4uS6DKKC6UFv+8qkWNq1B0Zq6rHTSv6b1UZ ISdqpVkFAKqH8KxeRB8F6P6ItyHkB4Momn0QjmQeuhXA/EiuQol6xyIlPZHc/Cb8syXa MiHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090103; x=1701694903; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wyiR2jVJ4p1meeNGxOfrkmg2SjWDWAw0ref9nazVreE=; b=uWph0J0Iks+9nBIS0fCjgR1lzMn98frnYFnHB5HHKiDdxBPH0S3WM2W4cqu7GCddYQ FRT4hCFZ9LuRozbkqjuaEnLJCw49EIg63YjdbtmudvrC+xKlwb/Cu94fJOHZlPVdeX6E py/PppBDjaL4W/2l1VDMSrpLohuLoaBduQFHn++t90UIwyPVpFYBv7vNzjQHMy9GIcy1 y4TmmjYG0rfk3gZ7nWOuCtREo8rlek+tWdFOquS0VqLFD9fOxa43PYom8RfvuyXb9/42 9ni9ZOmtFCsdxPDkOB6UuqmYRBUFslNlLVjT1VHZ9Ex+jPijT2zHeTuA5hyw3dYqZEuz Ac4g== X-Gm-Message-State: AOJu0YwVxHw4JO3WN1FzWtxhdj1HbYn8AcAIuM5GTclJrf8FFFYKzCfN Pn3rsSgIDoxdo+aVF1z/5UyT28yX3HSY3lC8iK1Sgw== X-Received: by 2002:ac2:5230:0:b0:4f9:5426:6622 with SMTP id i16-20020ac25230000000b004f954266622mr7250299lfl.69.1701090101522; Mon, 27 Nov 2023 05:01:41 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.01.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:01:41 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 40/43] .azure-pipelines: init submodules Date: Mon, 27 Nov 2023 18:57:23 +0600 Message-Id: <20231127125726.3735-41-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 Azure CI does make testconfig then passes U-Boot sources to docker image. Inside docker image owner of U-Boot files is different, so user doesn't have permissions to update submodules. In this case we can do init before we run test docker image. Signed-off-by: Maxim Uvarov --- .azure-pipelines.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index d6f3fa423c..b6fa843e8c 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -113,6 +113,7 @@ stages: steps: - script: | cat << "EOF" > build.sh + set -x cd $(work_dir) git config --global user.name "Azure Pipelines" git config --global user.email bmeng.cn@gmail.com @@ -134,6 +135,7 @@ stages: make O=${UBOOT_TRAVIS_BUILD_DIR} testconfig EOF cat build.sh + make initsubmodules # We cannot use "container" like other jobs above, as buildman # seems to hang forever with pre-configured "container" environment docker run -v $PWD:$(work_dir) $(ci_runner_image) /bin/bash $(work_dir)/build.sh @@ -196,7 +198,9 @@ stages: set -ex # the below corresponds to .gitlab-ci.yml "before_script" cd \${WORK_DIR} - git config --global --add safe.directory \${WORK_DIR} + git clone \${WORK_DIR} /tmp/u-boot.git + WORK_DIR="/tmp/u-boot.git" + cd \${WORK_DIR} git clone --depth=1 https://source.denx.de/u-boot/u-boot-test-hooks /tmp/uboot-test-hooks ln -s travis-ci /tmp/uboot-test-hooks/bin/\`hostname\` ln -s travis-ci /tmp/uboot-test-hooks/py/\`hostname\` @@ -506,7 +510,9 @@ stages: cd ${WORK_DIR} # make environment variables available as tests are running inside a container export BUILDMAN="${BUILDMAN}" - git config --global --add safe.directory ${WORK_DIR} + git clone ${WORK_DIR} /tmp/u-boot.git + WORK_DIR="/tmp/u-boot.git" + cd \${WORK_DIR} pip install -r tools/buildman/requirements.txt EOF cat << "EOF" >> build.sh