Re: Having problems generating a code coverage report - Mailing list pgsql-hackers
From | Aleksander Alekseev |
---|---|
Subject | Re: Having problems generating a code coverage report |
Date | |
Msg-id | CAJ7c6TNg-4Lc4rXkM3SA95LCUef5QPvfiTAOAe58=8g6oenzuw@mail.gmail.com Whole thread Raw |
In response to | Re: Having problems generating a code coverage report (Aleksander Alekseev <aleksander@timescale.com>) |
Responses |
Re: Having problems generating a code coverage report
|
List | pgsql-hackers |
Hi, > Thanks for the hint. I'm using Meson 1.3.2. Although it's not ancient > (Feb 2024) there is 1.6.0 available. I'll try upgrading and let you > know the results. I upgraded to Meson 1.6.0 and Lcov 2.0-1. Unfortunately it doesn't work: ``` genhtml: ERROR: no data for line:864, TLA:UNC, file:/home/eax/projects/c/postgresql/src/bin/psql/psqlscanslash.l (use "genhtml --ignore-errors unmapped ..." to bypass this error) Traceback (most recent call last): File "/home/eax/.venv/bin/meson", line 8, in <module> sys.exit(main()) ^^^^^^ File "/home/eax/.venv/lib/python3.12/site-packages/mesonbuild/mesonmain.py", line 293, in main return run(sys.argv[1:], launcher) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/eax/.venv/lib/python3.12/site-packages/mesonbuild/mesonmain.py", line 281, in run return run_script_command(args[1], args[2:]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/eax/.venv/lib/python3.12/site-packages/mesonbuild/mesonmain.py", line 222, in run_script_command return module.run(script_args) ^^^^^^^^^^^^^^^^^^^^^^^ File "/home/eax/.venv/lib/python3.12/site-packages/mesonbuild/scripts/coverage.py", line 208, in run return coverage(options.outputs, options.source_root, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/eax/.venv/lib/python3.12/site-packages/mesonbuild/scripts/coverage.py", line 148, in coverage subprocess.check_call([genhtml_exe, File "/usr/lib/python3.12/subprocess.py", line 413, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['genhtml', '--prefix', '/home/eax/projects/c/postgresql/build', '--prefix', '/home/eax/projects/c/postgresql', '--output-directory', '/home/eax/projects/c/postgresql/build/meson-logs/coveragereport', '--title', 'Code coverage', '--legend', '--show-details', '--branch-coverage', '/home/eax/projects/c/postgresql/build/meson-logs/coverage.info']' returned non-zero exit status 1. ninja: build stopped: subcommand failed. ``` If I add `--ignore-errors unmapped` as suggested and execute: ``` genhtml --ignore-errors unmapped --prefix /home/eax/projects/c/postgresql/build --prefix /home/eax/projects/c/postgresql --output-directory /home/eax/projects/c/postgresql/build/meson-logs/coveragereport --title 'Code coverage' --legend --show-details --branch-coverage /home/eax/projects/c/postgresql/build/meson-logs/coverage.info ``` ... I get: ``` ... Processing file src/pl/plpython/plpy_util.c lines=33 hit=22 functions=4 hit=4 branches=14 hit=5 Processing file src/include/catalog/index.h lines=10 hit=10 functions=2 hit=2 genhtml: ERROR: duplicate merge record src/include/catalog ``` I didn't investigate further. -- Best regards, Aleksander Alekseev
pgsql-hackers by date: