Re: Coverage with make coverage-html is broken on latest Debian using lcov v2

From: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Narek Galstyan <narek(dot)galstyan(at)enterprisedb(dot)com>, pgsql-hackers(at)postgresql(dot)org, "narekg(at)berkeley(dot)edu" <narekg(at)berkeley(dot)edu>, ngalstyan4(at)gmail(dot)com
Subject: Re: Coverage with make coverage-html is broken on latest Debian using lcov v2
Date: 2026-10-03 21:32:39
Message-ID: asFzNIrD0_SAD995@alvherre.pgsql
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2026-Oct-03, Andres Freund wrote:

> - The intentional use of SIGQUIT shutdowns in a lot of tests leads to
> incomplete coverage
>
> That doesn't trigger gcov / lcov / genhtml errors, but it leads to things
> being assumed uncovered that aren't.
>
> Because we shut down a lot of tap test clusters with immediate mode, this
> actually has pretty large impact.
>
> I've experimented with replacing all the _exit() uses in the backend with
> something that triggers flushing of the coverage information in some cases
> that can be considered kinda maybe safe.

We had these threads about this problem
https://postgr.es/m/58ce1068-0cfc-3394-df69-ee0d03aaebb5%402ndquadrant.com
https://postgr.es/m/816a4de5-3f15-4d66-1ec1-791cab2ca6df@gmail.com
but I don't think we did anything about that.

--
Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2026-10-03 21:33:44 Re: Add ASCII fast path to Unicode normalization functions
Previous Message Álvaro Herrera 2026-10-03 21:23:16 Re: Coverage with make coverage-html is broken on latest Debian using lcov v2