From patchwork Thu May 26 00:09:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Snow X-Patchwork-Id: 12861882 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 lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0995AC433EF for ; Thu, 26 May 2022 00:12:19 +0000 (UTC) Received: from localhost ([::1]:40518 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nu16w-0006bi-Mt for qemu-devel@archiver.kernel.org; Wed, 25 May 2022 20:12:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59306) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nu14P-0003o3-61 for qemu-devel@nongnu.org; Wed, 25 May 2022 20:09:41 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:41421) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nu14K-0002iY-I8 for qemu-devel@nongnu.org; Wed, 25 May 2022 20:09:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1653523770; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NnDheIgdUHGXi9MYIaYSJHMLtIlFTeXBGxnHQc7O3xc=; b=hXq1FIW1dsD0ra8jXaFu7t4/lM67Pq3p9iF/Fpdp78l4DVG3IJD3nupDCCXHyOdbnVGqd/ BBP2LKlgdzZ4pkk+IExtM5G6P/KlHbdHD7JzKAMV62KF+Mblld0LGzAdu0AyLePQabnMy9 oxiKiv79Ws0uyi6Tp0pzxlojGmZ2jqM= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-48-BXXiWP8SNV-3aCkvcCmPSw-1; Wed, 25 May 2022 20:09:28 -0400 X-MC-Unique: BXXiWP8SNV-3aCkvcCmPSw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3C69A101A54E; Thu, 26 May 2022 00:09:28 +0000 (UTC) Received: from scv.redhat.com (unknown [10.22.16.8]) by smtp.corp.redhat.com (Postfix) with ESMTP id BB13E2166B26; Thu, 26 May 2022 00:09:23 +0000 (UTC) From: John Snow To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , Cleber Rosa , Paolo Bonzini , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Daniel Berrange , Beraldo Leal , John Snow Subject: [PATCH 0/9] tests, python: prepare to expand usage of test venv Date: Wed, 25 May 2022 20:09:12 -0400 Message-Id: <20220526000921.1581503-1-jsnow@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 Received-SPF: pass client-ip=170.10.133.124; envelope-from=jsnow@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" GitLab CI: https://gitlab.com/jsnow/qemu/-/pipelines/548326343 This series collects some of the uncontroversial elements that serve as pre-requisites for a later series that seeks to generate a testing venv by default. This series makes the following material changes: - Install the 'qemu' package into the avocado testing venv - Use the avocado testing venv to run vm-tests - Use the avocado testing venv to run device-crash-test None of these changes impact 'make check'; these are all specialty tests that are not run by default. This series also doesn't change how iotests are run, doesn't add any new dependencies for SRPM builds, etc. NOTE: patch 8 isn't strictly required for this series, but including it here "early" helps the subsequent series. Since the debian docker files are layered, testing downstream pipelines can fail because the base image is pulled from the main QEMU repo instead of the downstream. In other words: I need this patch in origin/main in order to have the venv module available for later patches that will actually need it in our debian10 derivative images. (in other-other-words: the 'clang-user' test *will* need it later.) John Snow (9): python: update for mypy 0.950 tests: add "TESTS_PYTHON" variable to Makefile tests: use python3 as the python executable name tests: silence pip upgrade warnings during venv creation tests: add quiet-venv-pip macro tests: install "qemu" namespace package into venv tests: use tests/venv to run basevm.py-based scripts tests: add python3-venv to debian10.docker tests: run 'device-crash-test' from tests/venv .gitlab-ci.d/buildtest.yml | 8 +++++--- python/qemu/qmp/util.py | 4 +++- python/setup.cfg | 1 + scripts/device-crash-test | 14 +++++++++++--- tests/Makefile.include | 18 ++++++++++-------- tests/avocado/avocado_qemu/__init__.py | 11 +++++------ tests/avocado/virtio_check_params.py | 1 - tests/avocado/virtio_version.py | 1 - tests/docker/dockerfiles/debian10.docker | 1 + tests/requirements.txt | 1 + tests/vm/Makefile.include | 13 +++++++------ tests/vm/basevm.py | 6 +++--- 12 files changed, 47 insertions(+), 32 deletions(-)