Coverage job unable to post-process gcov data
@leo-singer, the gitlab pages deployments have started failing because the coverage job is failing to post-process the coverage data:
Running after script...
$ gcovr -j ${CPU_COUNT} --exclude '(.+/)?swiglal_[a-z]+\.c$' --exclude-directories 'lal([a-z]+/)?test' --xml c-coverage.xml
(WARNING) GCOV produced the following errors processing /builds/lscsoft/lalsuite/lalsimulation/swig/.libs/swiglal_python_la-swiglal_python.gcda:
Cannot open source file /builds/lscsoft/lalsuite/lalsimulation/swig/swiglal_python.c<lalsimulation>
Cannot open source file /builds/lscsoft/lalsuite/lalsimulation/swig/swiglal_python.c<lalsimulation>
Cannot open source file /builds/lscsoft/lalsuite/lalsimulation/swig/swiglal_python.c<lalsimulation>
Cannot open source file /builds/lscsoft/lalsuite/lalsimulation/swig/swiglal_python.c<lalsimulation>
Cannot open source file /builds/lscsoft/lalsuite/lalsimulation/swig/swiglal_python.c<lalsimulation>
Cannot open source file /builds/lscsoft/lalsuite/lalsimulation/swig/swiglal_python.c<lalsimulation>
Cannot open source file /builds/lscsoft/lalsuite/lalsimulation/swig/swiglal_python.c<lalsimulation>
Cannot open source file /builds/lscsoft/lalsuite/lalsimulation/swig/swiglal_python.c<lalsimulation>
(gcovr could not infer a working directory that resolved it.)
(WARNING) GCOV produced the following errors processing /builds/lscsoft/lalsuite/lalmetaio/swig/.libs/swiglal_python_la-swiglal_python.gcda:
Cannot open source file /builds/lscsoft/lalsuite/lalmetaio/swig/swiglal_python.c<lalmetaio>
Cannot open source file /builds/lscsoft/lalsuite/lalmetaio/swig/swiglal_python.c<lalmetaio>
Cannot open source file /builds/lscsoft/lalsuite/lalmetaio/swig/swiglal_python.c<lalmetaio>
Cannot open source file /builds/lscsoft/lalsuite/lalmetaio/swig/swiglal_python.c<lalmetaio>
Cannot open source file /builds/lscsoft/lalsuite/lalmetaio/swig/swiglal_python.c<lalmetaio>
Cannot open source file /builds/lscsoft/lalsuite/lalmetaio/swig/swiglal_python.c<lalmetaio>
Cannot open source file /builds/lscsoft/lalsuite/lalmetaio/swig/swiglal_python.c<lalmetaio>
Cannot open source file /builds/lscsoft/lalsuite/lalmetaio/swig/swiglal_python.c<lalmetaio>
(gcovr could not infer a working directory that resolved it.)
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/gcovr/workers.py", line 77, in worker
work(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/gcovr/gcov.py", line 323, in process_datafile
chdir=wd,
File "/usr/local/lib/python3.7/dist-packages/gcovr/gcov.py", line 490, in run_gcov_and_process_files
process_gcov_data(fname, covdata, abs_filename, options)
File "/usr/local/lib/python3.7/dist-packages/gcovr/gcov.py", line 102, in process_gcov_data
metadata["Source"].strip(),
KeyError: 'Source'
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/gcovr/workers.py", line 77, in worker
work(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/gcovr/gcov.py", line 323, in process_datafile
chdir=wd,
File "/usr/local/lib/python3.7/dist-packages/gcovr/gcov.py", line 490, in run_gcov_and_process_files
process_gcov_data(fname, covdata, abs_filename, options)
File "/usr/local/lib/python3.7/dist-packages/gcovr/gcov.py", line 102, in process_gcov_data
metadata["Source"].strip(),
KeyError: 'Source'
(ERROR) Uncaught EXCEPTION
Traceback (most recent call last):
File "/usr/local/bin/gcovr", line 10, in <module>
sys.exit(main())
File "/usr/local/lib/python3.7/dist-packages/gcovr/__main__.py", line 308, in main
collect_coverage_from_gcov(covdata, options)
File "/usr/local/lib/python3.7/dist-packages/gcovr/__main__.py", line 367, in collect_coverage_from_gcov
contexts = pool.wait()
File "/usr/local/lib/python3.7/dist-packages/gcovr/workers.py", line 170, in __exit__
self.wait()
File "/usr/local/lib/python3.7/dist-packages/gcovr/workers.py", line 161, in wait
raise self.exceptions[0][1]
File "/usr/local/lib/python3.7/dist-packages/gcovr/__main__.py", line 367, in collect_coverage_from_gcov
contexts = pool.wait()
File "/usr/local/lib/python3.7/dist-packages/gcovr/workers.py", line 161, in wait
raise self.exceptions[0][1]
File "/usr/local/lib/python3.7/dist-packages/gcovr/workers.py", line 77, in worker
work(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/gcovr/gcov.py", line 323, in process_datafile
chdir=wd,
File "/usr/local/lib/python3.7/dist-packages/gcovr/gcov.py", line 490, in run_gcov_and_process_files
process_gcov_data(fname, covdata, abs_filename, options)
File "/usr/local/lib/python3.7/dist-packages/gcovr/gcov.py", line 102, in process_gcov_data
metadata["Source"].strip(),
KeyError: 'Source'
Are you able to help debug this?