From nobody Fri May 17 12:14:50 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1612878865; cv=none; d=zohomail.com; s=zohoarc; b=Xaf5AhEJ/yzmfyk4kvUCEO2U+GX0XMDA9j3YunwUd60gXtctZiiSe3taXzXTR1QfOhJkZIrRJ922if86m+cCSUlat40o0loXvMLO+Nfdh5qYQVujUsGQkllgUEUpiTZNBVl07xNgYsjHnpjpNo94ajTBorqQj5eM2m1MAvNg0pk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612878865; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=G9Ip0oCTt+uqy/UoGrf5eS2lsDbnf6UwSXOH6ImclgM=; b=fJrSJpPKSzZF5tfDpruuYZHPWCKrT5Y2GwkFlsCXwTgHmIZmvVetPRsuumQGF4GZC0uWTXWginYCD75kfqos7Y1wf67Ij5WFntrlkl3OQ7pN0hfsFNSPiZPsL0X+k1egkHQQwr2JLCuVKmlz+ZJcQ2hAhh7fRNO/m+RZZB1wXl4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1612878865252372.8525941099077; Tue, 9 Feb 2021 05:54:25 -0800 (PST) Received: from localhost ([::1]:33154 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9TTE-0005ed-4q for importer@patchew.org; Tue, 09 Feb 2021 08:54:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40588) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9TPY-0002Mj-Fw for qemu-devel@nongnu.org; Tue, 09 Feb 2021 08:50:36 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:45897) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1l9TPU-000569-BB for qemu-devel@nongnu.org; Tue, 09 Feb 2021 08:50:36 -0500 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-199-DAMR9njhPkaaiPuD-dFAcg-1; Tue, 09 Feb 2021 08:50:21 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5BB96107ACFA; Tue, 9 Feb 2021 13:50:20 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-115-66.ams2.redhat.com [10.36.115.66]) by smtp.corp.redhat.com (Postfix) with ESMTP id 78CE15D9D0; Tue, 9 Feb 2021 13:50:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612878626; 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: in-reply-to:in-reply-to:references:references; bh=G9Ip0oCTt+uqy/UoGrf5eS2lsDbnf6UwSXOH6ImclgM=; b=NVCs4FOD8bqbnJ5wlaghk2jSI24GcdbkiB7wmNZ8NO6T9uYoYEvzqbDI9JPFapsC5UM2lW zPxqblj2+WYzupPiLd8OLBXnaBOVQaVPh6YEYD63bxckRtWNxbxKKIf83m19UFMnYrDGwO sHSJ17bkVMS3q3UhSPxTG0K+He/rxu8= X-MC-Unique: DAMR9njhPkaaiPuD-dFAcg-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 1/2] tests/docker: remove travis container Date: Tue, 9 Feb 2021 13:50:10 +0000 Message-Id: <20210209135011.1224992-2-berrange@redhat.com> In-Reply-To: <20210209135011.1224992-1-berrange@redhat.com> References: <20210209135011.1224992-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=berrange@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=216.205.24.124; envelope-from=berrange@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -33 X-Spam_score: -3.4 X-Spam_bar: --- X-Spam_report: (-3.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.57, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , Kevin Wolf , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , qemu-block@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Max Reitz , =?UTF-8?q?Alex=20Benn=C3=A9e?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) The travis container that we have no longer matches what travis currently uses. As all x86 jobs are being moved to GitLab CI too, there is no compelling reason to update the travis container. It is simpler to just remove it. Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Wainer dos Santos Moschetta Signed-off-by: Daniel P. Berrang=C3=A9 --- docs/devel/testing.rst | 14 -------- tests/docker/Makefile.include | 11 ++---- tests/docker/dockerfiles/travis.docker | 17 ---------- tests/docker/travis | 22 ------------ tests/docker/travis.py | 47 -------------------------- 5 files changed, 2 insertions(+), 109 deletions(-) delete mode 100644 tests/docker/dockerfiles/travis.docker delete mode 100755 tests/docker/travis delete mode 100755 tests/docker/travis.py diff --git a/docs/devel/testing.rst b/docs/devel/testing.rst index 209f9d8172..00ce16de48 100644 --- a/docs/devel/testing.rst +++ b/docs/devel/testing.rst @@ -357,20 +357,6 @@ source and build it. =20 The full list of tests is printed in the ``make docker`` help. =20 -Tools ------ - -There are executables that are created to run in a specific Docker environ= ment. -This makes it easy to write scripts that have heavy or special dependencie= s, -but are still very easy to use. - -Currently the only tool is ``travis``, which mimics the Travis-CI tests in= a -container. It runs in the ``travis`` image: - -.. code:: - - make docker-travis@travis - Debugging a Docker test failure ------------------------------- =20 diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 93b29ad823..7cab761bf5 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -21,8 +21,6 @@ DOCKER_REGISTRY :=3D $(if $(REGISTRY),$(REGISTRY),registr= y.gitlab.com/qemu-project DOCKER_TESTS :=3D $(notdir $(shell \ find $(SRC_PATH)/tests/docker/ -name 'test-*' -type f)) =20 -DOCKER_TOOLS :=3D travis - ENGINE :=3D auto =20 DOCKER_SCRIPT=3D$(SRC_PATH)/tests/docker/docker.py --engine $(ENGINE) @@ -126,7 +124,7 @@ ifneq ($(HOST_ARCH),x86_64) DOCKER_PARTIAL_IMAGES +=3D debian-mips-cross debian-mipsel-cross debian-mi= ps64el-cross DOCKER_PARTIAL_IMAGES +=3D debian-ppc64el-cross DOCKER_PARTIAL_IMAGES +=3D debian-s390x-cross -DOCKER_PARTIAL_IMAGES +=3D fedora travis +DOCKER_PARTIAL_IMAGES +=3D fedora endif =20 docker-image-debian-alpha-cross: docker-image-debian10 @@ -147,8 +145,6 @@ docker-image-debian-s390x-cross: docker-image-debian10 docker-image-debian-sh4-cross: docker-image-debian10 docker-image-debian-sparc64-cross: docker-image-debian10 =20 -docker-image-travis: NOUSER=3D1 - # Specialist build images, sometimes very limited tools docker-image-debian-tricore-cross: docker-image-debian10 docker-image-debian-all-test-cross: docker-image-debian10 @@ -174,7 +170,7 @@ DOCKER_PARTIAL_IMAGES +=3D fedora-i386-cross fedora-cri= s-cross =20 # Expand all the pre-requistes for each docker image and test combination $(foreach i,$(filter-out $(DOCKER_PARTIAL_IMAGES),$(DOCKER_IMAGES)), \ - $(foreach t,$(DOCKER_TESTS) $(DOCKER_TOOLS), \ + $(foreach t,$(DOCKER_TESTS), \ $(eval .PHONY: docker-$t@$i) \ $(eval docker-$t@$i: docker-image-$i docker-run-$t@$i) \ ) \ @@ -212,9 +208,6 @@ endif @echo 'Available tests:' @echo ' $(DOCKER_TESTS)' @echo - @echo 'Available tools:' - @echo ' $(DOCKER_TOOLS)' - @echo @echo 'Special variables:' @echo ' TARGET_LIST=3Da,b,c Override target list in builds.' @echo ' EXTRA_CONFIGURE_OPTS=3D"..."' diff --git a/tests/docker/dockerfiles/travis.docker b/tests/docker/dockerfi= les/travis.docker deleted file mode 100644 index cd1435a7e9..0000000000 --- a/tests/docker/dockerfiles/travis.docker +++ /dev/null @@ -1,17 +0,0 @@ -# -# Travis Image - this is broadly the same image that we run our CI -# tests on. -# -FROM travisci/ci-sardonyx:packer-1552557266-f909ac5 -ENV DEBIAN_FRONTEND noninteractive -ENV LANG en_US.UTF-8 -ENV LC_ALL en_US.UTF-8 -RUN sed -i "s/# deb-src/deb-src/" /etc/apt/sources.list -RUN apt-get update -RUN apt-get -y build-dep qemu -RUN apt-get -y install device-tree-compiler python3 python3-yaml dh-autore= conf gdb strace lsof net-tools gcovr ninja-build -# Travis tools require PhantomJS / Neo4j / Maven accessible -# in their PATH (QEMU build won't access them). -ENV PATH /usr/local/phantomjs/bin:/usr/local/phantomjs:/usr/local/neo4j-3.= 2.7/bin:/usr/local/maven-3.5.2/bin:/usr/local/cmake-3.9.2/bin:/usr/local/cl= ang-5.0.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV FEATURES clang pyyaml docs -USER travis diff --git a/tests/docker/travis b/tests/docker/travis deleted file mode 100755 index 47c03677d6..0000000000 --- a/tests/docker/travis +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash -e -# -# Mimic a travis testing matrix -# -# Copyright (c) 2016 Red Hat Inc. -# -# Authors: -# Fam Zheng -# -# This work is licensed under the terms of the GNU GPL, version 2 -# or (at your option) any later version. See the COPYING file in -# the top-level directory. - -. common.rc - -requires pyyaml -cmdfile=3D/tmp/travis_cmd_list.sh -$QEMU_SRC/tests/docker/travis.py $QEMU_SRC/.travis.yml > $cmdfile -chmod +x $cmdfile -cd "$QEMU_SRC" -unset BUILD_DIR SRC_DIR -$cmdfile diff --git a/tests/docker/travis.py b/tests/docker/travis.py deleted file mode 100755 index 37307ac366..0000000000 --- a/tests/docker/travis.py +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env python3 -# -# Travis YAML config parser -# -# Copyright (c) 2016 Red Hat Inc. -# -# Authors: -# Fam Zheng -# -# This work is licensed under the terms of the GNU GPL, version 2 -# or (at your option) any later version. See the COPYING file in -# the top-level directory. - -import sys -import yaml -import itertools - -def load_yaml(fname): - return yaml.safe_load(open(fname, "r").read()) - -def conf_iter(conf): - # If "compiler" is omitted from the included env then Travis picks the - # first entry of the global compiler list. - default_compiler =3D conf["compiler"][0] - def env_to_list(env): - return env if isinstance(env, list) else [env] - for entry in conf["matrix"]["include"]: - yield {"env": env_to_list(entry["env"]), - "compiler": entry.get("compiler", default_compiler)} - -def main(): - if len(sys.argv) < 2: - sys.stderr.write("Usage: %s \n" % sys.argv[0]) - return 1 - conf =3D load_yaml(sys.argv[1]) - print("\n".join((": ${%s}" % var for var in conf["env"]["global"]))) - for config in conf_iter(conf): - print("(") - print("\n".join(config["env"])) - print("alias cc=3D" + config["compiler"]) - print("\n".join(conf["before_script"])) - print("\n".join(conf["script"])) - print(")") - return 0 - -if __name__ =3D=3D "__main__": - sys.exit(main()) --=20 2.29.2 From nobody Fri May 17 12:14:50 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1612879407; cv=none; d=zohomail.com; s=zohoarc; b=KvdD0reYRWh2LY3+/eHCKx5J3ArU9RYaZOPgphsQXRiibkMzECOGL8SlztxYQDSiuYhqJ1zGoQZcff66x+odo+zUq45Zw84byatRHG55Onsj7HoSX+WmwP6dIlC/Un79F4CxwgLwZll1CGUoLblHFvruPbI/vDHY7A88VjNmuqA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612879407; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=XdVBPzUOkfHNXPNoMvrb004CFMB59V+ej0rdxYBWtRk=; b=BY0CoxGExjbPOPV18wcmdmekHJzkBa26FeJ4ipbMvuWMO7d3g4swQHnEWu/2jPVkB182KV2DobxWIQLGlUSs3qBrFGT6G20h7lD6oA2NLa/yaQ4Nm7BaxAmYMRQ7VjXF3++yS1YjkSCxRFXFJ0xad5a3IBba9ewnXg4WwPzkWlQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1612879406657418.25060072889437; Tue, 9 Feb 2021 06:03:26 -0800 (PST) Received: from localhost ([::1]:48184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9Tbt-0003o1-6Q for importer@patchew.org; Tue, 09 Feb 2021 09:03:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40620) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9TPZ-0002NL-LT for qemu-devel@nongnu.org; Tue, 09 Feb 2021 08:50:37 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:54247) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1l9TPU-00057v-Bl for qemu-devel@nongnu.org; Tue, 09 Feb 2021 08:50:37 -0500 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-74-7nbnJYy3NZGNot7v8c1V_Q-1; Tue, 09 Feb 2021 08:50:24 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E85B9195D570; Tue, 9 Feb 2021 13:50:22 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-115-66.ams2.redhat.com [10.36.115.66]) by smtp.corp.redhat.com (Postfix) with ESMTP id BDF725D9C0; Tue, 9 Feb 2021 13:50:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612878629; 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: in-reply-to:in-reply-to:references:references; bh=XdVBPzUOkfHNXPNoMvrb004CFMB59V+ej0rdxYBWtRk=; b=cq9mD2aysstJmEExXz7X33vq/Gs0FWnafe8lgWkgDHjuaEtYuBzvlqpnIpCFLGN7cpSOL7 qV2SJfeSxDAjs5hks+Yaaw6ceqa8dVMAFdeaYl7quupk9OWjvVFIaqF6n2TU+7UF+sdhYo W9d4bbr+uvEZJ5KUBF/Q34gfOlpbTiE= X-MC-Unique: 7nbnJYy3NZGNot7v8c1V_Q-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 2/2] travis: remove travis configuration and all references to Travis CI Date: Tue, 9 Feb 2021 13:50:11 +0000 Message-Id: <20210209135011.1224992-3-berrange@redhat.com> In-Reply-To: <20210209135011.1224992-1-berrange@redhat.com> References: <20210209135011.1224992-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=berrange@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=63.128.21.124; envelope-from=berrange@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -33 X-Spam_score: -3.4 X-Spam_bar: --- X-Spam_report: (-3.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.57, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, 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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , Kevin Wolf , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , qemu-block@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Max Reitz , =?UTF-8?q?Alex=20Benn=C3=A9e?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) The Travis CI system QEMU has been using has removed the unlimited free usage model, replacing it with a one-time only grant of CI minutes that is not renewed. The QEMU CI jobs quickly exhaust maintainer's free CI credits, leaving them unable to test with Travis. This is not a sustainable situation, so we have no choice by to discontinue use of Travis. GitLab CI is now the primary target, with Cirrus CI filling in some platform gaps where needed. Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- .travis.yml | 439 ----------------------------- MAINTAINERS | 3 - configure | 1 - contrib/gitdm/filetypes.txt | 2 +- scripts/travis/coverage-summary.sh | 27 -- tests/docker/docker.py | 2 +- tests/qemu-iotests/079 | 2 +- tests/test-util-filemonitor.c | 11 - 8 files changed, 3 insertions(+), 484 deletions(-) delete mode 100644 .travis.yml delete mode 100755 scripts/travis/coverage-summary.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5f1dea873e..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,439 +0,0 @@ -# The current Travis default is a VM based 16.04 Xenial on GCE -# Additional builds with specific requirements for a full VM need to -# be added as additional matrix: entries later on -os: linux -dist: focal -language: c -compiler: - - gcc -cache: - # There is one cache per branch and compiler version. - # characteristics of each job are used to identify the cache: - # - OS name (currently only linux) - # - OS distribution (for Linux, bionic or focal) - # - Names and values of visible environment variables set in .travis.yml= or Settings panel - timeout: 1200 - ccache: true - pip: true - directories: - - $HOME/avocado/data/cache - - -addons: - apt: - packages: - # Build dependencies - - libaio-dev - - libattr1-dev - - libbrlapi-dev - - libcap-ng-dev - - libgcc-7-dev - - libgnutls28-dev - - libgtk-3-dev - - libiscsi-dev - - liblttng-ust-dev - - libncurses5-dev - - libnfs-dev - - libnss3-dev - - libpixman-1-dev - - libpng-dev - - librados-dev - - libsdl2-dev - - libsdl2-image-dev - - libseccomp-dev - - libspice-protocol-dev - - libspice-server-dev - - libssh-dev - - liburcu-dev - - libusb-1.0-0-dev - - libvdeplug-dev - - libvte-2.91-dev - - libzstd-dev - - ninja-build - - sparse - - uuid-dev - - gcovr - # Tests dependencies - - genisoimage - - -# The channel name "irc.oftc.net#qemu" is encrypted against qemu/qemu -# to prevent IRC notifications from forks. This was created using: -# $ travis encrypt -r "qemu/qemu" "irc.oftc.net#qemu" -notifications: - irc: - channels: - - secure: "F7GDRgjuOo5IUyRLqSkmDL7kvdU4UcH3Lm/W2db2JnDHTGCqgEdaYEYKc= iyCLZ57vOTsTsOgesN8iUT7hNHBd1KWKjZe9KDTZWppWRYVwAwQMzVeSOsbbU4tRoJ6Pp+3qhH1= Z0eGYR9ZgKYAoTumDFgSAYRp4IscKS8jkoedOqM=3D" - on_success: change - on_failure: always - - -env: - global: - - SRC_DIR=3D".." - - BUILD_DIR=3D"build" - - BASE_CONFIG=3D"--disable-docs --disable-tools" - - TEST_BUILD_CMD=3D"" - - TEST_CMD=3D"make check V=3D1" - # This is broadly a list of "mainline" softmmu targets which have supp= ort across the major distros - - MAIN_SOFTMMU_TARGETS=3D"aarch64-softmmu,mips64-softmmu,ppc64-softmmu= ,riscv64-softmmu,s390x-softmmu,x86_64-softmmu" - - CCACHE_SLOPPINESS=3D"include_file_ctime,include_file_mtime" - - CCACHE_MAXSIZE=3D1G - - G_MESSAGES_DEBUG=3Derror - - -git: - # we want to do this ourselves - submodules: false - -# Common first phase for all steps -before_install: - - if command -v ccache ; then ccache --zero-stats ; fi - - export JOBS=3D$(($(getconf _NPROCESSORS_ONLN) + 1)) - - echo "=3D=3D=3D Using ${JOBS} simultaneous jobs =3D=3D=3D" - -# Configure step - may be overridden -before_script: - - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} - - ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log meso= n-logs/meson-log.txt && exit 1; } - -# Main build & test - rarely overridden - controlled by TEST_CMD -script: - - BUILD_RC=3D0 && make -j${JOBS} || BUILD_RC=3D$? - - | - if [ "$BUILD_RC" -eq 0 ] && [ -n "$TEST_BUILD_CMD" ]; then - ${TEST_BUILD_CMD} || BUILD_RC=3D$? - else - $(exit $BUILD_RC); - fi - - | - if [ "$BUILD_RC" -eq 0 ] ; then - ${TEST_CMD} ; - else - $(exit $BUILD_RC); - fi -after_script: - - df -h - - if command -v ccache ; then ccache --show-stats ; fi - - -jobs: - include: - # --enable-debug implies --enable-debug-tcg, also runs quite a bit slo= wer - - name: "GCC debug (main-softmmu)" - env: - - CONFIG=3D"--enable-debug --target-list=3D${MAIN_SOFTMMU_TARGETS}" - - CACHE_NAME=3D"${TRAVIS_BRANCH}-linux-gcc-debug" - - - # TCG debug can be run just on its own and is mostly agnostic to user/= softmmu distinctions - - name: "GCC debug (user)" - env: - - CONFIG=3D"--enable-debug-tcg --disable-system" - - CACHE_NAME=3D"${TRAVIS_BRANCH}-linux-gcc-debug-tcg" - - # Module builds are mostly of interest to major distros - - name: "GCC modules (main-softmmu)" - env: - - CONFIG=3D"--enable-modules --target-list=3D${MAIN_SOFTMMU_TARGET= S}" - - CACHE_NAME=3D"${TRAVIS_BRANCH}-linux-gcc-default" - - - # Test with Clang for compile portability (Travis uses clang-5.0) - - name: "Clang (user)" - env: - - CONFIG=3D"--disable-system --host-cc=3Dclang --cxx=3Dclang++" - - CACHE_NAME=3D"${TRAVIS_BRANCH}-linux-clang-default" - compiler: clang - - - - name: "Clang (main-softmmu)" - env: - - CONFIG=3D"--target-list=3D${MAIN_SOFTMMU_TARGETS} - --host-cc=3Dclang --cxx=3Dclang++" - - CACHE_NAME=3D"${TRAVIS_BRANCH}-linux-clang-sanitize" - compiler: clang - before_script: - - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} - - ${SRC_DIR}/configure ${CONFIG} --extra-cflags=3D"-fsanitize=3Dun= defined -Werror" || { cat config.log meson-logs/meson-log.txt && exit 1; } - - - - name: "Clang (other-softmmu)" - env: - - CONFIG=3D"--disable-user --target-list-exclude=3D${MAIN_SOFTMMU_= TARGETS} - --host-cc=3Dclang --cxx=3Dclang++" - - CACHE_NAME=3D"${TRAVIS_BRANCH}-linux-clang-default" - compiler: clang - - - # gprof/gcov are GCC features - - name: "GCC gprof/gcov" - dist: bionic - addons: - apt: - packages: - - ninja-build - env: - - CONFIG=3D"--enable-gprof --enable-gcov --disable-libssh - --target-list=3D${MAIN_SOFTMMU_TARGETS}" - after_success: - - ${SRC_DIR}/scripts/travis/coverage-summary.sh - - - # Using newer GCC with sanitizers - - name: "GCC9 with sanitizers (softmmu)" - dist: bionic - addons: - apt: - update: true - sources: - # PPAs for newer toolchains - - ubuntu-toolchain-r-test - packages: - # Extra toolchains - - gcc-9 - - g++-9 - # Build dependencies - - libaio-dev - - libattr1-dev - - libbrlapi-dev - - libcap-ng-dev - - libgnutls28-dev - - libgtk-3-dev - - libiscsi-dev - - liblttng-ust-dev - - libnfs-dev - - libncurses5-dev - - libnss3-dev - - libpixman-1-dev - - libpng-dev - - librados-dev - - libsdl2-dev - - libsdl2-image-dev - - libseccomp-dev - - libspice-protocol-dev - - libspice-server-dev - - liburcu-dev - - libusb-1.0-0-dev - - libvte-2.91-dev - - ninja-build - - sparse - - uuid-dev - language: generic - compiler: none - env: - - COMPILER_NAME=3Dgcc CXX=3Dg++-9 CC=3Dgcc-9 - - CONFIG=3D"--cc=3Dgcc-9 --cxx=3Dg++-9 --disable-linux-user" - - TEST_CMD=3D"" - before_script: - - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} - - ${SRC_DIR}/configure ${CONFIG} --extra-cflags=3D"-g3 -O0 -fsanit= ize=3Dthread" || { cat config.log meson-logs/meson-log.txt && exit 1; } - - - - name: "[aarch64] GCC check-tcg" - arch: arm64 - dist: focal - addons: - apt_packages: - - libaio-dev - - libattr1-dev - - libbrlapi-dev - - libcap-ng-dev - - libgcrypt20-dev - - libgnutls28-dev - - libgtk-3-dev - - libiscsi-dev - - liblttng-ust-dev - - libncurses5-dev - - libnfs-dev - - libnss3-dev - - libpixman-1-dev - - libpng-dev - - librados-dev - - libsdl2-dev - - libseccomp-dev - - liburcu-dev - - libusb-1.0-0-dev - - libvdeplug-dev - - libvte-2.91-dev - - ninja-build - # Tests dependencies - - genisoimage - env: - - TEST_CMD=3D"make check check-tcg V=3D1" - - CONFIG=3D"--disable-containers --target-list=3D${MAIN_SOFTMMU_TA= RGETS}" - - UNRELIABLE=3Dtrue - - - name: "[ppc64] GCC check-tcg" - arch: ppc64le - dist: focal - addons: - apt_packages: - - libaio-dev - - libattr1-dev - - libbrlapi-dev - - libcap-ng-dev - - libgcrypt20-dev - - libgnutls28-dev - - libgtk-3-dev - - libiscsi-dev - - liblttng-ust-dev - - libncurses5-dev - - libnfs-dev - - libnss3-dev - - libpixman-1-dev - - libpng-dev - - librados-dev - - libsdl2-dev - - libseccomp-dev - - liburcu-dev - - libusb-1.0-0-dev - - libvdeplug-dev - - libvte-2.91-dev - - ninja-build - # Tests dependencies - - genisoimage - env: - - TEST_CMD=3D"make check check-tcg V=3D1" - - CONFIG=3D"--disable-containers --target-list=3Dppc64-softmmu,ppc= 64le-linux-user" - - - name: "[s390x] GCC check-tcg" - arch: s390x - dist: bionic - addons: - apt_packages: - - libaio-dev - - libattr1-dev - - libbrlapi-dev - - libcap-ng-dev - - libgcrypt20-dev - - libgnutls28-dev - - libgtk-3-dev - - libiscsi-dev - - liblttng-ust-dev - - libncurses5-dev - - libnfs-dev - - libnss3-dev - - libpixman-1-dev - - libpng-dev - - librados-dev - - libsdl2-dev - - libseccomp-dev - - liburcu-dev - - libusb-1.0-0-dev - - libvdeplug-dev - - libvte-2.91-dev - - ninja-build - # Tests dependencies - - genisoimage - env: - - TEST_CMD=3D"make check check-tcg V=3D1" - - CONFIG=3D"--disable-containers --target-list=3D${MAIN_SOFTMMU_TA= RGETS},s390x-linux-user" - - UNRELIABLE=3Dtrue - script: - - BUILD_RC=3D0 && make -j${JOBS} || BUILD_RC=3D$? - - | - if [ "$BUILD_RC" -eq 0 ] ; then - mv pc-bios/s390-ccw/*.img pc-bios/ ; - ${TEST_CMD} ; - else - $(exit $BUILD_RC); - fi - - - name: "[s390x] GCC (other-softmmu)" - arch: s390x - dist: bionic - addons: - apt_packages: - - libaio-dev - - libattr1-dev - - libcap-ng-dev - - libgnutls28-dev - - libiscsi-dev - - liblttng-ust-dev - - liblzo2-dev - - libncurses-dev - - libnfs-dev - - libnss3-dev - - libpixman-1-dev - - libsdl2-dev - - libsdl2-image-dev - - libseccomp-dev - - libsnappy-dev - - libzstd-dev - - nettle-dev - - xfslibs-dev - - ninja-build - # Tests dependencies - - genisoimage - env: - - CONFIG=3D"--disable-containers --audio-drv-list=3Dsdl --disable-= user - --target-list-exclude=3D${MAIN_SOFTMMU_TARGETS}" - - - name: "[s390x] GCC (user)" - arch: s390x - dist: bionic - addons: - apt_packages: - - libgcrypt20-dev - - libgnutls28-dev - - ninja-build - env: - - CONFIG=3D"--disable-containers --disable-system" - - - name: "[s390x] Clang (disable-tcg)" - arch: s390x - dist: bionic - compiler: clang - addons: - apt_packages: - - libaio-dev - - libattr1-dev - - libbrlapi-dev - - libcap-ng-dev - - libgcrypt20-dev - - libgnutls28-dev - - libgtk-3-dev - - libiscsi-dev - - liblttng-ust-dev - - libncurses5-dev - - libnfs-dev - - libnss3-dev - - libpixman-1-dev - - libpng-dev - - librados-dev - - libsdl2-dev - - libseccomp-dev - - liburcu-dev - - libusb-1.0-0-dev - - libvdeplug-dev - - libvte-2.91-dev - - ninja-build - env: - - TEST_CMD=3D"make check-unit" - - CONFIG=3D"--disable-containers --disable-tcg --enable-kvm - --disable-tools --host-cc=3Dclang --cxx=3Dclang++" - - UNRELIABLE=3Dtrue - - # Release builds - # The make-release script expect a QEMU version, so our tag must start= with a 'v'. - # This is the case when release candidate tags are created. - - name: "Release tarball" - if: tag IS present AND tag =3D~ /^v\d+\.\d+(\.\d+)?(-\S*)?$/ - env: - # We want to build from the release tarball - - BUILD_DIR=3D"release/build/dir" SRC_DIR=3D"../../.." - - BASE_CONFIG=3D"--prefix=3D$PWD/dist" - - CONFIG=3D"--target-list=3Dx86_64-softmmu,aarch64-softmmu,armeb-l= inux-user,ppc-linux-user" - - TEST_CMD=3D"make install -j${JOBS}" - - QEMU_VERSION=3D"${TRAVIS_TAG:1}" - - CACHE_NAME=3D"${TRAVIS_BRANCH}-linux-gcc-default" - script: - - make -C ${SRC_DIR} qemu-${QEMU_VERSION}.tar.bz2 - - ls -l ${SRC_DIR}/qemu-${QEMU_VERSION}.tar.bz2 - - tar -xf ${SRC_DIR}/qemu-${QEMU_VERSION}.tar.bz2 && cd qemu-${QEM= U_VERSION} - - mkdir -p release-build && cd release-build - - ../configure ${BASE_CONFIG} ${CONFIG} || { cat config.log meson-= logs/meson-log.txt && exit 1; } - - make install - allow_failures: - - env: UNRELIABLE=3Dtrue diff --git a/MAINTAINERS b/MAINTAINERS index 06635ba81a..6fb0d9aafa 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3208,13 +3208,10 @@ M: Fam Zheng R: Philippe Mathieu-Daud=C3=A9 S: Maintained F: .github/lockdown.yml -F: .travis.yml -F: scripts/travis/ F: .shippable.yml F: tests/docker/ F: tests/vm/ F: scripts/archive-source.sh -W: https://travis-ci.org/qemu/qemu W: https://app.shippable.com/github/qemu/qemu W: http://patchew.org/QEMU/ =20 diff --git a/configure b/configure index 7c496d81fc..058a7c7967 100755 --- a/configure +++ b/configure @@ -4872,7 +4872,6 @@ fi ######################################## # See if __attribute__((alias)) is supported. # This false for Xcode 9, but has been remedied for Xcode 10. -# Unfortunately, travis uses Xcode 9 by default. =20 attralias=3Dno cat > $TMPC << EOF diff --git a/contrib/gitdm/filetypes.txt b/contrib/gitdm/filetypes.txt index d2d6f6db8d..bb29166aed 100644 --- a/contrib/gitdm/filetypes.txt +++ b/contrib/gitdm/filetypes.txt @@ -81,7 +81,7 @@ filetype tests \.out\.nocache$ filetype tests \.err$ filetype tests \.exit$ # bad-if-FOO.exit etc filetype tests \.decode$ -filetype tests \.yml$ # travis/shippable config +filetype tests \.yml$ # gitlab/shippable config =20 # # Development documentation files (for hacking generally) diff --git a/scripts/travis/coverage-summary.sh b/scripts/travis/coverage-s= ummary.sh deleted file mode 100755 index d7086cf9ca..0000000000 --- a/scripts/travis/coverage-summary.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh -# -# Author: Alex Benn=C3=A9e -# -# Summerise the state of code coverage with gcovr and tweak the output -# to be more sane on Travis hosts. As we expect to be executed on a -# throw away CI instance we do spam temp files all over the shop. You -# most likely don't want to execute this script but just call gcovr -# directly. See also "make coverage-report" -# -# This code is licensed under the GPL version 2 or later. See -# the COPYING file in the top-level directory. - -# first generate the coverage report -gcovr -p -o raw-report.txt - -# strip the full-path and line markers -sed s@$PWD\/@@ raw-report.txt | sed s/[0-9]\*[,-]//g > simplified.txt - -# reflow lines that got split -awk '/.[ch]$/ { printf("%s", $0); next } 1' simplified.txt > rejoined.txt - -# columnify -column -t rejoined.txt > final.txt - -# and dump, stripping out 0% coverage -grep -v "0%" final.txt diff --git a/tests/docker/docker.py b/tests/docker/docker.py index d28df4c140..bb42b32a9b 100755 --- a/tests/docker/docker.py +++ b/tests/docker/docker.py @@ -228,7 +228,7 @@ class Docker(object): def __init__(self): self._command =3D _guess_engine_command() =20 - if "docker" in self._command and "TRAVIS" not in os.environ: + if "docker" in self._command: os.environ["DOCKER_BUILDKIT"] =3D "1" self._buildkit =3D True else: diff --git a/tests/qemu-iotests/079 b/tests/qemu-iotests/079 index 793e1f9d08..7f758c0f9a 100755 --- a/tests/qemu-iotests/079 +++ b/tests/qemu-iotests/079 @@ -40,7 +40,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 _supported_fmt qcow2 _supported_proto file nfs fuse =20 -# Some containers (e.g. non-x86 on Travis) do not allow large files +# Some environments may not allow large files _require_large_file 4G =20 echo "=3D=3D=3D Check option preallocation and cluster_size =3D=3D=3D" diff --git a/tests/test-util-filemonitor.c b/tests/test-util-filemonitor.c index b629e10857..c1d29c386a 100644 --- a/tests/test-util-filemonitor.c +++ b/tests/test-util-filemonitor.c @@ -408,21 +408,10 @@ test_file_monitor_events(void) char *pathdst =3D NULL; QFileMonitorTestData data; GHashTable *ids =3D g_hash_table_new(g_int64_hash, g_int64_equal); - char *travis_arch; =20 qemu_mutex_init(&data.lock); data.records =3D NULL; =20 - /* - * This test does not work on Travis LXD containers since some - * syscalls are blocked in that environment. - */ - travis_arch =3D getenv("TRAVIS_ARCH"); - if (travis_arch && !g_str_equal(travis_arch, "x86_64")) { - g_test_skip("Test does not work on non-x86 Travis containers."); - return; - } - /* * The file monitor needs the main loop running in * order to receive events from inotify. We must --=20 2.29.2