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 A2EB3C433F5 for ; Mon, 22 Nov 2021 03:52:22 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 829FE836B7; Mon, 22 Nov 2021 04:51:54 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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=chromium.org header.i=@chromium.org header.b="XxIDnncm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D8256833E6; Mon, 22 Nov 2021 04:51:29 +0100 (CET) Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) (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 C2B03831FD for ; Mon, 22 Nov 2021 04:51:20 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x131.google.com with SMTP id x9so16647067ilu.6 for ; Sun, 21 Nov 2021 19:51:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=98Rnfx9yGLsECiH3zgEmfLAFGuUNEMreltE8HESI0gU=; b=XxIDnncmOSA9fCIvOp+QLTKHAibuzGwDvhYhxYJyI922+ynKeuMyxQfzLzYTyXTKGH OF6Rzl2lm6Yfva45ndxyYYJPKJSFEGQ5rZWyPMC+Vi1yUnMGmN93s1VzfsXbTRqOBRzz 8qQmQOCDTa0EWhByJrlED3W6UzATUrz6LjHrU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=98Rnfx9yGLsECiH3zgEmfLAFGuUNEMreltE8HESI0gU=; b=kKlo0ZhsxezgR7ZoDd+Tj+U66TBmq2efSUuON1Wy4Md8kGUpyrzeCiIxXfLZbG23MQ mbE8wbGc85sqZFtW5qHmeV7vqgy6IDBhHNE4f7NNbyDM2gpvNQa09fD4l654ZwhhI2ZN SbrCZ/w3z+yPzh4sP8SYiAVFEal+btQGIJyehdl2d+WSm+eue8HXkxSbX7nXWsrLJ1EU X+unLsAi74VZ42+RND1OJwhEn/IksOj7uYkypgXZuZDEGyC48nsJbdXRH+qUCAskHy7L VRGN40v+OvvedNRdJhS19tkOyZ5FxOw+TiNLlCfaMXwTrloW5Act4MkPudQJOJx0fPWq S/+A== X-Gm-Message-State: AOAM530h8bdzxDcT1QzOOOw7vuVt1K/W9xKaQGxK8tY6rDjKld//YoK2 9AwdY6POESZYP+qolMmZEl0xXCUa6cDfwQ== X-Google-Smtp-Source: ABdhPJxMscWFg5TD+7hgIM/4hw0lk9wYsvS0kF+SwXTa5RYHAuzgq17Iila6CC95ruyTotxrC4u4og== X-Received: by 2002:a05:6e02:19c7:: with SMTP id r7mr15279919ill.87.1637553079233; Sun, 21 Nov 2021 19:51:19 -0800 (PST) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id x18sm2007401iow.53.2021.11.21.19.51.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Nov 2021 19:51:18 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Heinrich Schuchardt , Simon Glass , Alper Nebi Yasak , Bin Meng , Daniel Schwierzeck , Kristian Amlie Subject: [PATCH 6/6] Azure/GitLab CI: Add the pylint checker Date: Sun, 21 Nov 2021 20:48:41 -0700 Message-Id: <20211122034841.304138-3-sjg@chromium.org> X-Mailer: git-send-email 2.34.0.rc2.393.gf8c9666880-goog In-Reply-To: <20211122034841.304138-1-sjg@chromium.org> References: <20211122034841.304138-1-sjg@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.37 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.2 at phobos.denx.de X-Virus-Status: Clean Add a check that new Python code does not regress the pylint score for any module. Signed-off-by: Simon Glass --- .azure-pipelines.yml | 17 +++++++++++++++++ .gitlab-ci.yml | 12 ++++++++++++ 2 files changed, 29 insertions(+) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 8801ff7d81b..6002477c905 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -172,6 +172,23 @@ jobs: export PATH=/opt/gcc-11.1.0-nolibc/arm-linux-gnueabi/bin:$PATH test/nokia_rx51_test.sh + - job: pylint + displayName: Check for any pylint regressions + pool: + vmImage: $(ubuntu_vm) + container: + image: $(ci_runner_image) + options: $(container_option) + steps: + - script: | + pip install -r test/py/requirements.txt + pip install asteval pylint pyopenssl + export PATH=${PATH}:~/.local/bin + echo "[MASTER]" >> .pylintrc + echo "load-plugins=pylint.extensions.docparams" >> .pylintrc + pylint --version + make pylint + - job: test_py displayName: 'test.py' pool: diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4c89daeadcf..226595e04e8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -180,6 +180,18 @@ Run tests for Nokia RX-51 (aka N900): - export PATH=/opt/gcc-11.1.0-nolibc/arm-linux-gnueabi/bin:$PATH; test/nokia_rx51_test.sh +# Check for any pylint regressions +Run pylint: + stage: testsuites + script: + - pip install -r test/py/requirements.txt + - pip install asteval pylint pyopenssl + - export PATH=${PATH}:~/.local/bin + - echo "[MASTER]" >> .pylintrc + - echo "load-plugins=pylint.extensions.docparams" >> .pylintrc + - pylint --version + - make pylint + # Test sandbox with test.py sandbox test.py: variables: -- 2.34.0.rc2.393.gf8c9666880-goog