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 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 489F6C636CC for ; Wed, 15 Feb 2023 11:36:08 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSG4d-0008P8-MO; Wed, 15 Feb 2023 06:35:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pSG4R-0008J0-Fe for qemu-devel@nongnu.org; Wed, 15 Feb 2023 06:35:32 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pSG4P-0002JS-IP for qemu-devel@nongnu.org; Wed, 15 Feb 2023 06:35:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1676460928; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=dYDARqGj9tE78RAJj7gy7tG7J8yPVn4ge8axgK/kReE=; b=Zv6XNRNB/WFJOp4sPHXHwrIMEyM2Ajh1m5YyYNyTFy4e7BIs+yarnzEfJoa0kWAwAjeqTm xKmTLbt5p8vyMyYZ000gkZS3Z1MRNaPsFiJDI6/AvMmUGpGGtW5UlPre41wZs/5SJxaXgK 4/XXN8QAB9s4XQq8kmQn8nwr2/3j3p8= 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-610-UYKx0f56NIKye5P6LXRgfw-1; Wed, 15 Feb 2023 06:35:25 -0500 X-MC-Unique: UYKx0f56NIKye5P6LXRgfw-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B07331871CD7; Wed, 15 Feb 2023 11:35:24 +0000 (UTC) Received: from redhat.com (unknown [10.33.36.254]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1217B492B15; Wed, 15 Feb 2023 11:35:21 +0000 (UTC) Date: Wed, 15 Feb 2023 11:35:19 +0000 From: Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= To: Paolo Bonzini Cc: Kevin Wolf , Markus Armbruster , Peter Maydell , John Snow , qemu-devel , Cleber Rosa , Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= , Thomas Huth , Beraldo Leal , Michael Roth , Wainer dos Santos Moschetta , Qemu-block , Hanna Reitz , Alex =?utf-8?Q?Benn=C3=A9e?= Subject: Re: [PATCH v2 6/7] CI: Stop building docs on centos8 Message-ID: References: <20230210003147.1309376-7-jsnow@redhat.com> <87cz6cpue3.fsf@pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.2.9 (2022-11-12) X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 Received-SPF: pass client-ip=170.10.133.124; envelope-from=berrange@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On Tue, Feb 14, 2023 at 09:52:44PM +0100, Paolo Bonzini wrote: > Il mar 14 feb 2023, 18:26 Kevin Wolf ha scritto: > > > Am 14.02.2023 um 15:03 hat Paolo Bonzini geschrieben: > > > In the case of Python the issue is not the interpreter per se, though > > > there are a couple new feature in Python 3.7 that are quite nice (for > > > example improved data classes[1] or context variables[2]). The main > > > problem as far as I understood (and have seen in my experience) is > > > linting tools. New versions fix bugs that caused false positives, but > > > also become more strict at the same time. The newer versions at the > > > same time are very quick at dropping support for old versions of > > > Python; while older versions sometimes throw deprecation warnings on > > > new versions of Python. This makes it very hard to support a single > > > version of, say, mypy that works on all versions from RHEL8 and SLE15 > > > to Fedora 38 and Ubuntu 23.04. > > > > Why do we have to support a single version of mypy? What is wrong with > > running an old mypy version with old Python version, and a newer mypy > > with newer Python versions? > > > > Sure, they will complain about different things, but it doesn't feel > > that different from supporting multiple C compilers in various versions. > > > > It's more like having to support only C++03 on RHEL 8 and only C++20 in > Fedora 37, without even being able to use a preprocessor. > > For example old versions might not understand some type annotations and > will fail mypy altogether, therefore even with newer versions you can't > annotate the whole source and have to fall back to non-strict mode. In terms of back compatibility, is there a distinction to be made between mypy compat and the python runtime compat ? If we add annotations wanted by new mypy, and old mypy doesn't understand them, that's not a huge problem. We can simply declare that we don't support old mypy, and skip the validation tests if old mypy is installed. The mypy results are targetted at upstream maintainers primarily, not people consuming QEMU, unless they are backporting huge amounts of code and need to validate it. IOW it should be sufficient to test once with an arbitrary version of mypy of our choosing. If we add annotations wanted by new mypy, and old python runtime barfs, then that's a significant problem, which would require us to either bump the min python or avoid the new mypy annotations. The same could be asked for the other linting tools we use like pylint / flake8. Is it sufficient to declare a min versions for those tools and skip the tests if not satisfied, while still retaining ability to execute the code on 3.6 ? Or are there some core python runtime features we also want to take advantage of at the same time ? With regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|