Re: Having problems generating a code coverage report

From: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Aleksander Alekseev <aleksander(at)timescale(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Peter Geoghegan <pg(at)bowt(dot)ie>
Subject: Re: Having problems generating a code coverage report
Date: 2026-02-26 12:35:35
Message-ID: 202602261231.mlk2icrqrwpw@alvherre.pgsql
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2026-Feb-18, Michael Paquier wrote:

> Based on your ideas, I have been able to get my way through today with
> this modified artistic flavor, for a non-VPATH build, in a Fedora
> environment:
> make coverage-html \
> LCOVFLAGS="-q --ignore-errors gcov,gcov" \
> GENHTML_FLAGS="-q --legend --ignore-errors unmapped,corrupt,unmapped,inconsistent"

FWIW this has been failing all along (last report dates back Feb 17th),
now because of this:

lcov: ERROR: (negative) Unexpected negative hit count '-9' for line /home/coverage/pgsrc/pgsql/src/port/snprintf.c:529" while capturing from ./src/port/snprintf_shlib.gcda.
(use "lcov --ignore-errors negative ..." to bypass this error)

I added this flag as well, and the report is now running; we should have
results soon.

I hope the lcov people find time to fix all these problems :-(

--
Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/
"Pero la cosa no es muy grave ..." (le petit Nicolas -- René Goscinny)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Álvaro Herrera 2026-02-26 12:37:13 Re: guc: make dereference style consistent in check_backtrace_functions
Previous Message Álvaro Herrera 2026-02-26 12:23:49 Re: persevere NO INHERIT when Dump not-null constraints on inherited columns