[llvm] [llvm-cov] Export decision coverage to output json (PR #144335)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 18 13:48:06 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `llvm-nvptx64-nvidia-ubuntu` running on `as-builder-7` while building `llvm` at step 6 "test-build-unified-tree-check-llvm".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/160/builds/19461
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 6 (test-build-unified-tree-check-llvm) failure: test (failure)
******************** TEST 'LLVM :: tools/llvm-cov/mcdc-export-json.test' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/bin/llvm-profdata merge /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/tools/llvm-cov/Inputs/mcdc-general.proftext -o /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/test/tools/llvm-cov/Output/mcdc-export-json.test.tmp.profdata # RUN: at line 1
+ /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/bin/llvm-profdata merge /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/tools/llvm-cov/Inputs/mcdc-general.proftext -o /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/test/tools/llvm-cov/Output/mcdc-export-json.test.tmp.profdata
/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/bin/llvm-cov export --format=text /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/tools/llvm-cov/Inputs/mcdc-general.o -instr-profile /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/test/tools/llvm-cov/Output/mcdc-export-json.test.tmp.profdata | /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/bin/FileCheck /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/tools/llvm-cov/mcdc-export-json.test # RUN: at line 2
+ /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/bin/llvm-cov export --format=text /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/tools/llvm-cov/Inputs/mcdc-general.o -instr-profile /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/test/tools/llvm-cov/Output/mcdc-export-json.test.tmp.profdata
+ /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/bin/FileCheck /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/tools/llvm-cov/mcdc-export-json.test
/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/tools/llvm-cov/mcdc-export-json.test:4:11: error: CHECK: expected string not found in input
// CHECK: 12,7,12,27,0,5,[true,true,true,true]
^
<stdin>:1:1: note: scanning from here
{"data":[{"files":[{"branches":[[12,8,12,9,5,2,0,0,6],[12,13,12,14,2,3,0,0,6],[12,20,12,21,3,2,0,0,6],[12,25,12,26,1,2,0,0,6],[15,7,15,8,3,4,0,0,6],[15,12,15,13,2,1,0,0,6],[15,19,15,20,1,1,0,0,6],[15,24,15,25,1,0,0,0,6],[18,8,18,9,4,3,0,0,6],[18,13,18,14,2,2,0,0,6],[19,8,19,9,2,0,0,0,6],[19,13,19,14,1,1,0,0,6]],"expansions":[],"filename":"mcdc-general.cpp","mcdc_records":[[12,7,12,27,2,4,0,5,[true,true,true,true]],[15,7,15,13,1,2,0,5,[true,true]],[15,19,15,25,1,1,0,5,[true,false]],[18,7,19,15,1,3,0,5,[true,true,false,true]]],"segments":[[10,43,7,true,true,false],[11,1,0,false,true,false],[11,1,7,true,false,false],[12,7,7,true,true,false],[12,8,7,true,true,false],[12,9,7,true,false,false],[12,13,5,true,true,false],[12,14,7,true,false,false],[12,19,5,true,true,false],[12,20,5,true,true,false],[12,21,5,true,false,false],[12,25,3,true,true,false],[12,26,5,true,false,false],[12,27,7,true,false,false],[12,28,3,true,false,true],[13,5,3,true,true,false],[13,36,7,true,false,false],[14,1,0,false,true,false],[14,1,7,true,false,false],[15,7,7,true,true,false],[15,8,7,true,false,false],[15,12,3,true,true,false],[15,13,7,true,false,false],[15,14,2,true,false,true],[15,15,2,true,true,false],[15,19,2,true,true,false],[15,20,2,true,false,false],[15,24,1,true,true,false],[15,25,2,true,false,false],[15,26,1,true,false,true],[16,5,1,true,true,false],[16,36,7,true,false,false],[17,1,0,false,true,false],[17,1,7,true,false,false],[18,7,7,true,true,false],[18,8,7,true,true,false],[18,9,7,true,false,false],[18,13,4,true,true,false],[18,14,7,true,false,false],[19,7,2,true,true,false],[19,8,2,tru
{"count":26,"covered":26,"notcovered":0,"percent":100}}}],"type":"llvm.coverage.json.export","version":"3.0.0"}
^
<stdin>:1:381: note: possible intended match here
{"data":[{"files":[{"branches":[[12,8,12,9,5,2,0,0,6],[12,13,12,14,2,3,0,0,6],[12,20,12,21,3,2,0,0,6],[12,25,12,26,1,2,0,0,6],[15,7,15,8,3,4,0,0,6],[15,12,15,13,2,1,0,0,6],[15,19,15,20,1,1,0,0,6],[15,24,15,25,1,0,0,0,6],[18,8,18,9,4,3,0,0,6],[18,13,18,14,2,2,0,0,6],[19,8,19,9,2,0,0,0,6],[19,13,19,14,1,1,0,0,6]],"expansions":[],"filename":"mcdc-general.cpp","mcdc_records":[[12,7,12,27,2,4,0,5,[true,true,true,true]],[15,7,15,13,1,2,0,5,[true,true]],[15,19,15,25,1,1,0,5,[true,false]],[18,7,19,15,1,3,0,5,[true,true,false,true]]],"segments":[[10,43,7,true,true,false],[11,1,0,false,true,false],[11,1,7,true,false,false],[12,7,7,true,true,false],[12,8,7,true,true,false],[12,9,7,true,false,false],[12,13,5,true,true,false],[12,14,7,true,false,false],[12,19,5,true,true,false],[12,20,5,true,true,false],[12,21,5,true,false,false],[12,25,3,true,true,false],[12,26,5,true,false,false],[12,27,7,true,false,false],[12,28,3,true,false,true],[13,5,3,true,true,false],[13,36,7,true,false,false],[14,1,0,false,true,false],[14,1,7,true,false,false],[15,7,7,true,true,false],[15,8,7,true,false,false],[15,12,3,true,true,false],[15,13,7,true,false,false],[15,14,2,true,false,true],[15,15,2,true,true,false],[15,19,2,true,true,false],[15,20,2,true,false,false],[15,24,1,true,true,false],[15,25,2,true,false,false],[15,26,1,true,false,true],[16,5,1,true,true,false],[16,36,7,true,false,false],[17,1,0,false,true,false],[17,1,7,true,false,false],[18,7,7,true,true,false],[18,8,7,true,true,false],[18,9,7,true,false,false],[18,13,4,true,true,false],[18,14,7,true,false,false],[19,7,2,true,true,false],[19,8,2,true,true,false],[19,9,2,true,false,false],[19,13,2,true,true,false],[19,14,2,true,false,false],[19,15,7,true,false,false],[19,16,1,true,false,true],[20,5,1,true,true,false],[20,36,7,true,false,false],[21,2,0,false,false,false],[24,1,1,true,true,false],[29,1,0,false,true,false],[29,1,1,true,false,false],[33,1,0,false,true,false],[33,1,1,true,false,false],[36,2,0,false,false,false]],"summary":{"branches":{"count":24,"covered":22,"notcovered":2,"percent":91.666666666666657},"functions":{"count":2,"covered":2,"percent":100},"instantiations":{"count":2,"covered":2,"percent":100},"lines":{"count":20,"covered":20,"percent":100},"mcdc":{"count":12,"covered":10,"notcovered":2,"percent":83.333333333333343},"regions":{"count":26,"covered":26,"notcovered":0,"percent":100}}}],"functions":[{"branches":[[12,8,12,9,5,2,0,0,6],[12,13,12,14,2,3,0,0,6],[12,20,12,21,3,2,0,0,6],[12,25,12,26,1,2,0,0,6],[15,7,15,8,3,4,0,0,6],[15,12,15,13,2,1,0,0,6],[15,19,15,20,1,1,0,0,6],[15,24,15,25,1,0,0,0,6],[18,8,18,9,4,3,0,0,6],[18,13,18,14,2,2,0,0,6],[19,8,19,9,2,0,0,0,6],[19,13,19,14,1,1,0,0,6]],"count":7,"filenames":["mcdc-general.cpp"],"mcdc_records":[[12,7,12,27,2,4,0,5,[true,true,true,true]],[15,7,15,13,1,2,0,5,[true,true]],[15,19,15,25,1,1,0,5,[true,false]],[18,7,19,15,1,3,0,5,[true,true,false,true]]],"name":"_Z4testbbbb","regions":[[10,43,21,2,7,0,0,0],[11,1,11,1,0,0,0,2],[12,7,12,15,7,0,0,0],[12,7,12,27,7,0,0,0],[12,8,12,9,7,0,0,0],[12,13,12,14,5,0,0,0],[12,19,12,27,5,0,0,0],[12,20,12,21,5,0,0,0],[12,25,12,26,3,0,0,0],[12,28,13,5,3,0,0,3],[13,5,13,36,3,0,0,0],[14,1,14,1,0,0,0,2],[15,7,15,8,7,0,0,0],[15,7,15,13,7,0,0,0],[15,12,15,13,3,0,0,0],[15,14,15,15,2,0,0,3],[15,15,16,36,2,0,0,0],[15,19,15,20,2,0,0,0],[15,19,15,25,2,0,0,0],[15,24,15,25,1,0,0,0],[15,26,16,5,1,0,0,3],[16,5,16,36,1,0,0,0],[17,1,17,1,0,0,0,2],[18,7,18,15,7,0,0,0],[18,7,19,15,7,0,0,0],[18,8,18,9,7,0,0,0],[18,13,18,14,4,0,0,0],[19,7,19,15,2,0,0,0],[19,8,19,9,2,0,0,0],[19,13,19,14,2,0,0,0],[19,16,20,5,1,0,0,3],[20,5,20,36,1,0,0,0]]},{"branches":[],"count":1,"filenames":["mcdc-general.cpp"],"mcdc_records":[],"name":"main","regions":[[24,1,36,2,1,0,0,0],[29,1,29,1,0,0,0,2],[33,1,33,1,0,0,0,2]]}],"totals":{"branches":{"count":24,"covered":22,"notcovered":2,"percent":91.666666666666657},"functions":{"count":2,"covered":2,"percent":100},"instantiations":{"count":2,"covered":2,"percent":100},"lines":{"count":20,"covered":20,"percent":100},"mcdc":{"count":12,"covered":10,"notcovered":2,"percent":83.333333333333343},"regions"
{"count":26,"covered":26,"notcovered":0,"percent":100}}}],"type":"llvm.coverage.json.export","version":"3.0.0"}
^
Input file: <stdin>
Check file: /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/tools/llvm-cov/mcdc-export-json.test
-dump-input=help explains the following input dump.
Input was:
<<<<<<
43},"regions":{"count":26,"covered":26,"notcovered":0,"percent":100}}}],"type":"llvm.coverage.json.export","version":"3.0.0"}
check:4'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~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~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
possible intended match
>>>>>>
--
********************
```
</details>
https://github.com/llvm/llvm-project/pull/144335
More information about the llvm-commits
mailing list