From patchwork Wed Jun 5 05:17:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Steinhardt X-Patchwork-Id: 13686155 Received: from wfhigh2-smtp.messagingengine.com (wfhigh2-smtp.messagingengine.com [64.147.123.153]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 47E4F10E5 for ; Wed, 5 Jun 2024 05:17:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.153 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717564627; cv=none; b=THK5G2lC/NLRo5ysdQEXriXjfh4yhXD0xH1w8Om99EAH1yaF3JX32vmYT0mCR4qaofPSHR9duKpLDuWAy7jxF/Bfte+VuomxNS/pMzbf4MwzuHrX2OhzAJnAT4Nb6qVehwqbWesXOs8SFQ0T/jxi/c3go9SEgMcUsEV2SdKrH5c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717564627; c=relaxed/simple; bh=8MiUU1COJE7M2Fvw/aMpxPChx+aRB/+11iWxHrfmT08=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DgBK2IwjdRmGjh2sgbiQabut+cl9JM3MAyTi4WJKUSzf5FbsTv+HmkzJJGYbAkibDDM+/zC1fzLDw34m/zaouBEONmcQcImWTvRrTOMiRnwJLQ23SfYmZPRsfk2pjBwyausmLRed11bMe5OFdo+MzfsW249nrLMnOoz3kHEJLiA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=pks.im; spf=pass smtp.mailfrom=pks.im; dkim=pass (2048-bit key) header.d=pks.im header.i=@pks.im header.b=DrTXfx3q; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=LtoxyJMd; arc=none smtp.client-ip=64.147.123.153 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=pks.im Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pks.im Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pks.im header.i=@pks.im header.b="DrTXfx3q"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="LtoxyJMd" Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.west.internal (Postfix) with ESMTP id 74C811800092 for ; Wed, 5 Jun 2024 01:17:04 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 05 Jun 2024 01:17:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pks.im; h=cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1717564624; x=1717651024; bh=vyf1K9R1M/ tf/CxWEQ/FtENYi7h/77Kw6HGRez1rs7o=; b=DrTXfx3qvK0VsjkTchnyayt5Va bQ5A/hq/OegI4ovVDs8+RuOZO45p5hneVjt1IVXKPCzLQ97ND20lBS0ddt/TgU+L aUtqT0Fxvl/NtEMP+t5s19Ur3VtCvqCjl9hKO2qgdJs5pJ7HYMGetRSn7/IKPRya GBwR3VNCE+y64zla1Dg0nj1bkT2/ZTVgSalz2JcC15yCGj3E/BXnXqEtj9NWwKEG fGc1plCO2Z64QKIXqOHg+dOssPG+Oxm12n95NWoamVC7KTu6vpcgApLV9MIqNbI1 rKfNKdiLh37pi6xLhhL7fic5QgzXRJ1+5S+KabVX1ajrGkBHKpPYGmXSozVw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1717564624; x=1717651024; bh=vyf1K9R1M/tf/CxWEQ/FtENYi7h/ 77Kw6HGRez1rs7o=; b=LtoxyJMdI+tT5WkZbxHbYr4cync2xDWojWO7cwHIEOX7 mVeEGo847fp+pfowZhql3/er//NP7nWi0+6rPh1CBJJrbtoUEFXU036TDB/C/can u8Q1CnxLzsEKuYj5o8gMHaJOZYL19P00xR9wqmQWb5n1i+PZ0HO+KzTeBPsrBxTh 03WqX1jelgV3LqcC5D1UFIXWM2MZ+7e7y4+iJYXI6EgKbC/ik3RQa5iYERcvKjXL M4Xp9UDAWc2wL8ElXqWdoFWM+GAW8yWg5s9RCy2ljoUGvsBqYuIOFeyoSFBVrD4J K+LIinG/+AlIWMZeSci/7dJ1hdU3TXVcqo1wd6V8YA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdelhedgleefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesghdtre ertddtvdenucfhrhhomheprfgrthhrihgtkhcuufhtvghinhhhrghrughtuceophhssehp khhsrdhimheqnecuggftrfgrthhtvghrnhepfffftddvhedutddviedthefhvdfgkefgje eukeelueeuhfduleffveevveffvefhnecuffhomhgrihhnpehphihthhhonhdrohhrghdp ghhithhhuhgsrdgtohhmpdhrvggrughmvgdrmhgunecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepphhssehpkhhsrdhimh X-ME-Proxy: Feedback-ID: i197146af:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 5 Jun 2024 01:17:03 -0400 (EDT) Received: by localhost (OpenSMTPD) with ESMTPSA id d38578b6 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Wed, 5 Jun 2024 05:16:35 +0000 (UTC) Date: Wed, 5 Jun 2024 07:17:01 +0200 From: Patrick Steinhardt To: git@vger.kernel.org Subject: [PATCH 4/4] ci/test-documentation: work around SyntaxWarning in Python 3.12 Message-ID: References: Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: In Python 3.6, unrecognized escape sequences in regular expressions started to produce a DeprecationWarning [1]. In Python 3.12, this was upgraded to a SyntaxWarning and will eventually be raised even further to a SyntaxError. We indirectly hit such unrecognized escape sequences via Asciidoc, which results in a bunch of warnings: $ asciidoc -o /dev/null git-cat-file.txt :1: SyntaxWarning: invalid escape sequence '\S' :1: SyntaxWarning: invalid escape sequence '\S' This in turn causes our "ci/test-documentation.sh" script to fail, as it checks that stderr of `make doc` is empty. These escape sequences seem to be part of Asciidoc itself. In the long term, we should probably consider dropping support for Asciidoc in favor of Asciidoctor. Upstream also considers itself to be legacy software and recommends to move away from it [2]: It is suggested that unless you specifically require the AsciiDoc.py toolchain, you should find a processor that handles the modern AsciiDoc syntax. For now though, let's expand its lifetime a little bit more by filtering out these new warnings. We should probably reconsider once the warnings are upgraded to errors by Python. [1]: https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals [2]: https://github.com/asciidoc-py/asciidoc-py/blob/6d9f76cff0dc3b7ca21bdd570200f8518464d99b/README.md#asciidocpy Signed-off-by: Patrick Steinhardt --- ci/test-documentation.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/ci/test-documentation.sh b/ci/test-documentation.sh index de41888430..02b3af3941 100755 --- a/ci/test-documentation.sh +++ b/ci/test-documentation.sh @@ -11,6 +11,7 @@ filter_log () { -e '/^ \* new asciidoc flags$/d' \ -e '/stripped namespace before processing/d' \ -e '/Attributed.*IDs for element/d' \ + -e '/SyntaxWarning: invalid escape sequence/d' \ "$1" }