differential code coverage

Поиск
Список
Период
Сортировка
От Andres Freund
Тема differential code coverage
Дата
Msg-id 20230404160345.2ztwz44eyzm7heuf@awork3.anarazel.de
обсуждение исходный текст
Ответы Re: differential code coverage  (Daniel Gustafsson <daniel@yesql.se>)
Re: differential code coverage  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
Hi,

For quite a while I'd been wishing to see *differential* code coverage, to see
what changed in code coverage between two major releases. Unfortunately lcov
didn't provide that. A few months ago a PR for it has been merged into lcov
([1]). There hasn't yet been a release though. And the feature definitely has
some rough edges, still.

I'm planning to generate the 15->16 differential code coverage, once the
feature freeze has been reached.

Another nice thing provided by the in-development lcov is hierarchical
output. I find that to be much easier to navigate than the current flat
output, as e.g. used on coverage.postgresql.org.


I've attached a screenshot showing the coverage differences of the backend
between 15 and HEAD, as of a few days ago. "UNC" is uncovered new code, "LBC"
is lost baseline coverage.


I think for now it'd likely be a small script that'd generate the code
coverage across versions. Do we want to have that in the source tree?


Is there any interest in a) using the hierarchical output b) differential
output on coverage.pg.o?

Greetings,

Andres Freund

[1] https://github.com/linux-test-project/lcov/pull/169

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Fix the description of GUC "max_locks_per_transaction" and "max_pred_locks_per_transaction" in guc_table.c
Следующее
От: Robert Haas
Дата:
Сообщение: Re: running logical replication as the subscription owner