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 X-Spam-Level: X-Spam-Status: No, score=-12.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5EBFEC433E0 for ; Wed, 24 Feb 2021 13:38:19 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id BB2BF64E6C for ; Wed, 24 Feb 2021 13:38:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BB2BF64E6C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:49306 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lEuMr-0000vO-Ln for qemu-devel@archiver.kernel.org; Wed, 24 Feb 2021 08:38:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52352) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEuEH-0007S1-36 for qemu-devel@nongnu.org; Wed, 24 Feb 2021 08:29:25 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:36971) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1lEuEC-0002zO-Je for qemu-devel@nongnu.org; Wed, 24 Feb 2021 08:29:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614173359; 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=YFdHPmLNe3hLGEtfwlPX469MMt2pCQRCrQaxAh/cpSo=; b=DbkncZSKIlL39123UuwTALic+sA7QMlOz4mVfs0TJ3EnSniXBkYFBTQs0eiMqmBuzL1UjP 217eKoGFvj6RLU2PQ5s0gMK547q5Rmd/3wlTFkvSG+Gd95YsqS/Ct+g7+qHTDVyxgoFQ+D xEPs0dNHZAPWe4yW4O44sWbiQe+iKbM= 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-560-NswWaZUpPLelc9UwydsO5Q-1; Wed, 24 Feb 2021 08:29:16 -0500 X-MC-Unique: NswWaZUpPLelc9UwydsO5Q-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 40B5B10CE781; Wed, 24 Feb 2021 13:29:15 +0000 (UTC) Received: from wainer-laptop.localdomain (ovpn-116-126.gru2.redhat.com [10.97.116.126]) by smtp.corp.redhat.com (Postfix) with ESMTP id 353056064B; Wed, 24 Feb 2021 13:29:08 +0000 (UTC) Subject: Re: Problem running functional tests from China To: =?UTF-8?Q?Michal_Such=c3=a1nek?= , =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= References: <60118671-cd47-1900-59c6-96782dd7e26c@redhat.com> <20210224110605.GM6564@kitsune.suse.cz> <198ecefe-4d68-b43d-dfae-8a5ceeee9615@redhat.com> <20210224120140.GO6564@kitsune.suse.cz> From: Wainer dos Santos Moschetta Message-ID: Date: Wed, 24 Feb 2021 10:29:05 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <20210224120140.GO6564@kitsune.suse.cz> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=wainersm@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Received-SPF: pass client-ip=63.128.21.124; envelope-from=wainersm@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, 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: Thomas Huth , avocado-devel , qemu-devel Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Hi, On 2/24/21 9:01 AM, Michal Suchánek wrote: > On Wed, Feb 24, 2021 at 12:37:53PM +0100, Philippe Mathieu-Daudé wrote: >> On 2/24/21 12:06 PM, Michal Suchánek wrote: >>> On Wed, Feb 24, 2021 at 10:29:15AM +0100, Philippe Mathieu-Daudé wrote: >>>> Just to inform the files hosted on github don't work when >>>> testing from China: >>>> raw.githubusercontent.com resolves to 127.0.0.1 >> Actually not even localhost but 0.0.0.0 :) >> >>> And from where does this come from? >>> >>> Your local system, your ISP, ... ? >> Probably the ISP: >> > ... >> I raised that problem not to find a way to bypass an ISP >> firewall, but to see if there is a way to use another >> storage for test artifacts so all the community can run >> the tests. > I don't think protecting from random network malfunction is something > the qemu project can do. > > That said, downloading the test data during test run does indeed look > fragile. For those functional tests, the test data is fetched once and cached locally. The user can also inject files on Avocado's cache directory, by using the `assets` sub-command: --- $ ./build/tests/venv/bin/avocado assets register --help usage: avocado assets register [-h] [--hash SHA1] name url positional arguments:   name         Unique name to associate with this asset.   url          Path to asset that you would like to register manually. optional arguments:   -h, --help   show this help message and exit   --hash SHA1  SHA1 hash of this asset. ---- More features for managing the cache has been implemented, e.g.: https://github.com/avocado-framework/avocado/issues/4311 Thanks! - Wainer > > We have the concept of git submodules which is used in qemu extensively > so the test data could possibly be included directly in the git tree. > > The obvious downside is that the current and past test binaries will take > up disk space for all users that check out the repository, even those > that don't run the tests. > > Thanks > > Michal >