google / google/oss-fuzz

Coverage URL in dashboard broken for some projects

Open
#9,776 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Shell
Stars
12.6k
Forks
2.9k
Avg merge
2d 2h
Merged PRs (30d)
62

Description

I recently tried to view the code coverage for `cxxopts` and ended up getting an error page. This is the button I pressed (which works for other projects);
![image](https://user-images.githubusercontent.com/7277663/220478342-c21a0540-f676-45da-ae0b-69b4be0d8f29.png)

This is the error I got;
![image](https://user-images.githubusercontent.com/7277663/220478482-78b67424-047c-46c8-8d0d-10513d7f323a.png)

I after some experimenting with the normal URL style on OSS-fuzz I ended up being able to find the coverage url for `cxxopts`;
https://storage.googleapis.com/oss-fuzz-coverage/cxxopts/reports/20230221/linux/report.html

It's also worth noting that you need to navigate down several layers of directories to get to actual useful coverage information. I assume this has something to do with how Bazel manages code coverage information. e.g.
https://storage.googleapis.com/oss-fuzz-coverage/cxxopts/reports/20230221/linux/proc/self/cwd/bazel-out/k8-opt-ST-70f88549d21b/bin/report.html

Contributor guide

Open the contributing guide

Research direction

Compare the dashboard's coverage URL for cxxopts with the working OSS-Fuzz storage URL and the nested Bazel report path shown in the issue. Trace how the coverage button constructs its destination, then verify that the resulting link opens the useful report page for projects with this layout.

Written by the indexing model from the issue text.

Assessment

Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.