Received: by 2002:a17:906:80c3:b0:7ae:d8f:8937 with SMTP id a3csp4878245ejx; Thu, 24 Nov 2022 00:20:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf5wHL+/BoryNYE91qQLvVKXMEdBTVlzjjbj2dQlhpT4XSKHGHjeqAijohf43Z1EPK5TrxHH X-Received: by 2002:a05:622a:174b:b0:39c:cb1b:c22a with SMTP id l11-20020a05622a174b00b0039ccb1bc22amr15139860qtk.173.1669278041823; Thu, 24 Nov 2022 00:20:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669278041; cv=none; d=google.com; s=arc-20160816; b=v4bzEw7Y9g9NoMH7hlXO7YExlHbqLfJM606C/jNJDPm2eXWyOY6SMk/UBJ3drSOuHi lDL3r2ZVH5cVBXG/ZiM8o6v9fUsP5rKg9R9y3NbC0yaJQ9A2FRiNBHF4p8Kiac8qf73C zAkhsXwxlw3eYIz/ZezkUk1BqSl12u1BYWEcg66+AEs3WKUtDGksQjR8rDrksBpHMzUz 8DuOz2JmgNUoTpO2DV1mni8Qhj7Nl/s4XKiqqTFjdIW+AbgCZkbhuELAtD+YzcsK7Zf5 OmdvFicL+HP3uI9tdoHZtfZAyc9YGrqXud0cZ3Hf5qXURH2CTMfDmyo8W4QFT/ddpcE7 Ov4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:subject:from :references:cc:to:user-agent:mime-version:date:message-id :dkim-signature; bh=KklJVaqD0RCrAlGnGAVkHyB4UIiN7PDvnpgmRj+Fz3A=; b=TtqxAJkPqka96vvX1abl2vulroOMXcdIa6hcfUUeFiqclgE7wRSM/rBaVzXeEEVqHm rCsQLioTQNiTApClciasaUC3yirDHRMtUzSF1aPEF/oOkAF4UdWYd5aGUGf269FOQAVU 4VATDt90qF0eBDTCD3ezROqPmWiuSchhsI5W7qeQV0h/ahQj/P/m0ke6cWwxtS6sgIpx /bzaWHkmKMZ+9sXgNd8pAQGHhkgUyNg8PdW5m4HWXXm3ppFOTcrAQmdtlxB1/aOJCAtg 3WM6s2mBjohJjSJAMKZW6sGAyLqvBuoNQF8NojOkZ5xRdxsH6v26PXhSRP4mrUirmcqn dTMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ftNFU9XS; spf=pass (google.com: domain of thuth@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=thuth@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com. [170.10.129.124]) by mx.google.com with ESMTPS id bk27-20020a05620a1a1b00b006fa4e6645f9si384701qkb.361.2022.11.24.00.20.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 24 Nov 2022 00:20:41 -0800 (PST) Received-SPF: pass (google.com: domain of thuth@redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ftNFU9XS; spf=pass (google.com: domain of thuth@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=thuth@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669278041; 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=KklJVaqD0RCrAlGnGAVkHyB4UIiN7PDvnpgmRj+Fz3A=; b=ftNFU9XS1dMDUyJcOPeyOLu/+xoKPcnj307DykQChUEGhjnB3Wkhszy8gPmLQ9MKz+46wu tatRIzNpMXpjNljXPYaMxDzIr4lmnw1Yipgp6slkewP//4FP3ER4PYUufdk0rvLc+Y+Anp XEpDUugRydFfPzXWOoi9NQ8lnNQPsvg= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-317-baDaGeA7Owm1iqQnKU--WA-1; Thu, 24 Nov 2022 03:20:39 -0500 X-MC-Unique: baDaGeA7Owm1iqQnKU--WA-1 Received: by mail-wm1-f69.google.com with SMTP id c126-20020a1c3584000000b003cfffcf7c1aso2303228wma.0 for ; Thu, 24 Nov 2022 00:20:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KklJVaqD0RCrAlGnGAVkHyB4UIiN7PDvnpgmRj+Fz3A=; b=ihvCRa/JAf83VUU13YFFfzqQmrdlYa+rM3J73CTsGzNUlA4b65VAV9L76RT6L0de6Y BXzs6g04uuxVqn8vAmkSkALGbqz/gzo7KSigFEFyDY3R+SvzUvR7kf/nXAcChfKsp4Rr jPY7J664gF1H29Ccj2bdRZ36JbgYxnpn0UD4JG0/xZZ92DMalBZbNSiSsxvd/Xxqk9+H 5ZCy9poQUfsWEB7DHXfiOv++1KYaDJjk64s36tfKF0r3YN5bfMd2HlHGj5/Szhfxsi0n m3iW+xIcuF9gRRJ25DJuQ1xiHkOSeUkY+9bbAqYLen2ZE72C937D6G8VzDT9p6LUTI7t lXpw== X-Gm-Message-State: ANoB5pl/xu2iLXoIwom7HpUp6UaI9Bw9qOJ3J8tqmLVzXz99BcQl19h4 SysqklCZW71XGLOCyRbEucgxbWIivh7liROq7DtC8rAibQNMD4JceIHr3M5lzmKr8Zi+ZNBPvDY JErnQfMkCnIINIUyj X-Received: by 2002:a05:600c:3d18:b0:3cf:b7bf:352d with SMTP id bh24-20020a05600c3d1800b003cfb7bf352dmr14813212wmb.106.1669278038780; Thu, 24 Nov 2022 00:20:38 -0800 (PST) X-Received: by 2002:a05:600c:3d18:b0:3cf:b7bf:352d with SMTP id bh24-20020a05600c3d1800b003cfb7bf352dmr14813200wmb.106.1669278038528; Thu, 24 Nov 2022 00:20:38 -0800 (PST) Return-Path: Received: from [192.168.0.5] (ip-109-43-177-190.web.vodafone.de. [109.43.177.190]) by smtp.gmail.com with ESMTPSA id 10-20020a05600c228a00b003c6b70a4d69sm807100wmf.42.2022.11.24.00.20.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 24 Nov 2022 00:20:37 -0800 (PST) Message-ID: Date: Thu, 24 Nov 2022 09:20:36 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 To: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , =?UTF-8?Q?Alex_Benn=c3=a9e?= , Peter Maydell Cc: qemu-devel@nongnu.org, qemu-arm@nongnu.org, Cleber Rosa , Wainer dos Santos Moschetta , Beraldo Leal References: <20221118113309.1057790-1-alex.bennee@linaro.org> <8c4b6387-450d-88af-c1d4-3171a9c3067b@linaro.org> <8f6f531f-3ed9-6a14-9ad6-8c0ff6b32c22@redhat.com> <87fse9bvmf.fsf@linaro.org> <504f6645-5315-74c5-623d-d8bf231aec09@linaro.org> From: Thomas Huth Subject: Re: [RFC PATCH] tests/avocado: use new rootfs for orangepi test In-Reply-To: <504f6645-5315-74c5-623d-d8bf231aec09@linaro.org> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-TUID: J/D6o5e6yFWW On 23/11/2022 19.13, Philippe Mathieu-Daudé wrote: > On 23/11/22 15:12, Alex Bennée wrote: >> Thomas Huth writes: >>> On 23/11/2022 12.15, Philippe Mathieu-Daudé wrote: >>>> On 18/11/22 12:33, Alex Bennée wrote: >>>>> The old URL wasn't stable. I suspect the current URL will only be >>>>> stable for a few months so maybe we need another strategy for hosting >>>>> rootfs snapshots? >>>>> >>>>> Signed-off-by: Alex Bennée >>>>> --- >>>>>    tests/avocado/boot_linux_console.py | 4 ++-- >>>>>    1 file changed, 2 insertions(+), 2 deletions(-) >>>>> >>>>> diff --git a/tests/avocado/boot_linux_console.py >>>>> b/tests/avocado/boot_linux_console.py >>>>> index 4c9d551f47..5a2923c423 100644 >>>>> --- a/tests/avocado/boot_linux_console.py >>>>> +++ b/tests/avocado/boot_linux_console.py >>>>> @@ -793,8 +793,8 @@ def test_arm_orangepi_sd(self): >>>>>            dtb_path = >>>>> '/usr/lib/linux-image-current-sunxi/sun8i-h3-orangepi-pc.dtb' >>>>>            dtb_path = self.extract_from_deb(deb_path, dtb_path) >>>>>            rootfs_url = >>>>> ('http://storage.kernelci.org/images/rootfs/buildroot/' >>>>> -                      'kci-2019.02/armel/base/rootfs.ext2.xz') >>>>> -        rootfs_hash = '692510cb625efda31640d1de0a8d60e26040f061' >>>>> + >>>>> 'buildroot-baseline/20221116.0/armel/rootfs.ext2.xz') >>>>> +        rootfs_hash = 'fae32f337c7b87547b10f42599acf109da8b6d9a' >>>> If Avocado doesn't find an artifact in its local cache, it will fetch it >>>> from the URL. >>>> The cache might be populated with artifacts previously downloaded, but >>>> their URL is not valid anymore (my case for many tests). >>>> We can also add artifacts manually, see [1]. >>>> I'd rather keep pre-existing tests if possible, to test older >>>> (kernel / user-space) images. We don't need to run all the tests all >>>> the time: >>>> tests can be filtered by tags (see [2]). >>>> My preference here is to refactor this test, adding the >>>> "kci-2019.02" >>>> and "baseline-20221116.0" releases. I can prepare the patch if you / >>>> Thomas don't object. >>> >>> IMHO we shouldn't keep tests in the upstream git repository where the >>> binaries are not available in public anymore. They won't get run by >>> new contributors anymore, and also could vanish from the disks of the >>> people who previously downloaded it, once they wipe their cache or >>> upgrade to a new installation, so the test code will sooner or later >>> be bitrotting. But if you want to keep the tests around on your hard >>> disk, you could also stick the test in a local branch on your hard >>> disk instead. >> >> CI/Workstation splits aside I tend to agree with Thomas here that having >> tests no one else can run will lead to an accretion of broken tests. > > Following this idea, should we remove all boards for which no open > source & GPL software is available? That's certainly a different topic... but I see where you're heading to. My point here is rather: There is an alternative, newer version of the kernel available which can be used to test the same thing. The older version disappeared from the net, so why should we bother trying to keep that test with that version supported if there is a newer version available? And for things like firmware images and ISOs, some people still have the hardware and CD-ROMs around, or you could buy them second hand, so there is indeed a point in having tests for such systems. But for this old kernel here? How is somebody supposed to run the test if they didn't download it before it disappeared? If you feel that there is really a benefit for keeping it around, then fine, please submit a patch that restores the test with the old kernel. But then please also add a comment how to get the kernel if necessary. ... well, maybe we just need an owner for the test ... thinking about it twice, I think that's what bothered me most about this: It's a test in boot_linux_console.py so there is no clear maintainer who could be asked about it if it bitrots when the binary is not available. Thus please put it into a different file with an entry in MAINTAINERS if you restore it. So maybe the rule should be: Tests with files that are not publicly available in the internet are OK if they have a clear maintainer who could be asked about the state if necessary. Tests without available files and without maintainer are just too prone to bitrot in the future. Thomas