Re: Having problems generating a code coverage report

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Aleksander Alekseev <aleksander(at)timescale(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, jian he <jian(dot)universality(at)gmail(dot)com>, Peter Geoghegan <pg(at)bowt(dot)ie>
Subject: Re: Having problems generating a code coverage report
Date: 2026-01-22 22:11:11
Message-ID: aXKgf6G7Osvta8Js@paquier.xyz
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Jan 22, 2026 at 01:19:43PM -0500, Andres Freund wrote:
> On 2026-01-22 14:35:40 +0900, Michael Paquier wrote:
> If I suppress the empty errors & warnings with --ignore-errors empty,empty the
> current "-d . -d $(srcdir)" kinda works. Unfortunately, in VPATH builds, the
> directory structure is quite messed up. It seems to get a bit better if I add
> -p $(srcdir) to the genhtml invocation, but a few generated files still show
> up bogus.

With a bit more information to skip more error patterns, I actually
got an unpatched HEAD build able to work properly as well, with:
ignore_errors=inconsistent,gcov,range,empty,usage,usage,empty,empty,path

The VPATH build is indeed looking pretty broken here, with the
top-level including the contents of src/ and /home/, /home/ pointing
to contrib/. I'll live with that, that's so much better than nothing
working locally. Thanks for all the pointers, Andres.
--
Michael

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Corey Huinker 2026-01-22 22:20:12 Re: Import Statistics in postgres_fdw before resorting to sampling.
Previous Message Matheus Alcantara 2026-01-22 21:40:46 Re: [PATCH] llvmjit: always add the simplifycfg pass