Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wexIA-0059zg-2N for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Jul 2026 15:56:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wexI9-00EnnH-28 for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Jul 2026 15:56:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wexI9-00Enn9-1F for pgsql-hackers@lists.postgresql.org; Wed, 01 Jul 2026 15:56:01 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wexI5-00000001EQH-3g5D for pgsql-hackers@lists.postgresql.org; Wed, 01 Jul 2026 15:56:01 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 661Ftmbr3422077; Wed, 1 Jul 2026 11:55:48 -0400 From: Tom Lane To: Jacob Champion cc: "Jonathan Gonzalez V." , pgsql-hackers@lists.postgresql.org Subject: Re: Coverage (lcov) failing with inconsistent error in versions 2.x In-reply-to: References: <87ldbuc3ik.fsf@gmail.com> <874iiibxui.fsf@gmail.com> Comments: In-reply-to Jacob Champion message dated "Wed, 01 Jul 2026 08:22:07 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3422074.1782921348.1@sss.pgh.pa.us> Date: Wed, 01 Jul 2026 11:55:48 -0400 Message-ID: <3422076.1782921348@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jacob Champion writes: > (As an aside: I want to be careful in how I speak about lcov 2.x. I'm > not an expert in that system, and it's entirely possible that all of > the errors causing it to bail out by default are in fact legitimate > problems in the underlying coverage data that is emitted by a > compiler, rather than bugs in lcov. But I do believe that the current > state of lcov makes it pretty much unfit for purpose with today's > widely-used toolchains and codebases. I'm pretty disappointed in how > v2 is behaving.) Yeah. It seems like lcov 2.0 is kind of okay (it's working for me anyway), but the later versions are more broken. I'm not excited about changing our docs to reflect that, and definitely -1 on changing our code. I think we just have to wait and hope they get things sorted. > We could rewrite https://wiki.postgresql.org/wiki/CodeCoverage, maybe. +1, that page seems to be mostly ancient history at present. regards, tom lane